submit Streaming Tool Output
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
thread Id
the ID of the thread to which this run belongs
run Id
the ID of the run to submit tool outputs for
output
list of tool outputs to submit
request Options
request options.
block
a lambda function that will be called for each event.