Class ClientApiKey

java.lang.Object
org.project.util.ClientApiKey

public class ClientApiKey extends Object
Singleton to create and provide a Gemini client using the API key from properties.
  • Method Details

    • getInstance

      public static ClientApiKey getInstance()
      Get the singleton instance.
      Returns:
      ClientApiKey instance
    • getClient

      public com.google.genai.Client getClient()
      Get the Gemini client.
      Returns:
      Gemini client or null if failed