A framework for building autonomous AI agents
Project description
Tono
Tono is a framework for building autonomous AI agents.
Features
- 🔋 Batteries included - Tono provides a basic set of tools for building autonomous AI agents
- 🚀 Automatic tool definition inference from function definition and reStructuredText docstrings
- ✨ Support for OpenAI models
- ✨ Support for Anthropic models
Installation
You can install Tono using pip:
pip install tono-ai[all]
If you only want to use the OpenAI models, run:
pip install tono-ai[openai]
Alternatively, if you would only like to use the Anthropic models, run:
pip install tono-ai[anthropic]
Quickstart
Here is a simple example of how to use Tono to build an autonomous AI agent:
import openai
from tono import Agent
from tono.models.openai import CompletionClient
from tono.tools import http_request, write_to_file
openai_client = openai.OpenAI(api_key="your-api-key")
client = CompletionClient(client=openai_client)
agent = Agent(
name="gpt-agent",
client=client,
tools=[write_to_file, http_request],
context=[
{
"role": "assistant",
"content": "You are a helpful assistant that...",
}
],
)
agent.start(objective="Use the supplied tools to...")
Contributing
We are passionate about supporting contributors of all levels of experience and would love to see you get involved in the project. See the contributing guide to get started.
License
Tono is licensed under the MIT License.
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
File details
Details for the file tono_ai-0.1.2.tar.gz
.
File metadata
- Download URL: tono_ai-0.1.2.tar.gz
- Upload date:
- Size: 39.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f01804d6fcbff7d87571cf34dbe5a7850fcc48ca8af2c0fe802f8d0dcef26862 |
|
MD5 | f2f558c4e5c050e0dedd9120833da937 |
|
BLAKE2b-256 | ca8fcc8c0b77f27f88eb02e08ae475ac56498cfd7755f595c5b211f3c805ceb3 |
File details
Details for the file tono_ai-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: tono_ai-0.1.2-py3-none-any.whl
- Upload date:
- Size: 15.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ece8e3545a70d45ef567d99ad7e7fddb3d33c65e36bb8827a1d9e64cc98a7b4 |
|
MD5 | d7758c1dc816c1035b6c396e89968231 |
|
BLAKE2b-256 | 6edfb2e8d826124f708418e14023f519964534680b7140244997f80cb194d37e |