Partager via


GeminiSafetyCategory Struct

Definition

Represents a safety category in the Gemini system.

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

Constructors

GeminiSafetyCategory(String)

Represents a Gemini Safety Category.

Properties

Dangerous

Includes content that promotes, facilitates, or encourages harmful acts.

DangerousContent

Contains dangerous content.

Derogatory

Contains negative or harmful comments targeting identity and/or protected attributes.

Harassment

Consists of harassment content.

Label

Gets the label of the property. Label will be serialized.

Medical

Contains unchecked medical advice.

Sexual

Contains references to sexual acts or other lewd content.

SexuallyExplicit

Contains sexually explicit content.

Toxicity

Includes content that is rude, disrespectful, or profane.

Unspecified

Category is unspecified.

Violence

Describes scenarios depicting violence against an individual or group, or general descriptions of gore.

Methods

Equals(GeminiSafetyCategory)

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

Represents the equality operator for comparing two instances of GeminiSafetyCategory.

Inequality(GeminiSafetyCategory, GeminiSafetyCategory)

Represents the inequality operator for comparing two instances of GeminiSafetyCategory.

Applies to