Class: Aws::BedrockRuntime::Types::TokenUsage

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-bedrockruntime/types.rb

Overview

The tokens used in a message API inference call.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#input_tokensInteger

The number of tokens sent in the request to the model.

Returns:

  • (Integer)


2655
2656
2657
2658
2659
2660
2661
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 2655

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

#output_tokensInteger

The number of tokens that the model generated for the request.

Returns:

  • (Integer)


2655
2656
2657
2658
2659
2660
2661
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 2655

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

#total_tokensInteger

The total of input tokens and tokens generated by the model.

Returns:

  • (Integer)


2655
2656
2657
2658
2659
2660
2661
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 2655

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