AnthropicStreamDelta

data class AnthropicStreamDelta(val type: String, val text: String? = null, val toolUse: AnthropicResponseContent.ToolUse? = null)(source)

Represents a delta update from the Anthropic stream response.

This class encapsulates information regarding the type of update, optional textual content, and optional tool usage data.

Constructors

Link copied to clipboard
constructor(type: String, text: String? = null, toolUse: AnthropicResponseContent.ToolUse? = null)

Properties

Link copied to clipboard
val text: String? = null

Optional text content associated with the delta update.

Link copied to clipboard

Optional data about tool usage associated with the delta update, if applicable.

Link copied to clipboard

The type of the update provided by Anthropic.