interface Run
implements HasMetadata
import { type Run } from "https://deno.land/x/openai_deno@v0.9.8/src/types/runs.ts";
Properties
The ID of the thread that was executed on as a part of this run.
The ID of the assistant used for execution of this run.
status:
| "queued"
| "inProgress"
| "requiresAction"
| "cancelling"
| "cancelled"
| "failed"
| "completed"
| "expired"
The status of the run, which can be either queued
, inProgress
, requiresAction
, cancelling
, cancelled
, failed
, completed
, or expired
.
optional
requiredAction: { type: "submitToolOutputs" | string; submitToolOutputs: { toolCalls: { id: string; type: "function" | string; function: { name: string; arguments: string; }; }[]; }; } | nullDetails on the action required to continue the run. Will be null
if no action is required.
The last error associated with this run. Will be null
if there are no errors.
The model that the assistant used for this run.
The instructions that the assistant used for this run.