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

Varies depending on the Agent. The output of an Agent depends on the underlying Enging powering the Agent.

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;