Escape the limitations of no-code builders and the complexity of starting from scratch.
VoltAgent is an open-source TypeScript framework for creating and managing AI agents. It provides modular components to build, customize, and scale agents with ease. From connecting to APIs and memory management to supporting multiple LLMs, VoltAgent simplifies the process of creating sophisticated AI systems. It enables fast development, maintains clean code, and offers flexibility to switch between models and tools without vendor lock-in.
To quickly get started with the Google Vertex AI example, run:
npm create voltagent-app@latest -- --example with-google-vertex-ai-
Copy the Example Environment File
First, copy the provided
.env.examplefile to create your own.envfile:cp .env.example .env
-
Configure Google Cloud Credentials
Open the
.envfile and update the following variables with your Google Cloud project details and credentials:GOOGLE_CLOUD_PROJECTGOOGLE_CLOUD_LOCATIONGOOGLE_APPLICATION_CREDENTIALS
For detailed instructions on obtaining and configuring these variables, see:
- Setting up authentication for Google Cloud
- Creating and managing service account keys
- Vertex AI documentation
Tip: Make sure your service account has the necessary permissions for Vertex AI.
-
Save the
.envfile and proceed with running the example.
npm install
npm run dev