Table of Contents

Class SafetyRating

Namespace
Glitch9.AIDevKit

A safety rating associated with a {@link GenerateContentCandidate}

public class SafetyRating
Inheritance
object
SafetyRating

Constructors

SafetyRating(HarmCategory, float, bool)

public SafetyRating(HarmCategory category, float score, bool flagged)

Parameters

category HarmCategory
score float
flagged bool

Properties

Category

public HarmCategory Category { get; set; }

Property Value

HarmCategory

IsFlagged

public bool IsFlagged { get; }

Property Value

bool

Probability

public HarmProbability Probability { get; set; }

Property Value

HarmProbability

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.