liveBook · Manning

Multi-agent system

As explained in AI Agents in Action, Second Edition

A multi-agent system is a system in which multiple autonomous or semi-autonomous agents coordinate to perform tasks or achieve shared or related goals.

A multi-agent system coordinates multiple agents to carry out tasks or pursue related goals. Instead of asking one agent to handle every responsibility, it can divide work among agents with narrower roles—like a customer support team with triage, billing, and technical specialists. section 1.4 section 1.6

Multiple agents can also work in parallel or hold different slices of a problem in their separate context windows. Some problems, such as negotiation or adversarial simulations, require independent actors with distinct goals. These benefits come with trade-offs: coordination can increase cost, latency, and unpredictability. section 1.4 section 4.1

Three common coordination patterns can be combined as needed:

  • Agent flow: specialized agents work sequentially, passing results along an assembly line. Use it for well-defined, multistep tasks. section 1.6
  • Orchestration: a central agent plans and delegates work to specialized agents, which report back to it. section 1.6 section 4.1
  • Collaboration: agents communicate as a team, offering feedback and criticism. This can help with complex problems but may cost more computation and time. section 1.6
Figure 4.1 The three well-established patterns for building multi-agent systems: agent flow (assembly line), orchestrator (hub-and-spoke), and collaboration (peer-to-peer).

Compare the communication shapes of flow, orchestration, and collaboration. section 4.1

Design each pattern around decision-making, control, and communication. Decision-making is authority to choose the next action; control is authority to execute it. An agent can have one without the other. Also decide what context each decision-maker needs and how agents exchange results. section 4.1

Separating planning from work

A research agent may choose three sources from ten. A worker can then fetch and summarize those sources. The first agent decides what to do; the second carries out the work. section 4.1

Keep agent roles and communication channels clear, rather than assuming more agents will automatically help. Typed input and output schemas can reduce brittle string parsing between agents; tracing helps reveal interactions and tool calls when debugging. For dependable deployment, also plan where agents run, how state is maintained, and how changes are rolled out. section 4.0 section 2.6 section 8.3

How AI Agents in Action, Second Edition covers it

How deep it goes
Explains coordination patterns, decision authority, control, and communication, while treating enterprise security, governance, compliance, and scaling briefly.
Examples
Uses customer-support specialists and research agents that select, fetch, and summarize sources.
What you can do after
Evaluate and understand coordination patterns by comparing agent roles, decision authority, communication, and trade-offs.
How it connects
Connects agent flow, orchestration, and collaboration with typed schemas and tracing.

Also explained in

Compare how 9 books explain multi-agent system →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of AI Agents in Action, Second Edition. The section links point to the parts of the book it draws on.