Stream a function revision call execution in real-time using Server-Sent Events (SSE).
This endpoint returns a continuous stream of Server-Sent Event 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 Server-Sent Event contains:
id: Optional event identifierevent: Optional event typedata: JSON payload with streaming chunk informationretry: Optional retry intervalThe data payload includes:
delta: Incremental text content (if any)span_id: Unique identifier for the execution span (when available)Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The id of the function to call
The id of the revision to call
Input to the function
{ "x": 4, "y": 5 }[
{
"comment": "Adds two numbers",
"input": { "x": 1, "y": 3 },
"output": { "sum": 4 }
}
]Tags to add to the call event
{ "tag": "value" }Server-Sent Events stream of function execution chunks
Server-Sent Event following the SSE specification