Class SafetyValidationResult<T>
Result of safety validation for an input.
public class SafetyValidationResult<T>
Type Parameters
TThe numeric data type used for calculations.
- Inheritance
-
SafetyValidationResult<T>
- Inherited Members
Properties
DetectedHarmCategories
Gets or sets harmful content categories detected.
public string[] DetectedHarmCategories { get; set; }
Property Value
- string[]
IsValid
Gets or sets whether the input passed validation.
public bool IsValid { get; set; }
Property Value
Issues
Gets or sets the list of validation issues found.
public List<ValidationIssue> Issues { get; set; }
Property Value
JailbreakDetected
Gets or sets whether a jailbreak attempt was detected.
public bool JailbreakDetected { get; set; }
Property Value
SafetyScore
Gets or sets the safety score (0-1, higher is safer).
public double SafetyScore { get; set; }
Property Value
SanitizedInput
Gets or sets the sanitized/cleaned input (if applicable).
public Vector<T>? SanitizedInput { get; set; }
Property Value
- Vector<T>
ValidationDetails
Gets or sets additional validation details.
public Dictionary<string, object> ValidationDetails { get; set; }