BedrockAnthropicResponse

data class BedrockAnthropicResponse(val id: String, val type: String, val role: String, val content: List<AnthropicResponseContent>, val model: String, val stopReason: String? = null, val usage: BedrockAnthropicUsage? = null)(source)

Represents a response from Anthropic's API as processed by Bedrock.

Constructors

Link copied to clipboard
constructor(id: String, type: String, role: String, content: List<AnthropicResponseContent>, model: String, stopReason: String? = null, usage: BedrockAnthropicUsage? = null)

Properties

Link copied to clipboard

A list of structured content objects associated with the response, such as text or tool use.

Link copied to clipboard
val id: String

The unique identifier of the response.

Link copied to clipboard

The name or identifier of the Anthropic model used to generate the response.

Link copied to clipboard

The role associated with the response, e.g., "assistant" or "user".

Link copied to clipboard
val stopReason: String? = null

An optional field that describes why the generation of the response stopped.

Link copied to clipboard

The type of the response.

Link copied to clipboard

An optional field representing usage statistics, such as input and output token counts.