Module: OpenAI::Models::Chat::ChatCompletionToolChoiceOption

Extended by:
Internal::Type::Union
Defined in:
lib/openai/models/chat/chat_completion_tool_choice_option.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. Specifying a particular tool via `“function”, “function”: {“name”: “my_function”}` forces the model to call that tool.

‘none` is the default when no tools are present. `auto` is the default if tools are present.

Defined Under Namespace

Modules: Auto

Method Summary

Methods included from Internal::Type::Union

==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants

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