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

Name Description
ChatResponseFormatJson(Nullable<JsonElement>, String, String)

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

Özellikler

Name 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ı

Name 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