Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
method OpenAI.prototype.submitToolOutputsToRun
import { OpenAI } from "https://deno.land/x/openai_deno@v0.9.8/mod.ts";

When a run has the status: "requiresAction" and requiredAction.type is 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: string

The ID of the thread to which this run belongs.

runID: string

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

toolCalls: ToolCall[]

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

Returns

Promise<Run>

The modified run object matching the specified ID.