TruAssure: black-box, evidence-based quality engineering for AI agents (chat, task and multi-agent).
pip install truassure==1.6.1 Copy PIP instructions
Know what your AI agents actually did, not just what they said.
TruAssure is a black-box, evidence-based quality engineering framework for AI agents: chat assistants, task agents (LangGraph, OpenAI Agents SDK, custom loops) and multi-agent workflows. It judges every checkpoint on independent evidence (the agent's tool calls as a recording proxy saw them, its handoffs, the data it changed) and compares that with what the agent claims. It runs the same scenarios under injected faults, rephrasings and repeats, and turns the results into release decisions.
pip install truassure # the ta / truassure commands and the library pip install "truassure[mcp,proxy,otel]" # plus the MCP server, the recording proxy and A2A tap, the OTel receiver Python 3.11 or later, on Windows, Linux or macOS. MIT licence.
ta demo # the whole tour on a scripted agent: no Docker, no LLM, no network ta console --runs-dir ta_demo --open # browse the runs, reports, comparisons and gates ta docs --open # the full guide, shipped inside the package Test your own agent ta new task my-agent-tests # or: ta new workflow ... / ta new chat ... cd my-agent-tests # catalog.yaml, environment.py, truassure-gate.yaml, .env.example, README.md ta validate catalog.yaml ta run catalog.yaml --env environment:environment --repeats 3 --perturbations all ta report latest ta gate latest --policy truassure-gate.yaml ta init --ci github --catalog catalog.yaml --env environment:environment # or --ci azure Enterprise systems pip install "truassure[postgres]" # or [sqlserver], [mysql], [oracle], [sql] for SQLAlchemy alone from truassure.adapters.state.factory import make_state from truassure.adapters.drivers.queue import QueueDriver, ServiceBusTransport from truassure.profiles.task import task_environment def environment(worker): return task_environment( name="claims", driver=QueueDriver(ServiceBusTransport.from_env(), request="claims-events", reply="claims-results"), state=[ make_state("oracle+oracledb://reader:***@db:1521/?service_name=CLAIMS", schema="CLAIMS"), make_state("https://crm.test.example/api", resources={"cases": "/cases"}), ], ) Any SQL database SQLAlchemy supports, read-only, with tables and keys found by reflection. A factory picks the adapter from a URL or path. There are drivers for HTTP, chat, OpenAI-compatible endpoints, Azure Service Bus and Kafka. ta library lists reusable scenario packs (privacy, prompt injection, unsafe writes, payments and approvals, identity across handoffs, conversation handling, answers and boundaries, tone and policy) that a catalog includes with its own parameters; each tags its scenarios with catalogue test types.
pip install "truassure[s3]" # or [azure-blob], or [postgres] etc. for a database store; a folder needs nothing ta push # share the latest run (store, initiative and team in truassure.yaml) ta run catalog.yaml --env environment:environment --publish ta portfolio --store s3://quality-results/truassure --csv portfolio.csv ta console --store s3://quality-results/truassure --open The portfolio shows every initiative and project: the latest gate verdict, pass rate, pass^k, open defects by severity, the trend, and each run's report. Nothing is shared without ta push or --publish.
The starter project connects to an agent behind HTTP. Put ta proxy in front of the agent's tools, and ta a2a between its agents, to get an independent record of every call and handoff and to inject faults.
Each checkpoint is judged at five stages, and TruAssure reports the first one that failed:
Seven evidence seams (SE-01 to SE-07) catch the failures an agent's own account hides. Examples: a call it reported that never happened, a write it never mentioned, success announced after a failure, a handoff that carries another customer's identity, and a different deployment that behaves differently.
ta --help lists every option. Examples use fictitious data (Harbor Mutual).
Both files in this release have provenance metadata.
anthropic azure azure-blob chat dev kafka langgraph mcp mysql oracle otel postgres proxy s3 servicebus sql sqlserver
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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 verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Both files in this release have been uploaded with provenance metadata.
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.




