Class SafetyRating
A safety rating associated with a {@link GenerateContentCandidate}
public class SafetyRating
- Inheritance
-
objectSafetyRating
Constructors
SafetyRating(HarmCategory, float, bool)
public SafetyRating(HarmCategory category, float score, bool flagged)
Parameters
categoryHarmCategoryscorefloatflaggedbool
Properties
Category
public HarmCategory Category { get; set; }
Property Value
IsFlagged
public bool IsFlagged { get; }
Property Value
- bool
Probability
public HarmProbability Probability { get; set; }
Property Value
Score
public float Score { get; }
Property Value
- float
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.