LlamaCompletionChunkToolCall class

Represents a tool call within a completion chunk. Aligns with OpenAI's ToolCall in streaming chunks.

Constructors

LlamaCompletionChunkToolCall({required int index, String? id, String? type, LlamaCompletionChunkFunction? function})
Creates a new LlamaCompletionChunkToolCall.
LlamaCompletionChunkToolCall.fromJson(Map<String, dynamic> json)
Creates a LlamaCompletionChunkToolCall from a JSON map.
factory

Properties

function LlamaCompletionChunkFunction?
The arguments delta. This is a JSON fragment that should be accumulated.
final
hashCode int
The hash code for this object.
no setterinherited
id String?
The ID of the tool call. Only present in the first chunk for this tool call.
final
index int
The index of the tool call in the list of tool calls.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String?
The type of the tool call. Usually "function".
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this object to a JSON map.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited