Class: OpenAI::Models::Responses::ResponseFunctionShellCallOutputContent::Outcome::Exit

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/responses/response_function_shell_call_output_content.rb,
sig/openai/models/responses/response_function_shell_call_output_content.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

#initialize(exit_code:, type: :exit) ⇒ Exit

Indicates that the shell commands finished and returned an exit code.

Parameters:

  • exit_code (Integer)

    The exit code returned by the shell process.

  • type (Symbol, :exit) (defaults to: :exit)

    The outcome type. Always exit.

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


# File 'lib/openai/models/responses/response_function_shell_call_output_content.rb', line 74

Instance Attribute Details

#exit_codeInteger

The exit code returned by the shell process.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


66
# File 'lib/openai/models/responses/response_function_shell_call_output_content.rb', line 66

required :exit_code, Integer

#typeSymbol, :exit

The outcome type. Always exit.

Parameters:

  • value (:exit)

Returns:

  • (Symbol, :exit)


72
# File 'lib/openai/models/responses/response_function_shell_call_output_content.rb', line 72

required :type, const: :exit

Instance Method Details

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

Returns:

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


56
# File 'sig/openai/models/responses/response_function_shell_call_output_content.rbs', line 56

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