AnthropicStreamDelta

data class AnthropicStreamDelta(val type: String? = null, val text: String? = null, val partialJson: String? = null, val stopReason: 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? = null, text: String? = null, partialJson: String? = null, stopReason: String? = null, toolUse: AnthropicResponseContent.ToolUse? = null)

Properties

Link copied to clipboard
val partialJson: String? = null

Optional partial JSON content for tool use streaming.

Link copied to clipboard
val stopReason: String? = null

Optional reason why the generation process was stopped, if applicable.

Link copied to clipboard
val text: String? = null

Optional text content associated with the delta update.

Link copied to clipboard

Optional tool usage data associated with the delta update (deprecated).

Link copied to clipboard
val type: String? = null

The type of the update provided by Anthropic.