ITextSafetyModule<T>
Interfaces · AiDotNet.Interfaces
Interface for safety modules that operate on text content.
Implements: ISafetyModule<T>
Known implementations: AdversarialRobustnessEvaluator<T>, CrossModalConsistencyChecker<T>, CustomRuleGuardrail<T>, DemographicParityChecker<T>, EUAIActComplianceChecker<T>, EqualizedOddsChecker<T>, GDPRComplianceChecker<T>, IComplianceModule<T>, ICopyrightDetector<T>, IGuardrail<T>, IHallucinationDetector<T>, IJailbreakDetector<T>, IPIIDetector<T>, ITextToxicityDetector<T>, ITextWatermarker<T>, InputGuardrail<T>, IntersectionalBiasDetector<T>, OutputGuardrail<T>, RepresentationalBiasDetector<T>, SOC2ComplianceChecker<T>, StereotypeDetector<T>, TextSafetyModuleBase<T>, TopicRestrictionGuardrail<T>
For Beginners
Text safety modules check written content for problems. Unlike the base ISafetyModule which works on numeric vectors, text safety modules can accept raw strings directly, making them easier to use for text-based applications.
How It Works
Text safety modules analyze string content for safety risks such as toxicity,
PII exposure, jailbreak attempts, hallucinations, and copyright violations.
They extend ISafetyModule with text-specific evaluation methods.
Methods
| Method | Summary |
|---|---|
IReadOnlyList<SafetyFinding> EvaluateText(string text) |
Evaluates the given text string for safety and returns any findings. |