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-ai

Quickstart

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

import openai
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.1.tar.gz (36.0 kB view details)

Uploaded Source

Built Distribution

tono_ai-0.1.1-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tono_ai-0.1.1.tar.gz
  • Upload date:
  • Size: 36.0 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.1.tar.gz
Algorithm Hash digest
SHA256 e1917dbbd71fad7fb282ee6b046195ae516f9646c5d92f0944aa8ebfe5d2289e
MD5 c46ace3758cad8ea38964ebe699d7f14
BLAKE2b-256 1a8679ae7620512f454da6508eacfb1e42521522bfe87f1b82186d4198792c7a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tono_ai-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.8 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e3c6f85ba7bb1f2b349c031a4be7e0a91732b4e08c907517f08445fc8e00f55a
MD5 716ba6d49e18e11ac60adad6998bf02c
BLAKE2b-256 1c9617921ef78bff3b6cd91349efee5320586b7ab57959437bbdf58c7b60bdba

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