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_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.

Returns:

  • (Integer)


10795
10796
10797
10798
10799
10800
10801
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 10795

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.

Returns:

  • (Integer)


10795
10796
10797
10798
10799
10800
10801
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 10795

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.

Returns:

  • (Integer)


10795
10796
10797
10798
10799
10800
10801
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 10795

class TokenUsage < Struct.new(
  :input_tokens,
  :output_tokens,
  :total_tokens)
  SENSITIVE = []
  include Aws::Structure
end