Dil

ChatResponseFormatJson Sınıf

Tanım

Yapılandırılmış JSON verileri için bir yanıt biçimini temsil eder.

public ref class ChatResponseFormatJson sealed : Microsoft::Extensions::AI::ChatResponseFormat
public sealed class ChatResponseFormatJson : Microsoft.Extensions.AI.ChatResponseFormat
type ChatResponseFormatJson = class
    inherit ChatResponseFormat
Public NotInheritable Class ChatResponseFormatJson
Inherits ChatResponseFormat
Devralma
ChatResponseFormatJson

Oluşturucular

Veri Akışı Adı Description
ChatResponseFormatJson(Nullable<JsonElement>, String, String)

Belirtilen şemayla sınıfının yeni bir örneğini ChatResponseFormatJson başlatır.

Özellikler

Veri Akışı Adı Description
Schema

Yanıtla ilişkilendirilmiş JSON şemasını veya null yoksa alır.

SchemaDescription

Şemanın açıklamasını alır.

SchemaName

Şema için bir ad alır.

Uzantı Metotları

Veri Akışı Adı Description
AsOpenAIChatResponseFormat(ChatResponseFormat, ChatOptions)

bir içinden ChatResponseFormatbir OpenAI ChatResponseFormat oluşturur.

AsOpenAIResponseTextFormat(ChatResponseFormat, ChatOptions)

bir içinden ResponseTextFormatbir OpenAI ChatResponseFormat oluşturur.

Şunlara uygulanır