

# TokenUsage
<a name="API_TokenUsage"></a>

 The token consumption statistics for language model operations during evaluation. Provides detailed breakdown of input, output, and total tokens used for cost tracking and performance monitoring. 

## Contents
<a name="API_TokenUsage_Contents"></a>

 ** inputTokens **   <a name="BedrockAgentCore-Type-TokenUsage-inputTokens"></a>
 The number of tokens consumed for input processing during the evaluation. Includes tokens from the evaluation prompt, agent traces, and any additional context provided to the evaluator model.   
Type: Integer  
Required: No

 ** outputTokens **   <a name="BedrockAgentCore-Type-TokenUsage-outputTokens"></a>
 The number of tokens generated by the evaluator model in its response. Includes tokens for the score, explanation, and any additional output produced during the evaluation process.   
Type: Integer  
Required: No

 ** totalTokens **   <a name="BedrockAgentCore-Type-TokenUsage-totalTokens"></a>
 The total number of tokens consumed during the evaluation, calculated as the sum of input and output tokens. Used for cost calculation and rate limiting within the service limits.   
Type: Integer  
Required: No

## See Also
<a name="API_TokenUsage_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/bedrock-agentcore-2024-02-28/TokenUsage) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/bedrock-agentcore-2024-02-28/TokenUsage) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/bedrock-agentcore-2024-02-28/TokenUsage) 