ChatResponseFormatJson Class

Definition

Represents a response format for structured JSON data.

C#
public sealed class ChatResponseFormatJson : Microsoft.Extensions.AI.ChatResponseFormat
Inheritance
ChatResponseFormatJson

Constructors

ChatResponseFormatJson(Nullable<JsonElement>, String, String)

Initializes a new instance of the ChatResponseFormatJson class with the specified schema.

Properties

Schema

Gets the JSON schema associated with the response, or null if there is none.

SchemaDescription

Gets a description of the schema.

SchemaName

Gets a name for the schema.

Applies to

Toode Versioonid
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)