Interface TokenUsage.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TokenUsage.Builder,,TokenUsage> SdkBuilder<TokenUsage.Builder,,TokenUsage> SdkPojo
- Enclosing class:
TokenUsage
@Mutable
@NotThreadSafe
public static interface TokenUsage.Builder
extends SdkPojo, CopyableBuilder<TokenUsage.Builder,TokenUsage>
-
Method Summary
Modifier and TypeMethodDescriptioninputTokens(Integer inputTokens) The number of tokens consumed for input processing during the evaluation.outputTokens(Integer outputTokens) The number of tokens generated by the evaluator model in its response.totalTokens(Integer totalTokens) The total number of tokens consumed during the evaluation, calculated as the sum of input and output tokens.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
inputTokens
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.
- Parameters:
inputTokens- 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:
- Returns a reference to this object so that method calls can be chained together.
-
outputTokens
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.
- Parameters:
outputTokens- 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:
- Returns a reference to this object so that method calls can be chained together.
-
totalTokens
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.
- Parameters:
totalTokens- 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:
- Returns a reference to this object so that method calls can be chained together.
-