agentUniverse

agentuniverse-aiApache-2.0活跃维护

面向开发者的 LLM 多智能体框架,用 Python 快速搭建和编排多个智能体协作的应用。

agentUniverse is a LLM multi-agent framework that allows developers to easily build multi-agent applications.

v0.0.19发布于 2025-11-17 15:25 UTC2,430star +2 / 7 天500fork同步于 2026-11-10 23:45 UTC

怎么上手

由 README 提炼,执行前请确认
pip install agentUniverse
硬件要求按 README 说明

README 未说明显存、GPU 型号或 CPU 运行要求;框架以调用云端模型 API 为主,本地硬件需求取决于所选模型。

支持 Apple Silicon
下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

基于大模型的 multi-agent 框架,内置 PEER/DOE 协作模式,帮你快速搭建领域专家级智能体应用

面向开发者的 LLM 多智能体框架,用 Python 快速搭建和编排多个智能体协作的应用。

核心能力

  • 内置 PEER 协作模式,由 Plan/Execute/Express/Review 四类智能体分工迭代
  • 内置 DOE 协作模式,用 Data-fining/Opinion-inject/Express 生成数据密集型报告
  • 通过配置文件切换 Qwen、DeepSeek、OpenAI、Claude 等十余家厂商模型
  • 提供基于 OpenTelemetry 的可观测框架,追踪 agent、LLM 与工具调用
  • 支持使用与发布 MCP Server,并可将 agent 模式沉淀为模板复用

容易踩的坑

