Functions
Stream Function
Stream a function 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 interval
The data payload includes:
delta
: Incremental text content (if any)span_id
: Unique identifier for the execution span (when available)
POST
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
The id of the function to call
Body
application/json
Response
200
text/event-stream
Server-Sent Events stream of function execution chunks
Server-Sent Event following the SSE specification
Previous
Stream Function RevisionStream 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 identifier
- `event`: Optional event type
- `data`: JSON payload with streaming chunk information
- `retry`: Optional retry interval
The data payload includes:
- `delta`: Incremental text content (if any)
- `span_id`: Unique identifier for the execution span (when available)
Next