class

OpenAI::ChatCompletionTool

Inherits JSON::Serializable < Reference < Object

A function tool that can be used to generate a response.

Constructors

new(type_value : ChatCompletionToolType = ChatCompletionToolType::Function, function : FunctionObject = FunctionObject.new)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

function
Source
function=(function : FunctionObject)
Source
type_value

The type of the tool. Currently, only function is supported.

Source
type_value=(type_value : ChatCompletionToolType)

The type of the tool. Currently, only function is supported.

Source