AbstractProtectedconstructorInternalConstructs a new instance of the AIModel class.
This constructor should only be called from subclasses that provide a model API.
an AI instance.
The name of the model being used. It can be in one of the following formats:
my-model (short name, will resolve to publishers/google/models/my-model)models/my-model (will resolve to publishers/google/models/my-model)publishers/my-publisher/models/my-model (fully qualified model name)StaticnormalizeInternalNormalizes the given model name to a fully qualified model resource name.
The model name to normalize.
The fully qualified model resource name.
Base class for Firebase AI model APIs.
Instances of this class are associated with a specific Firebase AI Backend and provide methods for interacting with the configured generative model.