FirebaseAILogic Framework Reference

Backend

public struct Backend

Represents available backend APIs for the Firebase AI SDK.

  • Initializes a Backend configured for the Agent Platform Gemini API.

    Note

    The Agent Platform Gemini API was formerly known as Vertex AI.

    Declaration

    Swift

    public static func agentPlatform(location: String = "global") -> Backend

    Parameters

    location

    The region identifier, defaulting to global; see available locations for a list of supported locations.

  • Initializes a Backend configured for the Gemini Developer API.

    Declaration

    Swift

    public static func googleAI() -> Backend