Click or drag to resize

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.1.418.0 (24.1.418.0)
Syntax
public TEvaluator CreateEvaluator<TEvaluator>(
	EvaluatorGroupCallback0<TEvaluator> callback
)
where 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: TEvaluator
The evaluator.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when callback is .
See Also