Uses of Class
com.google.genai.types.CountTokensResult
Packages that use CountTokensResult
-
Uses of CountTokensResult in com.google.genai
Methods in com.google.genai that return CountTokensResultModifier and TypeMethodDescriptionLocalTokenizer.countTokens
(Content content) Counts the number of tokens in a single content object using default configuration.LocalTokenizer.countTokens
(Content content, CountTokensConfig config) Counts the number of tokens in a single content object.LocalTokenizer.countTokens
(String content) Counts the number of tokens in a text string using default configuration.LocalTokenizer.countTokens
(String content, CountTokensConfig config) Counts the number of tokens in a text string.LocalTokenizer.countTokens
(List<Content> contents) Counts the number of tokens in a list of content objects using default configuration.LocalTokenizer.countTokens
(List<Content> contents, CountTokensConfig config) Counts the number of tokens in a given text. -
Uses of CountTokensResult in com.google.genai.types
Methods in com.google.genai.types that return CountTokensResultModifier and TypeMethodDescriptionabstract CountTokensResult
CountTokensResult.Builder.build()
static CountTokensResult
Deserializes a JSON string to a CountTokensResult object.