OpenAI::ChatCompletionNamedToolChoice
Inherits JSON::Serializable < Reference < Object
Specifies a tool the model should use. Use to force the model to call a specific function.
Constructors
new(pull : JSON::PullParser)
Sourcenew(type_value : ChatCompletionNamedToolChoiceType = ChatCompletionNamedToolChoiceType::Function, function : ChatCompletionNamedToolChoiceFunction = ChatCompletionNamedToolChoiceFunction.new)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
function
Sourcefunction=(function : ChatCompletionNamedToolChoiceFunction)
Sourcetype_value=(type_value : ChatCompletionNamedToolChoiceType)
For function calling, the type is always function.