Class: Aws::BedrockAgentCore::Types::TokenUsage

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#input_tokensInteger

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.

Returns:

  • (Integer)


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_tokensInteger

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.

Returns:

  • (Integer)


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_tokensInteger

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.

Returns:

  • (Integer)


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