Uses of Class
com.google.genai.types.CountTokensResponse
Packages that use CountTokensResponse
-
Uses of CountTokensResponse in com.google.genai
Methods in com.google.genai that return CountTokensResponseModifier and TypeMethodDescriptionModels.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.Methods in com.google.genai that return types with arguments of type CountTokensResponseModifier 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. -
Uses of CountTokensResponse in com.google.genai.types
Methods in com.google.genai.types that return CountTokensResponseModifier and TypeMethodDescriptionabstract CountTokensResponseCountTokensResponse.Builder.build()static CountTokensResponseDeserializes a JSON string to a CountTokensResponse object.