Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 1.1.1 instead.
Reason given by maintainers: false-green defects; use >=1.0.1

attest-ai

Test framework for AI agents. Deterministic assertions (schema validation, cost constraints, trace ordering, content matching) over agent execution traces.

Install

uv add "attest-ai>=1.0.0"

With LLM provider support:

uv add "attest-ai[openai]>=1.0.0"      # OpenAI
uv add "attest-ai[anthropic]>=1.0.0"   # Anthropic
uv add "attest-ai[gemini]>=1.0.0"      # Google Gemini
uv add "attest-ai[ollama]>=1.0.0"      # Ollama (local)
uv add "attest-ai[all]>=1.0.0"         # All providers

Quick start

import attest
from attest import expect

result = attest.AgentResult(
    trace=trace,  # captured from your agent
    assertion_results=[],
)

# Layer 1: Schema validation
expect(result).output_matches_schema({"type": "object", "required": ["refund_id"]})

# Layer 2: Cost & performance constraints
expect(result).cost_under(0.05)
expect(result).latency_under(5000)

# Layer 3: Trace structure
expect(result).tools_called_in_order(["lookup_order", "process_refund"])
expect(result).no_tool_loops(max_iterations=3)

# Layer 4: Content assertions
expect(result).output_contains("refund")
expect(result).output_not_contains("sorry")

Pytest integration

Attest registers as a pytest plugin automatically:

pytest tests/ --attest-engine=/path/to/attest-engine

Metadata

Release files for attest-ai 1.0.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 attest-ai 1.0.0
File Size Uploaded Provenance Actions
attest_ai-1.0.0.tar.gz 532.0 kB With provenance Details for attest_ai-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for attest-ai 1.0.0
File Interpreter ABI Platform Actions
attest_ai-1.0.0-py3-none-any.whl Python 3 none any Details for attest_ai-1.0.0-py3-none-any.whl

Total release size: 653.0 kB

Release files / attest_ai-1.0.0.tar.gz

Download URL attest_ai-1.0.0.tar.gz
Size 532.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d4d3a1c8aeb9e5e20ea73d23076fb2fadeb71c41d1a04f30e0915e7271f24d09
BLAKE2b-256 checksum
How to use checksums
be0dc56729c060a78e40bbbd3ac5eb0eb95bc4f52eddf28d80b4537be4cd06a6
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 4, 2026.

Transparency log

Release files / attest_ai-1.0.0-py3-none-any.whl

Download URL attest_ai-1.0.0-py3-none-any.whl
Size 121.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9ccb330243829c6a3f8bf2b5412a11e393cd0ebb31ede7e7f38228843d661a4b
BLAKE2b-256 checksum
How to use checksums
e60af38db43868c8325fac9beafb5b4eed9a4782c80252fd7424e579b16bdb89
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 4, 2026.

Transparency log

Security for attest-ai 1.0.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 attest_ai-1.0.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 4, 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