Class: OpenAI::Models::Responses::ResponseOutputItem::LocalShellCall::Action
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Responses::ResponseOutputItem::LocalShellCall::Action
- Defined in:
- lib/openai/models/responses/response_output_item.rb,
sig/openai/models/responses/response_output_item.rbs
Overview
Instance Attribute Summary collapse
-
#command ⇒ ::Array[String]
The command to run.
-
#env ⇒ ::Hash[Symbol, String]
Environment variables to set for the command.
-
#timeout_ms ⇒ Integer?
Optional timeout in milliseconds for the command.
-
#type ⇒ :exec
The type of the local shell action.
-
#user ⇒ String?
Optional user to run the command as.
-
#working_directory ⇒ String?
Optional working directory to run the command in.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
- #initialize ⇒ Object constructor
- #to_hash ⇒ {
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_with_error, dump, #dump, #inspect, inspect, meta_info, new_coerce_state, 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 ⇒ Object
483 |
# File 'sig/openai/models/responses/response_output_item.rbs', line 483
def initialize: (
|
Instance Attribute Details
#command ⇒ ::Array[String]
The command to run.
550 |
# File 'lib/openai/models/responses/response_output_item.rb', line 550 required :command, OpenAI::Internal::Type::ArrayOf[String] |
#env ⇒ ::Hash[Symbol, String]
Environment variables to set for the command.
556 |
# File 'lib/openai/models/responses/response_output_item.rb', line 556 required :env, OpenAI::Internal::Type::HashOf[String] |
#timeout_ms ⇒ Integer?
Optional timeout in milliseconds for the command.
568 |
# File 'lib/openai/models/responses/response_output_item.rb', line 568 optional :timeout_ms, Integer, nil?: true |
#type ⇒ :exec
The type of the local shell action. Always exec.
562 |
# File 'lib/openai/models/responses/response_output_item.rb', line 562 required :type, const: :exec |
#user ⇒ String?
Optional user to run the command as.
574 |
# File 'lib/openai/models/responses/response_output_item.rb', line 574 optional :user, String, nil?: true |
#working_directory ⇒ String?
Optional working directory to run the command in.
580 |
# File 'lib/openai/models/responses/response_output_item.rb', line 580 optional :working_directory, String, nil?: true |
Instance Method Details
#to_hash ⇒ {
492 |
# File 'sig/openai/models/responses/response_output_item.rbs', line 492
def to_hash: -> {
|