Skip to main content

A Research-Oriented Multi-Agent System Platform

Project description

AgentZ: Agent from Zero

A Research-Oriented Multi-Agent System Platform

AgentZ is a minimal, extensible codebase for multi-agent systems research. Build intelligent agent workflows with minimal code while achieving strong baseline performance. The platform enables autonomous reasoning, experience learning, and dynamic tool creation - providing both a comparative baseline and production-ready foundation for multi-agent research.

Features

  • ๐ŸŽฏ Minimal Implementation - Build new systems with just a few lines of code
  • ๐Ÿ”„ Stateful Workflows - Persistent memory and object management throughout agent lifecycle
  • ๐Ÿ“š Experience Learning - Agents improve over time through memory-based reasoning
  • ๐Ÿ› ๏ธ Dynamic Tool Creation - Agents can generate and use custom tools on-demand
  • ๐Ÿง  Autonomous Reasoning - Built-in cognitive capabilities for complex multi-step tasks
  • โš™๏ธ Config-Driven - Easily modify behavior through configuration files

Installation

This project uses uv for fast, reliable package management.

Install uv

# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

# Or via pip
pip install uv

See the uv installation guide for more options.

Setup Environment

# Clone the repository
git clone https://github.com/yourusername/agentz.git
cd agentz

# Sync dependencies
uv sync

Quick Start

from pipelines.data_scientist import DataScientistPipeline

pipe = DataScientistPipeline("pipelines/configs/data_science.yaml")

pipe.run_sync()

Building Your Own System

1. Create a Custom Pipeline

Inherit from BasePipeline to create your own agent workflow:

from pipelines.base import BasePipeline


class MyCustomPipeline(BasePipeline):
    DEFAULT_CONFIG_PATH = "pipelines/configs/my_pipeline.yaml"

    def __init__(self, config=None):
        super().__init__(config)
        # Add your custom initialization

    async def run(self):
        # Implement your workflow logic
        pass

2. Add Custom Agents

Implement your agents following the standard interface:

from agents import Agent

def create_my_agent(config):
    return Agent(
        name="my_agent",
        instructions="Your agent instructions here",
        model=config.main_model
    )

3. Configure & Run

Create a config file and run your pipeline:

pipe = MyCustomPipeline(
    data_path="your_data.csv",
    user_prompt="Your task description",
    provider="gemini",
    model="gemini-2.5-flash"
)

pipe.run_sync()

Architecture

AgentZ is organised around a central conversation state and a set of declarative flow specifications that describe how agents collaborate. The main components you will interact with are:

  • pipelines/ โ€“ High level orchestration that wires agents together.
  • agentz/agents/ โ€“ Capability definitions for manager agents and tool agents.
  • agentz/flow/ โ€“ Flow primitives (FlowRunner, FlowNode, IterationFlow) that execute declarative pipelines.
  • agentz/memory/ โ€“ Structured state management (ConversationState, ToolExecutionResult, global memory helpers).
  • examples/ โ€“ Example scripts showing end-to-end usage.
agentz/
โ”œโ”€โ”€ pipelines/
โ”‚   โ”œโ”€โ”€ base.py               # Base pipeline with config management & helpers
โ”‚   โ”œโ”€โ”€ flow_runner.py        # Declarative flow executor utilities
โ”‚   โ””โ”€โ”€ data_scientist.py     # Reference research pipeline
โ”œโ”€โ”€ agentz/
โ”‚   โ”œโ”€โ”€ agents/
โ”‚   โ”‚   โ”œโ”€โ”€ manager_agents/   # Observe, evaluate, routing, writer agents
โ”‚   โ”‚   โ””โ”€โ”€ tool_agents/      # Specialised tool executors
โ”‚   โ”œโ”€โ”€ flow/                 # Flow node definitions and runtime objects
โ”‚   โ”œโ”€โ”€ memory/               # Conversation state & persistence utilities
โ”‚   โ”œโ”€โ”€ llm/                  # LLM adapters and setup helpers
โ”‚   โ””โ”€โ”€ tools/                # Built-in tools
โ””โ”€โ”€ examples/
    โ””โ”€โ”€ data_science.py       # Example workflows

Declarative Pipeline Flow

