class

OpenAI::ToolChoiceCustom

Inherits JSON::Serializable < Reference < Object

Use this option to force the model to call a specific custom tool.

Constructors

new(type_value : ToolChoiceCustomType = ToolChoiceCustomType::Custom, name : String = "")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

name

The name of the custom tool to call.

Source
name=(name : String)

The name of the custom tool to call.

Source
type_value

For custom tool calling, the type is always custom.

Source
type_value=(type_value : ToolChoiceCustomType)

For custom tool calling, the type is always custom.

Source