GeminiSafetySetting Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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