OpenAI::AssistantsNamedToolChoice
Inherits JSON::Serializable < Reference < Object
Specifies a tool the model should use. Use to force the model to call a specific tool.
Constructors
new(pull : JSON::PullParser)
Sourcenew(type_value : AssistantsNamedToolChoiceType = AssistantsNamedToolChoiceType::Function, function : AssistantsNamedToolChoiceFunction | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
function
Sourcefunction=(function : AssistantsNamedToolChoiceFunction | Nil)
Sourcetype_value=(type_value : AssistantsNamedToolChoiceType)
The type of the tool. If type is function, the function name must be set