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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-20 UTC."],[],[],null,["# Backend class\n\nAbstract 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------------\n\n| Constructor | Modifiers | Description |\n|-----------------------------------------------------------|-----------|----------------------------------------------|\n| [(constructor)(type)](./ai.backend.md#backendconstructor) | | Protected constructor for use by subclasses. |\n\nProperties\n----------\n\n| Property | Modifiers | Type | Description |\n|---------------------------------------------------|-----------|------------------------------------|-----------------------------|\n| [backendType](./ai.backend.md#backendbackendtype) | | [BackendType](./ai.md#backendtype) | Specifies the backend type. |\n\nBackend.(constructor)\n---------------------\n\nProtected constructor for use by subclasses.\n\n**Signature:** \n\n protected constructor(type: BackendType);\n\n#### Parameters\n\n| Parameter | Type | Description |\n|-----------|------------------------------------|-------------------|\n| type | [BackendType](./ai.md#backendtype) | The backend type. |\n\nBackend.backendType\n-------------------\n\nSpecifies the backend type.\n\n**Signature:** \n\n readonly backendType: BackendType;"]]