Class: OpenAI::Models::Responses::ResponseCreateParams::ToolChoice::SpecificProgrammaticToolCallingParam

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

#initializeSpecificProgrammaticToolCallingParam

Returns a new instance of SpecificProgrammaticToolCallingParam.

Parameters:

  • type: (:programmatic_tool_calling)


438
# File 'sig/openai/models/responses/response_create_params.rbs', line 438

def initialize: (?type: :programmatic_tool_calling) -> void

Instance Attribute Details

#typeSymbol, :programmatic_tool_calling

The tool to call. Always programmatic_tool_calling.

Parameters:

  • value (:programmatic_tool_calling)

Returns:

  • (Symbol, :programmatic_tool_calling)


786
# File 'lib/openai/models/responses/response_create_params.rb', line 786

required :type, const: :programmatic_tool_calling

Instance Method Details

#to_hash{ type: :programmatic_tool_calling }

Returns:

  • ({ type: :programmatic_tool_calling })


440
# File 'sig/openai/models/responses/response_create_params.rbs', line 440

def to_hash: -> { type: :programmatic_tool_calling }