ToolCallChunk

@Serializable
data class ToolCallChunk(val index: Int, val type: String? = null, val id: ToolId? = null, val function: FunctionCall? = null)

Details of the tool call chunk.

Constructors

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

Properties

Link copied to clipboard
@SerialName(value = "function")
val function: FunctionCall? = null

The function that the model called.

Link copied to clipboard
@SerialName(value = "id")
val id: ToolId? = null

The ID of the tool call.

Link copied to clipboard
@SerialName(value = "index")
val index: Int

Tool call index. Required in the case of chat stream variant

Link copied to clipboard
@SerialName(value = "type")
val type: String? = null

The type of the tool call.