import { Runs } from "https://deno.land/x/openai@v4.26.0/resources/beta/threads/runs/runs.ts";
import { Runs } from "https://deno.land/x/openai@v4.26.0/resources/beta/threads/runs/runs.ts";
Methods
cancel(): Core.APIPromise<Run>
threadId: string,
runId: string,
options?: Core.RequestOptions,
Cancels a run that is in_progress
.
create(): Core.APIPromise<Run>
threadId: string,
body: RunCreateParams,
options?: Core.RequestOptions,
Create a run.
list(): Core.PagePromise<RunsPage, Run>
threadId: string,
query?: RunListParams,
options?: Core.RequestOptions,
Returns a list of runs belonging to a thread.
list(threadId: string, options?: Core.RequestOptions): Core.PagePromise<RunsPage, Run>
retrieve(): Core.APIPromise<Run>
threadId: string,
runId: string,
options?: Core.RequestOptions,
Retrieves a run.
submitToolOutputs(): Core.APIPromise<Run>
threadId: string,
runId: string,
body: RunSubmitToolOutputsParams,
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.
update(): Core.APIPromise<Run>
threadId: string,
runId: string,
body: RunUpdateParams,
options?: Core.RequestOptions,
Modifies a run.