Interface CountTokensResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BedrockRuntimeResponse.Builder,Buildable,CopyableBuilder<CountTokensResponse.Builder,,CountTokensResponse> SdkBuilder<CountTokensResponse.Builder,,CountTokensResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CountTokensResponse
@Mutable
@NotThreadSafe
public static interface CountTokensResponse.Builder
extends BedrockRuntimeResponse.Builder, SdkPojo, CopyableBuilder<CountTokensResponse.Builder,CountTokensResponse>
-
Method Summary
Modifier and TypeMethodDescriptioninputTokens(Integer inputTokens) The number of tokens in the provided input according to the specified model's tokenization rules.Methods inherited from interface software.amazon.awssdk.services.bedrockruntime.model.BedrockRuntimeResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
inputTokens
The number of tokens in the provided input according to the specified model's tokenization rules. This count represents the number of input tokens that would be processed if the same input were sent to the model in an inference request. Use this value to estimate costs and ensure your inputs stay within model token limits.
- Parameters:
inputTokens- The number of tokens in the provided input according to the specified model's tokenization rules. This count represents the number of input tokens that would be processed if the same input were sent to the model in an inference request. Use this value to estimate costs and ensure your inputs stay within model token limits.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-