| Package | Description |
|---|---|
| com.amazonaws.services.bedrockruntime.model |
| Modifier and Type | Method and Description |
|---|---|
TokenUsage |
TokenUsage.clone() |
TokenUsage |
ConverseResult.getUsage()
The total number of tokens used in the call to
Converse. |
TokenUsage |
TokenUsage.withInputTokens(Integer inputTokens)
The number of tokens sent in the request to the model.
|
TokenUsage |
TokenUsage.withOutputTokens(Integer outputTokens)
The number of tokens that the model generated for the request.
|
TokenUsage |
TokenUsage.withTotalTokens(Integer totalTokens)
The total of input tokens and tokens generated by the model.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ConverseResult.setUsage(TokenUsage usage)
The total number of tokens used in the call to
Converse. |
ConverseResult |
ConverseResult.withUsage(TokenUsage usage)
The total number of tokens used in the call to
Converse. |
Copyright © 2024. All rights reserved.