Inputs

agent_id (String): The ID of the VolansDB Agent to run.

args (Map): A map of Agent Inputs to pass to the Agent.

Output

Agent Job ID. You will likely want to use job_status and job_result to get the status and result of the Agent Job.

Example Usage

Assuming the underlying Agent is expecting two Agent inputs with keys prompt and target:

SELECT run_agent(
  '123e4567-e89b-12d3-a456-426614174000',
  map(
    'prompt', 'Extract entities',
    'target', file_column
  )
) FROM data_table;