RunStep

@Serializable
sealed interface RunStep

Inheritors

Properties

Link copied to clipboard
abstract val assistantId: AssistantId

The ID of the assistant associated with the run step.

Link copied to clipboard
abstract val cancelledAt: Int?

The Unix timestamp (in seconds) for when the run step was Status.Cancelled.

Link copied to clipboard
abstract val completedAt: Int?

The Unix timestamp (in seconds) for when the run step completed.

Link copied to clipboard
abstract val createdAt: Int

The Unix timestamp (in seconds) for when the run step was created.

Link copied to clipboard
abstract val expiredAt: Int?

The Unix timestamp (in seconds) for when the run step expired. A step is considered expired if the parent run is expired.

Link copied to clipboard
abstract val failedAt: Int?

The Unix timestamp (in seconds) for when the run step failed.

Link copied to clipboard
abstract val id: RunStepId

The identifier of the run step, which can be referenced in API endpoints.

Link copied to clipboard
abstract val lastError: LastError?

The last error associated with this run step. Will be null if there are no errors.

Link copied to clipboard
abstract val metadata: Map<String, String>?

Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long, and values can be a maximum of 512 characters long.

Link copied to clipboard
abstract val runId: RunId

The ID of the run that this run step is a part of.

Link copied to clipboard
abstract val status: Status

The status of the run step, which can be either Status.InProgress, Status.Cancelled, Status.Failed, Status.Completed, or Status.Expired.

Link copied to clipboard

The details of the run step.

Link copied to clipboard
abstract val threadId: ThreadId

The ID of the thread that was run.