Skip to main content

guardrails-ai-toxic-language-llm

Detects toxic language in LLM-generated text using an LLM as the detection backbone. Evaluates text across seven toxicity categories: toxicity, severe toxicity, obscene, threat, insult, identity attack, and sexual explicit content.

Installation

pip install guardrails-ai-toxic-language-llm

This validator ships local models. After installing, run the post-install step to download them:

python -m guardrails_ai.toxic_language_llm.post_install

Usage

from guardrails import Guard
from guardrails_ai.toxic_language_llm import ToxicLanguageLLM

guard = Guard().use(ToxicLanguageLLM)

License

MIT — © Guardrails AI.

Metadata

Release files for guardrails-ai-toxic-language-llm 0.1.0

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

Source distribution (sdist)

Source distribution for guardrails-ai-toxic-language-llm 0.1.0
File Size Uploaded Provenance
guardrails_ai_toxic_language_llm-0.1.0.tar.gz 6.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for guardrails-ai-toxic-language-llm 0.1.0
File Interpreter ABI Platform
guardrails_ai_toxic_language_llm-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.2 kB

Release files / guardrails_ai_toxic_language_llm-0.1.0.tar.gz

Download URL guardrails_ai_toxic_language_llm-0.1.0.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
88f20ff1f1196da9db114bd2f5888ead742fb8b5b942b1545d82f8712c9ed6ba
BLAKE2b-256 checksum
How to use checksums
c46bc88e2fcd3d5dd4815c0834c788449211b85d32f1d8748ef20764dd6fb6d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release files / guardrails_ai_toxic_language_llm-0.1.0-py3-none-any.whl

Download URL guardrails_ai_toxic_language_llm-0.1.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
491bb128d53cb118980f235379e80a41e6b8b8eaaf15157249fea44422955006
BLAKE2b-256 checksum
How to use checksums
138267fe2716abc74523e308d5042f3712014f5da1e1cb230fa61ed859c28628
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Security for guardrails-ai-toxic-language-llm 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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