Share via


GeminiSafetyProbability Struct

Definition

Represents a Gemini Safety Probability.

[System.Text.Json.Serialization.JsonConverter(typeof(Microsoft.SemanticKernel.Connectors.Google.GeminiSafetyProbabilityConverter))]
public readonly struct GeminiSafetyProbability : IEquatable<Microsoft.SemanticKernel.Connectors.Google.GeminiSafetyProbability>
[<System.Text.Json.Serialization.JsonConverter(typeof(Microsoft.SemanticKernel.Connectors.Google.GeminiSafetyProbabilityConverter))>]
type GeminiSafetyProbability = struct
Public Structure GeminiSafetyProbability
Implements IEquatable(Of GeminiSafetyProbability)
Inheritance
GeminiSafetyProbability
Attributes
Implements

Constructors

GeminiSafetyProbability(String)

Represents a Gemini Safety Probability.

Properties

High

Content has a high chance of being unsafe.

Label

Gets the label of the property. Label is used for serialization.

Low

Content has a low chance of being unsafe.

Medium

Content has a medium chance of being unsafe.

Negligible

Content has a negligible chance of being unsafe.

Unspecified

Probability is unspecified.

Methods

Equals(GeminiSafetyProbability)

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(GeminiSafetyProbability, GeminiSafetyProbability)

Represents the equality operator for comparing two instances of GeminiSafetyProbability.

Inequality(GeminiSafetyProbability, GeminiSafetyProbability)

Represents the inequality operator for comparing two instances of GeminiSafetyProbability.

Applies to