Class: OpenAI::Models::Responses::ToolChoiceTypes

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/responses/tool_choice_types.rb

Defined Under Namespace

Modules: Type

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, 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(type: ) ⇒ Object

Some parameter documentations has been truncated, see OpenAI::Models::Responses::ToolChoiceTypes for more details.

Indicates that the model should use a built-in tool to generate a response. [Learn more about built-in tools](platform.openai.com/docs/guides/tools).

Parameters:



# File 'lib/openai/models/responses/tool_choice_types.rb', line 23

Instance Attribute Details

#typeSymbol, OpenAI::Models::Responses::ToolChoiceTypes::Type

The type of hosted tool the model should to use. Learn more about [built-in tools](platform.openai.com/docs/guides/tools).

Allowed values are:

  • ‘file_search`

  • ‘web_search_preview`

  • ‘computer_use_preview`

  • ‘code_interpreter`

  • ‘mcp`

  • ‘image_generation`



21
# File 'lib/openai/models/responses/tool_choice_types.rb', line 21

required :type, enum: -> { OpenAI::Responses::ToolChoiceTypes::Type }