AIFunctionFactoryOptions.ExcludeResultSchema Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value indicating whether to exclude generation of a JSON schema for the function's return type.
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
Property Value
Remarks
The default value is false, meaning a return type schema will be generated and exposed via ReturnJsonSchema when the method has a return type other than Void, Task, or ValueTask.
When set to true, the produced ReturnJsonSchema will always be null.