Backend class

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

Property Modifiers Type Description
backendType BackendType Specifies the backend type.

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;