v46

latestOpenAPI 3.1.0raw.githubusercontent.com2025-11-25213680.0 KB

Run Agent Batch

Run a batch of agents with the specified tasks using a thread pool.

post/v1/agent/batch/completions

Headers

x-api-keystring required

Request body

taskstring nullable

The task to be completed by the agent.

imgstring nullable

An optional image URL that may be associated with the agent's task or representation.

imgsstring[] nullable

A list of image URLs that may be associated with the agent's task or representation.

tools_enabledstring[] nullable

A list of tools that the agent should use to complete its task.

Response

Successful Response

batch_idstring nullable

The unique identifier for the agent batch completion.

total_requestsinteger nullable

The total number of requests in the batch.

{"stackTrail":"components:schemas:AgentBatchCompletionResponse:properties:results:anyOf","oasType":"schema","type":"unknown","title":"Results","description":"The outputs generated by the agent.","nullable":true}
execution_timenumber nullable

The execution time of the agent batch completion.

timestampstring nullable

The timestamp when the agent batch completion was created.