ContentClassificationResult<T>

Models & Types · AiDotNet.AdversarialRobustness.Safety

Result of content classification by an ML model.

Constructors

Constructor Summary
ContentClassificationResult()

Properties

Property Summary
Dictionary<string, T> CategoryScores { get; set; } Gets or sets the scores for each category.
T OverallConfidence { get; set; } Gets or sets the overall confidence score for the classification.
bool IsHarmful { get; set; } Gets or sets whether any harmful content was detected.
string Explanation { get; set; } Gets or sets any explanation or reasoning for the classification.
string PrimaryCategory { get; set; } Gets or sets the primary detected category (the one with highest score).
string RecommendedAction { get; set; } Gets or sets the recommended action based on classification.
string[] DetectedCategories { get; set; } Gets or sets the list of categories that exceed the detection threshold.