ChatResponseFormatJson Sınıf
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
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
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 |
| 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. |