Skip to main content

Run an agent generation

POST 

/agents/:agentId/generate

Sends messages to the agent, resolves its tools, and runs the AI model loop. Supports streaming via stream: true. Client tools pause the generation and return requires_action.

Request

Responses

Generation result or SSE stream