ToxicityDetectorConfig

Options & Configuration · AiDotNet.Safety.Text

Configuration for toxicity detection modules.

For Beginners

Use this to configure how strict the toxicity detector should be. Higher thresholds mean only very toxic content is flagged; lower thresholds catch more subtle toxicity but may have more false positives.

Constructors

Constructor Summary
ToxicityDetectorConfig()

Properties

Property Summary
bool? IncludeSpanScores { get; set; } Whether to include per-span toxicity scores.
double? Threshold { get; set; } Toxicity score threshold (0.0-1.0).
string[] Categories { get; set; } Categories to detect.
string[] Languages { get; set; } Languages to support.