maigp-llamaindex
AIGP governance for LlamaIndex agents.
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 LlamaIndex agents / query engines via a callback handler.
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-llamaindex
Pulls in maigp-agent-core (shared lifecycle) and, transitively, maigp-client.
Quick start
from llama_index.core import Settings
from aigp_llamaindex import AigpCallbackHandler
handler = AigpCallbackHandler(gov_url="https://gov.example.com",
app_id="my-rag-agent", hmac_secret="secret")
Settings.callback_manager.add_handler(handler)
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-llamaindex 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| maigp_llamaindex-1.0.1.tar.gz | 2.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| maigp_llamaindex-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.9 kB
Release files / maigp_llamaindex-1.0.1.tar.gz
| Download URL | maigp_llamaindex-1.0.1.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
266805e796c5d1727e8c43cdadf6732f9eb66cc4fd2a3c37ed89488f9e22e7d5
|
|
BLAKE2b-256 checksum How to use checksums |
f69e3d19d08e9a90d0589a600273df267ade995518234c43f5499b3cf3d7028d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / maigp_llamaindex-1.0.1-py3-none-any.whl
| Download URL | maigp_llamaindex-1.0.1-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
488627601d8f44d43c5aa84aa74f2acfcc2642d260399be5f72fc625ed06d922
|
|
BLAKE2b-256 checksum How to use checksums |
48328c35e4c37b59ff04df58aad6d139e0ab85b23c5866c3a3185eb1368b012e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|