Skip to main content

Trigger agent generation

POST 

/api/v1/sessions/:session_id/generate

Triggers the agent to generate a response based on the current conversation. Background by default: returns 202 Accepted immediately while the generation runs. Pass ?wait=true to block and receive the assistant reply (or a requires_action status if the agent needs client tool outputs) in the response.

Request

Responses

Agent reply or requires_action (only when ?wait=true)