Run
@Serializable
Represents an execution run on a thread.
Constructors
Link copied to clipboard
constructor(id: RunId, createdAt: Int, threadId: ThreadId, assistantId: AssistantId, status: Status, requiredAction: RequiredAction? = null, lastError: LastError? = null, expiresAt: Int? = null, startedAt: Int? = null, cancelledAt: Int? = null, failedAt: Int? = null, completedAt: Int? = null, model: ModelId, instructions: String? = null, tools: List<AssistantTool>? = null, fileIds: List<String>? = null, metadata: Map<String, String>? = null)
Properties
Link copied to clipboard
The ID of the assistant used for execution of this run.
Link copied to clipboard
The Unix timestamp (in seconds) for when the run was cancelled.
Link copied to clipboard
The Unix timestamp (in seconds) for when the run was completed.
Link copied to clipboard
The instructions that the assistant used for this run.
Link copied to clipboard
Link copied to clipboard
Details on the action required to continue the run. Will be null
if no action is required.
Link copied to clipboard
The status of the run, which can be either Status.Queued, Status.InProgress, Status.RequiresAction, Status.Cancelling, Status.Cancelled, Status.Failed, Status.Completed, or Status.Expired.
Link copied to clipboard
The list of tools that the assistant used for this run.