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
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import openai from '@utdk/openai';
await openai.submittoolouputstorun()