Backend
public struct BackendRepresents available backend APIs for the Firebase AI SDK.
-
Initializes a
Backendconfigured 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") -> BackendParameters
locationThe region identifier, defaulting to
global; see available locations for a list of supported locations. -
Initializes a
Backendconfigured for the Gemini Developer API.Declaration
Swift
public static func googleAI() -> Backend