AIFunctionFactoryOptions.ParameterBindingOptions.BindParameter 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 a delegate used to determine the value for a bound parameter.
public:
property Func<System::Reflection::ParameterInfo ^, Microsoft::Extensions::AI::AIFunctionArguments ^, System::Object ^> ^ BindParameter { Func<System::Reflection::ParameterInfo ^, Microsoft::Extensions::AI::AIFunctionArguments ^, System::Object ^> ^ get(); void set(Func<System::Reflection::ParameterInfo ^, Microsoft::Extensions::AI::AIFunctionArguments ^, System::Object ^> ^ value); };
public Func<System.Reflection.ParameterInfo,Microsoft.Extensions.AI.AIFunctionArguments,object?>? BindParameter { get; init; }
member this.BindParameter : Func<System.Reflection.ParameterInfo, Microsoft.Extensions.AI.AIFunctionArguments, obj> with get, set
Public Property BindParameter As Func(Of ParameterInfo, AIFunctionArguments, Object)
Property Value
Remarks
The default value is null
.
If null
, the default binding semantics are used for the parameter. If non- null
, each time the AIFunction is invoked, this delegate will be invoked to select the argument value to use for the parameter. The return value of the delegate will be used for the parameter's value.