Skip to main content

DuoAI: Two-System AI Agents

Project description

DuoAI: Two-System AI Agents

DuoAI Logo

DuoAI is a research framework for building agents that mimic human dual cognitive system. In this release, we focus on tackling the YRC problem: deciding which system should decide the next action at a given time. This codebase provide modular abstractions, benchmark environments, and baseline implementations to help you quickly develop and test your ideas.


🔧 Features

  • ⚙️ Unified abstractions for coordination policies, decision-making agents, and environments.
  • 🧪 Benchmark suite of gridworld and visual decision-making tasks (e.g., MiniGrid, Procgen).
  • 📈 Baselines: uncertainty-based and reinforcement learning.
  • 🧩 Compositional design: Easily add your own policies, algorithms, or environments.
  • 📚 Extensive documentation and examples for rapid experimentation.

📦 Installation

Install from PyPI:

pip install duo_ai

Or install from source:

git clone --recurse-submodules https://github.com/khanhptnk/duo-ai.git
cd duo-ai
pip install -e .

📚 Documentation

See the full documentation at: https://duo-ai.readthedocs.io


🧪 Citing DuoAI

If you use the DuoAI package in your research, please cite:

@misc{DuoAI2025,
  author       = {Khanh Nguyen},
  title        = {DuoAI: Two-System AI Agents},
  year         = {2025},
  howpublished = {\url{https://github.com/khanhptnk/duo-ai}},
  note         = {Python package. Version 1.0},
}

🤝 Contributing

We welcome pull requests, feature suggestions, and bug reports! Please see CONTRIBUTING.md for guidelines.


🛡 License

This project is licensed under the MIT License. See LICENSE for more details.


🙏 Acknowledgments

DuoAI draws inspiration from YRC-Bench, a public benchmark Khanh Nguyen co-developed with colleagues at UC Berkeley, but is not an official continuation of that work. This repository also includes code from the public procgenAISC and pyod projects as Git submodules. We thank the original authors of these projects for making their work publicly available. DuoAI builds upon a number of open-source frameworks and libraries, including PyTorch, StableBaselines3, Procgen, MiniGrid, Gym, and Gymnasium. We acknowledge and thank the developers and maintainers of these projects.

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

duo_ai-1.0.0.tar.gz (34.8 kB view details)

Uploaded Source

Built Distribution

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

duo_ai-1.0.0-py3-none-any.whl (46.3 kB view details)

Uploaded Python 3

File details

Details for the file duo_ai-1.0.0.tar.gz.

File metadata

  • Download URL: duo_ai-1.0.0.tar.gz
  • Upload date:
  • Size: 34.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for duo_ai-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d10cfcecc9cabc02dca391baf0b555a5d7f7780b6d3f4da7f96d6a6421e7e5cc
MD5 eff482c5f687632de60557dc0bb38deb
BLAKE2b-256 7500fbee4a7eb4008b6c5c98d73895e2fd7a95232c58349ad796449a1c85a893

See more details on using hashes here.

File details

Details for the file duo_ai-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: duo_ai-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 46.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for duo_ai-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 da500ef68924912328cc458f814acfbd7a4d2791e77b935ae56379abb48d3ed6
MD5 3d025b5412dd6834720eddc433b93ccb
BLAKE2b-256 f388ec73eb2e21926c60fa022b67789b9629a0c38ae413e003cbfde34cdd58e2

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