Share via


AIJsonSchemaCreateOptions.IncludeParameter Property

Definition

Gets a callback that is invoked for every parameter in the MethodBase provided to CreateFunctionJsonSchema(MethodBase, String, String, JsonSerializerOptions, AIJsonSchemaCreateOptions) in order to determine whether it should be included in the generated schema.

public:
 property Func<System::Reflection::ParameterInfo ^, bool> ^ IncludeParameter { Func<System::Reflection::ParameterInfo ^, bool> ^ get(); void set(Func<System::Reflection::ParameterInfo ^, bool> ^ value); };
public Func<System.Reflection.ParameterInfo,bool>? IncludeParameter { get; init; }
member this.IncludeParameter : Func<System.Reflection.ParameterInfo, bool> with get, set
Public Property IncludeParameter As Func(Of ParameterInfo, Boolean)

Property Value

Remarks

By default, when IncludeParameter is null, all parameters other than those of type CancellationToken are included in the generated schema. The delegate is not invoked for CancellationToken parameters.

Applies to