This release is a pre-release and may not be stable for production use.
pip install attest-ai==1.0.0rc3 Copy PIP instructions
Test framework for AI agents. Deterministic assertions (schema validation, cost constraints, trace ordering, content matching) over agent execution traces.
uv add "attest-ai>=1.0.0rc1" With LLM provider support:
uv add "attest-ai[openai]>=1.0.0rc1" # OpenAI uv add "attest-ai[anthropic]>=1.0.0rc1" # Anthropic uv add "attest-ai[gemini]>=1.0.0rc1" # Google Gemini uv add "attest-ai[ollama]>=1.0.0rc1" # Ollama (local) uv add "attest-ai[all]>=1.0.0rc1" # 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 Links Repository Contributing License (Apache-2.0) Project links Data verified by PyPI on Nov 3, 2026 Data provided by the project maintainers, verified at the time the release was uploaded to PyPI. Documentation Homepage Issues Repository Key dates PyPI data Data sourced directly from PyPI's database. Released: Nov 3, 2026 Newer release available (1.0.0) 1 maintainer PyPI data Data sourced directly from PyPI's database. tommathews Credits Author: Attest Contributors
All 2 files in this release have provenance metadata.
all anthropic crewai dev gemini google-adk integration-test langchain llamaindex ollama openai otel
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 3, 2026.
All 2 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.




