agentUniverse Documentation

repository·master·Indexed 25 days ago

https://github.com/agentuniverse-ai/agentuniverse

agentUniverse is a multi-agent framework for developing LLM-powered applications and domain-expert-level intelligent agents. It features specialized collaboration patterns such as GRR (Generate-Review-Rewrite) for iterative content optimization and IS (Implementation-Supervision) for complex tasks requiring quality control. The framework includes tools for integrating domain expertise into workflows and provides the PEER Financial Training Dataset for agent pre-training and fine-tuning in financial analysis scenarios.

Tokens
129.6K
Snippets
301
Records
530
Agent score
79%

What's inside agentUniverse

  1. Overview of the PEER Financial Training Dataset

    master

    The PEER Financial Training Dataset is designed for agent training, pre-training, and supervised fine-tuning in financial analysis scenarios. It includes 100 common financial questions and 100 sets of inputs and outputs specifically for the Planning Agent and the Expressing Agent within the PEER framework.

    Dataset Components

    • FinQA: A collection of 100 professional questions categorized into nine areas: information query, general financial QA, report interpretation, target analysis, strategy advice, major events interpretation, macro analysis, market analysis, and policy interpretation.
    • Planning Agent Data: Contains the user's original query (input) and the resulting sub-questions generated by the agent (output), which act as an interpretation framework.
    • Expressing Agent Data: Contains the answers provided by the Executing Agent for each sub-question (input) and the final professional synthesized/rewritten answer (output).

    Note: Data for the Executing Agent is currently undergoing compliance approval and is not yet available.

  2. Overview of agentUniverse

    master
    agentUniverse is a framework designed for developing multi-agent applications powered by Large Language Models (LLMs). It provides components for building individual agents and a 'pattern factory' mechanism for creating and customizing multi-agent collaboration patterns. This allows developers to implement complex workflows and share proven collaboration patterns across different technical and business domains.
  3. Get Started with agentUniverse

    master

    The agentUniverse User Guide provides a structured path for developers to build agentic applications. The learning path is divided into three main stages:

    1. Getting Started: Covers installation, project structure, running tutorials, building single agents, and multi-agent applications. It also includes advanced techniques like memory management, prompt management, and multimodal agents.
    2. Principle Introduction: Explains the core domain components (Agent, LLM, Tool, Knowledge, Memory, Planner) and technical components (RAG, Service registration, Web APIs, Logging, and Data Collection).
    3. Component Reference Manual: Provides detailed usage instructions for specific implementations, such as various LLM providers (OpenAI, Claude, Ollama, etc.), tools (LangChain wrappers), and storage backends (Milvus, ChromaDB, SQLDB).

    For rapid development, you can also explore the Product Platform for a visual agentic workflow experience.

  4. Explore agentUniverse core features and capabilities

    master

    agentUniverse provides a framework for building professional-grade AI applications through three main pillars:

    • Flexible Agent Construction: Provides all essential components required to build a single agent, with full support for customization to enhance specialized capabilities.
    • Effective Multi-Agent Collaboration Patterns: Includes industry-validated patterns like PEER (Plan/Execute/Express/Review) and DOE (Data-fining/Opinion-inject/Express), while allowing users to define and orchestrate custom patterns.
    • Domain Expertise Integration: Enables the injection of professional knowledge through domain-specific prompts, knowledge construction/management, and domain-level SOP (Standard Operating Procedure) orchestration to align agents with expert-level performance.
  5. Explore agentUniverse core features

    master

    agentUniverse is designed to help developers build smart applications by providing:

    • Flexible and Extensible Agent Construction: Provides all essential components for building agents, with full support for user customization to enhance agent capabilities.
    • Effective Multi-Agent Collaboration Modes: Includes industry-validated modes like PEER (Plan/Execute/Express/Review) and DOE (Data-fining/Opinion-inject/Express). Users can also orchestrate their own custom collaboration modes.
    • Domain Expertise Injection: Supports the construction and management of domain-specific knowledge and prompts, allowing users to orchestrate and inject domain-level Standard Operating Procedures (SOPs) to elevate agents to expert levels.
  6. What is a Reader in agentUniverse

    master

    A Reader is a component responsible for extracting information from various sources (such as local files, web pages, or I/O interfaces) and converting them into the Document format used throughout agentUniverse.

    To create a custom Reader, you must subclass the Reader class and override the _load_data method. The _load_data method must return a List[Document].

    from abc import abstractmethod
    from typing import List, Any, Optional
    
    from agentuniverse.agent.action.knowledge.store.document import Document
    from agentuniverse.base.component.component_base import ComponentEnum
    from agentuniverse.base.component.component_base import ComponentBase
    
    class Reader(ComponentBase):
        """The basic class for the knowledge reader."""
        component_type: ComponentEnum = ComponentEnum.READER
        name: Optional[str] = None
        description: Optional[str] = None
    
        def load_data(self, *args: Any, **kwargs: Any) -> List[Document]:
            """Load data from the input params."""
            return self._load_data(*args, **kwargs)
    
        @abstractmethod
        def _load_data(self, *args: Any, **kwargs: Any) -> List[Document]:
            """Load data from the input params."""
            pass
  7. What is an Agent Template and how does it work?

    master

    An AgentTemplate is an abstraction layer designed to help users quickly build agents by defining orchestration logic once and reusing it via configuration. Instead of writing complex execution logic, users fill in specific property configurations in an agent YAML profile to instantiate an agent that follows a specific pattern (e.g., RAG, ReAct, or PEER).

    When an agent is instantiated from a template, the template class automatically assembles the following components based on the YAML configuration:

    • llm_name: The LLM component.
    • memory_name: The memory component.
    • tool_names: A list of tool components.
    • knowledge_names: A list of knowledge components.
    • prompt_version: The version of the agent's prompt.

    Templates act as the 'blueprint' for an agent's behavior, while the YAML profile provides the 'materials' (specific LLMs, tools, etc.) to build the actual instance.

  8. What is a QueryParaphraser and how does it work?

    master

    A QueryParaphraser is a component responsible for refining a Query through processes like rewriting, splitting, or keyword extraction. This refinement helps retrieve more accurate and rich content from a Store.

    Key Concepts:

    • Input/Output Symmetry: Both the input and the output of a QueryParaphraser must be a Query object. This allows for chaining multiple layers of paraphrasing (e.g., one component extracts keywords, and another rewrites the text).
    • The Query Object: The Query object is the data contract used throughout the paraphrasing pipeline. It carries the original string, rewritten text bundles, images, extracted keywords, and embeddings.
    from typing import Optional, List, Set
    from pydantic import BaseModel, Field
    from PIL.Image import Image
    
    class Query(BaseModel):
        query_str: Optional[str] = None
        query_text_bundles: Optional[List[str]] = Field(default_factory=list)
        query_image_bundles: Optional[List[Image]] = Field(default_factory=list)
        keywords: Optional[Set[str]] = Field(default_factory=set)
        embeddings: List[List[float]] = Field(default_factory=list)
        ext_info: dict = {}
        similarity_top_k: Optional[int] = None
  9. Overview of agentUniverse multi-agent patterns

    master

    agentUniverse is a multi-agent framework designed for building domain-expert agents. It features a "Pattern Factory" of multi-agent collaboration components. Two upcoming patterns include:

    • PEER Pattern: Uses four specialized agents—Plan, Execute, Express, and Review—to decompose complex problems, execute steps, and iterate based on feedback. Ideal for event interpretation and industry analysis.
    • DOE Pattern: Uses three agents—Data-fining, Opinion-inject, and Express—to improve generation tasks that are data-intensive or require high precision and expert opinion integration. Ideal for financial report generation.