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).
SSE Behavior:Documentation Index
Fetch the complete documentation index at: https://docs.terminaluse.com/llms.txt
Use this file to discover all available pages before exploring further.
Last-Event-ID header[DONE] messageTextStreamPartWrapper events with a discriminated type field. These events are compatible with the Vercel AI SDK format.
| Event Type | Description |
|---|---|
start | Marks the beginning of the streaming session |
start-step | Marks the beginning of an agentic step |
text-start | Marks the beginning of a text block |
text-delta | Incremental text content |
text-end | Marks the end of a text block |
reasoning-start | Marks the beginning of reasoning/thinking content |
reasoning-delta | Incremental reasoning content |
reasoning-end | Marks the end of reasoning content |
tool-input-start | Marks the beginning of tool input streaming |
tool-input-delta | Incremental tool input (JSON streaming) |
tool-input-end | Marks the end of tool input |
tool-call | Complete tool call with parsed input |
tool-result | Tool execution result |
finish-step | Marks the end of an agentic step |
finish | Marks the end of the streaming session |
error | Error during streaming |
SSE stream of TextStreamPart events
Marks the start of a streaming session.
"start"