Agentic AI Architecture: Design and Practice for Efficient Multi-Agent Collaboration

    This article explains how agentic AI architecture breaks a monolithic model into clear execution units coordinated by an LLM. It covers a layered design of control, communication, and execution layers, three key technical features, the evolution of multi-agent systems, industry practice, and a practical checklist for implementation.

    1. Why Agentic AI Architecture Is Needed

    Single-model, monolithic applications quickly hit limits in open-domain tasks: limited context capacity, blurred responsibility boundaries, and failures that are hard to isolate. The starting point of agentic AI architecture is to split “one all-capable model” into “a set of execution units with clear responsibilities,” with a large language model (LLM) acting as the central unit for understanding, planning, and orchestration. The concept covers software architecture paradigms for multi-agent collaboration, aiming to solve three persistent problems in multi-agent conversations: low collaboration efficiency, information that is out of sync, and unreasonable task decomposition.

    What the LLM provides here is not “longer text generation” but three key capabilities: context integration (converging facts scattered across multiple turns into a consistent state), intent parsing (mapping vague expressions into executable goals), and dynamic planning (producing a correctable execution path when information is incomplete). These three capabilities map directly to solutions for the three problems above.

    2. Layered Architecture: Control Layer, Communication Layer, Execution Layer

    2.1 Control Layer: The Orchestrator Agent and the Task Tree

    The control layer uses an “orchestrator agent + execution agents” structure. The orchestrator agent parses the user request and outputs a task tree: the root node is the overall goal, child nodes are independently verifiable subtasks, and each node carries dependencies, input/output contracts, and acceptance conditions. Execution agents are only responsible for delivering leaf nodes and must not exceed their authority to modify the global goal.

    Dynamic reweighting of the task tree relies on the LLM’s zero-shot reasoning ability: when a child node fails repeatedly or returns low-confidence results, the orchestrator agent lowers its weight, raises the weight of alternative paths, or even rewrites the subtree. A sample structure is shown below:

    1. {
    2. "task_id": "T-1024",
    3. "goal": "Generate and validate the quarterly risk report",
    4. "children": [
    5. {"id": "T-1", "role": "data_agent", "deps": [], "weight": 0.9, "acceptance": "field completeness >= 0.98"},
    6. {"id": "T-2", "role": "analysis_agent", "deps": ["T-1"], "weight": 0.6, "acceptance": "conclusions are traceable"},
    7. {"id": "T-3", "role": "review_agent", "deps": ["T-2"], "weight": 0.4, "acceptance": "all conflicts are closed"}
    8. ]
    9. }

    2.2 Communication Layer: Standardized Messages and Context Reuse

    The communication layer needs a machine-verifiable contract. A common industry practice is to define a three-part message based on JSON: intent, context, and data. The intent is used for routing and idempotency checks, the context carries confirmed facts, and the data holds only the new payload for the current turn. The orchestrator and execution agents avoid repeatedly asking for confirmed information by parsing the context field, which is a direct way to reduce conversation turns.

    1. {
    2. "intent": "query_balance",
    3. "context": {"user_id": "u-88", "confirmed": ["identity verified", "billing period = 2024Q4"]},
    4. "data": {"account": "A-01"}
    5. }

    Engineering practice also requires adding: message idempotency keys, version numbers, timeout and retry policies, and a forward-compatibility rule of “ignore unknown fields.”

    2.3 Execution Layer: Domain Adaptation and Conflict Resolution

    Applying a general-purpose LLM directly to specialized scenarios often leads to terminology drift and inconsistent definitions. The execution layer should perform domain-adaptation fine-tuning, with training data covering multi-turn conversation samples and conflict-resolution cases (for example, the basis for adjudication when two agents give different values for the same metric). Conflict resolution should follow an explicit priority order — “authoritative data source first > recency first > confidence first” — rather than leaving it to the model’s discretion.

    3. Three Key Technical Features

    Dynamic role assignment: embedding vector similarity is used to measure the match between a task description and an agent’s capability profile, enabling elastic scaling; when similarity falls below a threshold, it triggers registration of a new role or a human fallback, avoiding “forcing a task onto an agent.”

    Context window optimization: a sliding window compression retains recent, highly relevant segments, combined with an external memory store (which can rely on general capabilities such as object storage, vector retrieval services, and caching) to persist long-term facts, achieving “a slimmer context without losing memory.”

    Collaboration efficiency metrics: the task completion rate measures the effectiveness of results, the turn efficiency ratio (effective advancing turns / total turns) measures communication cost, and the conflict resolution rate measures the level of consistency governance. All three must be observed together; looking at the completion rate alone masks high turn consumption.

    4. Evolution

    Early multi-agent systems relied on rule engines or simple natural language processing models to divide work, performing stably in fixed workflows but quickly failing when facing dynamic semantics and collaborative decisions. After the introduction of LLMs, context integration, intent parsing, and dynamic planning became usable capabilities, and the LLM-driven multi-agent conversation architecture took shape, evolving along three paths: self-evolving architectures (automatically rewriting strategies based on failure samples), multimodal integration (text, images, and voice entering the same task tree), and edge computing deployment (performing lightweight inference and preprocessing near the data source).

    5. Industry Practice and Impact

    In strongly regulated industries such as finance, a common form is a hybrid AI architecture combining on-premises deployment with public cloud, built and managed uniformly through an enterprise-level AI architecture, embedding capabilities into core processes such as mobile banking, credit, and risk control; on the client side, a user’s AI agent handles information retrieval, task scheduling, and service access, while on the employee side, agents assist and autonomously compose calls. The evolution of AI applications therefore runs through four stages — data, execution, learning, and feedback — with the scope expanding from conversation to intent understanding, autonomous planning, and proactive execution. Baidu AI Cloud continues to invest in agents and enterprise-level AI engineering, providing more flexible and efficient paths for automated collaboration in scenarios such as smart manufacturing and smart cities.

    6. Implementation Checklist

    1. Define the contract before writing prompts: establish the intent/context/data three-part structure first to reduce rework later.
    2. Make the task tree verifiable: write acceptance conditions for every node, otherwise dynamic reweighting has no basis.
    3. Make conflict-adjudication rules explicit: put priorities in configuration, not in the model’s intuition.
    4. Launch the three metrics together: completion rate, turn efficiency ratio, and conflict resolution rate.
    5. Layer memory: short-term sliding window + long-term external memory store, with a clear eviction policy and audit trail.
    6. Canary release and rollback: validate new roles and new strategies on shadow traffic first, with automatic fallback to the previous task tree version on anomalies.