ChatResponseFormat クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
呼び出し元が必要とする応答形式を表します。
public ref class ChatResponseFormat
[System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.ChatResponseFormatText), "text")]
[System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.ChatResponseFormatJson), "json")]
[System.Text.Json.Serialization.JsonPolymorphic(TypeDiscriminatorPropertyName="$type")]
public class ChatResponseFormat
[<System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.ChatResponseFormatText), "text")>]
[<System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.ChatResponseFormatJson), "json")>]
[<System.Text.Json.Serialization.JsonPolymorphic(TypeDiscriminatorPropertyName="$type")>]
type ChatResponseFormat = class
Public Class ChatResponseFormat
- 継承
-
ChatResponseFormat
- 派生
- 属性
プロパティ
| 名前 | 説明 |
|---|---|
| Json |
構造化された JSON データを表すシングルトン インスタンスを取得しますが、特定のスキーマは取得しません。 |
| Text |
非構造化テキスト データを表すシングルトン インスタンスを取得します。 |
メソッド
| 名前 | 説明 |
|---|---|
| ForJsonSchema(JsonElement, String, String) |
指定したスキーマで構造化された JSON データを表す ChatResponseFormatJson を作成します。 |
| ForJsonSchema(Type, JsonSerializerOptions, String, String) |
|
| ForJsonSchema<T>(JsonSerializerOptions, String, String) |
|