Stream Events
Stream events for a task by its unique ID using Server-Sent Events (SSE).
Supports automatic reconnection with Last-Event-ID header. When the client reconnects, it sends the Last-Event-ID header with the last received event ID, and the server resumes from that point.
Returns TextStreamPart events (Vercel AI SDK compatible format).
GET
Stream Task Events by ID
SSE Behavior:
- Supports automatic reconnection with
Last-Event-IDheader - When the client reconnects, the server resumes from the last received event
- Stream terminates with
[DONE]message
Stream Event Types
The stream returnsTextStreamPartWrapper events with a discriminated type field. These events are compatible with the Vercel AI SDK format.
text-delta
Incremental text content from the agent.tool-call
Complete tool call with parsed input arguments.tool-result
Tool execution result.finish
Marks the end of the streaming session.error
Error during streaming.These event types are designed to be compatible with the Vercel AI SDK streaming format, making it easy to integrate with AI SDK-based applications.
Path Parameters
Response
SSE stream of TextStreamPart events
- StartPart
- StartStepPart
- FinishStepPart
- FinishPart
- HandlerCompletePart
- TextStartPart
- TextDeltaPart
- TextEndPart
- ReasoningStartPart
- ReasoningDeltaPart
- ReasoningEndPart
- ToolInputStartPart
- ToolInputDeltaPart
- ToolInputEndPart
- ToolCallPart
- ToolResultPart
- StreamErrorPart
Marks the start of a streaming session.
Allowed value:
"start"Stream Task Events by ID