Class: Aws::BedrockAgentCore::Types::TokenUsage
- Inherits:
-
Struct
- Object
- Struct
- Aws::BedrockAgentCore::Types::TokenUsage
- Defined in:
- gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb
Overview
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.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#input_tokens ⇒ Integer
The number of tokens consumed for input processing during the evaluation.
-
#output_tokens ⇒ Integer
The number of tokens generated by the evaluator model in its response.
-
#total_tokens ⇒ Integer
The total number of tokens consumed during the evaluation, calculated as the sum of input and output tokens.
Instance Attribute Details
#input_tokens ⇒ Integer
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.
3336 3337 3338 3339 3340 3341 3342 |
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 3336 class TokenUsage < Struct.new( :input_tokens, :output_tokens, :total_tokens) SENSITIVE = [] include Aws::Structure end |
#output_tokens ⇒ Integer
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.
3336 3337 3338 3339 3340 3341 3342 |
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 3336 class TokenUsage < Struct.new( :input_tokens, :output_tokens, :total_tokens) SENSITIVE = [] include Aws::Structure end |
#total_tokens ⇒ Integer
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.
3336 3337 3338 3339 3340 3341 3342 |
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 3336 class TokenUsage < Struct.new( :input_tokens, :output_tokens, :total_tokens) SENSITIVE = [] include Aws::Structure end |