ChatFinishReason(String) Constructor

Definition

Initializes a new instance of the ChatFinishReason struct with a string that describes the reason.

C#
[System.Text.Json.Serialization.JsonConstructor]
public ChatFinishReason(string value);

Parameters

value
String

The reason value.

Attributes

Exceptions

value is null.

value is empty or composed entirely of whitespace.

Applies to

Product Versions
.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)