Start a new conversation (streaming)
POST/agents/:agentId/conversations/stream
Start a new conversation and receive the response as a Server-Sent Events (SSE) stream. Requires the ECE feature flag to be enabled for the environment. GraphRag agents using the cin-ece-kd application key bypass this requirement and always have access to the streaming endpoint.
Request
Responses
- 200
- 403
- 404
Server-Sent Events stream. Each event is a JSON object prefixed with data: and terminated by a blank line. Possible event types: stream.started, stream.delta, stream.tool_call, stream.completed, response.incomplete, stream.error. The stream.error event includes a required error message and an optional code field (e.g. guardrail_violation) that identifies the error category.
Forbidden
Not Found