class

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(type_value : ChatCompletionNamedToolChoiceType = ChatCompletionNamedToolChoiceType::Function, function : ChatCompletionNamedToolChoiceFunction = ChatCompletionNamedToolChoiceFunction.new)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

function
Source
function=(function : ChatCompletionNamedToolChoiceFunction)
Source
type_value

For function calling, the type is always function.

Source
type_value=(type_value : ChatCompletionNamedToolChoiceType)

For function calling, the type is always function.

Source