Options for initializing the AI service using getAI(). This allows specifying which backend to use (Gemini Developer API or Agent Platform Gemini API) and configuring its specific options (like location for Agent Platform).
Signature:
export interface AIOptions
Properties
| Property | Type | Description |
|---|---|---|
| backend | Backend | The backend configuration to use for the AI service instance. Defaults to the Gemini Developer API backend (GoogleAIBackend). |
| useLimitedUseAppCheckTokens | boolean | Whether to use App Check limited use tokens. Defaults to false. |
AIOptions.backend
The backend configuration to use for the AI service instance. Defaults to the Gemini Developer API backend (GoogleAIBackend).
Signature:
backend?: Backend;
AIOptions.useLimitedUseAppCheckTokens
Whether to use App Check limited use tokens. Defaults to false.
Signature:
useLimitedUseAppCheckTokens?: boolean;