Metadata-Version: 2.5
Name: aegis-gateway-pack-llm-guard
Version: 2.0.0a3
Summary: Aegis policy pack: LLM Guard scanners (prompt injection, toxicity, secrets).
Project-URL: Homepage, https://e-choness.github.io/aegis/
Project-URL: Documentation, https://e-choness.github.io/aegis/
Project-URL: Repository, https://github.com/e-choness/aegis
Project-URL: Changelog, https://e-choness.github.io/aegis/changelog
Project-URL: Issues, https://github.com/e-choness/aegis/issues
Author: Aegis contributors
License-Expression: AGPL-3.0-or-later
License-File: LICENSE
Keywords: ai-gateway,audit,governance,guardrails,llm,openai,pii
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Security
Classifier: Typing :: Typed
Requires-Python: >=3.12
Requires-Dist: aegis-gateway-core==2.0.0a3
Provides-Extra: all
Requires-Dist: llm-guard>=0.3; extra == 'all'
Provides-Extra: llm-guard
Requires-Dist: llm-guard>=0.3; extra == 'llm-guard'
Description-Content-Type: text/markdown

# aegis-gateway-pack-llm-guard

Runs [LLM Guard](https://protectai.github.io/llm-guard/) input scanners (prompt injection,
toxicity, secrets, …) as Aegis guardrails.

```bash
pip install "aegis-gateway-pack-llm-guard[llm-guard]"   # installs LLM Guard and PyTorch
```

LLM Guard 0.3.16 pins `transformers` and `json-repair` versions with known
advisories; only install it if you need its model-based scanners.

```yaml
guardrails:
  injection:
    pack: aegis.llm_guard
    scanners: [PromptInjection]
    threshold: 0.8
pipeline:
  ingress: [injection]
```

See [LLM Guard](https://e-choness.github.io/aegis/packs/llm-guard).

## Links

- [Documentation](https://e-choness.github.io/aegis/) · [Changelog](https://e-choness.github.io/aegis/changelog) · [Source](https://github.com/e-choness/aegis)
- Most users want the umbrella package: `pip install aegis-gateway`.

Part of [Aegis](https://pypi.org/project/aegis-gateway/), a self-hosted AI gateway. Licensed under [AGPL-3.0-or-later](https://github.com/e-choness/aegis/blob/main/LICENSE).
