GitHub

TokenUsage

API reference for TokenUsage.

Bedrock token counts: input, output, total and prompt cache reads and writes.

Attributes

AttributeTypeDescription
inputTokensint
outputTokensint
totalTokensint
cacheReadInputTokensNotRequired[int]
cacheWriteInputTokensNotRequired[int]