Skip to main content

ag-ui-validate (Python)

Native Python port of ag-ui-validate, a conformance validator for the AG-UI protocol. Same rule catalog, same fixture corpus, byte-identical CLI flags and JSON/SARIF/JUnit output as the TypeScript implementation — checked against it on every PR by Parity CI.

pip install ag-ui-validate   # or "ag-ui-validate[transport]" for just the endpoint-validating extras

To install from source instead:

git clone https://github.com/langport-dev/ag-ui-validate
cd ag-ui-validate/py
pip install -e ".[dev]"

CLI

ag-ui-validate http://localhost:8000/agui   # live endpoint (POSTs a RunAgentInput)
ag-ui-validate run.jsonl                    # recorded stream (NDJSON/JSONL or SSE capture)
cat run.jsonl | ag-ui-validate -            # stdin

Exit codes: 0 clean, 1 findings at error level (or warnings over --max-warnings), 2 tool failure. See ag-ui-validate --help for the full flag list.

pytest plugin

from ag_ui_validate.pytest_plugin import assert_valid_agui

def test_my_agent_stream(captured_events):
    assert_valid_agui(captured_events, features=["shared-state"], max_warnings=0)

Registers automatically as a pytest plugin on install — no conftest.py setup needed. An async counterpart, assert_valid_agui_endpoint, validates a live endpoint directly from a test.

More

See the main README for the full rule catalog and design commitments, and docs/PYTHON-PORT-PLAN.md for the port's milestone history.

Metadata

Release files for ag-ui-validate 0.4.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 ag-ui-validate 0.4.0
File Size Uploaded Provenance
ag_ui_validate-0.4.0.tar.gz 78.7 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ag-ui-validate 0.4.0
File Interpreter ABI Platform
ag_ui_validate-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 184.6 kB

Release files / ag_ui_validate-0.4.0.tar.gz

Download URL ag_ui_validate-0.4.0.tar.gz
Size 78.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9ab0ca08d899c4d2e2ef6771bf11377a87355e7b29adedec75e1e721092f1d37
BLAKE2b-256 checksum
How to use checksums
c5b895d9c0dd14bb68523990bd243221b9deaff557fc71b0efef6e7305eccf1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 29, 2026.

Transparency log

Release files / ag_ui_validate-0.4.0-py3-none-any.whl

Download URL ag_ui_validate-0.4.0-py3-none-any.whl
Size 106.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d4d27d2e66b8ce604448fae7ef7b6f396a0f93b4a86c079029650321c5eb08fb
BLAKE2b-256 checksum
How to use checksums
afecdf15d5307adc05e2b4ada5a95043cffd6478502121f4d347472ddad0f8f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 29, 2026.

Transparency log

Security for ag-ui-validate 0.4.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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ag_ui_validate-0.4.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 Aug 29, 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.

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files Full provenance

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