createStreamingRun
abstract suspend fun createStreamingRun( threadId: ThreadId, request: RunRequest, requestOptions: RequestOptions? = null): Flow<AssistantStreamEvent>
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.