Metadata-Version: 2.3
Name: swarmauri_middleware_llamaguard
Version: 0.7.0.dev2
Summary: Middleware for inspecting and filtering unsafe content using LlamaGuard
License: Apache-2.0
Author: Jacob Stewart
Author-email: jacob@swarmauri.com
Requires-Python: >=3.10,<3.13
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Development Status :: 3 - Alpha
Requires-Dist: fastapi
Requires-Dist: python-dotenv (>=1.0.0)
Requires-Dist: swarmauri_base
Requires-Dist: swarmauri_core
Requires-Dist: swarmauri_standard
Description-Content-Type: text/markdown

![Swamauri Logo](https://res.cloudinary.com/dbjmpekvl/image/upload/v1730099724/Swarmauri-logo-lockup-2048x757_hww01w.png)

<p align="center">
    <a href="https://pypi.org/project/swarmauri-middleware-llamaguard/">
        <img src="https://img.shields.io/pypi/dm/swarmauri-middleware-llamaguard" alt="PyPI - Downloads"/></a>
    <a href="https://github.com/swarmauri/swarmauri-sdk/pkgs/pkgs/swarmauri-middleware-llamaguard">
        <img src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https://github.com/swarmauri/swarmauri-sdk/pkgs/pkgs/swarmauri-middleware-llamaguard&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false" alt="GitHub Hits"/></a>
    <a href="https://pypi.org/project/swarmauri-middleware-llamaguard/">
        <img src="https://img.shields.io/pypi/pyversions/swarmauri-middleware-llamaguard" alt="PyPI - Python Version"/></a>
    <a href="https://pypi.org/project/swarmauri-middleware-llamaguard/">
        <img src="https://img.shields.io/pypi/l/swarmauri-middleware-llamaguard" alt="PyPI - License"/></a>
    <br />
    <a href="https://pypi.org/project/swarmauri-middleware-llamaguard/">
        <img src="https://img.shields.io/pypi/v/swarmauri-middleware-llamaguard?label=swarmauri-middleware-llamaguard&color=green" alt="PyPI - swarmauri-middleware-llamaguard"/></a>
</p>

---

# `swarmauri-middleware-llamaguard`

A FastAPI middleware that integrates LlamaGuard for comprehensive content inspection and filtering. This middleware ensures both incoming requests and outgoing responses are free from unsafe or malicious content.

## Installation

To install the package, use pip:
