OpenAI::RunStepObject
Inherits JSON::Serializable < Reference < Object
Represents a step in execution of a run.
Constructors
new(pull : JSON::PullParser)
Sourcenew(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)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
cancelled_at
Sourcecancelled_at=(cancelled_at : RunStepObjectCancelledAt)
Sourcecompleted_at
Sourcecompleted_at=(completed_at : RunStepObjectCompletedAt)
Sourcecreated_at=(created_at : Int64)
The Unix timestamp (in seconds) for when the run step was created.
expired_at
Sourceexpired_at=(expired_at : RunStepObjectExpiredAt)
Sourcefailed_at
Sourcefailed_at=(failed_at : RunStepObjectFailedAt)
Sourcelast_error
Sourcelast_error=(last_error : RunStepObjectLastError)
Sourcemetadata
Sourcemetadata=(metadata : Metadata)
Sourcestatus
The status of the run step, which can be either in_progress, cancelled, failed, completed, or expired.
status=(status : RunStepObjectStatus)
The status of the run step, which can be either in_progress, cancelled, failed, completed, or expired.
type_value=(type_value : RunStepObjectType)
The type of run step, which can be either message_creation or tool_calls.
usage
Sourceusage=(usage : RunStepCompletionUsage)
Source