Skip to main content

Module 21.5: MAS Knowledge Milestone - Architecture Choice

๐Ÿงญ Where We Are in Part 3: You have now mastered all three chapters of Part 3: Multi-Agent Systems โ€” LLM-Driven Agent Teams (15โ€“16), Graph & Code Workflows (17โ€“20), and Distributed A2A Graphs (21). This capstone milestone brings them together into a single Architecture Decision Framework!

MAS Milestone Taxonomy Hero (Light) MAS Milestone Taxonomy Hero (Dark) Figure: Comprehensive Multi-Agent System architecture taxonomy and master design framework.

Theoryโ€‹

Congratulations! You have completed the core Multi-Agent Systems (MAS) section of the course. You have moved from thinking about single agents to designing complex networks of specialized nodes.

Before we move on to operational concerns like State, Evaluation, and Observability, let's recap the different architectural patterns you've mastered. Choosing the right geometry for your graph is the most important decision an AI Architect makes.

MAS Architecture Recapโ€‹

MAS Architecture Selection Matrix (Light) MAS Architecture Selection Matrix (Dark) Figure: Architectural decision grid comparing conversational, linear/parallel, dynamic, routed, cyclic, and distributed MAS topologies.

PatternModuleKey ADK PrimitivesBest For...
Sub-Agent Delegation15Agent(sub_agents=[...]), descriptionSimple conversational triage and one-way specialist hand-offs.
Collaborative Teams16sub_agents, mode="single_turn" / "task", rerun_on_resume=TrueInteractive multi-specialist teams with guaranteed return to the coordinator.
Static Workflows17Workflow, Linear/Parallel edges, JoinNode, output_keyPredictable, fixed business pipelines and concurrent fan-out/fan-in steps.
Dynamic Workflows18@node(rerun_on_resume=True), await ctx.run_node()Conditional multi-step chains and Python-driven orchestration logic.
Structured Routing19Workflow, Dictionary edges, ctx.route inside @nodeAuditable 1-to-N branching where every route stays visible in the Graph View.
Cyclic Workflows20@node with bounded Python for loop + ctx.run_node()Iterative Evaluator โ†’ Optimizer refinement and self-correction with cost caps.
Distributed Graphs21to_a2a(), RemoteA2aAgent, AgentToolCross-team microservices, independent scaling, and remote agent composition.

How to choose?โ€‹

When designing a new system, ask yourself these four questions in order:

  1. Is it open-ended conversational triage or an interactive sub-task? If yes, start with LLM-Driven Teams (sub_agents + mode in Modules 15โ€“16).
  2. Is the execution path fixed or cleanly switchable on a graph? If yes, use Static Workflows (Module 17) or Dictionary Router Edges (Module 19) for maximum speed and Graph View clarity.
  3. Does orchestration require multi-step Python logic or iterative refinement loops? If yes, use Dynamic (@node) or Cyclic workflows (Modules 18 & 20).
  4. Do the agents live in separate codebases, teams, or clouds? If yes, connect them over Distributed A2A (RemoteA2aAgent / AgentTool in Module 21).
๐ŸŽฏ Knowledge CheckSelect Best Answer

A regulated legal team needs to run Privacy and Liability checks concurrently on every contract, wait for both to finish, and then deterministically route high-risk contracts to a Senior Partner node. Which hybrid combination of ADK 2.0 primitives fits best?

Key Takeawaysโ€‹

  • There is no "one size fits all" architecture. Most production systems use a Hybrid approach.
  • Always prefer the simplest geometry that solves the problem. Don't use a Dynamic workflow if a Static one suffices.
  • Use the Dev UI Graph View to validate that your code matches your mental model.
๐Ÿ“–

21.5: MAS Knowledge Milestone(Theory & Overview)

Part 3: Multi-Agent Systems โ€ข Module 21.5

Overall Course Progress:
0%(0/98)
Next Step: Challenge Lab ๐Ÿงช โ†’