AffixIO Agent Guard β€” Python mirror (Model repo)

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

Version

  • v1.0.0 β€” Python mirror of guard v0.1.0 logic. See CHANGELOG.md.

Links

Keywords: AI agents, guardrails, LLM security, MCP, agent verification, tool calling, local AI.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Collection including AffixIO/affixio-agent-guard-py