Skip to main content

Generate fully-functional AI agents from natural language specifications

Project description

Meta Agent 🤖

Python License PyPI

Generate fully-functional AI agents from natural language specifications in minutes.

Meta Agent is a Python CLI tool that automatically produces production-ready OpenAI-powered agents complete with code, tests, and guardrails from simple English descriptions.

🚀 Quick Start

Installation

pip install meta-agent

Create Your First Agent

# Initialize a new project
meta-agent init my-calculator --template hello-world

# Generate an agent from specification
meta-agent generate --spec-file agent_spec.yaml

Example Specification

task_description: |
  Create a calculator agent that can perform basic arithmetic operations.
  The agent should handle addition, subtraction, multiplication, and division.
inputs:
  operation: str  # "+", "-", "*", "/"
  num1: float
  num2: float
outputs:
  result: float
constraints:
  - Must validate division by zero
  - Should handle floating point precision

✨ Key Features

  • 🎯 Natural Language Input: Describe what you want in plain English
  • ⚡ Instant Generation: Get working agents in minutes, not hours
  • 🛡️ Built-in Safety: Automatic guardrails and validation
  • 🧪 Test Generation: Unit tests created automatically
  • 📊 Telemetry: Built-in monitoring and metrics
  • 🔧 Extensible: Template system for custom patterns

🎯 Perfect For

  • AI Engineers building production agents quickly
  • Solutions Architects integrating AI into workflows
  • Rapid Prototypers who need demo-ready agents fast
  • Hobbyists exploring AI without deep coding expertise

📖 Documentation

Core Commands

# Initialize new project
meta-agent init <project-name> [--template <template-name>]

# Generate agent from spec
meta-agent generate --spec-file <path> [--metric cost,tokens,latency]

# Manage templates
meta-agent templates list
meta-agent templates docs

# View telemetry
meta-agent dashboard
meta-agent export --format json

Input Formats

Meta Agent supports multiple input formats:

YAML File:

meta-agent generate --spec-file my_agent.yaml

JSON File:

meta-agent generate --spec-file my_agent.json

Direct Text:

meta-agent generate --spec-text "Create an agent that summarizes documents"

Project Structure

my-project/
├── .meta-agent/
│   └── config.yaml          # Project configuration
├── agent_spec.yaml          # Agent specification
└── generated/              # Generated agent code
    ├── agent.py
    ├── tests/
    └── guardrails/

🏗️ Architecture

Meta Agent uses a sophisticated orchestration system:

  • Planning Engine: Decomposes specifications into tasks
  • Sub-Agent Manager: Coordinates specialized agents
  • Tool Designer: Generates custom tools and functions
  • Guardrail Designer: Creates safety and validation logic
  • Template System: Reusable patterns and best practices

🔧 Development

Requirements

  • Python 3.11+
  • OpenAI API key (for LLM functionality)

Setup

# Clone repository
git clone https://github.com/DannyMac180/meta-agent.git
cd meta-agent

# Create virtual environment
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

# Install development dependencies
pip install -e ".[test]"

# Run tests
pytest

# Run linting
ruff check .
pyright

📊 Examples

Data Processing Agent

task_description: |
  Create an agent that processes CSV files and generates summary reports.
inputs:
  csv_file: str
  columns_to_analyze: list[str]
outputs:
  summary_report: dict
  charts: list[str]

Web Scraping Agent

task_description: |
  Build an agent that scrapes product information from e-commerce websites.
inputs:
  website_url: str
  product_selectors: dict
outputs:
  product_data: list[dict]
constraints:
  - Must respect robots.txt
  - Rate limit to 1 request per second

🔒 Environment Variables

# Required for LLM functionality
export OPENAI_API_KEY="your-api-key-here"

# Optional: Custom OpenAI base URL
export OPENAI_BASE_URL="https://your-proxy.com/v1"

# Optional: Enable debug logging
export META_AGENT_DEBUG=true

🤝 Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

Quick Contribution Guide

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Add tests for new functionality
  5. Run the test suite (pytest)
  6. Commit your changes (git commit -m 'Add amazing feature')
  7. Push to the branch (git push origin feature/amazing-feature)
  8. Open a Pull Request

📄 License

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

🙏 Acknowledgments

  • Built on the OpenAI SDK
  • Inspired by the growing need for rapid AI agent development
  • Thanks to the open-source community for foundational tools

📞 Support


Made with ❤️ by developers, for developers building the AI-powered future.

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

meta_agent_cli-1.0.1.tar.gz (405.4 kB view details)

Uploaded Source

Built Distribution

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

meta_agent_cli-1.0.1-py3-none-any.whl (143.1 kB view details)

Uploaded Python 3

File details

Details for the file meta_agent_cli-1.0.1.tar.gz.

File metadata

  • Download URL: meta_agent_cli-1.0.1.tar.gz
  • Upload date:
  • Size: 405.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for meta_agent_cli-1.0.1.tar.gz
Algorithm Hash digest
SHA256 286357c6a10f061562cb016ab67b3ed5d602bef5effecd586b9caf708ef27334
MD5 090555f9c0eadc5e9eb2ad81e97e1f15
BLAKE2b-256 397e9deb94dea99f9e3fa4402d715f4e492955bd16f862e831df8abae8219a39

See more details on using hashes here.

File details

Details for the file meta_agent_cli-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: meta_agent_cli-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 143.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for meta_agent_cli-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2b303014ff981befd98506e1b7282bdb4663a5bc5e153eabe9ccb781201c8c32
MD5 8db54e02fca9b074c38cf96fb882d8ef
BLAKE2b-256 6a445cb846246ed528d96feaee1390e85a558a7edc5223fc38a2a5a6488e87e9

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