Prevent infinite loops for AI agents
Project description
GuardianLayer
Library to prevent infinite loops in AI systems.
Installation
Install the package from PyPI:
pip install GuardianLayer
(If you are installing a development copy from source:)
git clone https://github.com/your-org/GuardianLayer.git
cd GuardianLayer
pip install -e '.[dev]'
Usage
from GuardianLayer import LoopDetector
detector = LoopDetector()
result = detector.check({"tool": "search", "query": "test"})
if result[0]: # If loop detected
print(f"Loop: {result[1]}")
Notes:
- Package name on PyPI and the import name are both
GuardianLayer. - Example CLI/HTTP endpoints (if your project exposes any) and docs are available via the repository and the
docs/folder — update the links above after you publish the docs or host them (ReadTheDocs / GitHub Pages).
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
guardianlayer-2.0.0.tar.gz
(40.3 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 guardianlayer-2.0.0.tar.gz.
File metadata
- Download URL: guardianlayer-2.0.0.tar.gz
- Upload date:
- Size: 40.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
299b99169a83a03a8351b5db7f981643054d2eb39136fda24446216a98193154
|
|
| MD5 |
126297535511e95803c953b8c337ed3e
|
|
| BLAKE2b-256 |
3e357428fe947c8d5b311c1db1c0078e83371741a6a48752efe9ab2cc7ace66e
|
File details
Details for the file guardianlayer-2.0.0-py3-none-any.whl.
File metadata
- Download URL: guardianlayer-2.0.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6adf72cce6482abc329792ae747f0662952f1611b631f295b14e920e13f7b9c3
|
|
| MD5 |
e3dd88442d87fd7fbe325b897123de7f
|
|
| BLAKE2b-256 |
1e0ecb8a95379ce52ba1e89d5b28202ccf34e6142061074ec49fa306ba662cc0
|