Metadata-Version: 2.5
Name: qarai-agent-guard-crewai
Version: 0.1.1
Summary: CrewAI integration for qarai-agent-guard that provides runtime security for AI agents through threat detection, policy enforcement, and content protection.
Project-URL: Homepage, https://github.com/qarai-labs/qarai-agent-guard
Project-URL: Repository, https://github.com/qarai-labs/qarai-agent-guard
Project-URL: Issues, https://github.com/qarai-labs/qarai-agent-guard/issues
Author-email: Oussama Ben Slama <oussama@ben-slama.tn>, Safouene Ziadi <ziadisafouene@gmail.com>
License: Apache-2.0
Keywords: agents,ai-agents,ai-governance,ai-guardrails,ai-safety,arabic,arabic-nlp,crewai,data-privacy,guardrails,llm,llm-safety,nlp,pii,prompt-injection
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Security
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.11
Requires-Dist: crewai>=1.15.6
Requires-Dist: qarai-agent-guard>=0.1.3
Description-Content-Type: text/markdown

<div align="center">

# qarai-agent-guard-crewai

**CrewAI integration for qarai-agent-guard. Runtime security for AI agents through threat detection, policy enforcement, and content protection.**

[![PyPI version](https://img.shields.io/pypi/v/qarai-agent-guard-crewai.svg?color=blue)](https://pypi.org/project/qarai-agent-guard-crewai/)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](../LICENSE)

</div>

---

`qarai-agent-guard-crewai` registers Agent Guard against the CrewAI hook system.
It inspects LLM inputs, LLM outputs, tool arguments, and tool results at fixed interception points.
It does not change your agent or task definitions.

## Installation

```bash
pip install qarai-agent-guard qarai-agent-guard-crewai
```

## Quick start

```python
from qarai_agent_guard import (
    AgentGuard,
    Detector,
    default_policy,
)
from qarai_agent_guard_crewai import enable_guard

guard = AgentGuard(
    detectors=[Detector(name="prompt_injection", default_rules="prompt_injection")],
    policy=default_policy(),
)

enable_guard(guard)
```

By default, `enable_guard()` registers all four hooks:
`before_llm_call`, `after_llm_call`, `before_tool_call`, and `after_tool_call`.

## Documentation

The full documentation has moved to the docs folder. See the
[CrewAI Integration guide](../../docs/crewai.md) for hooks, parameters,
callbacks, and a full workflow example.
