Ask a question to get started
Enter to send•Shift+Enter new line
stream( self, thread_id: str | None = None, *, assistant_id: str,
thread_id
str | None
None
optional explicit thread identifier. Defaults to a fresh UUIDv4.
assistant_id
str
assistant the run will use. Required.
headers
Mapping[str, str] | None
transport
Literal['sse', 'websocket']
'sse'
Open a v3 thread-centric streaming session.
optional headers forwarded on every command and SSE request for this stream session.
event transport to use, "sse" (default) or "websocket".
"sse"
"websocket"