ChatFinishReason Struct
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 the reason a chat response completed.
public value class ChatFinishReason : IEquatable<Microsoft::Extensions::AI::ChatFinishReason>
[System.Text.Json.Serialization.JsonConverter(typeof(Microsoft.Extensions.AI.ChatFinishReason+Converter))]
public readonly struct ChatFinishReason : IEquatable<Microsoft.Extensions.AI.ChatFinishReason>
[<System.Text.Json.Serialization.JsonConverter(typeof(Microsoft.Extensions.AI.ChatFinishReason+Converter))>]
type ChatFinishReason = struct
Public Structure ChatFinishReason
Implements IEquatable(Of ChatFinishReason)
- Inheritance
- Attributes
- Implements
Chat |
Initializes a new instance of the ChatFinishReason struct with a string that describes the reason. |
Content |
Gets a ChatFinishReason representing the model filtering content, whether for safety, prohibited content, sensitive content, or other such issues. |
Length |
Gets a ChatFinishReason representing the model reaching the maximum length allowed for the request and/or response (typically in terms of tokens). |
Stop |
Gets a ChatFinishReason representing the model encountering a natural stop point or provided stop sequence. |
Tool |
Gets a ChatFinishReason representing the model requesting the use of a tool that was defined in the request. |
Value |
Gets the finish reason value. |
Equals(Chat |
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. |
Get |
Returns the hash code for this instance. |
To |
Gets the Value of the finish reason. |
Equality(Chat |
Compares two instances. |
Inequality(Chat |
Compares two instances. |
Prodotto | Versioni |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
Feedback su .NET
.NET è un progetto di open source. Selezionare un collegamento per fornire feedback: