DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to evaluate an agent and deploy it to Cloud Run with Adk Python

Run ADK's evaluation against a test set, then ship the agent in a container or on Cloud Run with one command.

Short answer: 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; then 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. All steps.

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

  1. 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
  2. Write your own evalset for your agent and rerun adk eval after each change
  3. Deploy locally in a container with adk deploy docker --with_ui
  4. Deploy to Google Cloud with adk deploy cloud_run --with_ui
  5. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer