class

OpenAI::ChatCompletionMessageCustomToolCall

Inherits JSON::Serializable < Reference < Object

A call to a custom tool created by the model.

Constructors

new(id : String = "", type_value : ChatCompletionMessageCustomToolCallType = ChatCompletionMessageCustomToolCallType::Custom, custom : ChatCompletionMessageCustomToolCallCustom = ChatCompletionMessageCustomToolCallCustom.new)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

custom

The custom tool that the model called.

Source
custom=(custom : ChatCompletionMessageCustomToolCallCustom)

The custom tool 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. Always custom.

Source
type_value=(type_value : ChatCompletionMessageCustomToolCallType)

The type of the tool. Always custom.

Source