Class CountTokensConfig

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public abstract class CountTokensConfig.Builder

      Builder for CountTokensConfig.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Optional<HttpOptions> httpOptions() Used to override HTTP request options.
      abstract Optional<Content> systemInstruction() Instructions for the model to steer it toward better performance.
      abstract Optional<List<Tool>> tools() Code that enables the system to interact with external systems to perform an action outside of the knowledge and scope of the model.
      abstract Optional<GenerationConfig> generationConfig() Configuration that the model uses to generate the response.
      static CountTokensConfig.Builder builder() Instantiates a builder for CountTokensConfig.
      abstract CountTokensConfig.Builder toBuilder() Creates a builder with the same values as this instance.
      static CountTokensConfig fromJson(String jsonString) Deserializes a JSON string to a CountTokensConfig object.
      • Methods inherited from class com.google.genai.JsonSerializable

        fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait