Module: OpenAI::Models::Responses::ToolChoiceOptions

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

Overview

Controls which (if any) tool is called by the model.

‘none` means the model will not call any tool and instead generates a message.

‘auto` means the model can pick between generating a message or calling one or more tools.

‘required` means the model must call one or more tools.

Constant Summary collapse

NONE =
:none
AUTO =
:auto
REQUIRED =
:required

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_options.rb', line 21