Downloads · 30 days
0
AffixIO/affixio-agent-guard-py
affixio-agent-guard-py is a machine learning model from AffixIO. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Python mirror of the npm affixio-agent-guard policy: deterministic, fail-closed check of one tool call + local JSON receipt. Zero network, zero keys. Receipts are local simulations, not cryptographic attestations — sa…
Downloads · 30 days
0
Access
Public
Updated Sep 19, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py3.2 KB · 51%
From the Hugging Face model README
Python mirror of the npm affixio-agent-guard policy: deterministic,
fail-closed check of one tool call + local JSON receipt. Zero network,
zero keys. Receipts are local simulations, not cryptographic
attestations — same honest contract as the npm package.
npm install affixio-agent-guard # Node version
python test_guard.py # this Python mirror
from guard import check_tool_call
d = check_tool_call({"tool": "payments.create", "host": "api.example.com",
"amount": 120, "args": {"customer": "cust_42"}})
print(d["allowed"], d["reason"]) # True allowed by policy
Policy keys: allowedTools, allowedHosts, maxAmount,
blockedSecrets, requireApprovalFor (fail-closed: denied unless you
build your own approval step).
Keywords: AI agents, guardrails, LLM security, MCP, agent verification, tool calling, local AI.