LESSON 50 / 215·2 min readIntermediate

Multi-agent and hierarchical agents

Must knowConcept lesson
01 Understand02 Recall03 Prepare

Words made simple

A few useful meanings before you read the explanation.

Agent
An application that uses a model to choose its next action within defined limits. It can use tools and continue through several steps.

Overview

  • Multi-agent systems involve several model-driven roles cooperating.
  • Hierarchical systems organize those roles into levels of coordinators and workers.
  • Multiple ordinary functions in a workflow are not automatically multiple agents.

Why this matters

Specialized responsibilities or parallel independent work can justify separate model contexts and tool scopes.

An everyday example

A company organizes managers and departments, with clear reporting responsibilities.

A technical example

Policy analyst retrieves terms, document analyst checks evidence completeness, and a coordinator creates a review packet.

How it works

  1. Define role contracts
  2. Partition input and permissions
  3. Coordinate bounded calls
  4. Combine verified outputs
  5. Validate consistency
  6. Stop.

Architecture and flow

Coordinator → scoped specialists → typed outputs → consistency check → response.

The insurance assistant example

Build a claim review packet, but keep final claim approval in the authoritative workflow.

When to use it

Independently measurable tasks, different tool/privacy scopes, and proven quality gains over one agent.

When to avoid it

Avoid role-play teams for simple CRUD or sequential tasks that regular functions handle.

Interview answer

“I add multiple agents only when specialization or controlled parallel work improves measured outcomes enough to justify coordination cost.”

Benefits, trade-offs, and production considerations

  • More agents create more calls and possible inconsistencies.
  • Set a shared budget, limit delegation depth, prevent cycles, and avoid treating consensus among models as proof.

PAUSE & RECALL

Can you explain it without the notes?

Multi-agent and hierarchical agents

Use your own words. Explain an example and one limitation before checking the explanation.

Check your explanation

Multi-agent systems involve several model-driven roles cooperating. Hierarchical systems organize those roles into levels of coordinators and workers. Multiple ordinary functions in a workflow are not automatically multiple agents.

CONNECT IT TO YOUR INTERVIEW

Turn this concept into a clear answer.

Practice this concept
YOUR NEXT STEP

Keep connecting the ideas.

Next lesson: LangChain overview, models, prompts, and chains

Adapted from 13_AI.MD · “Multi-agent and hierarchical agents”. Examples are study fragments; framework behavior can depend on your version.