Uses of Class
com.google.genai.types.CountTokensConfig
Packages that use CountTokensConfig
-
Uses of CountTokensConfig in com.google.genai
Methods in com.google.genai with parameters of type CountTokensConfigModifier and TypeMethodDescriptionAsyncModels.countTokens
(String model, String text, CountTokensConfig config) Asynchronously counts tokens given a GenAI model and a text string.AsyncModels.countTokens
(String model, List<Content> contents, CountTokensConfig config) Asynchronously counts tokens given a GenAI model and a list of content.LocalTokenizer.countTokens
(Content content, CountTokensConfig config) Counts the number of tokens in a single content object.LocalTokenizer.countTokens
(String content, CountTokensConfig config) Counts the number of tokens in a text string.LocalTokenizer.countTokens
(List<Content> contents, CountTokensConfig config) Counts the number of tokens in a given text.Models.countTokens
(String model, String text, CountTokensConfig config) Counts tokens given a GenAI model and a text string.Models.countTokens
(String model, List<Content> contents, CountTokensConfig config) Counts tokens given a GenAI model and a list of content. -
Uses of CountTokensConfig in com.google.genai.types
Methods in com.google.genai.types that return CountTokensConfigModifier and TypeMethodDescriptionabstract CountTokensConfig
CountTokensConfig.Builder.build()
static CountTokensConfig
Deserializes a JSON string to a CountTokensConfig object.Methods in com.google.genai.types that return types with arguments of type CountTokensConfigModifier and TypeMethodDescriptionabstract Optional<CountTokensConfig>
CountTokensParameters.config()
Configuration for counting tokens.Methods in com.google.genai.types with parameters of type CountTokensConfigModifier and TypeMethodDescriptionabstract CountTokensParameters.Builder
CountTokensParameters.Builder.config
(CountTokensConfig config) Setter for config.