Overview
Agent Engine is a managed service that helps you to build and deploy agent frameworks. LangGraph is a library for building stateful, multi-actor applications with LLMs, used to create agent and multi-agent workflows. This guide demonstrates how to build, deploy, and test a simple LangGraph application using Agent Engine in Vertex AI. You’ll learn how to combine LangGraph’s workflow orchestration with the scalability of Vertex AI, which enables you to build custom generative AI applications. Note that the approach used here defines a custom application template in Agent Engine, which can be extended to LangChain or other orchestration frameworks. If just want to use Agent Engine to build agentic generative AI applications, refer to the documentation for developing with the LangChain template in Agent Engine. This guide covers the following steps:- Define Tools: Create custom Python functions to act as tools your AI application can use.
- Define Router: Set up routing logic to control conversation flow and tool selection.
- Build a LangGraph Application: Structure your application using LangGraph, including the Gemini model and custom tools that you define.
- Local Testing: Test your LangGraph application locally to ensure functionality.
- Deploying to Vertex AI: Seamlessly deploy your LangGraph application to Agent Engine for scalable execution.
- Remote Testing: Interact with your deployed application through Vertex AI, testing its functionality in a production-like environment.
- Cleaning Up Resources: Delete your deployed application on Vertex AI to avoid incurring unnecessary charges.