Trigger agent generation
POST/api/v1/agents/:agent_id/sessions/:session_id/generate
Triggers the agent to generate a response based on the current conversation. Returns the assistant reply or a requires_action status if the agent needs client tool outputs. Pass ?async=true for a 202 accepted response when you do not need to wait for the result.
Request
Responses
- 200
- 202
- 401
- 403
- 404
- 409
Agent reply or requires_action
Generation accepted (async mode)
Unauthorized
Forbidden
Not found
Generation already in progress