submitStreamingToolOutput
abstract suspend fun submitStreamingToolOutput(threadId: <Error class: unknown class>, runId: <Error class: unknown class>, output: List<<Error class: unknown class>>, requestOptions: <Error class: unknown class>? = null): Flow<<Error class: unknown class>>
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.