SafetyValidationResult<T>

Models & Types · AiDotNet.Models

Result of safety validation for an input.

Constructors

Constructor Summary
SafetyValidationResult()

Properties

Property Summary
Dictionary<string, object> ValidationDetails { get; set; } Gets or sets additional validation details.
List<ValidationIssue> Issues { get; set; } Gets or sets the list of validation issues found.
Vector<T> SanitizedInput { get; set; } Gets or sets the sanitized/cleaned input (if applicable).
bool IsValid { get; set; } Gets or sets whether the input passed validation.
bool JailbreakDetected { get; set; } Gets or sets whether a jailbreak attempt was detected.
double SafetyScore { get; set; } Gets or sets the safety score (0-1, higher is safer).
string[] DetectedHarmCategories { get; set; } Gets or sets harmful content categories detected.