預設支援 OpenAI GPT-3.5、GPT-4 系列模型,並已擴充支援 Anthropic Claude 以及 Azure OpenAI 等模型接口 (What is LangGraph? | IBM)。
開源社群也為 LangGraph 增加了對其他模型的支援,透過 LLM API 設定可以切換不同模型 (What is LangGraph? | IBM)。
例如,可整合本地 LLM 推理服務(如 LLaMA-FastChat、Ollama)來使用 Meta 的 LLaMA 模型 (What is LangGraph? | IBM)。
LangGraph 與 LangChain 元件整合,使更換模型供應商相當簡單 —— 例如一行程式即可改用 Google Gemini 模型(透過 ChatGoogleGenerativeAI 介面) (How to Implement a GenAI Agent using Autogen or LangGraph | by Lak Lakshmanan | TDS Archive | Medium)。
此外,LangGraph 支援 OpenAI 函數調用功能與工具使用
開發者可在節點中定義工具函式,代理會依照對話狀態選擇適當函式執行。
LangGraph 也能結合 Anthropic 的 Model Context Protocol (MCP) 標準,以統一的方式連接外部資料源和工具,提升代理與外部環境交互的能力 (GitHub - esxr/langgraph-mcp: LangGraph solution template for MCP) (GitHub - esxr/langgraph-mcp: LangGraph solution template for MCP)。
AutoGen(由微軟研究院開源)是一款多代理對話協作框架,強調讓多個 LLM 代理彼此對話來完成任務 (AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation - Microsoft Research)。
研究人員已用 AutoGen 構建多種試驗應用,涵蓋數學解題、程式編寫、問答系統、供應鏈優化、線上決策以及娛樂遊戲等領域 (AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation - Microsoft Research)。
具體案例包括:
讓一個「寫程式代理」與一個「除錯代理」合作完成代碼任務 (Microsoft's AutoGen. A guide to code-executing agents | by Tereza Tizkova | E2B — Cloud runtime for AI agents | Medium)—— 一個代理根據使用者需求產生程式碼,另一代理審視並修正錯誤,必要時再交由下一步的代理(如執行結果可視化)處理 (Microsoft's AutoGen. A guide to code-executing agents | by Tereza Tizkova | E2B — Cloud runtime for AI agents | Medium)。
這種專家代理分工模式已被用於資料分析等場景,例如結合語音識別與翻譯:
一個代理使用 OpenAI Whisper 轉錄音檔文字,另一代理再將文字翻譯成目標語言 (Multi-Agent AutoGen with Functions - Step-by-Step with Code Examples | by Dr. Ernesto Lee | Medium)。
AutoGen 自 2023 年推出以來在開源社群引起廣泛關注,Google Trends 顯示其熱度在多代理框架中名列前茅 (Microsoft's AutoGen. A guide to code-executing agents | by Tereza Tizkova | E2B — Cloud runtime for AI agents | Medium)。
初期主要支持 OpenAI ChatGPT (GPT-3.5、GPT-4) 作為對話引擎 (AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation - Microsoft Research);
隨後版本陸續擴增對 Anthropic Claude 的支援(v0.2.30 起提供 Anthropic API 客戶端) (Anthropic Claude | AutoGen 0.2 - Microsoft Open Source)。
AutoGen 0.4 開始強化非 OpenAI 模型整合,新增對 Google Gemini、Mistral AI、Together AI、Groq 等平台的客戶端,可使用超過 75 種不同的模型 (Enhanced Support for Non-OpenAI Models | AutoGen 0.2) (Enhanced Support for Non-OpenAI Models | AutoGen 0.2)。
例如,安裝相應擴展後,可直接在配置中指定 api_type 和模型名稱來調用 Amazon Bedrock 上的 Anthropic 或 Cohere 模型 (Enhanced Support for Non-OpenAI Models | AutoGen 0.2) (Enhanced Support for Non-OpenAI Models | AutoGen 0.2)。
此外 AutoGen 具備工具調用與結構化輸出能力:
代理可透過內建的函式執行模組調用外部工具(如執行程式碼、網路搜尋),或要求 LLM 產生特定格式輸出以便解析 (Multi-Agent AutoGen with Functions - Step-by-Step with Code Examples | by Dr. Ernesto Lee | Medium)。
隨著 Anthropic 推出 MCP 協定,AutoGen 也能輕鬆介接;
實踐證明只需幾行程式碼即可讓 AutoGen 代理使用 MCP 工具,統一調用例如資料庫查詢、郵件服務等功能 (How to Use Anthropic MCP Tools with Your AutoGen Agents (and any model)) (How to Use Anthropic MCP Tools with Your AutoGen Agents (and any model))。
AG2 是 AutoGen 的進化開源版本(被稱為「AgentOS」),由社群志願者維護並持續擴展 (GitHub - ag2ai/ag2: AG2 (formerly AutoGen): The Open-Source AgentOS. Join us at: https://discord.gg/pAbnFJrkgZ)。
AG2 強調生產級的多代理流程編排能力,已在企業中獲得應用。
例如資料工程平台 Nexla 使用 AG2 打造名為 “NOVA” 的資料工程助手 (Unlocking the Power of Agentic Workflows at Nexla with AG2 - AG2)。
透過 NOVA,使用者只需以自然語言描述資料轉換需求,AG2 代理即會將複雜資料管道自動拆解為可執行步驟並完成配置 (Unlocking the Power of Agentic Workflows at Nexla with AG2 - AG2) (Unlocking the Power of Agentic Workflows at Nexla with AG2 - AG2)。
Nexla CEO 表示 AG2 的人類介入機制和可靠性使得 NOVA 能在保障治理和準確性的同時,提供直觀高效的用戶體驗 (Unlocking the Power of Agentic Workflows at Nexla with AG2 - AG2)。
除了企業案例,AG2 官方還提供客服助理、遊戲設計、旅遊規劃等示範場景的工作流程範本,展示其在不同領域處理複雜任務的能力 (Key Features - AG2)。
AutoGen 時期實現的擴充在 AG2 中持續有效 —— 開發者可以輕鬆改用 Anthropic、Mistral、Llama2 等超過 75 種模型作為代理智慧引擎,只需安裝對應擴展並調整配置 (Enhanced Support for Non-OpenAI Models | AutoGen 0.2)。
AG2 也支持自定義模型客戶端:
例如可透過 Together.AI 或 HuggingFace 接口接入本地微調模型。
功能上,AG2 支持結構化提示輸出、檢索增強生成 (RAG)、代碼執行等進階能力 (GitHub - ag2ai/ag2: AG2 (formerly AutoGen): The Open-Source AgentOS. Join us at: https://discord.gg/pAbnFJrkgZ)。
代理之間的對話模式亦可定制,包括多代理群聊、巢狀對話、自主 / 人工混合等 (GitHub - ag2ai/ag2: AG2 (formerly AutoGen): The Open-Source AgentOS. Join us at: https://discord.gg/pAbnFJrkgZ)。
在工具使用方面,AG2 延續 AutoGen 的做法,允許註冊自定義工具函式供代理調用,並可將人類作為一種特殊代理插入回路中 (GitHub - ag2ai/ag2: AG2 (formerly AutoGen): The Open-Source AgentOS. Join us at: https://discord.gg/pAbnFJrkgZ)。
此外,AG2 與最新的 MCP 協定兼容良好 —— 開發者已示範只用兩行代碼就讓 AG2 代理接入 Anthropic MCP 工具伺服,實現與外部資料源的雙向連接 (How to Use Anthropic MCP Tools with Your AutoGen Agents (and any model)) (How to Use Anthropic MCP Tools with Your AutoGen Agents (and any model))。
MetaGPT 是由 DeepWisdom 公司開源的多代理協同框架,其特色是在軟體研發場景中扮演一整個 AI 軟體團隊 (What is MetaGPT ? | IBM )。
MetaGPT 將 GPT-4/GPT-3.5 等模型代理分配為不同專業角色(如產品經理、架構師、項目經理、工程師),並讓它們按照軟體開發的標準流程和 SOP 進行協作 (MetaGPT: A Multi-Agent Framework Revolutionizing Software Development | by Alexei Korol | Medium) (MetaGPT: A Multi-Agent Framework Revolutionizing Software Development | by Alexei Korol | Medium)。
只需輸入一句產品點子,它就能自動產出詳細的需求文檔、用戶故事、競品分析、資料結構設計、API 設計甚至代碼實現 (MetaGPT: A Multi-Agent Framework Revolutionizing Software Development | by Alexei Korol | Medium)。
例如,開發者輸入「製作一款類似 Flappy Bird 的簡單遊戲」,MetaGPT 會讓「產品經理代理」先生成需求和用戶故事,「架構師代理」設計系統結構,「工程師代理」編寫代碼,「測試代理」審查改進,最終輸出完整的項目說明與代碼存檔 (MetaGPT: A Multi-Agent Framework Revolutionizing Software Development | by Alexei Korol | Medium)。
這種架構在 2023 年引發關注,GitHub 上迅速累積了大量星標,展示了多代理分工協作進行元編程的潛力 (What is MetaGPT ? | IBM )。
MetaGPT 作為社群專案,提供了詳細的使用說明和 Docker 鏡像以簡化部署 (MetaGPT: A Multi-Agent Framework Revolutionizing Software Development | by Alexei Korol | Medium)。
使用者只需準備好 Python 環境(需求 Python 3.10 + 和 Node.js,用於繪製 Mermaid 圖等用途)及 OpenAI API Key,便可在本地運行 MetaGPT。 (MetaGPT: A Multi-Agent Framework Revolutionizing Software Development | by Alexei Korol | Medium)
安裝上可以透過 pip 安裝必要套件,或直接使用官方提供的 Docker 容器來避免環境配置問題。
由於 MetaGPT 大部分計算都在 OpenAI 的雲端完成(GPT-4 推理),本地運行時對硬體要求不高,普通 PC 即可執行其協調任務。
實測生成一個完整軟體項目可能耗費數美元等級的 API 點數(約使用 0.2 美元生成分析設計,2 美元生成全部代碼及文檔) (MetaGPT: A Multi-Agent Framework Revolutionizing Software Development | by Alexei Korol | Medium)。
AutoGPT 是一款由社群開發者 Significant Gravitas 在 GitHub 發布的開源代理項目 (Top 10 AutoGPT Use Cases to Explore in 2025 - Analytics Vidhya)。
它是較早引發廣泛關注的「自主 AI」代理之一,目標是讓 AI 自動連續地執行任務直至達成用戶給定的目標。
AutoGPT 在推出後被愛好者用於各種實驗性任務:
例如自動建立一個簡單的商業網站、分析市場數據後撰寫投資建議、作為個人助理制定待辦事項等等。
一些具體案例包括:
「Chef-GPT」自動搜尋食譜並產出購物清單、
「Crypto-GPT」自主抓取加密貨幣資訊進行分析,
甚至讓 AutoGPT 充當內容創作工具,從網路上蒐集資訊後撰寫文章草稿。
AutoGPT 的官方說明也提供了幾個內建代理實例:
其一會從 Reddit 熱門話題中自動生成短影片腳本,
另一個能監控 YouTube 頻道的新影片並生成摘要和社群貼文 (GitHub - Significant-Gravitas/AutoGPT: AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.) (GitHub - Significant-Gravitas/AutoGPT: AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.)。
AutoGPT 的部署相對需要一定技術背景,但官方提供了說明文件和 Docker 環境來簡化流程 (GitHub - Significant-Gravitas/AutoGPT: AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.)。
用戶可以選擇本地自托管:
需安裝 Python、Node.js(部分插件可能需要)和相關依賴,將 OpenAI API Key 等配置寫入檔案,然後透過命令行啟動代理 (GitHub - Significant-Gravitas/AutoGPT: AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.)。
官方建議使用 Docker 來一鍵啟動所需環境,以避免本地配置問題 (GitHub - Significant-Gravitas/AutoGPT: AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.)。
AutoGPT 開發團隊亦推出了雲端托管服務的候補名單,以提供即用型的雲端介面 (GitHub - Significant-Gravitas/AutoGPT: AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.)。
其內建內存機制會將對話內容和中間結果存入向量數據庫或本地檔案,以供後續步驟檢索 (Top 10 AutoGPT Use Cases to Explore in 2025 - Analytics Vidhya)。
資源需求方面,AutoGPT 對本地 CPU 和記憶體的需求取決於載入的插件多少;
例如執行瀏覽器插件會啟動無頭瀏覽器,佔用一些記憶體和網絡帶寬。
但最主要的資源消耗是來自頻繁的 GPT-4 API 調用,以及可能的文件讀寫。
在沒有本地模型推理的情況下,AutoGPT 不需要 GPU。
若使用圖像生成等插件(如 Stable Diffusion)並在本地執行,則需要具備相應 GPU。
一般而言,一個 AutoGPT 代理執行複雜任務可能持續數分鐘到數小時,在此期間需要穩定的網絡連線和足夠的 API 額度支撐。
為了監控代理,AutoGPT 帶有前端介面可在 VSCode 中查看代理思路和操作,也提供日誌與分析工具(如 agbenchmark 基準套件)幫助評估代理表現 (GitHub - Significant-Gravitas/AutoGPT: AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.)。
What is LangGraph? – IBM Technology Blog (2024) (What is LangGraph? | IBM) (What is LangGraph? | IBM) https://www.ibm.com/think/topics/langgraph
langchain-ai/langgraph (GitHub Repo) – Build resilient language agents as graphs (GitHub - langchain-ai/langgraph: Build resilient language agents as graphs.) (GitHub - langchain-ai/langgraph: Build resilient language agents as graphs.) https://github.com/langchain-ai/langgraph
AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation – Microsoft Research (2024) (AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation - Microsoft Research) https://www.microsoft.com/en-us/research/publication/autogen-enabling-next-gen-llm-applications-via-multi-agent-conversation-framework/
Microsoft's AutoGen: A guide to code-executing agents – Tereza Tizkova, E2B Medium (2023) (Microsoft's AutoGen. A guide to code-executing agents | by Tereza Tizkova | E2B — Cloud runtime for AI agents | Medium) (Microsoft's AutoGen. A guide to code-executing agents | by Tereza Tizkova | E2B — Cloud runtime for AI agents | Medium) https://medium.com/e-two-b/microsofts-autogen-8aefacbddfa3
Multi-Agent AutoGen with Functions – Step-by-Step with Code Examples – Dr. Ernesto Lee (2024) (Multi-Agent AutoGen with Functions - Step-by-Step with Code Examples | by Dr. Ernesto Lee | Medium) https://drlee.io/multi-agent-autogen-with-functions-step-by-step-with-code-examples-2515b3ab2ac6
Enhanced Support for Non-OpenAI Models (AutoGen 0.2 Blog) – Mark Sze et al., Microsoft (2024) (Enhanced Support for Non-OpenAI Models | AutoGen 0.2) https://microsoft.github.io/autogen/0.2/blog/2024/06/24/AltModels-Classes/
GitHub – ag2ai/ag2: The Open-Source AgentOS (AG2, formerly AutoGen) (GitHub - ag2ai/ag2: AG2 (formerly AutoGen): The Open-Source AgentOS. Join us at: https://discord.gg/pAbnFJrkgZ) (GitHub - ag2ai/ag2: AG2 (formerly AutoGen): The Open-Source AgentOS. Join us at: https://discord.gg/pAbnFJrkgZ) https://github.com/ag2ai/ag2
Unlocking the Power of Agentic Workflows at Nexla with AG2 – AG2 Docs User Story (2025) (Unlocking the Power of Agentic Workflows at Nexla with AG2 - AG2) (Unlocking the Power of Agentic Workflows at Nexla with AG2 - AG2) https://docs.ag2.ai/docs/user-stories/2025-02-11-NOVA/
How to Use Anthropic MCP Tools with Your AutoGen Agents (and any model) – Victor Dibia (2025) (How to Use Anthropic MCP Tools with Your AutoGen Agents (and any model)) (How to Use Anthropic MCP Tools with Your AutoGen Agents (and any model)) https://newsletter.victordibia.com/p/how-to-use-mcp-anthropic-mcp-tools
What is MetaGPT? – IBM Technology Blog (2024) (What is MetaGPT ? | IBM ) (What is MetaGPT ? | IBM ) https://www.ibm.com/think/topics/metagpt
MetaGPT: A Multi-Agent Framework Revolutionizing Software Development – Alexei Korol, Medium (2023) (MetaGPT: A Multi-Agent Framework Revolutionizing Software Development | by Alexei Korol | Medium) (MetaGPT: A Multi-Agent Framework Revolutionizing Software Development | by Alexei Korol | Medium) https://medium.com/@korolalexei/metagpt-a-multi-agent-framework-revolutionizing-software-development-f585fe1aa950
Top 10 AutoGPT Use Cases to Explore in 2025 – Analytics Vidhya (2024) (Top 10 AutoGPT Use Cases to Explore in 2025 - Analytics Vidhya) https://www.analyticsvidhya.com/blog/2023/12/autogpt-use-cases/
Significant-Gravitas/AutoGPT (GitHub Repo) – AutoGPT: Build, Deploy, and Run AI Agents (GitHub - Significant-Gravitas/AutoGPT: AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.) (GitHub - Significant-Gravitas/AutoGPT: AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.) https://github.com/Significant-Gravitas/AutoGPT