Table of Contents

Class SafetyValidationResult<T>

Namespace
AiDotNet.Models
Assembly
AiDotNet.dll

Result of safety validation for an input.

public class SafetyValidationResult<T>

Type Parameters

T

The 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

bool

Issues

Gets or sets the list of validation issues found.

public List<ValidationIssue> Issues { get; set; }

Property Value

List<ValidationIssue>

JailbreakDetected

Gets or sets whether a jailbreak attempt was detected.

public bool JailbreakDetected { get; set; }

Property Value

bool

SafetyScore

Gets or sets the safety score (0-1, higher is safer).

public double SafetyScore { get; set; }

Property Value

double

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; }

Property Value

Dictionary<string, object>