GitHub Stars
929
User Rating
Not Rated
Favorites
0
Views
41
Forks
64
Issues
42
Documentation
Supported Frameworks
Planned for Support (Contributions Welcome!)
Open Github tickets for new frameworks
Requirements
- Python 3.11 or newer
Quickstart
Refer to pyproject.toml for a list of the options available.
Update your pip install command to include the frameworks that you plan on using:
pip install 'any-agent'
To define any agent system you will always use the same imports:
from any_agent import AgentConfig, AnyAgent
For this example we use a model hosted by Mistral, but you may need to set the relevant API key for whichever provider being used.
See our Model docs for more information about using different models.
export MISTRAL_API_KEY="YOUR_KEY_HERE" # or OPENAI_API_KEY, etc
from any_agent.tools import search_web, visit_webpage
agent = AnyAgent.create(
"tinyagent", # See all options in https://mozilla-ai.github.io/any-agent/
AgentConfig(
model_id="mistral/mistral-small-latest",
instructions="Use the tools to find an answer",
tools=[search_web, visit_webpage]
)
)
agent_trace = agent.run("Which Agent Framework is the best??")
print(agent_trace)
[!TIP]
Multi-agent can be implemented using Agents-As-Tools.
Cookbooks
Get started quickly with these practical examples:
- Creating your first agent - Build a simple agent with web search capabilities.
- Creating your first agent evaluation - Evaluate that simple web search agent using 3 different methods.
- Using Callbacks - Implement and use custom callbacks.
- Creating an agent with MCP - Integrate Model Context Protocol tools.
- Serve an Agent with A2A - Deploy agents with Agent-to-Agent communication.
- Building Multi-Agent Systems with A2A - Using an agent as a tool for another agent to interact with.
Contributions
The AI agent space is moving fast! If you see a new agentic framework that AnyAgent doesn't yet support, we would love for you to create a Github issue. We also welcome your support in development of additional features or functionality.
Running in Jupyter Notebook
If running in Jupyter Notebook you will need to add the following two lines before running AnyAgent, otherwise you may see the error RuntimeError: This event loop is already running. This is a known limitation of Jupyter Notebooks, see Github Issue
import nest_asyncio
nest_asyncio.apply()
0
Followers
0
Repositories
0
Gists
0
Total Contributions
C2S Agent is an lightweight AI Agent construction platform that provides configurable online Agents and MCP services, You can configure any HTTP request interface as an MCP tool. C2S Agent 是一个轻量级的AI Agent构建平台,提供在线可配置的Agent,MCP,您可以一个HTTP请求的接口配置成为一个MCP工具,Agent之间可以进行自交流。并提供了单端口多A2A服务,MCP服务的解决方案
AGENTIX is an automation tool built with Python, designed to enable users to efficiently execute specific tasks. With an intuitive interface and powerful features, it is accessible even to users with limited programming knowledge. It offers a wide range of functionalities, including task automation, data processing, and API integration.