经 AI Skill Hub 精选评估,AutoGen 多智能体协作框架 获评「强烈推荐」。在 GitHub 上收获超过 58.0k 颗 Star,这款AI工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 8.8 分,适合有一定技术背景的用户使用。
微软开源的AI智能体编程框架,用于构建可协作的自主AI系统。支持多智能体对话、工作流编排和复杂任务自动化,适合AI开发者、研究者构建企业级AI应用。
AutoGen 多智能体协作框架 是一款基于 Python 开发的开源工具,专注于 多智能体、AI工作流、自动化编程 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
微软开源的AI智能体编程框架,用于构建可协作的自主AI系统。支持多智能体对话、工作流编排和复杂任务自动化,适合AI开发者、研究者构建企业级AI应用。
AutoGen 多智能体协作框架 是一款基于 Python 开发的开源工具,专注于 多智能体、AI工作流、自动化编程 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:pip 安装(推荐)
pip install autogen
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install autogen
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/microsoft/autogen
cd autogen
pip install -e .
# 验证安装
python -c "import autogen; print('安装成功')"
# 命令行使用
autogen --help
# 基本用法
autogen input_file -o output_file
# Python 代码中调用
import autogen
# 示例
result = autogen.process("input")
print(result)
# autogen 配置文件示例(config.yml) app: name: "autogen" debug: false log_level: "INFO" # 运行时指定配置文件 autogen --config config.yml # 或通过环境变量配置 export AUTOGEN_API_KEY="your-key" export AUTOGEN_OUTPUT_DIR="./output"
<a name="readme-top"></a>
AutoGen requires Python 3.10 or later.
```bash
pip install -U "autogen-agentchat" "autogen-ext[openai]"
The current stable version can be found in the [releases](https://github.com/microsoft/autogen/releases). If you are upgrading from AutoGen v0.2, please refer to the [Migration Guide](https://microsoft.github.io/autogen/stable/user-guide/agentchat-user-guide/migration-guide.html) for detailed instructions on how to update your code and configurations.
bash
pip install -U "autogenstudio" ```
import asyncio from autogen_agentchat.agents import AssistantAgent from autogen_agentchat.ui import Console from autogen_ext.models.openai import OpenAIChatCompletionClient from autogen_ext.tools.mcp import McpWorkbench, StdioServerParams
async def main() -> None: model_client = OpenAIChatCompletionClient(model="gpt-4.1") server_params = StdioServerParams( command="npx", args=[ "@playwright/mcp@latest", "--headless", ], ) async with McpWorkbench(server_params) as mcp: agent = AssistantAgent( "web_browsing_assistant", model_client=model_client, workbench=mcp, # For multiple MCP servers, put them in a list. model_client_stream=True, max_tool_iterations=10, ) await Console(agent.run_stream(task="Find out how many contributors for the microsoft/autogen repository"))
asyncio.run(main()) ```
Warning: Only connect to trusted MCP servers as they may execute commands in your local environment or expose sensitive information.
The following samples call OpenAI API, so you first need to create an account and export your key as export OPENAI_API_KEY="sk-...".
Create an assistant agent using OpenAI's GPT-4o model. See other supported models.
import asyncio
from autogen_agentchat.agents import AssistantAgent
from autogen_ext.models.openai import OpenAIChatCompletionClient
async def main() -> None:
model_client = OpenAIChatCompletionClient(model="gpt-4.1")
agent = AssistantAgent("assistant", model_client=model_client)
print(await agent.run(task="Say 'Hello World!'"))
await model_client.close()
asyncio.run(main())
业界领先的多智能体框架,架构成熟、功能完整、社区活跃。5.8w星标证明生产可用性强,特别适合构建复杂AI系统。
该工具使用 CC-BY-4.0 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
📄 CC-BY-4.0 — 请查阅原始协议条款了解具体使用限制。
AI Skill Hub 点评:AutoGen 多智能体协作框架 的核心功能完整,质量优秀。对于AI爱好者来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | autogen |
| 原始描述 | 开源AI工作流:A programming framework for agentic AI。⭐58.0k · Python |
| Topics | 多智能体AI工作流自动化编程开源框架Python |
| GitHub | https://github.com/microsoft/autogen |
| License | CC-BY-4.0 |
| 语言 | Python |
收录时间:2026-05-14 · 更新时间:2026-05-26 · License:CC-BY-4.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。