class

OpenAI::ChatCompletionMessageToolCallChunk

Inherits JSON::Serializable < Reference < Object

Constructors

new(index : Int64 = 0, id : String | Nil = nil, type_value : ChatCompletionMessageToolCallChunkType | Nil = nil, function : ChatCompletionMessageToolCallChunkFunction | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

function
Source
function=(function : ChatCompletionMessageToolCallChunkFunction | Nil)
Source
id

The ID of the tool call.

Source
id=(id : String | Nil)

The ID of the tool call.

Source
index
Source
index=(index : Int64)
Source
type_value

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

Source
type_value=(type_value : ChatCompletionMessageToolCallChunkType | Nil)

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

Source