GEMINI LABJP
MODEL — Gemini 3.5 Flash reaches GA and now powers gemini-flash-latestAGENT — Managed Agents enter public preview in the Gemini API, running autonomous, stateful agents in isolated Google-hosted Linux sandboxesANTIGRAVITY — The Antigravity Agent managed agent hits public preview, planning, coding, managing files, and browsing the web in its sandboxDEPRECATION — Image generation models are scheduled to shut down on August 17, 2026; plan your migrationTTS — gemini-3.1-flash-tts-preview now streams speech generation via streamGenerateContent for lower latencyENTERPRISE — Gemini 3.5 Flash is generally available across the Global, US, and EU regions on Gemini EnterpriseMODEL — Gemini 3.5 Flash reaches GA and now powers gemini-flash-latestAGENT — Managed Agents enter public preview in the Gemini API, running autonomous, stateful agents in isolated Google-hosted Linux sandboxesANTIGRAVITY — The Antigravity Agent managed agent hits public preview, planning, coding, managing files, and browsing the web in its sandboxDEPRECATION — Image generation models are scheduled to shut down on August 17, 2026; plan your migrationTTS — gemini-3.1-flash-tts-preview now streams speech generation via streamGenerateContent for lower latencyENTERPRISE — Gemini 3.5 Flash is generally available across the Global, US, and EU regions on Gemini Enterprise
Articles/Advanced
Advanced/2026-05-01Advanced

Vertex AI Agent Engine × Gemini 2.5 Pro — Production Deployment for Managed Agents

Deploy ADK-based agents powered by Gemini 2.5 Pro on Vertex AI Agent Engine. Covers the trade-offs vs Cloud Run, sessions, tool calls, tracing, and a realistic cost model.

Vertex AI11Agent EngineGemini 2.5 Pro16ADK2production133Google Cloud5

Premium Article

Most teams I've worked with hit a wall when moving an agent from a notebook to production. The pattern is familiar: wrap the agent in Flask, push it to Cloud Run, persist sessions in Redis, and try to piece together traces from Cloud Logging. It works — until you have three or four agents and the operational load buckles under its own weight. I've personally fallen into this trap twice.

Vertex AI Agent Engine is Google's managed runtime designed for exactly that gap between "works on my machine" and "runs reliably in production." This guide walks through deploying an ADK agent powered by Gemini 2.5 Pro to Agent Engine, with a focus on the design decisions — sessions, tools, tracing, and scaling — that determine whether your service stays healthy six months in.

The Three Production Problems Agent Engine Solves

It's tempting to think of Agent Engine as a fancier Cloud Run. That framing misses the point. Agent Engine exists because agents have three operational characteristics that ordinary HTTP services don't.

The first is long, streaming responses. A real agent makes multiple LLM calls, executes tools, and waits on external services — average response times north of ten seconds are common. Standard request/response infrastructure on Cloud Run forces you to fight load balancer timeouts and dropped connections. Agent Engine is built around a streaming RPC model: you call stream_query and receive intermediate events, not a single blob at the end.

The second is state. Should the conversation history live in Redis? Firestore? A bespoke append-only log? You can build any of these by hand, but the moment you need to replay, audit, or A/B test, the seams show. Agent Engine ships with two complementary stores out of the box: Sessions API for short-lived chat threads and Memory Bank for durable user-level facts. Keeping these separated from day one pays off massively when compliance or growth force a redesign.

The third is observability. Agents nest LLM calls inside tool calls inside sub-agent calls. Plain access logs cannot reconstruct causality. Agent Engine emits OpenTelemetry-compatible spans to Cloud Trace automatically, so a single stream_query produces a coherent timeline that includes model latency, tool latency, and child agent latency in one view.

Related: Production Observability for the Gemini API covers how to assemble similar visibility outside Agent Engine — useful as a comparison for decisions about when to migrate.

Agent Builder vs ADK vs Agent Engine

Google Cloud has three similarly named agent products, and the names hide important differences. Here is the heuristic I use on real projects.

  • Vertex AI Agent Builder is a no-code/low-code design canvas. You connect data sources through the UI, drop in tools, and ship an internal FAQ bot in a couple of hours. The companion piece is the Vertex AI Agent Builder Quickstart.
  • Agent Development Kit (ADK) is a Python or TypeScript framework that lets you express agent behavior as code. Use it when you need version control, automated tests, or multi-agent collaboration.
  • Vertex AI Agent Engine is the managed runtime that hosts ADK or LangChain agents. Agent Builder is "where you design," ADK is "where you write code," and Agent Engine is "where it runs in production."

In practice, I reach for ADK + Agent Engine whenever the agent needs to be code-reviewed, tested in CI, or owned by an engineering team. Agent Builder is the right call for prototypes and tools that business users will edit themselves.

Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
If you have shipped an agent on Cloud Run and watched ops collapse as it grew, you'll learn a managed alternative you can apply today
You'll consolidate scattered sessions, tools, and tracing into a single Agent Engine runtime
You'll come away with concrete production decisions — model selection, Memory Bank usage, scaling — to balance quality and cost
Secure payment via Stripe · Cancel anytime

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Gemini Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • Copy-paste ready implementation code
  • New advanced guides published daily
  • $5/mo or $10 for lifetime access
View Membership →

Related Articles

API / SDK2026-06-22
Gemini API on Google Cloud: Diagnosing Production Errors Layer by Layer
Systematically diagnose Gemini API errors in Google Cloud production environments. Covers IAM permissions, Vertex AI vs AI Studio, VPC Service Controls, quota management, service accounts, and multi-region failover with full code examples.
Dev Tools2026-03-14
Vertex AI Gemini Production Guide— Enterprise-Scale Deployment Implementation
Deploy Gemini at enterprise scale on Vertex AI. Covers service account auth, provisioned throughput, prompt filtering, Cloud Run integration, monitoring, and cost management for production workloads.
Advanced2026-07-06
Being Able to Say Later Where a User's Data Was Processed — Region-Pinned Gemini (Vertex AI) Clients and a Residency Policy Gate
The default global endpoint is convenient, but it leaves you unable to explain where an EU user's data was processed. Here is a design built from three parts—a region-pinned Vertex AI client, a policy gate that forbids implicit global fallback, and a call ledger—with working code and measured latency.
📚RECOMMENDED BOOKS
Build a Large Language Model (From Scratch)
Sebastian Raschka
LLM Dev
Prompt Engineering for LLMs
Berryman & Ziegler
Prompting
AI Engineering
Chip Huyen
AI Eng
* Contains affiliate links
See all →