View a markdown version of this page

HarnessTokenUsage - Amazon Bedrock AgentCore Data Plane
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

HarnessTokenUsage

Token usage counts for the invocation.

Contents

inputTokens

The number of input tokens consumed.

Type: Integer

Valid Range: Minimum value of 0.

Required: Yes

outputTokens

The number of output tokens generated.

Type: Integer

Valid Range: Minimum value of 0.

Required: Yes

totalTokens

The total number of tokens consumed.

Type: Integer

Valid Range: Minimum value of 0.

Required: Yes

cacheReadInputTokens

The number of input tokens read from cache.

Type: Integer

Valid Range: Minimum value of 0.

Required: No

cacheWriteInputTokens

The number of input tokens written to cache.

Type: Integer

Valid Range: Minimum value of 0.

Required: No

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: