VertexAIBackend class

Configuration class for the Agent Platform Gemini API (formerly known as the Vertex AI Gemini API).

Use this with AIOptions when initializing the AI service via getAI() to specify the Agent Platform Gemini API as the backend.

Signature:

export declare class VertexAIBackend extends Backend 

Extends: Backend

Constructors

Constructor Modifiers Description
(constructor)(location) Creates a configuration object for the Agent Platform Gemini API (formerly known as the Vertex AI Gemini API) backend.

Properties

Property Modifiers Type Description
location string The region identifier. See Agent Platform Gemini API locations for a list of supported locations.

VertexAIBackend.(constructor)

Creates a configuration object for the Agent Platform Gemini API (formerly known as the Vertex AI Gemini API) backend.

Signature:

constructor(location?: string);

Parameters

Parameter Type Description
location string The region identifier, defaulting to us-central1; see Agent Platform Gemini API locations for a list of supported locations.

VertexAIBackend.location

The region identifier. See Agent Platform Gemini API locations for a list of supported locations.

Signature:

readonly location: string;