AI interface

An instance of the Firebase AI SDK.

Do not create this instance directly. Instead, use getAI().

Signature:

export interface AI 

Properties

Property Type Description
app FirebaseApp The FirebaseApp this AI instance is associated with.
backend Backend A Backend instance that specifies the configuration for the target backend, either the Gemini Developer API (using GoogleAIBackend) or the Vertex AI Gemini API (using VertexAIBackend).
location string

AI.app

The FirebaseApp this AI instance is associated with.

Signature:

app: FirebaseApp;

AI.backend

A Backend instance that specifies the configuration for the target backend, either the Gemini Developer API (using GoogleAIBackend) or the Vertex AI Gemini API (using VertexAIBackend).

Signature:

backend: Backend;

AI.location

use AI.backend.location instead.

The location configured for this AI service instance, relevant for Vertex AI backends.

Signature:

location: string;