Skip to main content

Voitta

PyPI version Python Versions Downloads License GitHub Stars

A Python framework for routing, automating, and orchestrating LLM tool calls. Voitta simplifies the integration of AI agents with external tools and APIs, enabling more powerful and flexible AI applications.

Features

  • Tool Call Routing: Seamlessly route LLM tool calls to the appropriate handlers
  • Flexible Configuration: Define your tools and routing logic using YAML or Python
  • Framework Agnostic: Works with any LLM provider or framework
  • Extensible Architecture: Easily add custom tools and integrations
  • Observability: Monitor and debug tool calls with built-in logging

Installation

From PyPI (Stable Release)

pip install voitta

From TestPyPI (Pre-release Versions)

To install the latest pre-release version from TestPyPI:

pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ voitta

The --extra-index-url flag is needed to fetch dependencies from the main PyPI repository, as TestPyPI may not have all the required dependencies.

You can also specify a particular version:

pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ voitta==0.2.3

Note: Pre-release versions on TestPyPI may contain experimental features and bugs. Use in production environments at your own risk.

Quick Start

from voitta import Voitta

# Initialize Voitta
voitta = Voitta()

# Register a tool handler
@voitta.tool("get_weather")
def get_weather(location, unit="celsius"):
    # Implementation to fetch weather data
    return {"temperature": 22, "condition": "sunny", "location": location, "unit": unit}

# Process an LLM tool call
result = voitta.process_tool_call({
    "name": "get_weather",
    "arguments": {"location": "San Francisco", "unit": "fahrenheit"}
})

print(result)  # Output: {"temperature": 72, "condition": "sunny", "location": "San Francisco", "unit": "fahrenheit"}

Usage

For detailed usage examples and documentation, please refer to:

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Release files for voitta 0.28.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for voitta 0.28.0
File Size Uploaded
voitta-0.28.0.tar.gz 16.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for voitta 0.28.0
File Interpreter ABI Platform
voitta-0.28.0-py3-none-any.whl Python 3 none any Details

Total release size: 32.6 kB

Release files / voitta-0.28.0.tar.gz

Download URL voitta-0.28.0.tar.gz
Size 16.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2a51c583f6ffd4412e6b31b43ba1bc8382e22ade66f8a4549d964790a05b4dc6
BLAKE2b-256 checksum
How to use checksums
afa40b531dfbfadc1a07758eb7b91d697395e61bf9a7eeb1921cc6ff01bcfbe6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.12

Release files / voitta-0.28.0-py3-none-any.whl

Download URL voitta-0.28.0-py3-none-any.whl
Size 16.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f75cc1ebff43a82bd34caa77353f039cc6713762315b379f364be6942ceae926
BLAKE2b-256 checksum
How to use checksums
fad075c382e976e021e9382dfc97b15085bb9eff59a6d4d47d463acf5aaefe5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.12

Release history Release notifications | RSS feed

This release

0.28.0 This release

2 release files

0.27.0

2 release files

0.24.0

2 release files

0.22.0

2 release files

0.19.0

2 release files

0.18.0

2 release files

0.17.0

2 release files

0.16.0

2 release files

0.15.0

2 release files

0.14.0

2 release files

0.12.0

2 release files

0.9.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.0.1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page