A Python framework for LLM tool calls routing, automation, and orchestration
Project description
Voitta
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.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file voitta-0.6.0.tar.gz.
File metadata
- Download URL: voitta-0.6.0.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
278f661e7437a2aeb7cb2b4f1fea2549222276a349d5587d5bd88718f22dd74f
|
|
| MD5 |
66745a4bda953f205c9c0508d53cb42c
|
|
| BLAKE2b-256 |
e2c880e7a853794e0e9a137c6a5bb9a4804f983ea2e967e865e4d400cddae508
|
File details
Details for the file voitta-0.6.0-py3-none-any.whl.
File metadata
- Download URL: voitta-0.6.0-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7ba6ff5b580dbc7c28e790f7be786aae7b7b9d82f17cae905ba07ddc39f7801
|
|
| MD5 |
01d0dcc263aa9c5c9bc298739cd345ad
|
|
| BLAKE2b-256 |
d1177ac45e012c62d2fdd4ad1a937a4a87fd93dd47ce2b563597116f2d5c25f9
|