ToolCallDelta

data class ToolCallDelta(val id: String?, val name: String?, val content: String?, val index: Int? = null) : StreamFrame.DeltaFrame, StreamFrame(source)

Represents a frame of a streaming response from a LLM that contains a tool call.

Constructors

Link copied to clipboard
constructor(id: String?, name: String?, content: String?, index: Int? = null)

Properties

Link copied to clipboard

The content/arguments of the tool call. Can be null for partial frames.

Link copied to clipboard
val id: String?

The ID of the tool call. Can be null for partial frames.

Link copied to clipboard
open override val index: Int?
Link copied to clipboard
val name: String?

The name of the tool being called. Can be null for partial frames.