AutoGPT 平台是一个强大的系统,它允许用户通过一种可视化的、基于图形的方法来创建、部署和管理连续的 AI 代理,以自动化复杂的工。本页面提供有关平台架构、关键组件和执行模型的技术概述。
有关经典 AutoGPT 实现的信息,请参阅 经典 AutoGPT。
AutoGPT 平台允许用户通过连接各种功能块来直观地构建 AI 自动化工作流。每个工作流(代理)都表示为一个有向图,其中
该平台由两部分组成
来源
AutoGPT 平台在前端用户界面和后端执行引擎之间具有清晰的划分。这种架构使用户能够通过直观的界面构建复杂的 AI 工作流,而后端则负责执行、状态管理和与外部服务的集成。
来源
AutoGPT 平台的核心是其基于图形的代理模型。每个代理都定义为一个有向图,其中包含执行特定操作的节点,以及定义数据流的边。
The graph system is built on these key entities
此模型表示系统中代理图的结构。每个图包含节点,节点通过链接连接。图是版本化的,允许用户创建同一代理的多个版本。
来源
Block System 提供用户可以在代理图中使用的构建块(节点类型)。每个块都有定义的输入和输出模式,并实现特定的功能。
Blocks are categorized into several types
Each block has a well-defined schema for its inputs and outputs, ensuring type safety and validation throughout the execution process.
来源
Execution Engine 负责处理代理图并按正确的顺序执行节点,管理数据流经图。
When a user runs an agent, the following process takes place
This execution model allows for parallelism where possible, while ensuring data dependencies are respected. The system tracks the state of each node execution and manages the flow of data between nodes.
来源
The node execution process is the core of the execution engine
During execution, the engine
来源
The frontend of the AutoGPT Platform is built using Next.js and React, providing a visual interface for building and running agents.
The Agent Builder is a visual graph editor that allows users to create and modify agent workflows. It uses ReactFlow to create a canvas where users can
The Agent Builder provides an intuitive interface for visualizing and constructing complex agent workflows, with real-time validation and feedback.
来源
The Execution UI provides a real-time view of an agent's execution, showing
The UI connects to the backend via WebSockets to receive real-time updates as the agent executes.
来源
The backend of the AutoGPT Platform is built using FastAPI and provides a range of services for executing agents and managing user data.
The API Server provides RESTful endpoints for
The API Server acts as the central point for all client interactions with the platform.
来源
The WebSocket Server provides real-time event streaming for agent executions, allowing the frontend to update as the agent runs.
来源
The platform uses PostgreSQL with Prisma as the ORM layer. Key database models include
| Model Name | 描述 |
|---|---|
| 用户 | Stores user data and preferences |
| AgentGraph | Defines an agent graph structure |
| AgentNode | Individual nodes within a graph |
| AgentNodeLink | Connections between nodes |
| AgentBlock | Block definitions for node types |
| AgentGraphExecution | Execution instance of a graph |
| AgentNodeExecution | Execution instance of a node |
| LibraryAgent | User's personal library of agents |
| StoreListing | Marketplace listings for agents |
The schema is designed to efficiently store and query agent definitions and execution data.
来源
The platform includes a robust integration system to connect with external services and APIs.
The platform securely stores and manages user credentials for various services
来源
The platform supports webhook-triggered agents that can respond to external events
This enables agents to integrate with external systems and respond to events in real-time.
来源
该平台包含一个基于信用额的计费系统,该系统会向用户收取代理执行费用。每次块执行都会根据其资源使用情况产生费用。
信用额系统确保了平台使用的公平计费,同时为用户提供了透明度。
来源
该平台包含一个通知系统,用于让用户了解代理活动。
通知可以通过电子邮件或应用内消息发送。
来源
AutoGPT平台通过视觉化的图表界面提供了一个构建和运行AI代理的综合系统。其架构结合了用户友好的前端和强大的后端执行引擎,使用户无需编码即可创建复杂的AI工作流。
该平台的主要特点包括:
该平台模块化设计允许通过新的块类型和集成轻松扩展,使其成为AI代理开发的灵活基础。