GeminiSafetyThreshold Struct
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.
Represents a safety threshold for Gemini.
[System.Text.Json.Serialization.JsonConverter(typeof(Microsoft.SemanticKernel.Connectors.Google.GeminiSafetyThresholdConverter))]
public readonly struct GeminiSafetyThreshold : IEquatable<Microsoft.SemanticKernel.Connectors.Google.GeminiSafetyThreshold>
[<System.Text.Json.Serialization.JsonConverter(typeof(Microsoft.SemanticKernel.Connectors.Google.GeminiSafetyThresholdConverter))>]
type GeminiSafetyThreshold = struct
Public Structure GeminiSafetyThreshold
Implements IEquatable(Of GeminiSafetyThreshold)
- Inheritance
-
GeminiSafetyThreshold
- Attributes
- Implements
Constructors
GeminiSafetyThreshold(String) |
Creates a Gemini safety threshold instance. |
Properties
BlockLowAndAbove |
Block when low, medium or high probability of unsafe content. |
BlockMediumAndAbove |
Block when medium or high probability of unsafe content. |
BlockNone |
Always show regardless of probability of unsafe content. |
BlockOnlyHigh |
Block when high probability of unsafe content. |
Label |
Gets the label. Label will be serialized. |
Unspecified |
Threshold is unspecified, block using default threshold. |
Methods
Equals(GeminiSafetyThreshold) | Indicates whether the current object is equal to another object of the same type. |
Equals(Object) | Indicates whether this instance and a specified object are equal. |
GetHashCode() | Returns the hash code for this instance. |
ToString() | Returns the fully qualified type name of this instance. |
Operators
Equality(GeminiSafetyThreshold, GeminiSafetyThreshold) |
Determines whether two GeminiSafetyThreshold objects are equal. |
Inequality(GeminiSafetyThreshold, GeminiSafetyThreshold) |
Determines whether two instances of GeminiSafetyThreshold are not equal. |