FirebaseVertexAI Framework Reference

Classes

The following classes are available globally.

  • An object that represents a back-and-forth chat with a model, capturing the history and saving the context in memory between each message sent.

    Declaration

    Swift

    @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
    public final class Chat : Sendable
  • A type that represents a remote multimodal model (like Gemini), with the ability to generate content based on various input types.

    Declaration

    Swift

    @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
    public final class GenerativeModel : Sendable
  • Represents a remote Imagen model with the ability to generate images using text prompts.

    See the generate images documentation for more details about the image generation capabilities offered by the Imagen model in the Vertex AI in Firebase SDK.

    Warning

    For Vertex AI in Firebase, image generation using Imagen 3 models is in Public Preview, which means that the feature is not subject to any SLA or deprecation policy and could change in backwards-incompatible ways.

    Declaration

    Swift

    @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
    public final class ImagenModel
  • A Schema object allows the definition of input and output data types.

    These types can be objects, but also primitives and arrays. Represents a select subset of an OpenAPI 3.0 schema object.

    Declaration

    Swift

    @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
    public final class Schema : Sendable
    extension Schema: Encodable
  • The Vertex AI for Firebase SDK provides access to Gemini models directly from your app.

    Declaration

    Swift

    @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
    public class VertexAI