adk-docs icon indicating copy to clipboard operation
adk-docs copied to clipboard

Using VertexAiSessionService with Cloud Run (or GKE) deployed agent

Open jnuvola opened this issue 2 months ago • 1 comments

The ADK Cloud Run deployment docs lists --agent_engine_id as an option for adk deploy cloud_run, implying I can deploy an agent to Cloud Run while using Vertex AI Agent Engine Sessions as a managed session store.

However, obtaining an agent_engine_id currently requires creating an "empty" Agent Engine instance (via agent_engines.create()) or deploying an agent to Agent Engine runtime, which is not explained on Cloud Run page and feels confusing and unintuitive.

Request: Please document a preferred, production-grade workflow for Cloud Run (or any other runtime) + VertexAiSessionService setup.

jnuvola avatar Sep 27 '25 03:09 jnuvola

I believe this same issue also applies to using VertexAiMemoryBankService. That also requires an existing Agent Engine ID. For sessions there's technically still the option of using a SQL database instead of Vertex, but for Agent Memory the only way to get persistence is through Vertex AI 😬

aleks-andr avatar Oct 03 '25 09:10 aleks-andr