Client
constructor(apiKey: String? = null, project: String? = null, location: String? = null, credentials: GoogleCredentials? = null, enterprise: Boolean? = null, httpOptions: HttpOptions? = null)
Constructs a Client instance for either Gemini API or Gemini Enterprise Agent Platform API.
Parameters
api Key
The API key to use. For Gemini API or Gemini Enterprise Agent Platform API.
project
The Google Cloud project ID. For Gemini Enterprise Agent Platform API only.
location
The Google Cloud location. For Gemini Enterprise Agent Platform API only.
credentials
The Google credentials to use. For Gemini Enterprise Agent Platform API only.
enterprise
Explicitly set whether to use Gemini Enterprise Agent Platform API. Default to false or from environment variable GOOGLE_GENAI_USE_ENTERPRISE.
http Options
Custom HTTP options for the client.