Testing framework for LLM tool-call accuracy — audio & text
Project description
Testing framework for LLM tool-call accuracy — audio & text
Documentation: https://mohit2152sharma.github.io/russo
Source Code: https://github.com/mohit2152sharma/russo
russo is a testing framework for verifying that LLM agents make the correct tool calls when given audio (or text) input. Think of it as pytest for voice AI tool-calling accuracy.
Key Features
- Provider-agnostic — works with Gemini, OpenAI, or any custom agent via protocols
- Audio-first — synthesize text prompts to audio, send to your agent, evaluate tool calls
- pytest integration — use markers, fixtures, and familiar test patterns
- Built-in caching — skip TTS on repeated runs, saving time and money
- Extensible — swap synthesizers, agents, evaluators, and parsers via structural typing
Quick Start
pip install russo
With optional providers:
pip install "russo[openai]" # OpenAI support
pip install "russo[ws]" # WebSocket agents
pip install "russo[all]" # Everything
Minimal Example
import russo
from russo.synthesizers import GoogleSynthesizer
from russo.adapters import GeminiLiveAgent
from russo.evaluators import ExactEvaluator
result = await russo.run(
prompt="Book a flight from Berlin to Rome for tomorrow",
synthesizer=GoogleSynthesizer(api_key="..."),
agent=GeminiLiveAgent(api_key="...", tools=[...]),
evaluator=ExactEvaluator(),
expect=[
russo.tool_call("book_flight", from_city="Berlin", to_city="Rome"),
],
)
russo.assert_tool_calls(result)
pytest Integration
import pytest
import russo
@pytest.mark.russo(
prompt="Book a flight from NYC to LA",
expect=[russo.tool_call("book_flight", from_city="NYC", to_city="LA")],
)
async def test_book_flight(russo_result):
russo.assert_tool_calls(russo_result)
License
This project is licensed under the terms of 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
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 russo-0.3.1.tar.gz.
File metadata
- Download URL: russo-0.3.1.tar.gz
- Upload date:
- Size: 133.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b9ab9b1ef9b5fcfb17dbeedc36e3a84882fa09d54e13506cc88a2c189c8492f
|
|
| MD5 |
401284e112e8f0edf11b346fbc015860
|
|
| BLAKE2b-256 |
df4d6af0b2e85d784145935f77ad64dd5ec497c810fe203441996386c835829f
|
Provenance
The following attestation bundles were made for russo-0.3.1.tar.gz:
Publisher:
publish.yml on mohit2152sharma/russo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
russo-0.3.1.tar.gz -
Subject digest:
5b9ab9b1ef9b5fcfb17dbeedc36e3a84882fa09d54e13506cc88a2c189c8492f - Sigstore transparency entry: 954870141
- Sigstore integration time:
-
Permalink:
mohit2152sharma/russo@320a4b08dbb57aed775ca049fafe47944f012afe -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/mohit2152sharma
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@320a4b08dbb57aed775ca049fafe47944f012afe -
Trigger Event:
release
-
Statement type:
File details
Details for the file russo-0.3.1-py3-none-any.whl.
File metadata
- Download URL: russo-0.3.1-py3-none-any.whl
- Upload date:
- Size: 38.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b5a7dcfce28c99259d08597ea6f5cebd31a44aff9c88442a9a3a5d75921cf33
|
|
| MD5 |
53068d74295a62e6ae626433d82986f0
|
|
| BLAKE2b-256 |
6e373a1e3478055549e5516f08383b0364aafe48bb7bfb87f81d255410b80fb7
|
Provenance
The following attestation bundles were made for russo-0.3.1-py3-none-any.whl:
Publisher:
publish.yml on mohit2152sharma/russo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
russo-0.3.1-py3-none-any.whl -
Subject digest:
9b5a7dcfce28c99259d08597ea6f5cebd31a44aff9c88442a9a3a5d75921cf33 - Sigstore transparency entry: 954870161
- Sigstore integration time:
-
Permalink:
mohit2152sharma/russo@320a4b08dbb57aed775ca049fafe47944f012afe -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/mohit2152sharma
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@320a4b08dbb57aed775ca049fafe47944f012afe -
Trigger Event:
release
-
Statement type: