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 →