No project description provided
Project description
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 Configuration docs for more information about configuring 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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file any_agent-1.18.0.tar.gz.
File metadata
- Download URL: any_agent-1.18.0.tar.gz
- Upload date:
- Size: 366.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d1014a8f21f28d50d3f2c56cad73c2637f32836491f9bf15b03bfaa0701ff99
|
|
| MD5 |
7f692cf10f2476b56cd2ec3236ef89d0
|
|
| BLAKE2b-256 |
3391740723684a55af0df26fdf898a091901ae3c7340743e4f37857d21676c7a
|
Provenance
The following attestation bundles were made for any_agent-1.18.0.tar.gz:
Publisher:
release.yaml on mozilla-ai/any-agent
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
any_agent-1.18.0.tar.gz -
Subject digest:
0d1014a8f21f28d50d3f2c56cad73c2637f32836491f9bf15b03bfaa0701ff99 - Sigstore transparency entry: 962779663
- Sigstore integration time:
-
Permalink:
mozilla-ai/any-agent@58938fe0692f8355275deeb42ddc736300124344 -
Branch / Tag:
refs/tags/1.18.0 - Owner: https://github.com/mozilla-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@58938fe0692f8355275deeb42ddc736300124344 -
Trigger Event:
release
-
Statement type:
File details
Details for the file any_agent-1.18.0-py3-none-any.whl.
File metadata
- Download URL: any_agent-1.18.0-py3-none-any.whl
- Upload date:
- Size: 112.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76f31c8ba4f4d7dbf7b2e7d1fa13f7dd48d041c8960fbf3c36523dea5a184138
|
|
| MD5 |
8dcefa298c7d2700e367cea408fdafae
|
|
| BLAKE2b-256 |
6fc1c5ec0e6389e092a5a183688e44d13cce94f3a470cfacaef1a863157d0670
|
Provenance
The following attestation bundles were made for any_agent-1.18.0-py3-none-any.whl:
Publisher:
release.yaml on mozilla-ai/any-agent
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
any_agent-1.18.0-py3-none-any.whl -
Subject digest:
76f31c8ba4f4d7dbf7b2e7d1fa13f7dd48d041c8960fbf3c36523dea5a184138 - Sigstore transparency entry: 962779669
- Sigstore integration time:
-
Permalink:
mozilla-ai/any-agent@58938fe0692f8355275deeb42ddc736300124344 -
Branch / Tag:
refs/tags/1.18.0 - Owner: https://github.com/mozilla-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@58938fe0692f8355275deeb42ddc736300124344 -
Trigger Event:
release
-
Statement type: