Module: OpenAI::Models::Responses::ToolChoiceTypes::Type

Extended by:
Internal::Type::Enum
Defined in:
lib/openai/models/responses/tool_choice_types.rb

Overview

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`

See Also:

Constant Summary collapse

FILE_SEARCH =
:file_search
WEB_SEARCH_PREVIEW =
:web_search_preview
COMPUTER_USE_PREVIEW =
:computer_use_preview
WEB_SEARCH_PREVIEW_2025_03_11 =
:web_search_preview_2025_03_11
IMAGE_GENERATION =
:image_generation
CODE_INTERPRETER =
:code_interpreter
MCP =
:mcp

Class Method Summary collapse

Methods included from Internal::Type::Enum

==, ===, coerce, dump, hash, inspect, to_sorbet_type, values

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, type_info

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


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