ToxicityResult
Models & Types · AiDotNet.Safety.Text
Detailed result from toxicity detection with per-category scores and spans.
For Beginners
ToxicityResult provides AI safety functionality. Default values follow the original paper settings.
Constructors
| Constructor | Summary |
|---|---|
ToxicityResult() |
Properties
| Property | Summary |
|---|---|
IReadOnlyDictionary<string, double> CategoryScores { get; set; } |
Per-category toxicity scores. |
IReadOnlyList<ToxicSpan> ToxicSpans { get; set; } |
Detected toxic spans with their scores. |
bool IsToxic { get; set; } |
Whether the content exceeds the configured toxicity threshold. |
double OverallScore { get; set; } |
Overall toxicity score (0.0 = safe, 1.0 = maximally toxic). |