Run

data class Run(val id: String, val createdAt: Int, val threadId: String, val assistantId: String, val status: RunStatus, val requiredAction: RequiredAction?, val lastError: RunError?, val expiresAt: Int, val startedAt: Int?, val cancelledAt: Int?, val failedAt: Int?, val completedAt: Int?, val model: String, val instructions: String, val tools: List<Tool>, val fileIds: List<String>, val metadata: Map<String, String>)

Represents a run object returned by the OpenAI API. The run object itself isn't highly useful for most applications, but it is used to retrieve the messages from the run via RunSteps.

Constructors

Link copied to clipboard
constructor(id: String, createdAt: Int, threadId: String, assistantId: String, status: RunStatus, requiredAction: RequiredAction?, lastError: RunError?, expiresAt: Int, startedAt: Int?, cancelledAt: Int?, failedAt: Int?, completedAt: Int?, model: String, instructions: String, tools: List<Tool>, fileIds: List<String>, metadata: Map<String, String>)

Properties

Link copied to clipboard

The id of the assistant which is handling the run

Link copied to clipboard

The unix timestamp of when the run was cancelled

Link copied to clipboard

The unix timestamp of when the run completed

Link copied to clipboard

The unix timestamp of when the run was created

Link copied to clipboard

The unix timestamp of when the run will expire

Link copied to clipboard

The unix timestamp of when the run failed

Link copied to clipboard

The file ids used for the run

Link copied to clipboard
val id: String

The unique id of the run, used for retrieving the run

Link copied to clipboard

The instructions used for the run

Link copied to clipboard

The last error associated with the run, if any

Link copied to clipboard

The metadata associated with the run

Link copied to clipboard

The model used for the run

Link copied to clipboard

The required action for the run, if any

Link copied to clipboard

The unix timestamp of when the run started

Link copied to clipboard

The current status of the run

Link copied to clipboard

The id of the thread that the run belongs to

Link copied to clipboard

The tools used for the run