ADK is multi-agent by design: you compose specialized agents in a hierarchy, and a coordinator agent delegates to them the same way it calls functions. Build the specialists first, each with a name, a description and tools for one job, then give the coordinator the specialists as sub-agents and an instruction that says when to delegate to each. The coordinator runs the team, so the whole pipeline completes with the coordinator in control throughout.
What you need
- A Google ADK project with one working agent
- Two specialist jobs the team must split, such as research and writing
- A Gemini API key or a Google Cloud project
Step 1: Build the specialist sub-agents
Create one agent per specialist job, each with a name, a model, a description of what it does, an instruction and its tools. A good description matters, because the coordinator uses it to decide when to delegate.
Step 2: Create the coordinator with the specialists as sub-agents
Create a coordinator agent and list the specialists as its sub-agents. Write the coordinator’s instruction to say which specialist handles which part of the task.
Step 3: Run a task and check the delegation
Run a task that needs both specialists and read the event trace: confirm the coordinator delegated each part to the right specialist and the final answer combines their work.
Worked example: synthetic research team run
The table below is a synthetic example. It shows the expected result of a coordinator team; no team was built.
| Check | Expected | Result |
|---|---|---|
| Researcher delegated | Yes | Pass |
| Writer delegated | Yes | Pass |
| Final answer combines both | Yes | Pass |
Expected result (UNTESTED). the coordinator delegates research and writing to the right specialists, and the final answer combines their work. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- A coordinator calls specialists the same way it calls functions, so a specialist with a vague description will not be chosen.
- Workflow agents such as Sequential, Parallel and Loop exist for predictable pipelines; use them when the order is fixed.
- Check the event trace, because a coordinator that does the work itself instead of delegating is a sign the descriptions are wrong.
