Stream a function call execution in real-time using Server-Sent Events (SSE).
This endpoint returns a continuous stream of ServerSentEvent objects as the function executes, allowing for real-time streaming of responses. The response follows the Server-Sent Events specification with proper event structure for SDK compatibility.
Each ServerSentEvent contains:
id
: Optional event identifierevent
: Optional event typedata
: StreamingChunk with actual contentretry
: Optional retry intervalThe StreamingChunk data payload includes:
delta
: Incremental text content (if any)span_id
: Unique identifier for the execution span (when available)Note: When streaming is enabled, any output_schema will be ignored as structured output cannot be streamed. The response will be unstructured text content.
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Server-Sent Events stream of function execution chunks
Server-Sent Event following the SSE specification