Thread Runs
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).
post/threads/{thread_id}/runs/stream
Path parameters
thread_idstring required
Request body
Response
Server-Sent Events stream
{"stackTrail":"paths:/threads/{thread_id}/runs/stream:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}