{
 "schema_version": 1,
 "generated": "2026-10-31",
 "id": "google-adk-python--chain-agents-in-an-adk-workflow",
 "repo": "google/adk-python",
 "repo_url": "https://github.com/google/adk-python",
 "repo_slug": "google-adk-python",
 "title": "Chain agents into a deterministic workflow",
 "page_title": "How to chain agents into a deterministic workflow with Adk Python",
 "summary": "Use ADK's Workflow runtime to pass work between specialised agents in a fixed graph.",
 "who": "A builder whose single agent keeps skipping steps in a multi-stage process.",
 "problem": "Leaving every step to one model's judgment makes multi-stage tasks unpredictable.",
 "outcome": "A Workflow whose edges run one agent after another, with routing, loops and retries available.",
 "steps": [
  "Install with `pip install google-adk`",
  "Define each step as an Agent with its own instruction",
  "Create a Workflow with edges such as START to the first agent to the second, as in the README example",
  "Add routing, fan-out and fan-in, loops, retry or human-in-the-loop steps as the Workflow Runtime supports",
  "Run it with adk run or adk web and check each node's output"
 ],
 "agent_prompt": "With google/adk-python, build a Workflow where <agent A> does <step 1> and passes its output to <agent B> for <step 2>. Add a retry on <step> and a human-in-the-loop check before <final step>, then run it in adk web.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Intermediate",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "Only the simplest Workflow is shown in the README; routing and loops are in the guides under docs/guides.",
 "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": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/google-adk-python/chain-agents-in-an-adk-workflow/",
 "md": "https://dedupedai.com/use-cases/google-adk-python/chain-agents-in-an-adk-workflow/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--chain-agents-in-an-adk-workflow.json",
 "api_version": "v1"
}
