EvaluatorGroupCreateEvaluatorTEvaluator Method (EvaluatorGroupCallback0TEvaluator) |
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>(
EvaluatorGroupCallback0<TEvaluator> callback
)
where TEvaluator : IEvaluator
Public Function CreateEvaluator(Of TEvaluator As IEvaluator) (
callback As EvaluatorGroupCallback0(Of TEvaluator)
) As TEvaluator
public:
generic<typename TEvaluator>
where TEvaluator : IEvaluator
TEvaluator CreateEvaluator(
EvaluatorGroupCallback0<TEvaluator>^ callback
)
member CreateEvaluator :
callback : EvaluatorGroupCallback0<'TEvaluator> -> 'TEvaluator when 'TEvaluator : IEvaluator
Parameters
- callback
- Type: AGI.FoundationEvaluatorGroupCallback0TEvaluator
The callback delegate to use to create the evaluator if the evaluator does not already exist.
Type Parameters
- TEvaluator
- The type of evaluator to create.
Return Value
Type:
TEvaluatorThe evaluator.
Exceptions See Also