maigp-pydantic-ai
AIGP governance for PydanticAI.
Part of MAIGP — the Mediated AI Governance Protocol: a runtime consent / scope / evidence layer for AI systems. Every governed call is CHECKed before it runs (policy, scope, jurisdiction, circuit-breaker) and RECORDed + TRACEd as tamper-evident evidence after.
What it governs
Governs PydanticAI agents.
Governance model
This adapter maps the framework's lifecycle onto the AIGP agent-governance loop provided by maigp-agent-core:
| Framework event | AIGP action |
|---|---|
| run / invocation start | CHECK (pre_invoke) — allowed? under what authority? |
| each model reply | token accounting (on_model_call) |
| each tool / function call | tool governance (on_tool_call) |
| run complete | RECORD + TRACE (post_invoke) |
| failure | on_error (recorded, then re-raised) |
Install
pip install maigp-pydantic-ai
Pulls in maigp-agent-core (shared lifecycle) and, transitively, maigp-client.
Quick start
from aigp_pydantic_ai import governed_agent, AigpPydanticAIHandler
# Wrap a PydanticAI Agent so its runs are CHECK-gated and RECORD-ed
agent = governed_agent(my_agent, gov_url="https://gov.example.com",
app_id="my-pai-agent", hmac_secret="secret")
Links
- Protocol, specs & full adapter catalog: https://github.com/owner-spec/aigp-protocol
- Issues: https://github.com/owner-spec/aigp-protocol/issues
License: Proprietary. © Kanjani AI Research & Causum.
Metadata
Release files for maigp-pydantic-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)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| maigp_pydantic_ai-1.0.0.tar.gz | 7.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| maigp_pydantic_ai-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.2 kB
Release files / maigp_pydantic_ai-1.0.0.tar.gz
| Download URL | maigp_pydantic_ai-1.0.0.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bc629ddcbfc8842a62629cb2e203a4e736e72b7089e834767969fc0c5acc12b5
|
|
BLAKE2b-256 checksum How to use checksums |
f17cb3f19f4a5540f0dd9854a9aa03ac16f250e85b1866249d0af3f7abeb5eba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / maigp_pydantic_ai-1.0.0-py3-none-any.whl
| Download URL | maigp_pydantic_ai-1.0.0-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
74bfccc1b2e79801fa58ff7329d278318479cbf79b85f9defc7f4a79247be792
|
|
BLAKE2b-256 checksum How to use checksums |
04b85fee251892b590696733c884664118b9e9f8640b411a9d2407489a81c2ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for maigp-pydantic-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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.