Class: Aws::BedrockRuntime::Types::TokenUsage
- Inherits:
-
Struct
- Object
- Struct
- Aws::BedrockRuntime::Types::TokenUsage
- Defined in:
- gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb
Overview
The tokens used in a message API inference call.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#input_tokens ⇒ Integer
The number of tokens sent in the request to the model.
-
#output_tokens ⇒ Integer
The number of tokens that the model generated for the request.
-
#total_tokens ⇒ Integer
The total of input tokens and tokens generated by the model.
Instance Attribute Details
#input_tokens ⇒ Integer
The number of tokens sent in the request to the model.
2063 2064 2065 2066 2067 2068 2069 |
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 2063 class TokenUsage < Struct.new( :input_tokens, :output_tokens, :total_tokens) SENSITIVE = [] include Aws::Structure end |
#output_tokens ⇒ Integer
The number of tokens that the model generated for the request.
2063 2064 2065 2066 2067 2068 2069 |
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 2063 class TokenUsage < Struct.new( :input_tokens, :output_tokens, :total_tokens) SENSITIVE = [] include Aws::Structure end |
#total_tokens ⇒ Integer
The total of input tokens and tokens generated by the model.
2063 2064 2065 2066 2067 2068 2069 |
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 2063 class TokenUsage < Struct.new( :input_tokens, :output_tokens, :total_tokens) SENSITIVE = [] include Aws::Structure end |