Google Vertex AI Provider

Use Google Vertex AI with PraisonAI TypeScript

Diagram

Input

Agent

Output

Google Vertex AI Provider

Enterprise-grade AI with Google Vertex AI.

Environment Variables

bash
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json
export GOOGLE_CLOUD_PROJECT=your-project-id
export GOOGLE_CLOUD_LOCATION=us-central1

Quick Start

  1. Simple Usage
    typescript
    import { Agent } from 'praisonai';
    
    const agent = new Agent({
      name: 'VertexAgent',
      instructions: 'You are a helpful assistant.',
      llm: 'google-vertex/gemini-1.5-pro'
    });
    
    const response = await agent.chat('Hello!');
  2. With Configuration

    Adjust provider credentials and model settings for production — see the sections above.

Related