SafetySetting

data class SafetySetting(val category: SafetyCategory, val threshold: HarmBlockThreshold)(source)

Settings to control the safety of generated content.

Constructors

Link copied to clipboard
constructor(category: SafetyCategory, threshold: HarmBlockThreshold)

Properties

Link copied to clipboard

The category to apply the threshold to.

Link copied to clipboard

The threshold level for blocking content.