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.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 CountTokensConfigCountTokensConfig.Builder.build()static CountTokensConfigDeserializes 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.BuilderCountTokensParameters.Builder.config(CountTokensConfig config) Setter for config.