FirebaseAI class

The entrypoint for generative models.

Inheritance
  • Object
  • PlatformInterface
  • FirebasePluginPlatform
  • FirebaseAI

Properties

app ↔ FirebaseApp
The FirebaseApp for this current FirebaseAI instance.
getter/setter pair
appCheck ↔ FirebaseAppCheck?
The optional FirebaseAppCheck for this current FirebaseAI instance. https://firebase.google.com/docs/app-check
getter/setter pair
auth ↔ FirebaseAuth?
The optional FirebaseAuth for this current FirebaseAI instance.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
location String
The service location for this FirebaseAI instance.
getter/setter pair
pluginConstants Map
Returns any plugin constants this plugin app instance has initialized.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generativeModel({required String model, List<SafetySetting>? safetySettings, GenerationConfig? generationConfig, List<Tool>? tools, ToolConfig? toolConfig, Content? systemInstruction}) GenerativeModel
Create a GenerativeModel backed by the generative model named model.
imagenModel({required String model, ImagenGenerationConfig? generationConfig, ImagenSafetySettings? safetySettings}) ImagenModel
Create a ImagenModel.
liveGenerativeModel({required String model, LiveGenerationConfig? liveGenerationConfig, List<Tool>? tools, Content? systemInstruction}) LiveGenerativeModel
Create a LiveGenerativeModel for real-time interaction.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

googleAI({FirebaseApp? app, FirebaseAppCheck? appCheck, FirebaseAuth? auth}) FirebaseAI
Returns an instance using a specified FirebaseApp.
vertexAI({FirebaseApp? app, FirebaseAppCheck? appCheck, FirebaseAuth? auth, String? location}) FirebaseAI
Returns an instance using a specified FirebaseApp.