AutoGen#

AutoGen

用于构建 AI 代理和应用程序的框架

Studio PyPi autogenstudio

一个基于 Web 的 UI,用于在不编写代码的情况下进行代理原型设计。基于 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 迁移?

核心 PyPi autogen-core

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

  • 用于业务流程的确定性和动态代理工作流。

  • 多代理协作研究。

  • 用于多语言应用程序的分布式代理。

如果您要认真构建多代理系统,请从这里开始。

扩展 PyPi autogen-ext

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