Class SafetyRating
A safety rating associated with a {@link GenerateContentCandidate}
Inheritance
object
SafetyRating
Namespace: Glitch9.AIDevKit
Assembly: .dll
Syntax
public class SafetyRating
Constructors
SafetyRating(HarmCategory, float, bool)
Declaration
public SafetyRating(HarmCategory category, float score, bool flagged)
Parameters
Type | Name | Description |
---|---|---|
HarmCategory | category | |
float | score | |
bool | flagged |
Properties
Category
Declaration
public HarmCategory Category { get; set; }
Property Value
Type | Description |
---|---|
HarmCategory |
IsFlagged
Declaration
public bool IsFlagged { get; }
Property Value
Type | Description |
---|---|
bool |
Probability
Declaration
public HarmProbability Probability { get; set; }
Property Value
Type | Description |
---|---|
HarmProbability |
Score
Declaration
public float Score { get; }
Property Value
Type | Description |
---|---|
float |
Methods
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents the current object. |
Overrides
object.ToString()