BedrockAnthropicUsage

data class BedrockAnthropicUsage(val inputTokens: Int, val outputTokens: Int)(source)

Represents the token usage data for a request or transaction in the BedrockAnthropic API.

This class is serialized using kotlinx.serialization and contains information about the number of tokens processed in both directions: input and output.

Constructors

Link copied to clipboard
constructor(inputTokens: Int, outputTokens: Int)

Properties

Link copied to clipboard
@SerialName(value = "input_tokens")
val inputTokens: Int

The number of tokens sent as input.

Link copied to clipboard
@SerialName(value = "output_tokens")
val outputTokens: Int

The number of tokens received as output.