Conversational Multi-Agent Configuration: Architecture and a Practical Rollout Guide
Configuring conversational multi-agents is usually hard because the runtime, the model, and the context change at the same time. This guide keeps a reusable decision order, two practical topologies, explicit boundaries for context and tools, and checks for rate limits, model switches, and acceptance.
Configuring multi-agent systems is rarely hard because the concept is unclear. It is hard because the environment, the model, and the context change at the same time. A flow that works on one machine can stall on routing, tool calls, or session continuation after you change the machine, the model service, or a system prompt. If official docs do not fully cover multi-agent setups, abstract the problem into a reusable architecture and land it against your own runtime. Do not copy the sequence of steps that happened to succeed once.
Fix the problem order, not the commands
Tutorials go stale because readers do not share an operating system, network egress, model quota, or the history already injected into a session. A more stable approach is a fixed decision order: confirm the runtime version and where configuration lives, confirm that the model can actually be called, and only then set agent count, routing rules, and channel bindings. If any step fails, do not add another agent. Later errors will hide each other.
Upgrade to the currently maintained runtime version first. Follow that runtime’s official documentation. If the upgrade fails, check network access, permissions, and whether local edits have locked the config files before you change the architecture. Prefer a model service with a simple call path and clear quota and compliance boundaries. Cross-region accounts and unstable proxy paths mix “the agent is misconfigured” with “the upstream is unavailable.” Rate limiting usually shows up as a burst of rejected requests. That is not unique to multi-agent systems, but extra agents multiply calls, so set concurrency and retry ceilings in advance.
Switching models is not a rename. System prompts, tool descriptions, context length, and output-format constraints can all change. After a switch, regress against the same fixed questions: can the system tell which agent should handle the request, can it refuse an out-of-scope tool, and does a long conversation still carry history that should not be shared? If the new model is weaker, make routing instructions shorter and more explicit. Do not rely on the model to infer the policy.
Two topologies that are enough
For most conversational cases, two shapes are enough. You do not need a free-form mesh of agents calling each other.
The first is a single entry with multiple agents. Users talk to one bot. Behind it are a primary agent and several sub-agents. The primary agent interprets intent, selects a sub-agent, aggregates results, and controls the reply the user sees. Split sub-agents by responsibility, not by adding as many as you can think of. A common split is retrieval, execution, and review: retrieval only reads knowledge, only execution may call tools with side effects, and review does not promise outcomes directly to the user. A single entry gives a consistent experience, centralized permissions, and a manageable session id. The cost is that the primary agent becomes a bottleneck, so prompts and routing rules must be explicit.
The second is multiple entries with multiple agents. The primary agent and one or more sub-agents each bind to their own conversation entry, and sessions are not shared. That fits work already split by group, department, or risk level. It is not a copy of the first pattern: each entry needs its own identity, quota, logs, and failure fallback. Build this only after you understand the single-entry design. The point is one-to-one binding and isolation by default, so two bots do not accidentally read or write the same session store.
Channels that do not support group chat, or that cannot tell speakers apart, should not be the orchestration entry. If the entry cannot reliably pass who is speaking, which session it is, and whether the agent was mentioned, routing collapses into guesswork.
Boundaries you must write down
Each agent needs at least four things: a one-sentence responsibility, the tools it may use, the context it may see, and who receives the work if it fails. The primary agent’s prompt should list routable intents and explicit refusal conditions—for example, writes must go to the execution agent, not be called by the primary agent itself. A sub-agent should not see another sub-agent’s full tool secrets or unrelated session history.
Isolate context by session id. With one entry, the primary agent can keep the history the user sees and pass only a summary of the current task to a sub-agent. Do not forward the full history as-is. That wastes context length and can carry sensitive content from other topics. With multiple entries, do not share memory by default. If the business must share a conclusion, sync only reviewed structured results—task status, a conclusion summary, and cited sources—not the raw dialogue.
Apply least privilege to tools. A read-only agent should not hold credentials that write, send data outward, or change configuration. Keep all secrets in the runtime’s secret store. Do not put them in prompts, and do not print them to ordinary logs while debugging.
A useful split is a configuration idea, not a field name tied to one product:
- Entry: accept messages, authenticate, and create a session id.
- Primary agent: classify intent, choose at most one responsible sub-agent, and merge the reply.
- Sub-agent: finish one task and return a structured result plus what is uncertain.
- Policy layer: cap tool calls per turn, timeouts, and which errors may be retried.
Rate limits, switches, and acceptance
Multi-agent setups turn one user message into several model calls. Set a global concurrency limit, per-session queuing, and exponential backoff. If rate rejections continue, degrade: pause non-critical sub-agents, or have the primary agent return a clear “retry later” status instead of retrying forever. Keep the model-switch window short and retain the old configuration for rollback. After the switch, compare the same cases: routing stays stable, tools are not called by mistake, and long context does not drop critical constraints.
Acceptance is not “it replied with a sentence.” Cover at least normal routing, deliberate privilege escalation, tool failure, upstream rate limiting, whether memory leaks after a session restart, and whether two entries cross sessions. For each failure, record an input summary, the selected agent, the tool name, and the error class, with user content redacted. One article cannot enumerate every environment difference. A checklist of these checks is more useful than remembering one specific error.
If you run orchestration on a cloud container platform and watch call volume and error rate with logs and monitoring alerts, troubleshooting is much faster. General cloud infrastructure such as Baidu AI Cloud can provide compute, storage, logging, and monitoring. How agents are divided, and how context is isolated, still depends on your architecture, not on any particular hosted environment.
