Building an Autonomous Research Team: Planner, Searcher, Synthesizer, and Editor
Build a four-agent ADK research team—planner, searcher, synthesizer, and editor—that splits a topic, shares findings through session state, and delivers a cited report.
Published on • November 30, 2026
AI Assistant

Ask a single agent to “research the state of solid-state battery manufacturing and write a report” and you get a predictable mess: one long response that mixes half-remembered facts with invented citations, no separation between gathering evidence and judging it, and a context window that fills with raw search results nobody asked for. The problem is not the model — it is that research is four different jobs, and one prompt is being asked to do all of them at once.
The fix is to split the work across a small team of specialists with hard boundaries between them. In this tutorial we will build an autonomous research team on the Google Agent Development Kit (ADK): a Planner that breaks the topic into questions, a Searcher that gathers evidence, a Synthesizer that merges findings into a coherent draft, and an Editor that tightens the prose and verifies the citations. Along the way we will cover sub_agents delegation, description-driven routing, session state as the team’s shared whiteboard, and running the whole fleet through a Runner.
1. Why Roles Beat One Big Prompt
A monolithic research prompt forces a single model invocation to alternate between divergent and convergent thinking: open-ended exploration, skeptical verification, structural organization, and line-level polishing. Each switch costs accuracy, and every intermediate scratch note stays in the prompt forever.
A team of agents fixes this in three ways:
- Context hygiene. The Searcher never sees the Editor’s style rules, and the Editor never sees 40 raw search snippets.
- Role-specific tools. Only the Searcher carries
google_search. The Synthesizer carries nothing and just reasons. - Verifiable handoffs. Each stage writes a typed artifact into session state, so you can inspect exactly what was passed downstream and re-run a single stage when it misbehaves.
The coordination overhead of four agents is small compared to the token waste of one overloaded context.
2. Architecture of the Team
We use a Coordinator/Specialist topology: a front-facing coordinator agent that receives the user’s request, delegates to specialists through ADK’s automatic transfer mechanism, and finally hands off to the Editor for the deliverable.
[User]: "Research <topic> and write a report"
│
▼
┌──────────────────────────────────┐
│ research_coordinator │
│ (routes by sub_agent description)│
└──────────────────────────────────┘
│ │ │ │
▼ ▼ ▼ ▼
┌─────────┐ ┌─────────┐ ┌──────────┐ ┌────────┐
│ planner │→│ searcher│→│synthesizer│→│ editor │
│ questions│ │ evidence│ │ draft │ │final │
└─────────┘ └─────────┘ └──────────┘ └────────┘
│ │ │ │
└───────────┴─────┬──────┴───────────┘
▼
session.state (shared board)
plan | evidence_log | draft | final_report
In a strict pipeline you would use ADK’s SequentialAgent to force the order. In a research team, order is mostly deterministic anyway (plan → search → synthesize → edit), so we let the coordinator drive it and keep the ability to loop back — for example, sending a weak draft back to the Searcher for one more round of evidence gathering.
3. Defining the Specialists
Each specialist is an Agent (an alias of LlmAgent) with a narrow instruction, one or two tools, and an output_key that publishes its contribution to session state.
from google.adk.agents import Agent
from google.adk.tools import google_search
MODEL = "gemini-flash-latest"
planner = Agent(
name="planner",
model=MODEL,
description="Breaks a research topic into 4-6 focused sub-questions with search keywords. Use FIRST for any request that asks for research, a report, or an analysis of a topic.",
instruction="""
You are a research planner.
Given a topic, produce 4-6 sub-questions that together cover it, and give
2-3 search keywords per question.
Output a numbered list only. Do not answer the questions yourself.
""",
output_key="research_plan",
)
searcher = Agent(
name="searcher",
model=MODEL,
description="Gathers web evidence and source URLs for the sub-questions in the research plan. Use AFTER a research plan exists.",
instruction="""
You are an evidence gatherer.
Work through the plan in {research_plan?}.
For each question, call `google_search`, then write 3-6 bullet points of
factual findings, each followed by its source URL in parentheses.
Only report what the sources actually say. Mark uncertain items [UNVERIFIED].
""",
tools=[google_search],
output_key="evidence_log",
)
synthesizer = Agent(
name="synthesizer",
model=MODEL,
description="Merges evidence into a structured markdown draft with sections and inline citations. Use once an evidence log exists.",
instruction="""
You are a research synthesizer.
Using ONLY the evidence in {evidence_log?}, write a structured markdown draft:
a one-paragraph summary, then sections per sub-question.
Keep every claim tied to a source URL. Do not add outside knowledge.
""",
output_key="draft_report",
)
editor = Agent(
name="editor",
model=MODEL,
description="Edits the draft for clarity, flow, and citation integrity, then produces the final report. Use LAST.",
instruction="""
You are a senior editor.
Take the draft in {draft_report?} and improve clarity, transitions and tone.
Remove redundancy. Preserve every citation. If a claim has no source, add
the marker [NEEDS SOURCE] instead of deleting it.
Output the finished markdown report only.
""",
output_key="final_report",
)
Two details matter more than they look:
descriptionis the routing prompt. When the coordinator decides which sub-agent to transfer to, it reads these strings. “Handle stuff” will not route reliably; explicit ordering cues (“Use FIRST”, “Use LAST”) make the handoff deterministic enough to debug.{key}templating injects state. The{evidence_log?}placeholder is replaced with the live session-state value before the LLM call — the trailing?means “no error if the key is missing yet.”
4. The Coordinator and the Runner
The coordinator owns the routing rules and nothing else. It carries no tools of its own, so its only lever is delegation.
from google.adk.runners import Runner
from google.adk.sessions import InMemorySessionService
from google.genai.types import Content, Part
coordinator = Agent(
name="research_coordinator",
model=MODEL,
instruction="""
You coordinate a four-person research team: planner, searcher,
synthesizer, editor. Follow the order plan -> search -> synthesize -> edit.
Never do the specialists' work yourself. When `final_report` exists,
relay it verbatim as your answer.
""",
sub_agents=[planner, searcher, synthesizer, editor],
)
APP_NAME = "research_team"
session_service = InMemorySessionService()
runner = Runner(
agent=coordinator,
app_name=APP_NAME,
session_service=session_service,
)
InMemorySessionService is right for local development; everything it stores is lost on restart, so production deployments swap in a persistent SessionService implementation without touching the agent definitions.
5. Running a Full Research Request
import asyncio
async def research(topic: str) -> str:
session = await session_service.create_session(
app_name=APP_NAME, user_id="u_1", session_id="res_1"
)
message = Content(role="user", parts=[Part(text=f"Research: {topic}")])
final_text = ""
async for event in runner.run_async(
user_id="u_1", session_id="res_1", new_message=message
):
if event.is_final_response() and event.content:
final_text = "".join(
p.text for p in event.content.parts if getattr(p, "text", None)
)
print("--- state keys ---")
for key in ("research_plan", "evidence_log", "draft_report", "final_report"):
value = session.state.get(key)
print(f"{key}: {'set' if value else 'MISSING'} "
f"({len(str(value or ''))} chars)")
return final_text
if __name__ == "__main__":
print(asyncio.run(research("solid-state battery manufacturing scale-up")))
What the trace tells you
A healthy run shows four distinct transfer events (coordinator → planner → searcher → …) and four state writes, each recorded as an output_key delta on the corresponding event. The evidence log is usually the largest key — that is expected; it is the only stage that should be allowed to grow. If final_report is missing, the failure is almost always in routing: read the description strings before you touch the instruction text.
6. Making the Handoffs Explicit (Optional)
If you want the strict order of a pipeline without losing session state, ADK gives you SequentialAgent, which runs sub-agents in list order deterministically — no model deciding who goes next:
from google.adk.agents import SequentialAgent
research_pipeline = SequentialAgent(
name="research_pipeline",
sub_agents=[planner, searcher, synthesizer, editor],
description="Deterministic plan -> search -> synthesize -> edit pipeline.",
)
Sub-agents of a SequentialAgent share the same invocation context, and therefore the same session state, which is exactly what our output_key handoffs rely on. Use the coordinator when you want adaptive re-search loops, and the sequential pipeline when you want a reproducible, evaluable artifact. Teams often ship both: the sequential one for regression tests, the coordinator for the product.
7. Production Checklist
- Every specialist has a specific
description— it is the routing prompt, not documentation. - Each stage publishes exactly one
output_key; downstream stages read it with{key?}templating. - Only the Searcher has tools; the Synthesizer and Editor are pure reasoning agents.
- State keys are serializable strings — store identifiers and markdown, never objects or bytes.
- You log the state snapshot after each run so a failed pipeline can be debugged from state alone.
- For multi-turn refinement (“now shorten it”), reuse the same
session_idso the report survives the next invocation.
Takeaway: a research team is not four prompts running in parallel — it is a contract between stages, enforced by description-based routing and carried entirely by session state. Build the contract first, and the agents become easy to swap, test, and improve independently.
Sources
- Google ADK Documentation: https://adk.dev/
- Multi-Agent Workflows: https://adk.dev/workflows/collaboration/
- Sequential template workflow agent: https://adk.dev/agents/workflow-agents/sequential-agents/