Table of Contents

Class GeminiSafetySettings

Safety setting, affecting the safety-blocking behavior.

public class GeminiSafetySettings
Inheritance
GeminiSafetySettings
Extension Methods

Remarks

Passing a safety setting for a category changes the allowed probability that content is blocked.

Fields

Category

The category for this setting.

public GeminiSafetyHarmCategory Category

Field Value

GeminiSafetyHarmCategory

Threshold

Controls the probability threshold at which harm is blocked.

public GeminiSafetyHarmBlockThreshold Threshold

Field Value

GeminiSafetyHarmBlockThreshold