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:
- 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. - Structured IO Contracts โ Each agent step declares the Pydantic model it
expects and produces (for example
KnowledgeGapOutputorAgentSelectionPlan). Input builders map slices ofConversationStateinto those models and output handlers merge the validated results back into the central state. - Declarative FlowRunner โ The pipeline defines an
IterationFlowofFlowNodes such as observe โ evaluate โ route โ tools. Loop and termination logic are expressed with predicates (loop_condition,condition), so the executor can stop when evaluation marksstate.completeor 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
- Minimal Core - Keep the base system simple and extensible
- Intelligent Defaults - Provide strong baseline implementations
- Research-First - Design for experimentation and comparison
- Modular Architecture - Easy to swap components and test variations
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file contextagent-0.1.0.tar.gz.
File metadata
- Download URL: contextagent-0.1.0.tar.gz
- Upload date:
- Size: 80.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0cc5f3e8d0d9756289aaef121aa00135d49b0f7d8ffefe7e3a4b8e77d7117b01
|
|
| MD5 |
c70262da2df32aea728704d883994bea
|
|
| BLAKE2b-256 |
ee355f3c056c9d895c7fad8d084c23d08a70c9157aa4aa6268f1fe5225b9e222
|
File details
Details for the file contextagent-0.1.0-py3-none-any.whl.
File metadata
- Download URL: contextagent-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3ce6af99743cd9eb0e9bbb76886918a4680034fb8c1248aef35175f8322b3e2
|
|
| MD5 |
e2e558ec485961f78712a1391bf1d0db
|
|
| BLAKE2b-256 |
83ad616eddbfd1905c7a1cb71ef886bb965aec2cf3991be819ad4789fd53e6e3
|