Class: OpenAI::Models::Beta::BetaResponseInputItem::ShellCall::Action
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::BetaResponseInputItem::ShellCall::Action
- Defined in:
- lib/openai/models/beta/beta_response_input_item.rb,
sig/openai/models/beta/beta_response_input_item.rbs
Overview
Instance Attribute Summary collapse
-
#commands ⇒ ::Array[String]
Ordered shell commands for the execution environment to run.
-
#max_output_length ⇒ Integer?
Maximum number of UTF-8 characters to capture from combined stdout and stderr output.
-
#timeout_ms ⇒ Integer?
Maximum wall-clock time in milliseconds to allow the shell commands to run.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize ⇒ Action
constructor
A new instance of Action.
- #to_hash ⇒ { commands: ::Array[String], ?max_output_length: Integer?, ?timeout_ms: Integer? }
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 ⇒ Action
Returns a new instance of Action.
1804 1805 1806 1807 1808 |
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 1804
def initialize: (
commands: ::Array[String],
?max_output_length: Integer?,
?timeout_ms: Integer?
) -> void
|
Instance Attribute Details
#commands ⇒ ::Array[String]
Ordered shell commands for the execution environment to run.
2005 |
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 2005 required :commands, OpenAI::Internal::Type::ArrayOf[String] |
#max_output_length ⇒ Integer?
Maximum number of UTF-8 characters to capture from combined stdout and stderr output.
2012 |
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 2012 optional :max_output_length, Integer, nil?: true |
#timeout_ms ⇒ Integer?
Maximum wall-clock time in milliseconds to allow the shell commands to run.
2018 |
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 2018 optional :timeout_ms, Integer, nil?: true |
Instance Method Details
#to_hash ⇒ { commands: ::Array[String], ?max_output_length: Integer?, ?timeout_ms: Integer? }
1810 1811 1812 1813 1814 |
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 1810
def to_hash: -> {
commands: ::Array[String],
?max_output_length: Integer?,
?timeout_ms: Integer?
}
|