Execution loop detector and guardrail for AI agents
Project description
loop-guardrail
Execution loop detector and guardrail for AI agents.
Usage
from loop_guardrail import ToolCallGuardrailController, ToolCallGuardrailConfig
config = ToolCallGuardrailConfig(hard_stop_enabled=True)
ctrl = ToolCallGuardrailController(config)
# Pre-call check
dec = ctrl.before_call("terminal", {"cmd": "ls"})
if dec.action == "block":
print("Action blocked!")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
loop_guardrail-1.0.0.tar.gz
(10.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file loop_guardrail-1.0.0.tar.gz.
File metadata
- Download URL: loop_guardrail-1.0.0.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d40461755d0ce3dcdc6cc9f8a7e96c928a5ee685dc1e50134db8020ec8be4cc
|
|
| MD5 |
eb672f2dd6fb73ce2d6882e75490cac7
|
|
| BLAKE2b-256 |
459fcaf2ea208a0fed146226bbc29a26f1dbc046367b86677a69d846284cbcaf
|
File details
Details for the file loop_guardrail-1.0.0-py3-none-any.whl.
File metadata
- Download URL: loop_guardrail-1.0.0-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98a24ed119f33e51812f748c35115cbec46e9200a9f2f793b44e121027d63e36
|
|
| MD5 |
83f5929697f57b54ccadbae83aef28f6
|
|
| BLAKE2b-256 |
901ea3660a1dc700555571904f752d492808486ee01e77d7d48af39f71ff5df2
|