需要 Python 3.10 及以上版本;调用模型前要在 custom_key.toml 里填好对应厂商的 API Key 并在 agent 配置中指定模型名;可视化工作流平台需额外执行 pip install magent-ui ruamel.yaml 并运行示例中的 product_application.py 启动。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v0.0.19
  1. v0.0.19最新正式版2025-11-17 · 2025-11-17 15:25 UTC

    [0.0.19] - 2025-11-17

    Added

    • Added AWS Bedrock model support
    • Added ollama embedding component support
    • Added jina rerank component support
    • Added vector database component support
      • Faiss vector database support
      • Qdrant vector database support
    • Added a batch of new Reader data loading components
      • Added Notion, GoogleDoc, Confluence cloud document loading components
      • Added file format support for epub, rar, sevenzip, zip, xlsx
      • Added text extraction components for images and PDF files based on PaddleOCR
      • Added web page loading components based on playwright and bs4
    • Added GitHub and YouTube retrieval tools
    • Added async safe exit method for McpSessionManager
    • Added model Token consumption recording in the Otel-llm-instrumentor module

    Fixed

    • Fixed parameter naming error in the RecursiveCharacterTextSplitter component's splitter method
    • Fixed missing connection_kwargs parameter propagation in MCPToolkit
    • Fixed abnormal queue release issue when tasks exited exceptionally in RequestTask

    Note

    • Improved security for the SlsSender module's put method
    • Enhanced robustness of loop event handling in logging_util
    • Optimized reliability of the add_invocation_chain method in the Monitor module
    • Included some third-party community examples and tools
    • Performed additional code optimizations and documentation updates

    More Details

    What's Changed
  2. v0.0.182025-07-10 · 2025-07-10 10:10 UTC
    查看更新说明

    [0.0.18] - 2025-07-10

    Added

    • Added observability capabilities for agent applications based on the OTel protocol Established observation standards for aU agent applications based on OTel (OpenTelemetry) protocol. Comprehensive metrics and traces (including token consumption, latency, success rate, etc.) are collected across key components such as agents, LLMs, and tools. The implementation supports integration with mainstream observability frameworks including SigNoz, Jaeger, and Prometheus, enabling full lifecycle observability for agents.

    • Added async Sink and Sender components for SLS Logger

    Fixed

    • MCP service in Stdio mode now supports user-configurable environment parameter

    Note

    • Third-party package dependency changes (Format: old version -> new version; single version means new)
      • openai ("1.13.3" -> "1.55.3")
      • opentelemetry-api ("^1.25.0")
      • opentelemetry-sdk ("^1.25.0")
      • opentelemetry-semantic-conventions (">=0.48b0")
      • opentelemetry-exporter-otlp-proto-http ("^1.25.0")
      • httpx ("0.27.2" -> ">=0.27.2")
      • jsonlines ("^4.0.0")
    • Other code optimizations and documentation updates

    More Details

    What's Changed

    New Contributors

    Full Changelog: https://github.com/agentuniverse-ai/agentUniverse/compare/v0.0.17...v0.0.18

  3. v0.0.172025-05-22 · 2025-05-22 09:02 UTC
    查看更新说明

    [0.0.17] - 2025-05-22

    Added

    • MCP Integration & Publishing Capabilities
      Enables rapid integration with MCPServer for agent, and allows publishing tools/toolkits from aU as MCPServer services
    • Toolkit Capabilities
      Supports categorized management of tools and configuration for agent
    • Knowledge Reader Components
      • Added Yuque document loading component
    • Added async_execute method to base tool class, enabling asynchronous tool invocation
    • Added custom plugin extensions for trace collection processing
    • Added configurations for the complete Qwen3 series model

    Changed

    • Request Context Optimizations

    Deprecated

    • ToolInput Object
      The use of ToolInput object for tool parameters is deprecated (will be removed in 3 versions). See agentuniverse.agent.action.tool.common_tool for updated recommendations

    Note

    • New Third-Party Dependencies
      • mcp ("~=1.9.0")
      • opentracing (">=2.4.0,<3.0.0")
    • Other code optimizations and documentation updates

    More Details

    What's Changed

    New Contributors

    Full Changelog: https://github.com/agentuniverse-ai/agentUniverse/compare/v0.0.16...v0.0.17

  4. v0.0.162025-04-17 · 2025-04-17 13:04 UTC
    查看更新说明

    [0.0.16] - 2025-04-17

    Added

    • New Tool Plugins
      • Added image text extraction tool based on OpenCV's OCR capabilities
      • Added Shell command status query and execution tool
      • Added universal file read/write tool
      • Added Tavily intelligent search tool
    • Knowledge Reader and Processing Components
      • Added Feishu cloud document loader component
      • Added universal code loader component
      • Added code processing component based on AST (Abstract Syntax Tree)
    • Support LLM model channel configuration, supporting model switching across different channel platform providers.
    • Added Google Gemini 2.5 Pro model configuration.
    • aU Agent supports integration with chatbox and CherryStudio clients. For details, refer to the documentation.

    Note

    • Change version constraints for third-party dependencies:
      • tiktoken ('0.5.2' -> '<1.0.0')
      • pydantic ('~2.6.4' -> '^2.6.4')
    • Main branch regression tests passed for Python 3.10, 3.11, and 3.12
    • Other code optimizations and documentation updates

    More Details

    What's Changed
  5. v0.0.152025-03-03 · 2025-03-03 14:07 UTC
    查看更新说明

    [0.0.15] - 2025-03-03

    Added

    • New embedding components
      • Azure-OpenAI embedding component
      • Gemini embedding component
      • Doubao embedding component
    • New knowledge loading reader components
      • Web page reader component based on BeautifulSoup (bs4)
      • Image reader component based on OCR technology
      • CSV format reader component
    • New tool plugins
      • Arxiv paper retrieval and query tool plugin
      • Jina AI intelligent search tool plugin
    • Added standard LLM output parser for reasoning-type models
    • Added standard logger sink for agents, LLMs, and tools
    • Added retry function annotation

    Changed

    • Improved project configuration experience, with the following key optimizations:
      • Project configuration now supports global PACKAGE path replacement. For details, see the PACKAGE_PATH_INFO parameter in the sample project's config.toml file.
      • Supports user-defined configuration extensions and YAML function extensions. For details, see the EXTENSION_MODULES parameter in the sample project's config.toml file.
      • Updated custom_key.toml.sample with more detailed parameter content.
      • Submit a set of commonly used model configuration YAML files. For details, see the llm directory in the sample project.
      • YAML configuration now supports user-defined loading of attributes using environment variables and extension functions. For details, see the api_key comments in the llm sample of the sample project.
      • Simplified LLM configuration. By default, it reads the global default_llm configuration. For details, see the default_llm.toml configuration in the llm sample of the sample project.
      • Simplified component extension configuration. The module part in the component metadata can be left blank, and it will default to searching for a Python extension file with the same name in the same directory.
    • Optimized project startup process, with the following key improvements:
      • Improved LLM component startup registration. Only LLM instances that are dependent on by components like agents and tools are started.
      • Enhanced error info during project startup.
    • Other changes:
      • Renamed LocalMemoryStorage to RamMemoryStorage for memory storage objects.

    Note

    • Added image_build image packaging files and tutorial documents for application projects.
    • Added CONTRIBUTING.md documentation for the project.
    • Standardized PR and ISSUE templates for the project.
    • Added a sample practice for agents based on multimodal capabilities. For details, see the examples/multimodal_app directory in the project.
    • Our project was included in the awesome-deepseek-integration list released by DeepSeek in February.

    More Details

    What's Changed

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    agentUniverse


    Language version: English | 中文 | 日本語

    Static Badge


    What is agentUniverse?

    agentUniverse is a multi-agent framework based on large language models. It provides flexible and easily extensible capabilities for building individual agents. The core of agentUniverse is a rich set of multi-agent collaborative pattern components (serving as a collaborative pattern factory), which allows agents to perform their respective duties and maximize their capabilities when solving problems in different fields; at the same time, agentUniverse focuses on the integration of domain experience, helping you smoothly integrate domain experience into the work of intelligent agents.🎉🎉🎉

    🌈🌈🌈agentUniverse originates from the real-world financial business practices of AntGroup (https://github.com/antgroup), dedicated to assisting developers and enterprises in effortlessly constructing domain-expert-level intelligent agents that collaborate to accomplish tasks.

    We look forward to your practice and communication and sharing of Patterns in different fields through the community. This framework has already placed many useful components that have been tested in real business scenarios in terms of multi-agent cooperation, and will continue to be enriched in the future. The pattern components that are currently open for use include:

    • PEER pattern component: This pattern uses agents with different responsibilities—Plan, Execute, Express, and Review—to break down complex problems into manageable steps, execute the steps in sequence, and iteratively improve based on feedback, enhancing the performance of reasoning and analysis tasks. Typical use cases: Event interpretation, industry analysis.
    • DOE pattern component: This pattern employs three agents—Data-fining, Opinion-inject, and Express—to improve the effectiveness of tasks that are data-intensive, require high computational precision, and incorporate expert opinions. Typical use cases: Financial report generation.

    More patterns are coming soon...

    The LLM model integration can be accomplished with simple configuration, currently agentUniverse supported models include:

    -VendorsModels
    Qwenqwen3 Series(qwen3-235b-a22b、qwen3-32b、qwen3-30b-a3b, etc.) 、qwen2.5-72b-instruct、qwq-32b-preview、qwen-max、…
    Deepseekdeepseek-r1、deepseek-v3、deepseek-r1-distill-qwen-32b、…
    OpenAIGPT-4o、GPT-4o mini、OpenAI o1、OpenAI o3-mini、…
    Claudeclaude 3.7 sonnet 、Claude 3.5 Sonnet、Claude 3 Opus、…
    GeminiGemini 2.5 Pro、Gemini 2.0 Flash、Gemini 2.0 Flash Thinking、Gemini 1.5 Pro、…
    Llamallama3.3-70b-instruct、llama3.2-3b-instruct、llama3.2-1b-instruct、…
    KIMImoonshot-v1-128k、moonshot-v1-32k、moonshot-v1-8k、…
    WenXinERNIE 4.5 Turbo、ERNIE 4.5、ERNIE 4.0 Turbo、ERNIE 4.0、ERNIE 3.5、…
    chatglmchatglm3-6b、chatglm-6b-v2、…
    BaiChuanbaichuan2-turbo、baichuan2-13b-chat-v1、…
    DoubaoDoubao-pro-128k、Doubao-pro-32k、Doubao-lite-128k、…

    For example, to use deepseek model, you can simply set DEEPSEEK_API_KEY value in the custom_key.toml file, and set the llm_model name in the agent configuration file to 'default_deepseek_llm' and you're all set. For more information about llm configuration, please refer to switch-the-llm.


    Table of Contents


    Quick Start

    Installation

    Using pip:

    pip install agentUniverse
    

    Run the first example

    Run your first example, and you can quickly experience the performance of the agents (or agent groups) built by agentUniverse through the tutorial.

    Please refer to the document for detail steps: Run the first example 。


    How to build an agent application

    Standard Project Scaffolding

    Setup the standard project: agentUniverse Standard Project

    Quick Start for Building a Single Agent

    You can learn how to quickly build a single agent by reading the Quick Guide to Build Single Agent. This will help you understand how to enhance your agent's capabilities using tools, knowledge bases, RAG technologies, and more. Additionally, you will grasp the basic application development processes for agents, including configuration, testing, optimizing, deployment, and performance evaluation.

    Building Typical Multi-Agent Applications

    You can further understand how to break down intelligent capabilities into multiple agents in complex task scenarios and enhance your task performance through collaboration by referring to the Building Typical Multi-Agent App chapter.

    Creating and Using Agent Templates

    You can learn how to create effective agent patterns into templates through the chapter Creating and Using Agent Templates. This will greatly enhance the efficiency of constructing subsequent agents and facilitate dissemination.

    Using and Publishing MCP Servers

    You can learn how to quickly use or publish MCP servers in agentUniverse framework by referring to How to Use MCP Servers and How to Publish MCP Servers.

    Agent Application Observability

    agentUniverse provides a standardized observability framework for agent applications. Based on the OpenTelemetry protocol, it enables comprehensive data collection and monitoring of critical components such as agents, LLMs, and tools, facilitating full lifecycle tracking of agents. You can learn how to utilize these observability capabilities in the Agent Application Observability section.

    Common Tips and Advanced Techniques

    You can learn more advanced techniques in the agent application building process through other documents in the Get_Start, such as how to add a memory module into the intelligent agent process and how to effectively manage prompts within the project.


    Set up the visual agentic workflow platform

    agentUniverse provides a visual canvas platform for creating agentic workflow. Follow these steps for a quick start:

    Using pip

    pip install magent-ui ruamel.yaml
    

    One-click Run

    Run product_application.py in sample_apps/workflow_agent_app/bootstrap/platform for quick startup.

    For more details, refer to Quick Start for Product Platform and the Advanced Guide.

    This feature is jointly developed by difizen and agentUniverse.


    Why use agentUniverse

    Concept

    The core of agentUniverse provides all the essential components needed to build a single intelligent agent, the collaboration mechanisms between multiple agents, and allows for the injection of expert knowledge. The enables developers to effortlessly create intelligent applications equipped with professional know-how.

    Multi Agent Collaboration

    agentUniverse offers several multi-agent collaboration model components that have been validated in real-world industries. Among these, the "PEER" model stands out as one of the most distinctive.

    The PEER model utilizes agents with four distinct responsibilities: Planning, Executing, Expressing, and Reviewing. This structure allows for the decomposition and step-by-step execution of complex problems and enables autonomous iteration based on evaluation feedback, ultimately enhancing performance in reasoning and analytical tasks. This model is particularly effective in scenarios that require multi-step decomposition and in-depth analysis, such as event interpretation, macroeconomic analysis, and the feasibility analysis of business proposals.

    The PEER model has achieved impressive results, and the latest research findings and experimental data can be found in the following literature.

    Key Features

    Based on the above introduction, we summarize the main features of agentUniverse as follow:

    Flexible and Extensible Agent Construction Capability: It provides all the essential components necessary for building agents, all of which support customization to tailor user-specific agents.

    Rich and Effective Multi-Agent Collaboration Models: It offers collaborative models such as PEER (Plan/Execute/Express/Review) and DOE (Data-finding/Opinion-inject/Express), which have been validated in the industry. Users can also customize and orchestrate new models to facilitate organic collaboration among multiple agents.

    Easy Integration of Domain Expertise: It offers capabilities for domain prompts, knowledge construction, and management, enabling the orchestration and injection of domain-level SOPs, aligning agents with expert-level domain knowledge.

    💡 For additional features: see the section on key features of agentUniverse for more details.


    Sample Apps

    🚩 Legal Advice Agent v2

    🚩 Python Code Generation and Execution Agent

    🚩 Discussion Group Based on Multi-Turn Multi-Agent Mode

    🚩 Financial Event Analysis Based on PEER Multi-Agent Mode

    🚩 Andrew Ng's Reflexive Workflow Translation Agent Replication


    Commercial Product base on agentUniverse

    🔗 Zhi Xiao Zhu-AI Assistant for Financial Professionals

    Zhi Xiao Zhu AI Assistant: Designed to facilitate the development of large models in rigorous industries to enhance the productively of investment research experts

    Zhi Xiao Zhu AI Assistant an efficient solution for the practical application of large models in rigorous industries. It is built upon the Finix model, which emphasizes precise applications, and leverages the agentUniverse intelligent agent framework, known for its professional customization capabilities. This solution targets a range of professional AI business assistants related to investment research, ESG (environmental, social, and governance), finance, earnings reports, and other specialized domains. It has been extensively validated in large-scale scenarios at Ant Group, significantly improving expert efficiency.

    https://private-user-images.githubusercontent.com/39180831/355437700-192f712d-1b03-46a6-8422-1ca10aa94331.mp4?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI5NDk4NTAsIm5iZiI6MTcyMjk0OTU1MCwicGF0aCI6Ii8zOTE4MDgzMS8zNTU0Mzc3MDAtMTkyZjcxMmQtMWIwMy00NmE2LTg0MjItMWNhMTBhYTk0MzMxLm1wND9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA2VDEzMDU1MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU4NWMzNzVjOGZjZDNjMDMzMTE4YjQzOTk0ZWQwZGZkNWNmNWQxNWMzYWIzMTk4MzY1MjA5NWRhMjU2NGNiNzUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.q1vdSg_Ghxr-DHLXfmQ_fVVRVSFn7H8VMHMi-_2QrjA


    Documents

    User Guide

    💡 For more detailed information, please refer to the User Guide.

    API Reference

    💡 Please consult the API Reference for technical details.


    Support

    Submit Questions via GitHub Issues

    😊 We recommend submitting your queries using GitHub Issues, we typically respond within 2 business days.

    Contact Us via Discord

    😊 Join our Discord Channel to interact with us.

    Contact Us via Administrator Email

    😊 Email:

    twitter

    ID: @agentuniverse_


    Citation

    The PEER multi-agent framework build in agentUniverse project is supported by the following research achievements.

    BibTeX formatted

    @misc{wang2024peerexpertizingdomainspecifictasks,
          title={PEER: Expertizing Domain-Specific Tasks with a Multi-Agent Framework and Tuning Methods}, 
          author={Yiying Wang and Xiaojing Li and Binzhu Wang and Yueyang Zhou and Han Ji and Hong Chen and Jinshi Zhang and Fei Yu and Zewei Zhao and Song Jin and Renji Gong and Wanqing Xu},
          year={2024},
          eprint={2407.06985},
          archivePrefix={arXiv},
          primaryClass={cs.AI},
          url={https://arxiv.org/abs/2407.06985}, 
    }
    

    Overview: This document introduces in detailed the mechanisms and principles underlying the PEER multi-agent framework. The experimental section assigned scores across seven dimensions: completeness, relevance, conciseness, factualness, logicality, structure, and comprehensiveness, with a maximum score of 5 points for each dimension. On average, the PEER model scored higher in each evaluation dimension compared to BabyAGI, and show notable advantages particularly in completeness, relevance, logicality, structure, and comprehensiveness. Furthermore, when tested with the GPT-3.5 Turbo (16k) model, the PEER model achieved a superior accuracy rate of 83% compared to BabyAGI, and with the GPT-4 model, it achieved an accuracy rate of 81%. For more details, please refer to the document. 🔗https://arxiv.org/pdf/2407.06985


    Acknowledgements

    This project is partially built upon excellent open-source projects such as Langchain, Pydantic, Gunicorn, Flask, SQLAlchemy, chromadb, etc. (The detailed dependency list can be found in pyproject.toml). We would like to express our heartfelt gratitude to the related projects and their contributors. 🙏🙏🙏