SafetyRating

io.cequence.openaiscala.gemini.domain.response.SafetyRating
case class SafetyRating(category: HarmCategory, probability: HarmProbability, blocked: Option[Boolean])

Safety rating for a piece of content. The safety rating contains the category of harm and the harm probability level in that category for a piece of content. Content is classified for safety across a number of harm categories and the probability of the harm classification is included here.

Attributes

blocked

Was this content blocked because of this rating?

category

The category for this rating.

probability

The probability of harm for this content.

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product