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 instructions used for the run
Link copied to clipboard
The required action for the run, if any