Share via


GeminiFinishReason Struct

Definition

Represents a Gemini Finish Reason.

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

Constructors

GeminiFinishReason(String)

Represents a Gemini Finish Reason.

Properties

Label

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

MaxTokens

The maximum number of tokens as specified in the request was reached.

Other

Unknown reason.

Recitation

The candidate content was flagged for recitation reasons.

Safety

The candidate content was flagged for safety reasons.

Stop

Natural stop point of the model or provided stop sequence.

Unspecified

Default value. This value is unused.

Methods

Equals(GeminiFinishReason)

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

Represents the equality operator for comparing two instances of GeminiFinishReason.

Inequality(GeminiFinishReason, GeminiFinishReason)

Represents the inequality operator for comparing two instances of GeminiFinishReason.

Applies to