class

OpenAI::ToolChoiceFunction

Inherits JSON::Serializable < Reference < Object

Use this option to force the model to call a specific function.

Constructors

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

Instance methods

name

The name of the function to call.

Source
name=(name : String)

The name of the function to call.

Source
type_value

For function calling, the type is always function.

Source
type_value=(type_value : ToolChoiceFunctionType)

For function calling, the type is always function.

Source