Metadata-Version: 2.5
Name: aegis-gateway-pack-content
Version: 2.0.0a4
Summary: Aegis policy pack: model-based content inspection — secrets, custom entities, sensitivity and prompt-attack labels.
Project-URL: Homepage, https://e-choness.github.io/aegis/
Project-URL: Documentation, https://e-choness.github.io/aegis/packs/content
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,gliner,governance,guardrails,llm,prompt-injection,secrets
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.0a4
Provides-Extra: all
Requires-Dist: gliner2<3,>=2.0; extra == 'all'
Requires-Dist: peft>=0.13; extra == 'all'
Requires-Dist: torch>=2.4; extra == 'all'
Provides-Extra: model
Requires-Dist: gliner2<3,>=2.0; extra == 'model'
Requires-Dist: peft>=0.13; extra == 'model'
Requires-Dist: torch>=2.4; extra == 'model'
Description-Content-Type: text/markdown

# aegis-gateway-pack-content

Model-based content inspection for [Aegis](https://pypi.org/project/aegis-gateway/):
mask entities no pattern can describe (internal hostnames, project code names)
and label requests (sensitivity, intent) for the label policy to act on. The
model is a setting — GLiNER2 by default, swappable through the
`aegis.content_models` entry point.

```bash
# CPU-only machines: install PyTorch's CPU build first (the default wheel bundles CUDA)
pip install torch --index-url https://download.pytorch.org/whl/cpu
pip install "aegis-gateway-pack-content[model]"
```

```yaml
guardrails:
  content:
    pack: aegis.content
    model: fastino/gliner2-base-v1
    entities:
      internal hostname: hostname or address of an internal server or service
    labels:
      intent: [normal request, prompt injection or jailbreak attempt]
pipeline:
  ingress: [content]
  egress: [content]
```

See [Content](https://e-choness.github.io/aegis/packs/content) for what it's
good at — measured, not claimed.

## 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` (add `[content]` for the model).

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).
