Skip to main content

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

Quickstart

Here is a simple example of how to use Tono to build an autonomous AI agent:

from tono import Agent, OpenAICompletionClient
from tono.tools import http_request, write_to_file



openai_client = openai.OpenAI(api_key="your-api-key")
client = OpenAICompletionClient(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_ai-0.1.0.tar.gz (35.8 kB view details)

Uploaded Source

Built Distribution

tono_ai-0.1.0-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file tono_ai-0.1.0.tar.gz.

File metadata

  • Download URL: tono_ai-0.1.0.tar.gz
  • Upload date:
  • Size: 35.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for tono_ai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 17b9352af384a3eacada1fed41401eb753f98cebf8ebe56f75d3f623a9f07da9
MD5 ef3e46e8da5d4b357c351031e98f2d2c
BLAKE2b-256 53e14b4ed9efa393673dab97e9b4a2b582df61417c647a864bed647f08ec1cbe

See more details on using hashes here.

File details

Details for the file tono_ai-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tono_ai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for tono_ai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f10cdad0bb5cc0feadbdd9d598341c597285ad333121212b5c37a3f14e9c623d
MD5 2d89fd35f428cb5ad0950ff93226847e
BLAKE2b-256 cbb68083c68eba7bffd4164a620ca52cb7e72b19407bb4ca58baa34f6dae1be1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page