Skip to main content

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 License


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

pip install qarai-agent-guard qarai-agent-guard-crewai

Quick start

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 for hooks, parameters, callbacks, and a full workflow example.

Metadata

Release files for qarai-agent-guard-crewai 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qarai-agent-guard-crewai 0.1.1
File Size Uploaded
qarai_agent_guard_crewai-0.1.1.tar.gz 5.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qarai-agent-guard-crewai 0.1.1
File Interpreter ABI Platform
qarai_agent_guard_crewai-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.8 kB

Release files / qarai_agent_guard_crewai-0.1.1.tar.gz

Download URL qarai_agent_guard_crewai-0.1.1.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
efb216bfc7b6e44d2e1091f97a394f74d55e5da09548c874181ee6fce4bcac03
BLAKE2b-256 checksum
How to use checksums
934246e0f480f4b5a99461c41551cc6b5ad8d43ee7bcf3a04138f8f58b3e482e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.

Transparency log

Release files / qarai_agent_guard_crewai-0.1.1-py3-none-any.whl

Download URL qarai_agent_guard_crewai-0.1.1-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8a65027610ccb3a92329cfc438ee6b8b85cc403a2cb70fadba8cdaf0fb289dde
BLAKE2b-256 checksum
How to use checksums
01e9ef8092e6dbf346735efb2ae5b56ac4b1316db2c46d343b9172f6ccac576e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page