any-agent  by mozilla-ai

Python library for agent framework abstraction

created 4 months ago
832 stars

Top 43.7% on sourcepulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

This Python library provides a unified interface for interacting with and evaluating various AI agent frameworks, targeting developers building agent-based applications. It simplifies switching between frameworks and offers a trace-first evaluation tool, reducing boilerplate code and enabling standardized performance measurement.

How It Works

Any-agent acts as an abstraction layer, mapping a common API to different underlying agent framework implementations. It leverages LiteLLM for broad LLM provider compatibility and supports the Model Context Protocol (MCP). This approach allows users to define agents and their configurations (models, tools, instructions) once, then swap the framework backend with minimal code changes.

Quick Start & Requirements

  • Install with pip install 'any-agent[all]' (or specific frameworks).
  • Requires Python 3.11+.
  • API keys for LLM providers (e.g., OpenAI, Mistral) are necessary.
  • Documentation: https://mozilla-ai.github.io/any-agent/

Highlighted Details

  • Unified interface for multiple agent frameworks.
  • 'Trace-first' LLM-as-a-judge evaluation.
  • Supports LiteLLM for diverse LLM providers.
  • Enables single and multi-agent system configurations.

Maintenance & Community

Contributions are welcomed for new frameworks and features. Open GitHub issues for unsupported frameworks.

Licensing & Compatibility

The repository does not explicitly state a license in the README. Compatibility for commercial use or closed-source linking is not specified.

Limitations & Caveats

Running in Jupyter Notebook requires nest_asyncio.apply() due to event loop conflicts. The license status requires clarification for production use.

Health Check
Last commit

1 day ago

Responsiveness

Inactive

Pull Requests (30d)
99
Issues (30d)
58
Star History
502 stars in the last 90 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems) and Robert Stojnic Robert Stojnic(Creator of Papers with Code).

Agent-S by simular-ai

1.2%
6k
Agentic framework for autonomous computer interaction
created 9 months ago
updated 20 hours ago
Feedback? Help us improve.