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
- 200
- 400
- 401
- 403
- 404
Generation result or SSE stream
Bad Request
Unauthorized
Forbidden
Agent or AI provider not found