ChatResponseFormatJson 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表結構化 JSON 資料的回應格式。
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
- 繼承
建構函式
| 名稱 | Description |
|---|---|
| ChatResponseFormatJson(Nullable<JsonElement>, String, String) |
初始化一個新的類別實例 ChatResponseFormatJson ,並使用指定的結構。 |
屬性
| 名稱 | Description |
|---|---|
| Schema |
取得與回應相關的 JSON 架構,或者 |
| SchemaDescription |
會得到該模式的描述。 |
| SchemaName |
會為這個結構命名。 |
擴充方法
| 名稱 | Description |
|---|---|
| AsOpenAIChatResponseFormat(ChatResponseFormat, ChatOptions) | |
| AsOpenAIResponseTextFormat(ChatResponseFormat, ChatOptions) |