ToolCallDelta

@Serializable
class ToolCallDelta(val index: Int, val id: String? = null, val type: ToolCallType? = null, val function: FunctionDelta? = null)

An incremental tool call update sent in a streaming chat completion response.

Deltas for the same tool call share the same index. The first chunk for a given tool call typically carries id, type and FunctionDelta.name; subsequent chunks append fragments of FunctionDelta.arguments in arrival order.

Constructors

Link copied to clipboard
constructor(index: Int, id: String? = null, type: ToolCallType? = null, function: FunctionDelta? = null)

Properties

Link copied to clipboard

Partial function call information for this step.

Link copied to clipboard
val id: String?

The ID of the tool call. Typically present only on the first chunk for this index.

Link copied to clipboard
val index: Int

The position of the tool call in the full tool call list; used to group deltas that belong to the same call.

Link copied to clipboard

The type of the tool. Typically present only on the first chunk for this index.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String