Why it matters

Wrong agent type causes brittleness or overspending. Right type matches structure to problem.

Advertisement

The architecture

LlmAgent: LLM decides. Flexible but nondeterministic.

SequentialAgent: runs children in order.

ParallelAgent: runs children concurrently.

LoopAgent: runs children in loop until termination condition.

ADK agent taxonomyLlmAgentLLM decidesSequentialAgentin orderParallelAgent / LoopAgentconcurrent / iterativeCombine types: LlmAgent for reasoning, workflows for orchestration
Agent type spectrum.
Advertisement

How it works end to end

Sub-agents: agent can invoke child agents. Enables composition.

Coordinator pattern: top LlmAgent delegates to specialist agents.

Deterministic pipeline: SequentialAgent for known steps.

Parallel processing: ParallelAgent for independent tasks.