Skip to main content

LoopGrid Python SDK

LoopGrid is the evidence plane for AI agents. The SDK captures the decision lifecycle—agent identity, delegated authority, model/context, policy, human oversight, tool/action and observed outcome—and exports signed, tamper-evident evidence.

pip install loopgrid
from loopgrid import LoopGrid

lg = LoopGrid(base_url="http://localhost:8000", api_key="lg_live_...")

d = lg.record_decision(
    decision_type="customer_refund",
    agent={"id": "support-agent", "version": "1.0"},
    authority={"acting_for": "Acme", "limit_usd": 1500, "scope": ["refund:create"]},
    model={"provider": "openai", "name": "gpt-5"},
    context={"prompt_version": "support-v1"},
    proposed_action={"tool": "stripe.refunds.create", "amount": 720, "currency": "USD"},
)

print(d["decision_id"])
print(lg.verify_workspace())

The v0.8 package is a design-partner release, not Production GA. Signed/tamper-evident evidence is not a legal compliance determination.

Release files for loopgrid 0.8.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 loopgrid 0.8.0
File Size Uploaded
loopgrid-0.8.0.tar.gz 10.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for loopgrid 0.8.0
File Interpreter ABI Platform
loopgrid-0.8.0-py3-none-any.whl Python 3 none any Details

Total release size: 22.1 kB

Release files / loopgrid-0.8.0.tar.gz

Download URL loopgrid-0.8.0.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d27c3e1dd362831b2d60371be6cf7b48e068351e8054363c5761dcf5c81667d0
BLAKE2b-256 checksum
How to use checksums
ecb8837b7e2b81050eb035079dfb90303410ea113ad16aaa3ad617609ccd3276
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.6

Release files / loopgrid-0.8.0-py3-none-any.whl

Download URL loopgrid-0.8.0-py3-none-any.whl
Size 11.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3e42d09c6d4fef121accd0c1c1c107a889c06d08069892db146541aa1f7d3c44
BLAKE2b-256 checksum
How to use checksums
518ee907f03e9a64fa4dda6a79d90f09b43be572acc93989018e226d1ad63294
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.6

Release history Release notifications | RSS feed

This release

0.8.0 This release

2 release files

0.1.1

2 release files

0.1.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