createStreamingRun
abstract suspend fun createStreamingRun(threadId: ThreadId, request: RunRequest, requestOptions: RequestOptions? = null): Flow<AssistantStreamEvent>
Deprecated
OpenAI retired the Assistants API on August 26, 2026. Use Responses and Conversations.
Create a run with event streaming.
Parameters
threadId
The ID of the thread to run
request
request for a run
requestOptions
request options.
block
a lambda function that will be called for each event.