Class: OpenAI::Models::Beta::Threads::Runs::RunStep
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::Threads::Runs::RunStep
- Defined in:
- lib/openai/models/beta/threads/runs/run_step.rb
Overview
Defined Under Namespace
Modules: Status, StepDetails, Type Classes: LastError, Usage
Instance Attribute Summary collapse
-
#assistant_id ⇒ String
The ID of the [assistant](platform.openai.com/docs/api-reference/assistants) associated with the run step.
-
#cancelled_at ⇒ Integer?
The Unix timestamp (in seconds) for when the run step was cancelled.
-
#completed_at ⇒ Integer?
The Unix timestamp (in seconds) for when the run step completed.
-
#created_at ⇒ Integer
The Unix timestamp (in seconds) for when the run step was created.
-
#expired_at ⇒ Integer?
The Unix timestamp (in seconds) for when the run step expired.
-
#failed_at ⇒ Integer?
The Unix timestamp (in seconds) for when the run step failed.
-
#id ⇒ String
The identifier of the run step, which can be referenced in API endpoints.
-
#last_error ⇒ OpenAI::Models::Beta::Threads::Runs::RunStep::LastError?
The last error associated with this run step.
-
#metadata ⇒ Hash{Symbol=>String}?
Set of 16 key-value pairs that can be attached to an object.
-
#object ⇒ Symbol, :"thread.run.step"
The object type, which is always ‘thread.run.step`.
-
#run_id ⇒ String
The ID of the [run](platform.openai.com/docs/api-reference/runs) that this run step is a part of.
-
#status ⇒ Symbol, OpenAI::Models::Beta::Threads::Runs::RunStep::Status
The status of the run step, which can be either ‘in_progress`, `cancelled`, `failed`, `completed`, or `expired`.
-
#step_details ⇒ OpenAI::Models::Beta::Threads::Runs::MessageCreationStepDetails, OpenAI::Models::Beta::Threads::Runs::ToolCallsStepDetails
The details of the run step.
-
#thread_id ⇒ String
The ID of the [thread](platform.openai.com/docs/api-reference/threads) that was run.
-
#type ⇒ Symbol, OpenAI::Models::Beta::Threads::Runs::RunStep::Type
The type of run step, which can be either ‘message_creation` or `tool_calls`.
-
#usage ⇒ OpenAI::Models::Beta::Threads::Runs::RunStep::Usage?
Usage statistics related to the run step.
Class Method Summary collapse
- .values ⇒ Array<Symbol>
- .variants ⇒ Array(OpenAI::Models::Beta::Threads::Runs::MessageCreationStepDetails, OpenAI::Models::Beta::Threads::Runs::ToolCallsStepDetails)
Instance Method Summary collapse
-
#initialize(id: , assistant_id: , cancelled_at: , completed_at: , created_at: , expired_at: , failed_at: , last_error: , metadata: , run_id: , status: , step_details: , thread_id: , type: , usage: , object: :"thread.run.step") ⇒ Object
constructor
Some parameter documentations has been truncated, see RunStep for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id: , assistant_id: , cancelled_at: , completed_at: , created_at: , expired_at: , failed_at: , last_error: , metadata: , run_id: , status: , step_details: , thread_id: , type: , usage: , object: :"thread.run.step") ⇒ Object
Some parameter documentations has been truncated, see OpenAI::Models::Beta::Threads::Runs::RunStep for more details.
Represents a step in execution of a run.
|
# File 'lib/openai/models/beta/threads/runs/run_step.rb', line 119
|
Instance Attribute Details
#assistant_id ⇒ String
The ID of the [assistant](platform.openai.com/docs/api-reference/assistants) associated with the run step.
22 |
# File 'lib/openai/models/beta/threads/runs/run_step.rb', line 22 required :assistant_id, String |
#cancelled_at ⇒ Integer?
The Unix timestamp (in seconds) for when the run step was cancelled.
28 |
# File 'lib/openai/models/beta/threads/runs/run_step.rb', line 28 required :cancelled_at, Integer, nil?: true |
#completed_at ⇒ Integer?
The Unix timestamp (in seconds) for when the run step completed.
34 |
# File 'lib/openai/models/beta/threads/runs/run_step.rb', line 34 required :completed_at, Integer, nil?: true |
#created_at ⇒ Integer
The Unix timestamp (in seconds) for when the run step was created.
40 |
# File 'lib/openai/models/beta/threads/runs/run_step.rb', line 40 required :created_at, Integer |
#expired_at ⇒ Integer?
The Unix timestamp (in seconds) for when the run step expired. A step is considered expired if the parent run is expired.
47 |
# File 'lib/openai/models/beta/threads/runs/run_step.rb', line 47 required :expired_at, Integer, nil?: true |
#failed_at ⇒ Integer?
The Unix timestamp (in seconds) for when the run step failed.
53 |
# File 'lib/openai/models/beta/threads/runs/run_step.rb', line 53 required :failed_at, Integer, nil?: true |
#id ⇒ String
The identifier of the run step, which can be referenced in API endpoints.
14 |
# File 'lib/openai/models/beta/threads/runs/run_step.rb', line 14 required :id, String |
#last_error ⇒ OpenAI::Models::Beta::Threads::Runs::RunStep::LastError?
The last error associated with this run step. Will be ‘null` if there are no errors.
60 |
# File 'lib/openai/models/beta/threads/runs/run_step.rb', line 60 required :last_error, -> { OpenAI::Beta::Threads::Runs::RunStep::LastError }, nil?: true |
#metadata ⇒ Hash{Symbol=>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, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
71 |
# File 'lib/openai/models/beta/threads/runs/run_step.rb', line 71 required :metadata, OpenAI::Internal::Type::HashOf[String], nil?: true |
#object ⇒ Symbol, :"thread.run.step"
The object type, which is always ‘thread.run.step`.
77 |
# File 'lib/openai/models/beta/threads/runs/run_step.rb', line 77 required :object, const: :"thread.run.step" |
#run_id ⇒ String
The ID of the [run](platform.openai.com/docs/api-reference/runs) that this run step is a part of.
84 |
# File 'lib/openai/models/beta/threads/runs/run_step.rb', line 84 required :run_id, String |
#status ⇒ Symbol, OpenAI::Models::Beta::Threads::Runs::RunStep::Status
The status of the run step, which can be either ‘in_progress`, `cancelled`, `failed`, `completed`, or `expired`.
91 |
# File 'lib/openai/models/beta/threads/runs/run_step.rb', line 91 required :status, enum: -> { OpenAI::Beta::Threads::Runs::RunStep::Status } |
#step_details ⇒ OpenAI::Models::Beta::Threads::Runs::MessageCreationStepDetails, OpenAI::Models::Beta::Threads::Runs::ToolCallsStepDetails
The details of the run step.
97 |
# File 'lib/openai/models/beta/threads/runs/run_step.rb', line 97 required :step_details, union: -> { OpenAI::Beta::Threads::Runs::RunStep::StepDetails } |
#thread_id ⇒ String
The ID of the [thread](platform.openai.com/docs/api-reference/threads) that was run.
104 |
# File 'lib/openai/models/beta/threads/runs/run_step.rb', line 104 required :thread_id, String |
#type ⇒ Symbol, OpenAI::Models::Beta::Threads::Runs::RunStep::Type
The type of run step, which can be either ‘message_creation` or `tool_calls`.
110 |
# File 'lib/openai/models/beta/threads/runs/run_step.rb', line 110 required :type, enum: -> { OpenAI::Beta::Threads::Runs::RunStep::Type } |
#usage ⇒ OpenAI::Models::Beta::Threads::Runs::RunStep::Usage?
Usage statistics related to the run step. This value will be ‘null` while the run step’s status is ‘in_progress`.
117 |
# File 'lib/openai/models/beta/threads/runs/run_step.rb', line 117 required :usage, -> { OpenAI::Beta::Threads::Runs::RunStep::Usage }, nil?: true |
Class Method Details
.values ⇒ Array<Symbol>
|
# File 'lib/openai/models/beta/threads/runs/run_step.rb', line 188
|
.variants ⇒ Array(OpenAI::Models::Beta::Threads::Runs::MessageCreationStepDetails, OpenAI::Models::Beta::Threads::Runs::ToolCallsStepDetails)
|
# File 'lib/openai/models/beta/threads/runs/run_step.rb', line 224
|