Skip to main content

MOYA - Meta Orchestration framework for Your Agents

MOYA is a reference implementation of our research paper titled "Engineering LLM Powered Multi-agent Framework for Autonomous CloudOps". The framework provides a flexible and extensible architecture for creating, managing, and orchestrating multiple AI agents to handle various tasks autonomously.

Preprint of the paper can be accessed at arXiv.

Features

  • Agent Management: Create, register, and manage multiple AI agents.
  • Orchestration: Orchestrate conversations and tasks across multiple agents.
  • Memory Tools: Integrate memory tools to maintain conversation context and history.
  • Streaming Responses: Support for streaming responses from agents.
  • Extensibility: Easily extend the framework with new agents, tools, and orchestrators.

Getting Started

pip install moya  # Only core framework
pip install moya[all] # All the supported services such as OpenAI, Bedrock, Ollama, Crewai
# or install specific ones - for example openai and ollama
pip install moya[openai, ollama]

Contributing to MOYA

We accept contributions exclusively through forked repositories. Please follow these steps:

  1. Fork this repository to your GitHub account
  2. Create a new branch in your fork for your changes
  3. Make your changes and commit them to your branch
  4. Submit a pull request from your fork's branch to our main repository

Prerequisites

  • Python 3.10+
  • Install required dependencies:
    pip install .
    

Quick Start Examples

OpenAI Agent

Interactive chat example using OpenAI agent with conversation memory.

# filepath: ~/github/moya/examples/quick_start_openai.py

python -m examples.quick_start_openai

Bedrock Agent

Interactive chat example using BedrockAgent with conversation memory.

# filepath: ~/github/moya/examples/quick_start_bedrock.py

AWS_PROFILE=my_profile_name python -m examples.quick_start_bedrock

Multi-Agent Orchestration

Example demonstrating multi-agent orchestration with language and task classification.

# filepath: ~/github/moya/examples/quick_start_multiagent.py

python -m examples.quick_start_multiagent

Dynamic Agent Creation

Example demonstrating dynamic agent creation and registration during runtime. moya

# filepath: ~/github/moya/examples/dynamic_agents.py


python -m examples.dynamic_agents

Directory Structure

moya/
├── agents/                # Agent implementations (OpenAI, Bedrock, Ollama, Remote)
├── classifiers/           # Classifier implementations for agent selection
├── memory/                # Memory repository implementations
├── orchestrators/         # Orchestrator implementations for managing agent interactions
├── registry/              # Agent registry and repository implementations
├── tools/                 # Tool implementations (e.g., MemoryTool)
├── examples/              # Example scripts demonstrating various use cases
└── README.md              # This README file

Contributing

We welcome contributions to the MOYA framework. Please follow these steps to contribute:

  1. Fork the repository.
  2. Create a new branch for your feature or bugfix.
  3. Make your changes and commit them with descriptive messages.
  4. Push your changes to your fork.
  5. Create a pull request to the main repository.

License

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

Contact

For any questions or inquiries, please contact the authors of the research paper or open an issue on the GitHub repository.

Metadata

Release files for moya-ai 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for moya-ai 0.1.5
File Size Uploaded Provenance Actions
moya_ai-0.1.5.tar.gz 27.5 kB Without provenance Details for moya_ai-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for moya-ai 0.1.5
File Interpreter ABI Platform Actions
moya_ai-0.1.5-py3-none-any.whl Python 3 none any Details for moya_ai-0.1.5-py3-none-any.whl

Total release size: 64.8 kB

Release files / moya_ai-0.1.5.tar.gz

Download URL moya_ai-0.1.5.tar.gz
Size 27.5 kB
Tags Source
SHA-256 checksum
How to use checksums
58c40dec8e14639a455be642ccfa49bb95ff1856105b5700a68ba1d1ef9ac762
BLAKE2b-256 checksum
How to use checksums
cd5010750b93c72a2d2939565cfe4c196d4d92789b4def962ff3de485a034818
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.1

Release files / moya_ai-0.1.5-py3-none-any.whl

Download URL moya_ai-0.1.5-py3-none-any.whl
Size 37.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
002c6023cb0820ee0d81ee819fd30ef0021de093fda8ae5c9c7990c1cfa2c5be
BLAKE2b-256 checksum
How to use checksums
beb7f69c442b30430336211f69e87604791c5ba9e27ce03712d7a3153025cc27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.1

Security for moya-ai 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page