interface RunStep
implements HasMetadata
Re-export
import { type RunStep } from "https://deno.land/x/openai_deno@v0.9.8/mod.ts";
Properties
The ID of the assistant associated with the run step.
The ID of the thread that was run.
The ID of the run that this run step is a part of.
The type of run step, which can be either messageCreation
or toolCalls
.
The status of the run step, which can be either inProgress
, cancelled
, failed
, completed
, or expired
.
stepDetails: { type: "messageCreation"; messageID: string; } | { type: "toolCalls"; toolCalls: ({ id: string; type: "codeInterpreter"; input: string; outputs: ({ type: "logs"; logs: string; } | { type: "image"; fileID: string; })[]; } | { id: string; type: "retrieval"; retrieval: never; } | { id: string; type: "function"; name: string; arguments: string; output?: string | null; })[]; }
The details of the run step.
The last error associated with this run step. Will be null
if there are no errors.
The Unix timestamp (in seconds) for when the run step expired. A step is considered expired if the parent run is expired.
The Unix timestamp (in seconds) for when the run step was cancelled.