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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CountTokensResponse.BuilderinputTokens(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, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
inputTokens
CountTokensResponse.Builder inputTokens(Integer 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.
-
-