Class: OpenAI::Models::Beta::BetaResponseFunctionShellToolCallOutput::Output::Outcome::Exit

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/beta_response_function_shell_tool_call_output.rb,
sig/openai/models/beta/beta_response_function_shell_tool_call_output.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#initializeExit

Returns a new instance of Exit.

Parameters:

  • exit_code: (Integer)
  • type: (:exit)


125
# File 'sig/openai/models/beta/beta_response_function_shell_tool_call_output.rbs', line 125

def initialize: (exit_code: Integer, ?type: :exit) -> void

Instance Attribute Details

#exit_codeInteger

Exit code from the shell process.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


167
# File 'lib/openai/models/beta/beta_response_function_shell_tool_call_output.rb', line 167

required :exit_code, Integer

#typeSymbol, :exit

The outcome type. Always exit.

Parameters:

  • value (:exit)

Returns:

  • (Symbol, :exit)


173
# File 'lib/openai/models/beta/beta_response_function_shell_tool_call_output.rb', line 173

required :type, const: :exit

Instance Method Details

#to_hash{ exit_code: Integer, type: :exit }

Returns:

  • ({ exit_code: Integer, type: :exit })


127
# File 'sig/openai/models/beta/beta_response_function_shell_tool_call_output.rbs', line 127

def to_hash: -> { exit_code: Integer, type: :exit }