Class: OpenAI::Models::Beta::BetaResponseItem::LocalShellCall
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::BetaResponseItem::LocalShellCall
- Defined in:
- lib/openai/models/beta/beta_response_item.rb,
sig/openai/models/beta/beta_response_item.rbs
Defined Under Namespace
Modules: Status Classes: Action, Agent
Instance Attribute Summary collapse
-
#action ⇒ OpenAI::Beta::BetaResponseItem::LocalShellCall::Action
Execute a shell command on the server.
-
#agent ⇒ OpenAI::Beta::BetaResponseItem::LocalShellCall::Agent?
The agent that produced this item.
-
#call_id ⇒ String
The unique ID of the local shell tool call generated by the model.
-
#id ⇒ String
The unique ID of the local shell call.
-
#status ⇒ OpenAI::Models::Beta::BetaResponseItem::LocalShellCall::status
The status of the local shell call.
-
#type ⇒ :local_shell_call
The type of the local shell call.
Attributes inherited from Internal::Type::BaseModel
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(command:, env:, timeout_ms: nil, user: nil, working_directory: nil, type: :exec) ⇒ LocalShellCall
constructor
A new instance of LocalShellCall.
- #to_hash ⇒ { id: String, action: OpenAI::Beta::BetaResponseItem::LocalShellCall::Action, call_id: String, status: OpenAI::Models::Beta::BetaResponseItem::LocalShellCall::status, ?type: :local_shell_call, ?agent: OpenAI::Beta::BetaResponseItem::LocalShellCall::Agent? }
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(command:, env:, timeout_ms: nil, user: nil, working_directory: nil, type: :exec) ⇒ LocalShellCall
Returns a new instance of LocalShellCall.
|
|
# File 'lib/openai/models/beta/beta_response_item.rb', line 1288
|
Instance Attribute Details
#action ⇒ OpenAI::Beta::BetaResponseItem::LocalShellCall::Action
Execute a shell command on the server.
1262 |
# File 'lib/openai/models/beta/beta_response_item.rb', line 1262 required :action, -> { OpenAI::Beta::BetaResponseItem::LocalShellCall::Action } |
#agent ⇒ OpenAI::Beta::BetaResponseItem::LocalShellCall::Agent?
The agent that produced this item.
1286 |
# File 'lib/openai/models/beta/beta_response_item.rb', line 1286 optional :agent, -> { OpenAI::Beta::BetaResponseItem::LocalShellCall::Agent }, nil?: true |
#call_id ⇒ String
The unique ID of the local shell tool call generated by the model.
1268 |
# File 'lib/openai/models/beta/beta_response_item.rb', line 1268 required :call_id, String |
#id ⇒ String
The unique ID of the local shell call.
1256 |
# File 'lib/openai/models/beta/beta_response_item.rb', line 1256 required :id, String |
#status ⇒ OpenAI::Models::Beta::BetaResponseItem::LocalShellCall::status
The status of the local shell call.
1274 |
# File 'lib/openai/models/beta/beta_response_item.rb', line 1274 required :status, enum: -> { OpenAI::Beta::BetaResponseItem::LocalShellCall::Status } |
#type ⇒ :local_shell_call
The type of the local shell call. Always local_shell_call.
1280 |
# File 'lib/openai/models/beta/beta_response_item.rb', line 1280 required :type, const: :local_shell_call |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/openai/models/beta/beta_response_item.rb', line 1379
|
Instance Method Details
#to_hash ⇒ { id: String, action: OpenAI::Beta::BetaResponseItem::LocalShellCall::Action, call_id: String, status: OpenAI::Models::Beta::BetaResponseItem::LocalShellCall::status, ?type: :local_shell_call, ?agent: OpenAI::Beta::BetaResponseItem::LocalShellCall::Agent? }
1196 1197 1198 1199 1200 1201 1202 1203 |
# File 'sig/openai/models/beta/beta_response_item.rbs', line 1196
def to_hash: -> {
id: String,
action: OpenAI::Beta::BetaResponseItem::LocalShellCall::Action,
call_id: String,
status: OpenAI::Models::Beta::BetaResponseItem::LocalShellCall::status,
?type: :local_shell_call,
?agent: OpenAI::Beta::BetaResponseItem::LocalShellCall::Agent?
}
|