Skip to main content

agent-integrity-proto

Python SDK for the Agent Integrity Protocol — real-time thinking block analysis for AI agent alignment.

Installation

pip install agent-integrity-proto

Usage

from aip import check_integrity, build_signal, AdapterRegistry

# Extract thinking block from LLM response
registry = AdapterRegistry()
thinking = registry.extract(response, provider="anthropic")

# Run integrity analysis
checkpoint = check_integrity(
    thinking_block=thinking.content,
    card=alignment_card,
    config={
        "agent_id": "my-agent",
        "analysis_llm": {
            "model": "claude-haiku-4-5-20251001",
            "base_url": "https://api.anthropic.com",
            "api_key": os.environ["ANTHROPIC_API_KEY"],
            "max_tokens": 1024,
        },
    },
)

# Act on the verdict
if checkpoint.verdict == "clear":
    proceed()
else:
    escalate(checkpoint.concerns)

API

See the full documentation and specification.

Requirements

  • Python >= 3.10

License

Apache 2.0. See LICENSE for details.

Release files for agent-integrity-proto 1.3.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 agent-integrity-proto 1.3.0
File Size Uploaded
agent_integrity_proto-1.3.0.tar.gz 77.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agent-integrity-proto 1.3.0
File Interpreter ABI Platform
agent_integrity_proto-1.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 118.8 kB

Release files / agent_integrity_proto-1.3.0.tar.gz

Download URL agent_integrity_proto-1.3.0.tar.gz
Size 77.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8209f811563c8506ac8fc7961ad1998ad7f8e638a0bcfef130a1e18316730c96
BLAKE2b-256 checksum
How to use checksums
c51409acf5fc7a336023b7d9dda52a227beebe255a95661b81eea3051371ab12
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 Sep 19, 2026.

Transparency log

Release files / agent_integrity_proto-1.3.0-py3-none-any.whl

Download URL agent_integrity_proto-1.3.0-py3-none-any.whl
Size 41.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e1b95f1ecafe1adb720892ee791e691a64c940bdea75ef1b82f345d3cc63c63b
BLAKE2b-256 checksum
How to use checksums
0c3c42d86f794f5ad85f57d22dfa41287dc9b29922c2754456d83e9148fbc2d8
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 Sep 19, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.0

2 release files

1.0.0

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

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