AnthropicStreamResponse

data class AnthropicStreamResponse(val type: String, val delta: AnthropicStreamDelta? = null, val message: AnthropicResponse? = null)(source)

Represents a response from the Anthropic stream API.

This data class encapsulates the structure of a streamed response, including its type, any delta updates to the content, and the complete message data when applicable.

Constructors

Link copied to clipboard
constructor(type: String, delta: AnthropicStreamDelta? = null, message: AnthropicResponse? = null)

Properties

Link copied to clipboard

An optional incremental update to the message content, represented as AnthropicStreamDelta.

Link copied to clipboard

An optional complete response message, represented as AnthropicResponse.

Link copied to clipboard

The type of the response.