Class: OpenAI::Models::Responses::ResponseFunctionShellToolCallOutput::Output::Outcome::Exit
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Responses::ResponseFunctionShellToolCallOutput::Output::Outcome::Exit
- Defined in:
- lib/openai/models/responses/response_function_shell_tool_call_output.rb,
sig/openai/models/responses/response_function_shell_tool_call_output.rbs
Instance Attribute Summary collapse
-
#exit_code ⇒ Integer
Exit code from the shell process.
-
#type ⇒ Symbol, :exit
The outcome type.
Instance Method Summary collapse
-
#initialize ⇒ Exit
constructor
A new instance of Exit.
- #to_hash ⇒ { exit_code: Integer, type: :exit }
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, 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 ⇒ Exit
Returns a new instance of Exit.
114 |
# File 'sig/openai/models/responses/response_function_shell_tool_call_output.rbs', line 114
def initialize: (exit_code: Integer, ?type: :exit) -> void
|
Instance Attribute Details
#exit_code ⇒ Integer
Exit code from the shell process.
159 |
# File 'lib/openai/models/responses/response_function_shell_tool_call_output.rb', line 159 required :exit_code, Integer |
#type ⇒ Symbol, :exit
The outcome type. Always exit.
165 |
# File 'lib/openai/models/responses/response_function_shell_tool_call_output.rb', line 165 required :type, const: :exit |
Instance Method Details
#to_hash ⇒ { exit_code: Integer, type: :exit }
116 |
# File 'sig/openai/models/responses/response_function_shell_tool_call_output.rbs', line 116
def to_hash: -> { exit_code: Integer, type: :exit }
|