create Streaming Run
abstract suspend fun createStreamingRun(threadId: ThreadId, request: RunRequest, requestOptions: RequestOptions? = null): Flow<AssistantStreamEvent>
Create a run with event streaming.
Parameters
thread Id
The ID of the thread to run
request
request for a run
request Options
request options.
block
a lambda function that will be called for each event.