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
An optional field that describes why the generation of the response stopped.
Link copied to clipboard
An optional field representing usage statistics, such as input and output token counts.