The reference DataScientistPipeline models an entire research workflow using three building blocks:

  1. Central ConversationState โ€“ A shared store that captures every field any agent might read or write (iteration metadata, gaps, observations, tool results, timing, final report, etc.). Each loop creates a new IterationRecord, enabling partial updates and clean tracking of tool outcomes.
  2. Structured IO Contracts โ€“ Each agent step declares the Pydantic model it expects and produces (for example KnowledgeGapOutput or AgentSelectionPlan). Input builders map slices of ConversationState into those models and output handlers merge the validated results back into the central state.
  3. Declarative FlowRunner โ€“ The pipeline defines an IterationFlow of FlowNodes such as observe โ†’ evaluate โ†’ route โ†’ tools. Loop and termination logic are expressed with predicates (loop_condition, condition), so the executor can stop when evaluation marks state.complete or constraints are reached. Finalisation steps (like the writer agent) run after the iteration loop using the same structured IO.

Because the flow is declarative and all state is centralised, extending the pipeline is as simple as adding a new node, output field, or tool capabilityโ€”no custom run() logic is required beyond sequencing the flow runner.

Benchmarks

AgentZ has been verified on several benchmarks for multi-agent research:

  • Data Science Tasks: State-of-the-art performance on automated ML pipelines
  • Complex Reasoning: Competitive results on multi-step reasoning benchmarks
  • Tool Usage: High accuracy in dynamic tool selection and execution

Detailed benchmark results and comparisons coming soon.

Roadmap

  • Persistence Process - Stateful agent workflows
  • Experience Learning - Memory-based reasoning
  • Tool Design - Dynamic tool creation
  • Workflow RAG - Retrieval-augmented generation for complex workflows
  • MCPs - Model Context Protocol support for enhanced agent communication

Key Design Principles

  1. Minimal Core - Keep the base system simple and extensible
  2. Intelligent Defaults - Provide strong baseline implementations
  3. Research-First - Design for experimentation and comparison
  4. Modular Architecture - Easy to swap components and test variations
  5. Production-Ready - Scale from research prototypes to deployed systems

Use Cases

  • Multi-Agent Research - Baseline for comparing agent architectures
  • Automated Data Science - End-to-end ML pipeline automation
  • Complex Task Decomposition - Break down and solve multi-step problems
  • Tool-Using Agents - Research on dynamic tool creation and usage
  • Agent Memory Systems - Study persistence and experience learning

Citation

If you use AgentZ in your research, please cite:

@software{agentz2025,
  title={AgentZ: A Research-Oriented Multi-Agent System Platform},
  author={Your Name},
  year={2025},
  url={https://github.com/yourusername/agentz}
}

Contributing

We welcome contributions! AgentZ is designed to be a community resource for multi-agent research. Please open an issue or submit a pull request.

License

[Your License Here]

Acknowledgements

AgentZ is built with inspiration from the multi-agent systems research community. We thank the developers of various LLM frameworks and tools that make this work possible.


AgentZ: Building intelligent agents from zero to hero ๐Ÿš€

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zero_agent-0.1.0.tar.gz (79.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zero_agent-0.1.0-py3-none-any.whl (104.4 kB view details)

Uploaded Python 3

File details

Details for the file zero_agent-0.1.0.tar.gz.

File metadata

  • Download URL: zero_agent-0.1.0.tar.gz
  • Upload date:
  • Size: 79.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for zero_agent-0.1.0.tar.gz
Algorithm Hash digest
SHA256 409e170228df7f27f053c1c34295385ab93380ac77224165601c79859023bbf8
MD5 bf47902089c46076e1e49dfabd1950c9
BLAKE2b-256 b88619d29bb8b478f1f0ec27355f0b2ced79d3ff6d18dba1fafd087f1f2534cd

See more details on using hashes here.

File details

Details for the file zero_agent-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: zero_agent-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 104.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for zero_agent-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 690ea30338d116af07621913ab72fbb4bb2f0e0e6853ac0369a609a9b5ab4d5b
MD5 e9528e141514709e489c199befc3d8c6
BLAKE2b-256 41548a928c98250c341e265ad2277c0d771cebab09c4697d6b6cd53dd15b26bf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page