Class: OpenAI::Models::Beta::BetaResponseFunctionShellToolCall::Caller::Program

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

#initializeProgram

Returns a new instance of Program.

Parameters:

  • caller_id: (String)
  • type: (:program)


151
# File 'sig/openai/models/beta/beta_response_function_shell_tool_call.rbs', line 151

def initialize: (caller_id: String, ?type: :program) -> void

Instance Attribute Details

#caller_idString

The call ID of the program item that produced this tool call.

Parameters:

  • value (String)

Returns:

  • (String)


195
# File 'lib/openai/models/beta/beta_response_function_shell_tool_call.rb', line 195

required :caller_id, String

#typeSymbol, :program

Parameters:

  • value (:program)

Returns:

  • (Symbol, :program)


200
# File 'lib/openai/models/beta/beta_response_function_shell_tool_call.rb', line 200

required :type, const: :program

Instance Method Details

#to_hash{ caller_id: String, type: :program }

Returns:

  • ({ caller_id: String, type: :program })


153
# File 'sig/openai/models/beta/beta_response_function_shell_tool_call.rbs', line 153

def to_hash: -> { caller_id: String, type: :program }