AutoGen#

AutoGen

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

Magentic-One CLI PyPi magentic-one-cli

A console-based multi-agent assistant for web and file-based tasks. Built on AgentChat.
pip install -U magentic-one-cli
m1 "Find flights from Seattle to Paris and format the result in a table"
Studio PyPi autogenstudio

一个用于原型设计和管理代理的应用,无需编写代码。 基于AgentChat构建。

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

AgentChat PyPi autogen-agentchat

A programming framework for building conversational single and multi-agent applications. Built on Core. Requires 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())

如果您正在构建对话代理,请从这里开始。从AutoGen 0.2迁移?

Core PyPi autogen-core

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

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

  • 多代理协作研究。

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

如果您正在构建工作流或分布式代理系统,请从这里开始。

Extensions PyPi autogen-ext

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