Uses of Class
com.google.genai.types.ComputeTokensConfig
Packages that use ComputeTokensConfig
-
Uses of ComputeTokensConfig in com.google.genai
Methods in com.google.genai with parameters of type ComputeTokensConfigModifier and TypeMethodDescriptionAsyncModels.computeTokens(String model, String text, ComputeTokensConfig config) Asynchronously computes tokens given a GenAI model and a text string.AsyncModels.computeTokens(String model, List<Content> contents, ComputeTokensConfig config) Asynchronously computes tokens given a GenAI model and a list of content.Models.computeTokens(String model, String text, ComputeTokensConfig config) Computes tokens given a GenAI model and a text string.Models.computeTokens(String model, List<Content> contents, ComputeTokensConfig config) Computes tokens given a GenAI model and a list of content. -
Uses of ComputeTokensConfig in com.google.genai.types
Methods in com.google.genai.types that return ComputeTokensConfigModifier and TypeMethodDescriptionabstract ComputeTokensConfigComputeTokensConfig.Builder.build()static ComputeTokensConfigDeserializes a JSON string to a ComputeTokensConfig object.Methods in com.google.genai.types that return types with arguments of type ComputeTokensConfigModifier and TypeMethodDescriptionabstract Optional<ComputeTokensConfig>ComputeTokensParameters.config()Optional parameters for the request.Methods in com.google.genai.types with parameters of type ComputeTokensConfigModifier and TypeMethodDescriptionabstract ComputeTokensParameters.BuilderComputeTokensParameters.Builder.config(ComputeTokensConfig config) Setter for config.