ToolCallComplete

data class ToolCallComplete(val id: String?, val name: String, val content: String, val index: Int? = null) : StreamFrame.CompleteFrame, 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 complete content/arguments of the tool call..

Link copied to clipboard

Lazily parses the content of the tool call as a JSON object. Can throw an exception when parsing fails.

Link copied to clipboard

Lazily parses and caches the result of parsing content as a JSON object.

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

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