import { Runs } from "https://deno.land/x/openai@v4.29.0/resources/beta/threads/runs/runs.ts";
class Runs
extends APIResource
import { Runs } from "https://deno.land/x/openai@v4.29.0/resources/beta/threads/runs/runs.ts";
Methods
Cancels a run that is in_progress
.
create(): APIPromise<Run>
Create a run.
create(): APIPromise<Stream<AssistantsAPI.AssistantStreamEvent>>
create(): APIPromise<Stream<AssistantsAPI.AssistantStreamEvent> | Run>
Create a Run stream
Retrieves a run.
submitToolOutputs(): APIPromise<Run>
threadId: string,
runId: string,
options?: Core.RequestOptions,
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.
submitToolOutputs(): APIPromise<Stream<AssistantsAPI.AssistantStreamEvent>>
threadId: string,
runId: string,
options?: Core.RequestOptions,
submitToolOutputs(): APIPromise<Stream<AssistantsAPI.AssistantStreamEvent> | Run>
submitToolOutputsStream(): AssistantStream
threadId: string,
runId: string,
options?: Core.RequestOptions,
Submit the tool outputs from a previous run and stream the run to a terminal state.