ToolCallDelta

data class ToolCallDelta(val index: Int, val id: String? = null, val type: Tool.Type? = null, val function: FunctionCallDelta? = null)

Represents the "delta," or changes of a tool call. This is used by streams to stream 1 token at a time.

Constructors

Link copied to clipboard
constructor(index: Int, id: String? = null, type: Tool.Type? = null, function: FunctionCallDelta? = null)

Properties

Link copied to clipboard

The modifications to the function call.

Link copied to clipboard
val id: String? = null

The tool call id used in replies. Will always be null except for the first call.

Link copied to clipboard
val index: Int

The index of the tool call we are modifying.

Link copied to clipboard
val type: Tool.Type? = null

The type of tool call. Will always be null except for the first call.