class

OpenAI::RunStepObject

Inherits JSON::Serializable < Reference < Object

Represents a step in execution of a run.

Constructors

new(id : String = "", object : RunStepObjectObject = RunStepObjectObject::ThreadRunStep, created_at : Int64 = 0, assistant_id : String = "", thread_id : String = "", run_id : String = "", type_value : RunStepObjectType = RunStepObjectType::MessageCreation, status : RunStepObjectStatus = RunStepObjectStatus::InProgress, step_details : RunStepObjectStepDetails = RunStepDetailsMessageCreationObject.new, last_error : RunStepObjectLastError = nil, expired_at : RunStepObjectExpiredAt = nil, cancelled_at : RunStepObjectCancelledAt = nil, failed_at : RunStepObjectFailedAt = nil, completed_at : RunStepObjectCompletedAt = nil, metadata : Metadata = nil, usage : RunStepCompletionUsage = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

assistant_id

The ID of the assistant associated with the run step.

Source
assistant_id=(assistant_id : String)

The ID of the assistant associated with the run step.

Source
cancelled_at
Source
cancelled_at=(cancelled_at : RunStepObjectCancelledAt)
Source
completed_at
Source
completed_at=(completed_at : RunStepObjectCompletedAt)
Source
created_at

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

Source
created_at=(created_at : Int64)

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

Source
expired_at
Source
expired_at=(expired_at : RunStepObjectExpiredAt)
Source
failed_at
Source
failed_at=(failed_at : RunStepObjectFailedAt)
Source
id

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

Source
id=(id : String)

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

Source
last_error
Source
last_error=(last_error : RunStepObjectLastError)
Source
metadata
Source
metadata=(metadata : Metadata)
Source
object

The object type, which is always thread.run.step.

Source
object=(object : RunStepObjectObject)

The object type, which is always thread.run.step.

Source
run_id

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

Source
run_id=(run_id : String)

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

Source
status

The status of the run step, which can be either in_progress, cancelled, failed, completed, or expired.

Source
status=(status : RunStepObjectStatus)

The status of the run step, which can be either in_progress, cancelled, failed, completed, or expired.

Source
step_details

The details of the run step.

Source
step_details=(step_details : RunStepObjectStepDetails)

The details of the run step.

Source
thread_id

The ID of the thread that was run.

Source
thread_id=(thread_id : String)

The ID of the thread that was run.

Source
type_value

The type of run step, which can be either message_creation or tool_calls.

Source
type_value=(type_value : RunStepObjectType)

The type of run step, which can be either message_creation or tool_calls.

Source
usage
Source
usage=(usage : RunStepCompletionUsage)
Source