Class: OpenAI::Models::Beta::BetaResponseCustomToolCallOutput::Caller::Program

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

#initializeProgram

Returns a new instance of Program.

Parameters:

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


106
# File 'sig/openai/models/beta/beta_response_custom_tool_call_output.rbs', line 106

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)


149
# File 'lib/openai/models/beta/beta_response_custom_tool_call_output.rb', line 149

required :caller_id, String

#typeSymbol, :program

The caller type. Always program.

Parameters:

  • value (:program)

Returns:

  • (Symbol, :program)


155
# File 'lib/openai/models/beta/beta_response_custom_tool_call_output.rb', line 155

required :type, const: :program

Instance Method Details

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

Returns:

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


108
# File 'sig/openai/models/beta/beta_response_custom_tool_call_output.rbs', line 108

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