class

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(type_value : AssistantsNamedToolChoiceType = AssistantsNamedToolChoiceType::Function, function : AssistantsNamedToolChoiceFunction | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

function
Source
function=(function : AssistantsNamedToolChoiceFunction | Nil)
Source
type_value

The type of the tool. If type is function, the function name must be set

Source
type_value=(type_value : AssistantsNamedToolChoiceType)

The type of the tool. If type is function, the function name must be set

Source