Skip to main content

A framework for building autonomous AI agents

Project description

Tono

image GitHub License Build Discord

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[all]"

If you only want to use the OpenAI models, run:

pip install "tono[openai]"

Alternatively, if you would only like to use the Anthropic models, run:

pip install "tono[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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tono-0.1.3.tar.gz (39.9 kB view details)

Uploaded Source

Built Distribution

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

tono-0.1.3-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file tono-0.1.3.tar.gz.

File metadata

  • Download URL: tono-0.1.3.tar.gz
  • Upload date:
  • Size: 39.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for tono-0.1.3.tar.gz
Algorithm Hash digest
SHA256 e2e53c2cc4eb0d4ce17b57d31095d7885e037c2160adccc28392c52f059bc6ae
MD5 e3e3feb5649b8d7f553c69dd747af42e
BLAKE2b-256 160ffb511b0da07a1a0d6bf8dddad6d17f04b2daed1104e40e8d8c83ce05284f

See more details on using hashes here.

File details

Details for the file tono-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: tono-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for tono-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fb64365c10f3c9fe21fea3bd7228172203be4442371fa6f0f335b324fb073f4f
MD5 6dd16b2dcce91d9b7053254fa0d5d84e
BLAKE2b-256 4d51cb42dd7a230eba2f6e2ecb1b7c8b0c615177128eb5d1700718c372e4326b

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