AutoGen: A programming framework for agentic AI
来源: GitHub (microsoft/autogen)
原文链接: https://github.com/microsoft/autogen
抓取时间: 2026-04-23
原始语言: 英文
⚠️ Maintenance Mode
AutoGen is now in maintenance mode. It will not receive new features or enhancements and is community managed going forward.
New users should start with Microsoft Agent Framework. Existing users are encouraged to migrate using the AutoGen → Microsoft Agent Framework migration guide.
Microsoft Agent Framework (MAF) is the enterprise-ready successor to AutoGen. Microsoft Agent Framework is now available as a production-ready release: stable APIs, and a commitment to long-term support. Whether you're building a single assistant or orchestrating a fleet of specialized agents, Microsoft Agent Framework 1.0 gives you enterprise-grade multi-agent orchestration, multi-provider model support, and cross-runtime interoperability via A2A and MCP.
Installation
AutoGen requires Python 3.10 or later.
pip install -U "autogen-agentchat" "autogen-ext[openai]"
For no-code GUI (AutoGen Studio):
pip install -U "autogenstudio"
Quick Example
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())
*以上内容由 AI Field Notes 自动抓取翻译,如有侵权请联系删除。*