submitToolOutput
abstract suspend fun submitToolOutput(threadId: ThreadId, runId: RunId, output: List<ToolOutput>, requestOptions: RequestOptions? = null): Run
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.
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.