06. Multi-Agent Systems
What is a Multi-Agent System?
A multi-agent system (MAS) is a system of two or more agents that interact inside a shared environment under organization and communication rules to pursue goals. Module 06 starts here — then compares architectures, protocols, and specialized roles.
What you will learn
- Define a multi-agent system in one clear sentence
- Name the core building blocks of a MAS
- List classic properties (autonomy, interaction, organization)
- Map modern LLM crews to the MAS idea
- Answer interview questions with short, solid answers
Definition
A multi-agent system is a computing system composed of multiple autonomous (or semi-autonomous) agents that perceive and act in a shared environment and interact — cooperate, compete, negotiate, or hand off work — according to protocols and an organization structure.
In Agentic AI products, agents are often LLM-backed roles with tools and memory. “Multi-agent” means more than one decision-making role with real interaction — not merely many functions inside one prompt.
Introduction
This lesson opens Module 06 (Multi-Agent Systems). Module 05 covered design patterns (including collaboration and hierarchy shapes). Here we define the system idea those patterns implement.
Next: Single Agent vs Multi-Agent Architecture — when to stay with one loop versus a crew.
Why the definition matters
- Stops labeling every tool call a “multi-agent product”
- Forces you to name environment, protocols, and org structure
- Connects classic AI MAS theory to LLM crews and graphs
- Sets vocabulary for the rest of Module 06
Building blocks
If you cannot name these five, you do not yet have a designed MAS — you have a pile of prompts.
- Agents - policies, tools, memory, success criteria
- Environment - APIs, DBs, files, UIs, shared stores
- Interactions - messages, handoffs, events, blackboards
- Organization - flat crew, supervisor, hierarchy, market
- Goals - shared global goal and/or local agent goals + metrics
Classic properties
- Autonomy - agents decide locally within bounds
- Social ability - communicate and coordinate
- Reactivity - respond to environment changes
- Proactivity - pursue goals, not only react
- Organization - roles and authority are explicit
What counts (and what does not)
- Counts - two+ roles with separate policies/tools that exchange results
- Counts - supervisor + workers with structured assignments
- Does not - one agent calling many tools (still single-agent)
- Does not - a static pipeline of prompts with no agent identities
- Borderline - one process, many “agents” as roles — still a MAS if roles interact under a protocol
Modern LLM multi-agent example
Frameworks (CrewAI, AutoGen, LangGraph multi-node graphs, ADK) implement MAS ideas with LLM roles and a runtime that schedules turns, enforces budgets, and logs traces.
- Runtime owns scheduling, policy, budgets, tracing
- Each agent gets a role prompt and tool allowlist
- Artifacts move through typed handoffs
- Stop conditions prevent endless crew chat
Benefits and costs
- Benefit: specialization and clearer permissions
- Benefit: parallel work across roles
- Benefit: review/debate quality gates
- Cost: more latency, tokens, and failure modes
- Cost: harder debugging across agents
- Cost: protocol design becomes product work
Program / implementation notes
Document agents, environment, messages, org chart, and goals before picking a framework. Start with the smallest crew that earns its complexity.
- Related earlier: Module 02 Single-Agent vs Multi-Agent Systems; Module 05 collaboration patterns
- Next: Single Agent vs Multi-Agent Architecture
Advantages and limitations
- Advantage: scalable organization for complex products
- Advantage: maps cleanly to real team metaphors
- Advantage: isolates blast radius of tools per role
- Limitation: overkill for short, single-skill tasks
- Limitation: weak protocols create chat storms
- Limitation: shared-environment races need locks and schemas
Key points
- MAS = multiple interacting agents in a shared environment under organization rules.
- Name agents, environment, interactions, organization, and goals.
- Autonomy, social ability, reactivity, proactivity, organization are classic properties.
- Many tools ≠ multi-agent; many interacting roles do.
- Modern LLM crews are MAS implementations with a runtime.
- Complexity must earn its keep — start small.
FAQs
Is CrewAI / AutoGen a multi-agent system?
They are frameworks for building MAS-style apps. Your design is a MAS when you define multiple interacting agent roles in a shared environment with protocols.
Do agents need separate servers?
No. Roles can run in one process. Separate processes help isolation and scale but are not required for the definition.
How is MAS different from microservices?
Microservices are service architecture. A MAS emphasizes autonomous decision-makers that interact about goals; services may be the environment those agents call.
Can agents compete instead of cooperate?
Yes. Classic MAS includes cooperative, competitive, and mixed societies. Product agents are usually cooperative with conflict-resolution rules.
Interview questions
- What is a multi-agent system?
Answer A system of two or more agents that interact in a shared environment under organization and communication rules to pursue goals.
- Name the main building blocks of a MAS.
Answer Agents, environment, interactions, organization structure, and goals (shared and/or local) with metrics.
- Does using many tools make a system multi-agent?
Answer No. One agent with many tools is still single-agent. Multi-agent requires multiple interacting decision-making roles.
- List classic MAS agent properties.
Answer Autonomy, social ability (communication), reactivity, proactivity — plus an explicit organization of roles.
- How do modern LLM crews fit the MAS definition?
Answer Each role is an agent with tools/memory; a runtime provides environment scheduling and protocols for handoffs and stops.
- When should you not build a MAS?
Answer When a single agent or a short prompt chain meets quality, cost, and latency goals without role isolation needs.
Related topics
Practice task
Complete each numbered practice step in a notebook or doc before opening the next lesson.
- Write a one-sentence MAS definition in your own words.
- For a “trip planner” product, list agents, environment, interactions, organization, and goals.
- Mark whether your design is truly multi-agent or just one agent with many tools — and why.
- Name two stop rules you would put on the crew runtime.
- Answer interview questions 1, 3, and 5 in two sentences each.