Package org.project.util
Class ClientApiKey
java.lang.Object
org.project.util.ClientApiKey
Singleton to create and provide a Gemini client using the API key from properties.
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.genai.ClientGet the Gemini client.static ClientApiKeyGet the singleton instance.
-
Method Details
-
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
-