JailbreakDetectorBase<T>
Base Classes · AiDotNet.Safety.Text
Abstract base class for jailbreak and prompt injection detection modules.
Inheritance: ModelBase<T, Vector<T>, Vector<T>> → SafetyModuleBase<T> → TextSafetyModuleBase<T> → JailbreakDetectorBase<T>
Implements: IJailbreakDetector<T>
For Beginners
This base class provides common code for all jailbreak detectors. Each detector type extends this and adds its own way of catching people trying to trick the AI into ignoring its safety rules.
How It Works
Provides shared infrastructure for jailbreak detectors including sensitivity configuration and common scoring utilities. Concrete implementations provide the actual detection algorithm (pattern, semantic, gradient, ensemble).
Methods
| Method | Summary |
|---|---|
double GetJailbreakScore(string text) |