Share via


GeminiSafetySetting Constructors

Definition

Overloads

GeminiSafetySetting(GeminiSafetySetting)

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

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.

public GeminiSafetySetting (Microsoft.SemanticKernel.Connectors.Google.GeminiSafetySetting other);
new Microsoft.SemanticKernel.Connectors.Google.GeminiSafetySetting : Microsoft.SemanticKernel.Connectors.Google.GeminiSafetySetting -> Microsoft.SemanticKernel.Connectors.Google.GeminiSafetySetting
Public Sub New (other As GeminiSafetySetting)

Parameters

other
GeminiSafetySetting

Instance to clone

Applies to

GeminiSafetySetting(GeminiSafetyCategory, GeminiSafetyThreshold)

Initializes a new instance of the Gemini GeminiSafetySetting class.

[System.Text.Json.Serialization.JsonConstructor]
public GeminiSafetySetting (Microsoft.SemanticKernel.Connectors.Google.GeminiSafetyCategory category, Microsoft.SemanticKernel.Connectors.Google.GeminiSafetyThreshold threshold);
[<System.Text.Json.Serialization.JsonConstructor>]
new Microsoft.SemanticKernel.Connectors.Google.GeminiSafetySetting : Microsoft.SemanticKernel.Connectors.Google.GeminiSafetyCategory * Microsoft.SemanticKernel.Connectors.Google.GeminiSafetyThreshold -> Microsoft.SemanticKernel.Connectors.Google.GeminiSafetySetting
Public Sub New (category As GeminiSafetyCategory, threshold As GeminiSafetyThreshold)

Parameters

category
GeminiSafetyCategory

Category of safety

threshold
GeminiSafetyThreshold

Value

Attributes

Applies to