Backend class
Stay organized with collections
Save and categorize content based on your preferences.
Abstract base class representing the configuration for an AI service backend. This class should not be instantiated directly. Use its subclasses; GoogleAIBackend for the Gemini Developer API (via Google AI), and VertexAIBackend for the Vertex AI Gemini API.
Signature:
export declare abstract class Backend
Constructors
Constructor |
Modifiers |
Description |
(constructor)(type) |
|
Protected constructor for use by subclasses. |
Properties
Backend.(constructor)
Protected constructor for use by subclasses.
Signature:
protected constructor(type: BackendType);
Parameters
Parameter |
Type |
Description |
type |
BackendType |
The backend type. |
Backend.backendType
Specifies the backend type.
Signature:
readonly backendType: BackendType;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-20 UTC.
[null,null,["Last updated 2025-05-20 UTC."],[],[],null,["Abstract base class representing the configuration for an AI service backend. This class should not be instantiated directly. Use its subclasses; [GoogleAIBackend](./ai.googleaibackend.md#googleaibackend_class) for the Gemini Developer API (via [Google AI](https://ai.google/)), and [VertexAIBackend](./ai.vertexaibackend.md#vertexaibackend_class) for the Vertex AI Gemini API.\n\n**Signature:** \n\n export declare abstract class Backend \n\nConstructors\n\nProperties\n\nBackend.(constructor)\n\nProtected constructor for use by subclasses.\n\n**Signature:** \n\n protected constructor(type: BackendType);\n\nParameters\n\nBackend.backendType\n\nSpecifies the backend type.\n\n**Signature:** \n\n readonly backendType: BackendType;"]]