Table of Contents

Class HarmfulContentResult<T>

Namespace
AiDotNet.Models
Assembly
AiDotNet.dll

Result of harmful content identification.

public class HarmfulContentResult<T>

Type Parameters

T

The numeric data type used for calculations.

Inheritance
HarmfulContentResult<T>
Inherited Members

Properties

CategoryScores

Gets or sets scores for each harmful content category.

public Dictionary<string, double> CategoryScores { get; set; }

Property Value

Dictionary<string, double>

Details

Gets or sets additional detection details.

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

Property Value

Dictionary<string, object>

DetectedCategories

Gets or sets all harmful categories detected above threshold.

public string[] DetectedCategories { get; set; }

Property Value

string[]

Findings

Gets or sets detailed harmful content findings.

public List<HarmfulContentFinding> Findings { get; set; }

Property Value

List<HarmfulContentFinding>

HarmScore

Gets or sets the overall harm score (0-1, higher means more harmful).

public double HarmScore { get; set; }

Property Value

double

HarmfulContentDetected

Gets or sets whether harmful content was detected.

public bool HarmfulContentDetected { get; set; }

Property Value

bool

PrimaryHarmCategory

Gets or sets the primary harmful category detected.

public string? PrimaryHarmCategory { get; set; }

Property Value

string

RecommendedAction

Gets or sets the recommended action based on the harm level.

public string RecommendedAction { get; set; }

Property Value

string