AI agents can do more than answer questions. Given tools, they can research, read documents, call APIs, and complete multi-step work. Multi-agent systems go further, splitting a task across specialised agents coordinated by an orchestrator.
They can also fail in new ways: looping, taking actions nobody approved, or producing work no one can trace. This article covers the architecture and guardrails that make multi-agent systems dependable enough for real business processes.
Start with the simplest thing that works
Before reaching for multiple agents, ask whether you need them. Many workflows are best served by plain code with a single model call at the step that needs judgement—or by one agent with a few well-designed tools.
Multiple agents earn their complexity when:
- The work has distinct specialities—for example research, document review, and risk scoring—each needing its own instructions, tools, and context.
- Steps can run in parallel, such as checking several sources at once.
- Context would otherwise overflow. Giving each agent only what it needs keeps prompts focused and results more accurate.
- Different steps need different models, balancing cost and capability.
If none of these apply, a single agent is easier to test, cheaper to run, and simpler to debug.
The components of a multi-agent system
A production multi-agent system has the same building blocks regardless of framework:
- Orchestrator. Breaks the task into steps, assigns them to agents, and decides what happens next. It can be a planning agent, or—often more reliably—explicit code describing the workflow as a graph or state machine.
- Specialised agents. Each has a clear role, a short set of instructions, and only the tools that role requires.
- Tools. Functions the agents can call: search, database queries, document parsing, sending a notification, creating a record. Tools are where agents touch real systems, so this is where most guardrails live.
- State and memory. The shared record of what has happened in the run—inputs, intermediate results, decisions—so steps can build on each other and runs can resume after failures.
- Human checkpoints. Points where a person reviews or approves before the workflow continues.
- Observability. A trace of every step, tool call, input, output, cost, and timing.
Orchestration patterns
Most business workflows combine a few well-understood patterns:
| Pattern | How it works | Good for |
|---|---|---|
| Sequential pipeline | Each step hands its output to the next | Predictable processes with fixed stages |
| Router | A classifier sends each request to the right specialist | Support triage, request intake |
| Parallel fan-out | Several agents work at once; results are merged | Research across multiple sources |
| Planner and executors | A planner creates sub-tasks; executors complete them | Open-ended work with variable steps |
| Evaluator loop | One agent drafts; another checks against criteria and requests fixes | Documents, code, structured outputs |
Prefer explicit, code-defined workflows where the steps are known in advance. Reserve open-ended planning for the parts that genuinely vary. The more of the workflow you can express as ordinary code, the more predictable and testable it becomes.
Guardrails that matter in production
Agents act on behalf of your business, so design their permissions the way you would for a new employee with system access.
- Least-privilege tools. Give each agent only the tools it needs, with the narrowest scope possible. A research agent should not be able to update customer records.
- Approval for consequential actions. Anything that spends money, changes records, contacts customers, or can't be undone should pause for human approval.
- Validated inputs and outputs. Define tool arguments and agent outputs as strict schemas, and reject anything that doesn't match.
- Budgets. Cap steps, tokens, time, and cost per run, so a confused agent stops instead of looping.
- Treat external content as data. Web pages, emails, and documents can contain instructions written to manipulate an agent. Agents should never follow instructions found inside the content they process.
- Idempotent actions. Tools that change things should be safe to retry, so recovery from a failure never creates duplicates.
A simple way to enforce several of these at once is to route every tool call through a single gate:
from dataclasses import dataclass, field
from typing import Any, Callable
@dataclass
class Tool:
name: str
run: Callable[..., Any]
requires_approval: bool = False # consequential actions need a human
@dataclass
class Run:
max_steps: int = 20
steps: int = 0
trace: list[dict] = field(default_factory=list)
def call_tool(run: Run, tool: Tool, args: dict, approve: Callable[[str, dict], bool]) -> Any:
"""Every tool call goes through one gate: budget, approval, and a trace entry."""
if run.steps >= run.max_steps:
raise RuntimeError("Step budget exhausted; stopping the run")
run.steps += 1
if tool.requires_approval and not approve(tool.name, args):
run.trace.append({"tool": tool.name, "args": args, "status": "rejected"})
return {"status": "rejected_by_reviewer"}
try:
result = tool.run(**args)
run.trace.append({"tool": tool.name, "args": args, "status": "ok"})
return result
except Exception as err: # failures are recorded, never silently swallowed
run.trace.append({"tool": tool.name, "args": args, "status": "error", "error": str(err)})
raise
Because every action passes through one function, budgets, approvals, and tracing can't be bypassed by an individual agent.
Observability and evaluation
You can't improve what you can't see. Every run should produce a trace showing each step, which agent acted, which tools were called with which arguments, what came back, and how long and how much it cost. Traces make failures debuggable and give reviewers confidence in the results.
Evaluate the system the way you would any software:
- Test cases drawn from real tasks, with clear criteria for a good outcome.
- Step-level checks, not just final answers—a correct conclusion reached by skipping a required check is still a failure.
- Regression runs whenever prompts, tools, or models change.
- Operational metrics: completion rate, human-approval rate, escalation rate, cost, and latency per run.
An example: vendor due diligence
Consider onboarding a new supplier. A multi-agent workflow might look like this:
- A trigger fires when a vendor submits their details.
- A planner creates the checks required by policy.
- A research agent looks up public company records through a read-only registry tool.
- A document agent reads certificates and contracts and extracts key terms.
- A risk agent scores the findings against written policy rules.
- A compliance reviewer—a person—approves or rejects activation, seeing the full trace.
Only the final step can change anything in the vendor system, and only with a human decision. The agents do the slow, repetitive work; people keep authority over the outcome.
A checklist before production
- The workflow is as explicit as it can be, with open-ended planning only where needed.
- Every tool has the minimum permissions, validated arguments, and safe retries.
- Consequential actions require human approval.
- Runs have step, time, and cost budgets.
- External content is treated as data, never as instructions.
- Every run produces a complete, reviewable trace.
- A test set and regression process exist before launch.
Multi-agent systems are powerful when they're engineered like any other critical software: clear boundaries, strong defaults, and full visibility.
SYNYX AI designs and builds agentic orchestration platforms and AI workflows as part of our AI solutions and workflow automation work. If you're planning one, let's talk it through.