🚀 What's Changed in v0.1.4
🚀 Added
- CrewAI Integration (
CrewGuard&add_guard_to_crew): Added native CrewAI support inlongguard.integrations.crewai. Protects multi-agent crews from delegation loops and repetitive tool calls viastep_callbackand 1-lineadd_guard_to_crew(crew). - Universal
@guardedDecorator: Added@guardeddecorator inlongguard.core.decorator(exported top-level aslongguard.guarded). Wraps arbitrary Python functions, SDK calls, generators, and async coroutines with circuit breaker protection in 1 line. - PEP 561 Typing Support (
py.typed): Addedsrc/longguard/py.typedmarker file andTyping :: Typedpackage classifier for strict IDE and static analysis support (MyPy, Pyright, VS Code Pylance). - CircuitBreakerTrippedError / CircuitBreakerError: Added explicit exception classes carrying
reason,report, anddecisionfor programmatic inspection when an agent is terminated. - Documentation & Theme Polish: Enhanced MkDocs configuration with logo, favicon, GitHub repository icon, back-to-top navigation, tab synchronization, social footer, and new documentation guides for CrewAI and the
@guardeddecorator.
🔄 Changed
- PyPI Metadata & SEO Optimization: Updated official documentation URL to
https://endevsols.github.io/LongGuard/, expanded keywords to 15 high-intent discovery tags, and addedOperating System :: OS IndependentandTopic :: System :: Monitoringclassifiers. - README Links: Converted relative markdown links to absolute GitHub URLs to prevent 404 errors when rendered on PyPI.
- Expanded Test Suite: Added 16 new test cases (271 tests total, 100% passing) covering
@guarded(sync, async, generators, cost limits, fallbacks) andCrewGuard(action/finish parsing, crew wrapping, callback chaining).
📦 Install / Upgrade
Defaulting to user installation because normal site-packages is not writeable
Collecting longguard
Downloading longguard-0.1.3-py3-none-any.whl.metadata (14 kB)
Collecting numpy>=1.24.0 (from longguard)
Downloading numpy-2.5.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.metadata (6.6 kB)
Downloading longguard-0.1.3-py3-none-any.whl (49 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 49.5/49.5 kB 1.9 MB/s eta 0:00:00
Downloading numpy-2.5.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (16.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 16.7/16.7 MB 21.0 MB/s eta 0:00:00
Installing collected packages: numpy, longguard
Successfully installed longguard-0.1.3 numpy-2.5.3
🔗 Resources
| Link | |
|---|---|
| 📖 Documentation | https://endevsols.github.io/LongGuard/ |
| 🐍 PyPI | https://pypi.org/project/longguard/ |
| 🌐 EnDevSols Long Suite | https://endevsols.com/open-source |
| 🐛 Report a Bug | https://github.com/ENDEVSOLS/LongGuard/issues |
| 📜 Full Changelog | https://github.com/ENDEVSOLS/LongGuard/blob/main/CHANGELOG.md |
✅ Quality
- All tests passing (ruff + mypy strict + pytest)
- Supported: Python 3.10, 3.11, 3.12 · Ubuntu & macOS
Part of the EnDevSols Long Suite — production AI tooling for Python.