語言

AIFunctionFactoryOptions.ExcludeResultSchema 屬性

定義

取得或設定一個值,指示是否要排除產生函式回傳型別的 JSON 架構。

public:
 property bool ExcludeResultSchema { bool get(); void set(bool value); };
public bool ExcludeResultSchema { get; set; }
member this.ExcludeResultSchema : bool with get, set
Public Property ExcludeResultSchema As Boolean

屬性值

備註

預設值為 false,表示當方法有非 ReturnJsonSchema、 Void、 或 Task的回傳型別時,會產生並透過 來暴露ValueTask回傳型別結構。

當 設定為 true時,產生 ReturnJsonSchema 的 總是 null。

適用於