Table of Contents

Class SafetyFilterResult<T>

Namespace
AiDotNet.Models
Assembly
AiDotNet.dll

Result of safety filtering on model output.

public class SafetyFilterResult<T>

Type Parameters

T

The numeric data type used for calculations.

Inheritance
SafetyFilterResult<T>
Inherited Members

Properties

Actions

Gets or sets detailed filtering actions taken.

public List<FilterAction> Actions { get; set; }

Property Value

List<FilterAction>

DetectedHarmCategories

Gets or sets the harmful content detected in the output.

public string[] DetectedHarmCategories { get; set; }

Property Value

string[]

FilteredOutput

Gets or sets the filtered/sanitized output.

public Vector<T> FilteredOutput { get; set; }

Property Value

Vector<T>

FilteringDetails

Gets or sets additional filtering details.

public Dictionary<string, object> FilteringDetails { get; set; }

Property Value

Dictionary<string, object>

IsSafe

Gets or sets whether the output passed filtering.

public bool IsSafe { 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

WasModified

Gets or sets whether the output was modified during filtering.

public bool WasModified { get; set; }

Property Value

bool