Zubnet AI学习Wiki › Multi-Agent Systems
Using AI

Multi-Agent Systems

Multi-Agent, Agent Swarm
多个 AI agent 协作、辩论、或专门化来解决单个 agent 无法处理的问题的架构。每个 agent 可能有不同角色(研究者、编码者、审查者)、不同工具、不同模型。它们通过结构化消息、共享内存、或直接交接沟通。

为什么重要

多 agent 系统是复杂 AI 任务的新兴范式。一次 LLM 调用处理一个问题。一个 agent 处理一个多步任务。一个多 agent 系统处理需要不同专长、并行工作、或通过审查做质量保证的任务。当 AI 从聊天机器人转向自主工作流,多 agent 架构变成自然的 scaling 模式。

Deep Dive

Common patterns: the supervisor pattern (one "manager" agent delegates to specialized "worker" agents), the debate pattern (agents argue opposing positions to reach a more balanced conclusion), the pipeline pattern (agents process sequentially, each refining the previous output), and the peer pattern (agents work in parallel on different aspects of a problem and merge results).

Frameworks

Several frameworks support multi-agent systems: AutoGen (Microsoft) enables agents to converse with each other, CrewAI provides role-based agent teams, LangGraph handles complex agent workflows as state machines, and Anthropic's agent SDK supports multi-agent orchestration. The choice depends on complexity: simple handoffs don't need a framework; complex workflows with branching logic and human-in-the-loop approval benefit from structured orchestration.

The Cost Question

Multi-agent systems multiply LLM API costs — if three agents each make five calls to solve a problem, that's 15x the cost of a single call. The value proposition is that the quality improvement justifies the cost for high-stakes tasks. A code review agent that catches bugs before deployment saves more than the API calls cost. But for simple tasks, a single well-prompted model is usually sufficient and far cheaper.

相关概念

← 所有术语
← Moonshot AI Multi-Head Attention →