Skip to main content

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


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)

Source distribution for maigp-llamaindex 1.0.1
File Size Uploaded
maigp_llamaindex-1.0.1.tar.gz 2.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for maigp-llamaindex 1.0.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

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