Skip to content

LongGuard v0.1.4

Latest

Choose a tag to compare

@github-actions github-actions released this 24 Sep 11:01

🚀 What's Changed in v0.1.4

🚀 Added

  • CrewAI Integration (CrewGuard & add_guard_to_crew): Added native CrewAI support in longguard.integrations.crewai. Protects multi-agent crews from delegation loops and repetitive tool calls via step_callback and 1-line add_guard_to_crew(crew).
  • Universal @guarded Decorator: Added @guarded decorator in longguard.core.decorator (exported top-level as longguard.guarded). Wraps arbitrary Python functions, SDK calls, generators, and async coroutines with circuit breaker protection in 1 line.
  • PEP 561 Typing Support (py.typed): Added src/longguard/py.typed marker file and Typing :: Typed package classifier for strict IDE and static analysis support (MyPy, Pyright, VS Code Pylance).
  • CircuitBreakerTrippedError / CircuitBreakerError: Added explicit exception classes carrying reason, report, and decision for 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 @guarded decorator.

🔄 Changed

  • PyPI Metadata & SEO Optimization: Updated official documentation URL to https://endevsols.github.io/LongGuard/, expanded keywords to 15 high-intent discovery tags, and added Operating System :: OS Independent and Topic :: System :: Monitoring classifiers.
  • 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) and CrewGuard (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.