從單一到多元:多代理系統

AI Agents 入門

Adel Nehme

VP of AI Curriculum, DataCamp

真實世界的客服支援

$$ 客服單類型

  • 帳務爭議,需財務知識
  • 技術問題,需工程支援
  • 法規遵循詢問,需合規知識
  • 產品推薦,需銷售判斷
AI Agents 入門

真實世界的客服支援

Ticket Type Knowledge Resources Tools to Access
Billing disputes Internal finance documentation, payment policy wiki, transaction logs Secure payment APIs, CRM with billing integration
Technical issues Engineering runbooks, system architecture docs, incident postmortems Observability tools (e.g., Datadog), ticketing system, internal dashboards
Legal compliance questions Legal knowledge base, compliance manuals, GDPR/CCPA documentation Contract management system, legal Q&A assistant, document retrieval tools
Product recommendations Product feature matrix, customer personas, sales playbooks Recommendation engine, CRM with lead tracking, chatbot assistant
AI Agents 入門

單一代理的難題

邏輯愈來愈複雜

模型提示包含大量 if-else 情境與邊界案例

$$

工具負擔過重

單一代理需呼叫種類繁多的工具

1 OpenAI, A Practical Guide to Building Agents, https://cdn.openai.com/business-guides-and-resources/a-practical-guide-to-building-agents.pdf
AI Agents 入門

多代理系統

多代理系統

單一代理系統

單一模型配備合適工具與指令,在迴圈中執行工作流程

多代理系統

由多個協同代理共同執行工作流程

1 OpenAI, A Practical Guide to Building Agents, https://cdn.openai.com/business-guides-and-resources/a-practical-guide-to-building-agents.pdf
AI Agents 入門

管理者模式

$$

manager_pattern

1 OpenAI, A Practical Guide to Building Agents, https://cdn.openai.com/business-guides-and-resources/a-practical-guide-to-building-agents.pdf
AI Agents 入門

管理者模式實例

$$

1 OpenAI, A Practical Guide to Building Agents, https://cdn.openai.com/business-guides-and-resources/a-practical-guide-to-building-agents.pdf
AI Agents 入門

去中心化模式

$$ decentralized_pattern

1 OpenAI, A Practical Guide to Building Agents, https://cdn.openai.com/business-guides-and-resources/a-practical-guide-to-building-agents.pdf
AI Agents 入門

去中心化模式實例

$$ decentralized example

1 OpenAI, A Practical Guide to Building Agents, https://cdn.openai.com/business-guides-and-resources/a-practical-guide-to-building-agents.pdf
AI Agents 入門

新興代理架構

1 LangGraph Multi Agent Systems, https://langchain-ai.github.io/langgraph/concepts/multi_agent/
AI Agents 入門

從單一到多元:多代理系統

多代理系統

1 Image generated with GPT-4o
AI Agents 入門

一起來練習吧!

AI Agents 入門

Preparing Video For Download...