Create And Stream Run
Create a new run and stream its execution via SSE.
Returns a text/event-stream response with Server-Sent Events. Each event has a type field (e.g. values, updates, messages, metadata, end) and a JSON data payload.
Set on_disconnect to "continue" if the run should keep executing after the client disconnects (default is "cancel"). Use stream_mode to control which event types are emitted.
A periodic SSE keepalive comment is sent every KEEPALIVE_INTERVAL_SECS so idle proxies don't drop long-running silent nodes (e.g. agents holding an upstream WebSocket).
Path parameters
Request body
Response
Server-Sent Events stream
Changes
Changed in 3 of the 53 revisions of this API.7
- ○
the
configrequest property default value{}was removedrequest-property-default-value-removed
- ○
the
contextrequest property default value{}was removedrequest-property-default-value-removed
- ○
- ○
api tag
Thread Runsaddedapi-tag-added
- ○
api tag
Runsremovedapi-tag-removed
- ○
added the media type
text/event-streamfor the response with the status200response-media-type-added
- ○
added the non-success response with the status
409response-non-success-status-added
- ○
- ○
added the new optional request property
on_completionnew-optional-request-property
- ○