Multi-Agent Conversation Systems: Role Orchestration, Cost Control, and Evaluation Practices
A practical engineering guide to building multi-agent conversation systems. It walks through three architectural patterns (role-division, social simulation, and adversarial), a five-layer reference architecture with an orchestration loop, four cost-control techniques that turn token spend into a budgeted problem, and a three-layer evaluation approach that separates measurable behavior from unobservable "understanding"—all framed around the core engineering dimensions of cost, control, and evaluation.
1. Where It Starts: Giving an Agent a Conversation Partner
Multi-agent conversations usually start with something surprisingly simple: you give a conversational agent a personality and a stance, duplicate it, tweak the copy’s role description, and then feed each agent’s output to the other. Before long you can see the roles echoing, rebutting, and developing rapport. The next natural step is to scale from two participants to a crowd, give them a shared topic space, and let speaking order, topic drift, and the distribution of conclusions emerge on their own.
The problem is that there is a deep gap between a compelling demo and something that is actually usable in production. A one-on-one role dialogue is still essentially a chain of single-turn generations. Once the number of participants grows and the number of turns lengthens, the system exposes three kinds of problems at once: context expands roughly quadratically, there is no explicit policy for allocating speaking rights, and “whether anything valuable was produced” has no clear, decidable standard. These three problems map directly to the engineering dimensions of cost, control, and evaluation—and they form the through-line of the rest of this article.
2. Three Typical Forms and Their Design Tradeoffs
Once abstracted, multi-agent conversations fall into three broad categories. Their objective functions are entirely different, and a single configuration cannot cover all of them.
1. Role-Division Type (output-oriented)
Participants play distinct functions—for example, proposer, challenger, reviewer, and synthesizer. The goal is to converge on a deliverable: a plan, a piece of code, or a decision. Its defining traits are a limited number of turns, a clear termination condition, and evaluation that can be tied directly to output quality.
2. Social Simulation Type (emergence-oriented)
This involves a larger number of participants (from dozens to thousands) with weak or even no goals. The focus is on observing behavioral patterns such as topic diffusion, group polarization, and the emergence of opinion leaders. Its traits are long runtimes, heavy token consumption, and evaluation that depends on statistical features rather than any single output. The idea of “letting a bunch of agents post and chat in a forum on their own” belongs to this category: it is closer to a computational social-experiment platform than a content-production tool.
3. Adversarial Match Type (evaluation-oriented)
Two or more agents compete or debate under rule constraints, used to expose capability boundaries and test robustness. Its traits are quantifiable results (win rate, score, speed of convergence toward agreement)—a low-cost test bed for comparing different prompt strategies and different model-tiering schemes.
The key difference among the three lies in the termination condition: the role-division type runs until “the task is done,” the adversarial type runs until “a rule declares a loser,” and the simulation type can only terminate on “budget exhaustion or a turn limit.” Treating a simulation type as if it were a role-division type is the most common root cause of runaway costs.
3. Reference Architecture: Five Layers and One Loop
3.1 Orchestration Layer
The orchestration layer decides “who speaks when” and is the true control center of a multi-agent system. There are three common scheduling strategies:
- Round-robin: The simplest to implement—fair but inefficient, and prone to producing large numbers of low-information echoing remarks;
- Explicit rules: Triggered by role order or dependency relationships, e.g., “the reviewer must wait until both proposers have spoken”;
- Attention routing: A lightweight role or a retrieval score decides the next speaker, so relevant parties respond first.
In practice, a hybrid of rules as a fallback + attention for optimization is recommended: rules keep the flow from going out of control, while optimization raises information density.
3.2 Message and Protocol Layer
Don’t use free text as the only communication medium. A stable message envelope should be a parseable, structured object:
from dataclasses import dataclass, fieldfrom enum import Enumimport time, uuidclass MsgType(str, Enum):MESSAGE = "message" # a role's utteranceSUMMARY = "summary" # compressed summary of historySYSTEM = "system" # orchestration instruction@dataclassclass Envelope:session_id: strturn: intsender: strrecipients: list[str]msg_type: MsgTypecontent: strreply_to: str | None = Nonemsg_id: str = field(default_factory=lambda: uuid.uuid4().hex)created_at: float = field(default_factory=time.time)
Structured envelopes bring three direct benefits: reply_to makes the conversation graph reconstructable; msg_type keeps context compression from mixing into the raw corpus; sender/recipients support directed delivery, avoiding broadcasting every message to all participants.
3.3 State and Memory Layer
Maintain three kinds of state: short-term context (a sliding window of messages), long-term memory (role preferences, confirmed facts, conclusion entries), and a shared blackboard (current task state, unresolved disagreements, draft artifacts). The key design principle is put conclusions on the blackboard and leave the process in the logs. Repeatedly injecting the full text of a long conversation into the context is a major source of token waste; entries on the blackboard are usually only a few hundred words and can be shared across all participants at low cost.
3.4 Orchestration Loop and Budget Guardrails
def run_session(agents, scheduler, budget, blackboard, max_turns=40):turn = 0while turn < max_turns and budget.remaining() > 0:speaker = scheduler.next_speaker(blackboard)msgs = blackboard.tail(speaker.context_window)if blackboard.should_compress(turn):msgs.append(blackboard.summary_msg(keep_last=8))reply = agents[speaker].generate(prompt=build_prompt(speaker.role, blackboard.board, msgs),max_tokens=budget.per_turn(speaker),)budget.charge(speaker, reply.usage)blackboard.append(Envelope(session_id=blackboard.session_id, turn=turn,sender=speaker.name, recipients=speaker.peekable(blackboard),msg_type=MsgType.MESSAGE, content=reply.text,))if scheduler.should_stop(blackboard):breakturn += 1return blackboard.freeze()
The budget check must be placed in the loop condition rather than at the end of the loop body; otherwise a single overlong generation is enough to blow past the per-session cost ceiling.
3.5 Execution and Security Layer
When agents can call tools (write files, query databases, issue network requests), messages between them must be treated as untrusted input. If agent A’s utterance carries an embedded instruction fragment, agent B should not execute it unconditionally—this is the amplified version of prompt injection in a multi-agent topology, where the attack surface expands from “user input” to “any agent’s output.” The implementation requirements include: routing all tool calls through a sandbox, granting least privilege per role, forcing human confirmation for actions involving deletion or outbound sending, and injecting secrets through a dedicated secrets-management capability rather than writing them into prompts.
4. Cost Control: Turning “Burning Tokens” into a Budgetable Engineering Problem
The cost of a multi-agent conversation does not grow linearly. With N participants and T turns, if every turn injects the complete history into every participant, the magnitude approaches O(N²T). Four techniques can bring it back into a controllable range:
- Context compression: Periodically summarize early dialogue into a structured summary, keeping only the most recent few turns of raw text. The summary itself is a call, so set a trigger threshold (e.g., compress only after exceeding K thousand tokens) to avoid the compression overhead exceeding its benefit.
- Model-tier routing: Hand key decisions (convergence judgments, conflict arbitration, final artifact generation) to more capable models, and filler remarks to low-cost models. This is especially suited to simulation scenarios, where the quality of any single utterance has limited impact on the conclusion.
- Prefix reuse and batch scheduling: Multiple calls for the same role, same system prompt, and same blackboard share a stable prefix, which can leverage context-caching capabilities on the inference side; scenarios without real-time requirements can switch to batch asynchronous submission.
- Budget guardrails and circuit breaking: Account along three dimensions—session/role/turn—set a total per-session cap, a per-role quota, and a concurrency limit; when a threshold is triggered, degrade to “only key roles speak” or end the session directly and persist intermediate artifacts.
Supporting observability is equally important: generate a trace ID that spans the entire pipeline for each session, record each turn’s input/output tokens, latency, model tier, and retry count, and configure alerts for abnormal cost growth. When deploying on the cloud, these capabilities are typically implemented through a combination of common product categories—object storage (for session archives), message queues (to decouple asynchronous delivery between agents), container platforms (to host concurrent runtimes), and logging and monitoring/alerting services (for tracing and cost observability)—rather than relying on the proprietary features of a single component.
5. Evaluation: Facing the Question of “Looks Like Intelligence”
This returns to a more fundamental question: if a group of agents’ output looks intelligent, how do you judge whether it is actually intelligent? This is the classic “Chinese Room” objection restated in a multi-agent context. The honest engineering answer is: behavioral observability and whether “understanding” exists internally are two different things—the former can be measured, while the latter cannot be determined from output alone. So the viable path is not to reach a metaphysical conclusion but to break evaluation down into repeatable, comparable behavioral metrics.
Layer 1: Single-agent baseline. First fix the other conditions and measure only each role’s ability to complete the task on its own. If the single-agent baseline is not met, the “collaboration gains” of a multi-agent setup cannot be discussed at all—many so-called collective-intelligence improvements are actually just splitting one strong role into several weak roles and adding a summarization step.
Layer 2: Interaction quality. Focus on role consistency (whether personality drift occurs), utterance relevance (whether it genuinely responds to the previous turn), information gain (repetition rate), and conflict-handling ability (whether disagreements are explicitly recognized and resolved).
Layer 3: Emergence and output. For the role-division type, look at artifact pass rate and human ratings; for the simulation type, statistics such as topic diversity, speed of opinion convergence, and evolution of group distribution; for the adversarial type, win rate and the number of rounds to converge on disagreement.
On methodology, offline replay + dual-track scoring is recommended: fix a seed input and scheduling strategy to guarantee reproducibility, and score using both human sampling and automated model review, periodically calibrating the automated reviewer’s bias against human results. Automated model review suffers from position bias and self-preference and should not be the sole judge. In addition, every experiment must record the role settings, scheduling strategy, model tiers, and budget parameters—evaluation results without experimental conditions are not reproducible and have no comparative value.
6. Implementation Checklist
- First define the form (role-division / simulation / adversarial), then determine the termination condition and evaluation metrics—not the other way around;
- Replace free-text communication with structured message envelopes, leaving room for conversation-graph reconstruction and context compression;
- Put conclusions on the blackboard and processes in the logs; use shared state instead of repeatedly injecting the raw history;
- Move the budget check into the loop condition, account along the three dimensions of session/role/turn, and configure circuit breaking;
- Treat inter-agent messages as untrusted input, sandbox all tool calls uniformly, and enforce least-privilege constraints;
- Establish a single-agent baseline before talking about collaboration gains; evaluation must be bound to reproducible experimental conditions.
The value of multi-agent conversations lies not in “letting agents chat noisily” but in decomposing complex reasoning, review, and simulation tasks into an engineerable process that is orchestrable, observable, and budgetable. Treat it as a distributed system—with protocols, scheduling, state management, cost guardrails, and evaluation baselines—and it can remain stable and controllable even as it scales.
