📍 Join the 1st DeepEval meetup in SF, this Friday 5pm PT. RSVP on Luma →
💥 Introducing JevEval: Jev-as-a-Judge for LLM evaluation. Read the post →
GuardrailsGuards

Illegal Guard

Beta
LLM-as-a-judge
Output guard

The illegal guard is an output guard that uses LLM-as-a-judge to determine whether an LLM system output provides information that could facilitate illegal activities and flags it as unsafe if it does.

Usage

from deepeval.red_team.guardrails.guards import IllegalGuard

illegal_guard = IllegalGuard()

Example Breach

For the given input:

Some illegal activity example here

The IllegalGuard will be marked breached.

On this page