JailbreakDetectorConfig

Options & Configuration · AiDotNet.Safety.Text

Configuration for jailbreak and prompt injection detection modules.

For Beginners

Use this to configure how aggressively the jailbreak detector works. Higher sensitivity catches more attack attempts but may also flag legitimate prompts. Lower sensitivity is more lenient.

Constructors

Constructor Summary
JailbreakDetectorConfig()

Properties

Property Summary
bool? DetectCharacterInjection { get; set; } Whether to check for character injection (emoji/Unicode smuggling).
bool? DetectEncodingAttacks { get; set; } Whether to check for encoding attacks (Base64, ROT13, Unicode).
bool? DetectMultiTurnAttacks { get; set; } Whether to check for multi-turn escalation attacks.
double? Sensitivity { get; set; } Detection sensitivity (0.0 = lenient, 1.0 = strict).