OpenAI::ChatCompletionNamedToolChoiceCustom
Inherits JSON::Serializable < Reference < Object
Specifies a tool the model should use. Use to force the model to call a specific custom tool.
Constructors
new(pull : JSON::PullParser)
Sourcenew(type_value : ChatCompletionNamedToolChoiceCustomType = ChatCompletionNamedToolChoiceCustomType::Custom, custom : ChatCompletionNamedToolChoiceCustomCustom = ChatCompletionNamedToolChoiceCustomCustom.new)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
custom
Sourcecustom=(custom : ChatCompletionNamedToolChoiceCustomCustom)
Sourcetype_value=(type_value : ChatCompletionNamedToolChoiceCustomType)
For custom tool calling, the type is always custom.