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#submitToolOutputsAndPoll

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

A helper to submit a tool output to a run and poll for a terminal run state. More information on Run lifecycles can be found here: https://platform.openai.com/docs/assistants/how-it-works/runs-and-run-steps

Parameters

threadId: string
runId: string
optional
options: Core.RequestOptions & { pollIntervalMs?: number; }

Returns

Promise<Run>