Skip to main content
convy

Did the new build make your agent worse?

A simulated user talks to your agent through its API.
A judge checks the dialogue against the claims in your scenario.

PyPI Python CI License: MIT

Quick start · Docs · Changelog

Historical recording of a shop bot run and its two-build comparison

See a real report →    See the historical comparison →

What convy measures

A scenario gives the simulated user a task and lists the claims a judge should check. Run each scenario several times to see which attempts pass, how long the agent takes to answer, and how many tokens and tool calls it reports. Open a failed attempt to read the dialogue alongside the judge's decisions.

Quick start

Install uv, then create a project.

uvx convy init my-bench              # a project with examples
cd my-bench
uv run convy run echo --smoke        # check convy itself: free, no models called
cp .env.example .env

The commands above install the published release. To try the features described on main, run uv add --editable /path/to/convy in my-bench, using the path to your local checkout.

Set GW_BASE_URL and GW_API_KEY in .env for your OpenAI-compatible gateway. Check the model names in models.py, then run uv run convy run echo to play the scenarios.

Open results/index.html in a browser to see the runs. Each one links to its own results/<agent>/<run>/report.html with the judge’s decisions and the dialogues.

A new project looks like this:

my-bench/
├── gateway.py        # the model gateway, shared by models.py and the agents
├── models.py         # the models that play the user and the judge
├── agents/           # one file per agent
├── scenarios/        # one YAML file per scenario, in folders if you like
└── results/          # a folder per run with its report, and the index

Write a scenario

A scenario says who the user is, what they want, and what the judge should check:

id: clarify-backup
max_turns: 6
user: |
  You need a backup script. Start short: "Make me a backup script".
  Give details only when the assistant asks for them:
  back up ~/photos to /mnt/backup, once a day.
judge:
  - Before giving a finished script, the agent asked what to back up and where to
  - The final script copies ~/photos to /mnt/backup and runs once a day

The judge marks each claim as passed or failed and can give a reason. The report shows which claim failed, in which attempt, next to the dialogue. More in Scenarios.

Connect your agent

An agent with a JSON API needs only settings. Put this in agents/support_bot.py:

from convy import JsonAgent, JsonEndpoint, TokenPaths

agent = JsonAgent(
    JsonEndpoint("https://bot.example.com/api/chat"),
    body={"session_id": "{session}", "message": "{text}"},
    reply="data.answer",
    tokens=TokenPaths(input="data.usage.input_tokens", output="data.usage.output_tokens"),
)

Then check the connection and run it:

uv run convy run support_bot --smoke   # the agent answers for real, nothing else is called
uv run convy run support_bot -k 3      # every scenario, three attempts each

Keys, streaming, logins, blocking clients and certificates are in Connect an agent.

Compare two builds

Open results/index.html after running both builds. Compare their pass counts, answer times, token use and tool calls. Choose a reference to see pass-rate differences for comparable runs, or open a scenario from the matrix to read the dialogue that explains a failure.

In CI, identify the baseline and candidate by run ID or unique suffix.

uv run convy compare 7ad8 5e85 --fail-on-regression   # before, then after

With both runs loaded, exit code 3 means the check found evidence of a regression or could not compare the runs. See The report and CI exit codes.

convy and other tools

convy uses YAML scenarios and writes offline reports. For scenarios written in code, see LangWatch Scenario. If you already use an evaluation framework, see promptfoo’s simulated user or DeepEval’s conversation simulator.

Status

convy is in alpha. The Python API and the format of runs may change before 1.0. See the changelog.

convy run executes project Python files, including the selected agent. Run projects you trust. See the security policy.

Documentation

page what is in it
Connect an agent JSON agents, your own classes, tokens, certificates
Scenarios how to write them, verdicts, convy run options
The judge how sure it is, --trust, your own judge
Runs the run folder, stop and resume, exit codes
The report runs workspace, scenario details, two-run CLI comparison
Results as data a run as tables, convy export, pandas
Run from Python the library behind the command
The shop demo the bot behind the recorded demo
Architecture for people who change convy's code

Contributing

Issues and pull requests are welcome. Read CONTRIBUTING.md first, and follow the Code of Conduct. Report vulnerabilities privately, as the security policy says.

License

MIT

Metadata

Release files for convy 0.6.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 convy 0.6.0
File Size Uploaded Provenance Actions
convy-0.6.0.tar.gz 79.8 kB With provenance Details for convy-0.6.0.tar.gz

Built distribution (wheel)

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

Total release size: 172.0 kB

Release files / convy-0.6.0.tar.gz

Download URL convy-0.6.0.tar.gz
Size 79.8 kB
Tags Source
SHA-256 checksum
How to use checksums
dd8b4a5a236695f92cd7343891fd5b5801fff565fd0c03c5859d6c91b615d676
BLAKE2b-256 checksum
How to use checksums
2466095d719bf40fdde88f2e36cbab240ae2b4839d51984b8c5d3cf45f81402a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / convy-0.6.0-py3-none-any.whl

Download URL convy-0.6.0-py3-none-any.whl
Size 92.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2d1886940f1d782b5b7e0048f88ef4b48dddaace945c0d2c19cf09f709c9c914
BLAKE2b-256 checksum
How to use checksums
d6dea718f2915a803993c9ae83a5b17fd11020965e689575dc28fd26a90fd753
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Security for convy 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for convy-0.6.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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