Credentials. Deploying to Cloud Run uses your Google Cloud credentials and can incur charges; the --with_ui flag also deploys the web UI, so restrict who can reach it.
Who it is forA team moving an agent from prototype to a shared service that needs evidence it still behaves.
The problemAgents regress silently when prompts or tools change, and deploying them needs custom container work.
The outcomeAn evaluated agent running locally in Docker or on Cloud Run, with the web UI included.
What you need first
- Python 3.11 or later
- pip
- A model to call, such as Gemini; ADK is model-agnostic
- For Cloud Run deploys: a Google Cloud project; for local containers: Docker
Steps
- Try the bundled evaluation sample from the repo root with adk eval, pointing it at the home_automation_agent, its evalset and its eval config
- Write your own evalset for your agent and rerun adk eval after each change
- Deploy locally in a container with
adk deploy docker --with_ui - Deploy to Google Cloud with
adk deploy cloud_run --with_ui - Set environment variables on the command or in a .env file, for example
adk deploy cloud_run --with_ui --env GOOGLE_GENAI_USE_ENTERPRISE=1
Prompt for your agent
Using google/adk-python, write an evalset for my agent covering <cases>, run adk eval and report failures. If it passes, deploy it with `adk deploy cloud_run --with_ui` and give me the URL.
Caveat. The README shows the deploy commands but not the Google Cloud setup they need; follow the docs at adk.dev first.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for google/adk-python and "Evaluate an agent and deploy it to Cloud Run"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer