AutoGen#

AutoGen

一个用于构建AI智能体和应用程序的框架

Studio PyPi autogenstudio

一个基于Web的用户界面,用于无需编写代码即可使用智能体进行原型开发。基于AgentChat构建。

pip install -U autogenstudio
autogenstudio ui --port 8080 --appdir ./myapp

如果您是AutoGen新手,并且希望在不编写代码的情况下使用智能体进行原型开发,请从这里开始。

AgentChat PyPi autogen-agentchat

一个用于构建对话式单智能体和多智能体应用程序的编程框架。基于Core构建。需要Python 3.10+。
# pip install -U "autogen-agentchat" "autogen-ext[openai]"
import asyncio
from autogen_agentchat.agents import AssistantAgent
from autogen_ext.models.openai import OpenAIChatCompletionClient

async def main() -> None:
    agent = AssistantAgent("assistant", OpenAIChatCompletionClient(model="gpt-4o"))
    print(await agent.run(task="Say 'Hello World!'"))

asyncio.run(main())

如果您使用Python进行智能体原型开发,请从这里开始。正在从AutoGen 0.2迁移?

Core PyPi autogen-core

一个事件驱动的编程框架,用于构建可扩展的多智能体AI系统。示例场景:

  • 用于业务流程的确定性和动态智能体工作流。

  • 多智能体协作研究。

  • 用于多语言应用程序的分布式智能体。

如果您认真考虑构建多智能体系统,请从这里开始。

扩展 PyPi autogen-ext

与外部服务或其他库交互的Core和AgentChat组件实现。您可以查找和使用社区扩展或创建自己的扩展。内置扩展示例: