{
 "schema_version": 1,
 "generated": "2026-10-31",
 "id": "google-adk-python--evaluate-and-deploy-an-adk-agent",
 "repo": "google/adk-python",
 "repo_url": "https://github.com/google/adk-python",
 "repo_slug": "google-adk-python",
 "title": "Evaluate an agent and deploy it to Cloud Run",
 "page_title": "How to evaluate an agent and deploy it to Cloud Run with Adk Python",
 "summary": "Run ADK's evaluation against a test set, then ship the agent in a container or on Cloud Run with one command.",
 "who": "A team moving an agent from prototype to a shared service that needs evidence it still behaves.",
 "problem": "Agents regress silently when prompts or tools change, and deploying them needs custom container work.",
 "outcome": "An evaluated agent running locally in Docker or on Cloud Run, with the web UI included.",
 "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`"
 ],
 "agent_prompt": "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.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Intermediate",
 "time": "1 hour",
 "basis": "readme",
 "caveat": "The README shows the deploy commands but not the Google Cloud setup they need; follow the docs at adk.dev first.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "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."
  }
 ],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/google-adk-python/evaluate-and-deploy-an-adk-agent/",
 "md": "https://dedupedai.com/use-cases/google-adk-python/evaluate-and-deploy-an-adk-agent/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/google-adk-python--evaluate-and-deploy-an-adk-agent.json",
 "api_version": "v1"
}
