class

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(type_value : ChatCompletionNamedToolChoiceCustomType = ChatCompletionNamedToolChoiceCustomType::Custom, custom : ChatCompletionNamedToolChoiceCustomCustom = ChatCompletionNamedToolChoiceCustomCustom.new)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

custom
Source
custom=(custom : ChatCompletionNamedToolChoiceCustomCustom)
Source
type_value

For custom tool calling, the type is always custom.

Source
type_value=(type_value : ChatCompletionNamedToolChoiceCustomType)

For custom tool calling, the type is always custom.

Source