provider Assistants POST /threads/{thread_id}/runs/{run_id}/submit_tool_outputs
@utdk/openai /threads/{thread_id}/runs/{run_id}/submit_tool_outputs
When a run has the `status: "requires_action"` and `required_action.type` is `submit_tool_outputs`, 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.
thread_id path required
The ID of the [thread](/docs/api-reference/threads) to which this run belongs.
string
run_id path required
The ID of the run that requires the tool output submission.
string

Try it

Authentication
Configure credentials for OpenAI API
submittoolouputstorun
POST/threads/{thread_id}/runs/{run_id}/submit_tool_outputs

Parameters

required

The ID of the [thread](/docs/api-reference/threads) to which this run belongs.

required

The ID of the run that requires the tool output submission.

Input

required

A list of tools for which the outputs are being submitted.

If `true`, returns a stream of events that happen during the Run as server-sent events, terminating when the Run enters a terminal state with a `data: [DONE]` message.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import openai from '@utdk/openai';

await openai.submittoolouputstorun()