Share via


GeminiSafetySetting Class

Definition

Represents a safety setting for the Gemini prompt.

public sealed class GeminiSafetySetting
type GeminiSafetySetting = class
Public NotInheritable Class GeminiSafetySetting
Inheritance
GeminiSafetySetting

Constructors

GeminiSafetySetting(GeminiSafetyCategory, GeminiSafetyThreshold)

Initializes a new instance of the Gemini GeminiSafetySetting class.

GeminiSafetySetting(GeminiSafetySetting)

Initializes a new instance of the Gemini GeminiSafetySetting class by cloning another instance.

Properties

Category

Gets or sets the safety category.

Threshold

Gets or sets the safety threshold.

Applies to