AIFunctionFactoryOptions.ExcludeResultSchema 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個值,指示是否要排除產生函式回傳型別的 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。