Module: OpenAI::Models::Chat::ChatCompletionAllowedTools::Mode

Extended by:
Internal::Type::Enum
Defined in:
lib/openai/models/chat/chat_completion_allowed_tools.rb

Overview

Constrains the tools available to the model to a pre-defined set.

‘auto` allows the model to pick from among the allowed tools and generate a message.

‘required` requires the model to call one or more of the allowed tools.

See Also:

Constant Summary collapse

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, meta_info, new_coerce_state, type_info

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openai/models/chat/chat_completion_allowed_tools.rb', line 58