Class SafetyRating
A safety rating associated with a {@link GenerateContentCandidate}
Assembly: Glitch9.AIDevKit.dll
Syntax
public class SafetyRating
Constructors
|
Edit this page
View Source
SafetyRating(HarmCategory, float, bool)
Declaration
public SafetyRating(HarmCategory category, float score, bool flagged)
Parameters
Properties
|
Edit this page
View Source
Category
Declaration
[JsonProperty("category")]
public HarmCategory Category { get; set; }
Property Value
|
Edit this page
View Source
IsFlagged
Declaration
[JsonIgnore]
public bool IsFlagged { get; }
Property Value
|
Edit this page
View Source
Probability
Declaration
[JsonProperty("probability")]
public HarmProbability Probability { get; set; }
Property Value
|
Edit this page
View Source
Score
Declaration
[JsonIgnore]
public float Score { get; }
Property Value
Methods
|
Edit this page
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Extension Methods