Class: OpenAI::Models::Beta::BetaResponseItem::LocalShellCallOutput
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::BetaResponseItem::LocalShellCallOutput
- Defined in:
- lib/openai/models/beta/beta_response_item.rb,
sig/openai/models/beta/beta_response_item.rbs
Defined Under Namespace
Modules: Status Classes: Agent
Instance Attribute Summary collapse
-
#agent ⇒ OpenAI::Beta::BetaResponseItem::LocalShellCallOutput::Agent?
The agent that produced this item.
-
#id ⇒ String
The unique ID of the local shell tool call generated by the model.
-
#output ⇒ String
A JSON string of the output of the local shell tool call.
-
#status ⇒ OpenAI::Models::Beta::BetaResponseItem::LocalShellCallOutput::status?
The status of the item.
-
#type ⇒ :local_shell_call_output
The type of the local shell tool call output.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(agent_name:) ⇒ LocalShellCallOutput
constructor
A new instance of LocalShellCallOutput.
- #to_hash ⇒ { id: String, output: String, ?type: :local_shell_call_output, ?agent: OpenAI::Beta::BetaResponseItem::LocalShellCallOutput::Agent?, ?status: OpenAI::Models::Beta::BetaResponseItem::LocalShellCallOutput::status? }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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(agent_name:) ⇒ LocalShellCallOutput
Returns a new instance of LocalShellCallOutput.
|
|
# File 'lib/openai/models/beta/beta_response_item.rb', line 1436
|
Instance Attribute Details
#agent ⇒ OpenAI::Beta::BetaResponseItem::LocalShellCallOutput::Agent?
The agent that produced this item.
1422 |
# File 'lib/openai/models/beta/beta_response_item.rb', line 1422 optional :agent, -> { OpenAI::Beta::BetaResponseItem::LocalShellCallOutput::Agent }, nil?: true |
#id ⇒ String
The unique ID of the local shell tool call generated by the model.
1404 |
# File 'lib/openai/models/beta/beta_response_item.rb', line 1404 required :id, String |
#output ⇒ String
A JSON string of the output of the local shell tool call.
1410 |
# File 'lib/openai/models/beta/beta_response_item.rb', line 1410 required :output, String |
#status ⇒ OpenAI::Models::Beta::BetaResponseItem::LocalShellCallOutput::status?
The status of the item. One of in_progress, completed, or incomplete.
1428 1429 1430 1431 1432 1433 1434 |
# File 'lib/openai/models/beta/beta_response_item.rb', line 1428 optional( :status, enum: -> { OpenAI::Beta::BetaResponseItem::LocalShellCallOutput::Status }, nil?: true ) |
#type ⇒ :local_shell_call_output
The type of the local shell tool call output. Always local_shell_call_output.
1416 |
# File 'lib/openai/models/beta/beta_response_item.rb', line 1416 required :type, const: :local_shell_call_output |
Instance Method Details
#to_hash ⇒ { id: String, output: String, ?type: :local_shell_call_output, ?agent: OpenAI::Beta::BetaResponseItem::LocalShellCallOutput::Agent?, ?status: OpenAI::Models::Beta::BetaResponseItem::LocalShellCallOutput::status? }
1334 1335 1336 1337 1338 1339 1340 |
# File 'sig/openai/models/beta/beta_response_item.rbs', line 1334
def to_hash: -> {
id: String,
output: String,
?type: :local_shell_call_output,
?agent: OpenAI::Beta::BetaResponseItem::LocalShellCallOutput::Agent?,
?status: OpenAI::Models::Beta::BetaResponseItem::LocalShellCallOutput::status?
}
|