class

OpenAI::ChatCompletionMessageToolCall

Inherits JSON::Serializable < Reference < Object

A call to a function tool created by the model.

Constructors

new(id : String = "", type_value : ChatCompletionMessageToolCallType = ChatCompletionMessageToolCallType::Function, function : ChatCompletionMessageToolCallFunction = ChatCompletionMessageToolCallFunction.new)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

function

The function that the model called.

Source
function=(function : ChatCompletionMessageToolCallFunction)

The function that the model called.

Source
id

The ID of the tool call.

Source
id=(id : String)

The ID of the tool call.

Source
type_value

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

Source
type_value=(type_value : ChatCompletionMessageToolCallType)

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

Source