ChatResponseFormatJson(Nullable<JsonElement>, String, String) Konstruktor

Definition

Initialisiert eine neue Instanz der ChatResponseFormatJson Klasse mit dem angegebenen Schema.

[System.Text.Json.Serialization.JsonConstructor]
public ChatResponseFormatJson(System.Text.Json.JsonElement? schema, string? schemaName = default, string? schemaDescription = default);
[<System.Text.Json.Serialization.JsonConstructor>]
new Microsoft.Extensions.AI.ChatResponseFormatJson : Nullable<System.Text.Json.JsonElement> * string * string -> Microsoft.Extensions.AI.ChatResponseFormatJson
Public Sub New (schema As Nullable(Of JsonElement), Optional schemaName As String = Nothing, Optional schemaDescription As String = Nothing)

Parameter

schema
Nullable<JsonElement>

Das Schema, das der JSON-Antwort zugeordnet werden soll.

schemaName
String

Ein Name für das Schema.

schemaDescription
String

Eine Beschreibung des Schemas.

Attribute

Gilt für: