ToolCall

data class ToolCall(val id: String?, val name: String, val content: String) : 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)

Properties

Link copied to clipboard

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

Link copied to clipboard

Lazily parses the content of the tool call 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

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