Represents an execution run on a thread.
Instance methods
cancelled_at
The Unix timestamp (in seconds) for when the run was cancelled.
Sourcecancelled_at=(cancelled_at :
Int64 |
Nil)
The Unix timestamp (in seconds) for when the run was cancelled.
Sourcecompleted_at
The Unix timestamp (in seconds) for when the run was completed.
Sourcecompleted_at=(completed_at :
Int64 |
Nil)
The Unix timestamp (in seconds) for when the run was completed.
Sourcecreated_at
The Unix timestamp (in seconds) for when the run was created.
Sourcecreated_at=(created_at :
Int64)
The Unix timestamp (in seconds) for when the run was created.
Sourceexpires_at
The Unix timestamp (in seconds) for when the run will expire.
Sourceexpires_at=(expires_at :
Int64 |
Nil)
The Unix timestamp (in seconds) for when the run will expire.
Sourcefailed_at
The Unix timestamp (in seconds) for when the run failed.
Sourcefailed_at=(failed_at :
Int64 |
Nil)
The Unix timestamp (in seconds) for when the run failed.
Sourceid
The identifier, which can be referenced in API endpoints.
SourceThe identifier, which can be referenced in API endpoints.
Sourceincomplete_details
Details on why the run is incomplete. Will be null if the run is not incomplete.
Sourceincomplete_details=(incomplete_details : RunObjectIncompleteDetails | Nil)
Details on why the run is incomplete. Will be null if the run is not incomplete.
Sourcelast_error
The last error associated with this run. Will be null if there are no errors.
Sourcelast_error=(last_error : RunObjectLastError | Nil)
The last error associated with this run. Will be null if there are no errors.
Sourcemax_completion_tokens
The maximum number of completion tokens specified to have been used over the course of the run.
Sourcemax_completion_tokens=(max_completion_tokens :
Int64 |
Nil)
The maximum number of completion tokens specified to have been used over the course of the run.
Sourcemax_prompt_tokens
The maximum number of prompt tokens specified to have been used over the course of the run.
Sourcemax_prompt_tokens=(max_prompt_tokens :
Int64 |
Nil)
The maximum number of prompt tokens specified to have been used over the course of the run.
Sourceobject
The object type, which is always thread.run.
Sourceobject=(object : RunObjectObject)
The object type, which is always thread.run.
Sourcerequired_action
Details on the action required to continue the run. Will be null if no action is required.
Sourcerequired_action=(required_action : RunObjectRequiredAction | Nil)
Details on the action required to continue the run. Will be null if no action is required.
Sourcestarted_at
The Unix timestamp (in seconds) for when the run was started.
Sourcestarted_at=(started_at :
Int64 |
Nil)
The Unix timestamp (in seconds) for when the run was started.
Sourcestatus=(status : RunStatus)
Sourcetemperature
The sampling temperature used for this run. If not set, defaults to 1.
Sourcetemperature=(temperature :
Float64 |
Nil)
The sampling temperature used for this run. If not set, defaults to 1.
Sourcethread_id
The ID of the thread that was executed on as a part of this run.
Sourcethread_id=(thread_id :
String)
The ID of the thread that was executed on as a part of this run.
Sourcetop_p
The nucleus sampling value used for this run. If not set, defaults to 1.
SourceThe nucleus sampling value used for this run. If not set, defaults to 1.
Sourcetruncation_strategy=(truncation_strategy : RunObjectTruncationStrategy)
Sourceusage=(usage : RunCompletionUsage)
Source