EvaluatorGroupCreateEvaluatorTEvaluator, TParameter1 Method (EvaluatorGroupCallback1TEvaluator, TParameter1, TParameter1) |
Creates an evaluator in the context of this evaluator group by invoking a callback, if the
evaluator does not already exist in the group.
Namespace:
AGI.Foundation
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax public TEvaluator CreateEvaluator<TEvaluator, TParameter1>(
EvaluatorGroupCallback1<TEvaluator, TParameter1> callback,
TParameter1 parameter1
)
where TEvaluator : IEvaluator
Public Function CreateEvaluator(Of TEvaluator As IEvaluator, TParameter1) (
callback As EvaluatorGroupCallback1(Of TEvaluator, TParameter1),
parameter1 As TParameter1
) As TEvaluator
public:
generic<typename TEvaluator, typename TParameter1>
where TEvaluator : IEvaluator
TEvaluator CreateEvaluator(
EvaluatorGroupCallback1<TEvaluator, TParameter1>^ callback,
TParameter1 parameter1
)
member CreateEvaluator :
callback : EvaluatorGroupCallback1<'TEvaluator, 'TParameter1> *
parameter1 : 'TParameter1 -> 'TEvaluator when 'TEvaluator : IEvaluator
Parameters
- callback
- Type: AGI.FoundationEvaluatorGroupCallback1TEvaluator, TParameter1
The callback delegate to use to create the evaluator if the evaluator does not already exist. - parameter1
- Type: TParameter1
The first parameter to pass to the callback delegate.
Type Parameters
- TEvaluator
- The type of evaluator to create.
- TParameter1
- The type of the first parameter to the callback delegate.
Return Value
Type:
TEvaluatorThe evaluator.
Exceptions See Also