Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/openai/resources/beta/threads/mod.ts>Runs#submitToolOutputs

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
method Runs.prototype.submitToolOutputs
import { Runs } from "https://deno.land/x/openai@v4.38.5/resources/beta/threads/mod.ts";

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.

Parameters

threadId: string
runId: string
optional
options: Core.RequestOptions

Returns

APIPromise<Run>

Parameters

threadId: string
runId: string
optional
options: Core.RequestOptions

Returns

APIPromise<Stream<AssistantsAPI.AssistantStreamEvent>>

Parameters

threadId: string
runId: string
body: RunSubmitToolOutputsParamsBase
optional
options: Core.RequestOptions

Returns

APIPromise<Stream<AssistantsAPI.AssistantStreamEvent> | Run>