submitStreamingToolOutput
abstract suspend fun submitStreamingToolOutput( threadId: ThreadId, runId: RunId, output: List<ToolOutput>, requestOptions: RequestOptions? = null): Flow<AssistantStreamEvent>
When a run has the status: Status.RequiresAction and required action is RequiredAction.SubmitToolOutputs, this endpoint can be used to submit the outputs from the tool calls once they're all completed. All outputs must be submitted in a single request using event streaming.
Parameters
threadId
the ID of the thread to which this run belongs
runId
the ID of the run to submit tool outputs for
output
list of tool outputs to submit
requestOptions
request options.
block
a lambda function that will be called for each event.