Skip to main content
GET
Stream Task Events by ID
SSE Behavior:
  • Supports automatic reconnection with Last-Event-ID header
  • When the client reconnects, the server resumes from the last received event
  • Stream terminates with [DONE] message

Stream Event Types

The stream returns TextStreamPartWrapper 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

task_id
string
required

Response

SSE stream of TextStreamPart events

Marks the start of a streaming session.

type
string
default:start
Allowed value: "start"