Share via


AIFunctionFactoryOptions.ExcludeResultSchema Property

Definition

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.

Applies to