Package com.google.genai.types
Class CountTokensConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.CountTokensConfig
Config for the count_tokens method.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for CountTokensConfig. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CountTokensConfig.Builder
builder()
Instantiates a builder for CountTokensConfig.static CountTokensConfig
Deserializes a JSON string to a CountTokensConfig object.abstract Optional<GenerationConfig>
Configuration that the model uses to generate the response.abstract Optional<HttpOptions>
Used to override HTTP request options.Instructions for the model to steer it toward better performance.abstract CountTokensConfig.Builder
Creates a builder with the same values as this instance.tools()
Code that enables the system to interact with external systems to perform an action outside of the knowledge and scope of the model.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
CountTokensConfig
public CountTokensConfig()
-
-
Method Details
-
httpOptions
Used to override HTTP request options. -
systemInstruction
Instructions for the model to steer it toward better performance. -
tools
Code that enables the system to interact with external systems to perform an action outside of the knowledge and scope of the model. -
generationConfig
Configuration that the model uses to generate the response. Not supported by the Gemini Developer API. -
builder
Instantiates a builder for CountTokensConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a CountTokensConfig object.
-