Skip to main content

Quick Start


API

scan_prompt()

Scans input text for threats before sending to an LLM. Returns:

scan_output()

Scans LLM output for threats (data leakage, harmful content, etc.).

Async Versions

Utility Functions


Scanners


Automatic Integration

When HEXR_LLM_GUARD_ENABLED=true, hexr_llm() automatically scans prompts and responses:
No code changes needed. The guard is transparent.

OWASP Top 10 for LLM Applications

LLM Guard addresses several risks from the OWASP Top 10 for LLM Applications: