DelegateLoopEvaluator Constructor
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.
Initializes a new instance of the DelegateLoopEvaluator class.
public DelegateLoopEvaluator(Func<Microsoft.Agents.AI.LoopContext,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask<Microsoft.Agents.AI.LoopEvaluation>> evaluate);
new Microsoft.Agents.AI.DelegateLoopEvaluator : Func<Microsoft.Agents.AI.LoopContext, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<Microsoft.Agents.AI.LoopEvaluation>> -> Microsoft.Agents.AI.DelegateLoopEvaluator
Public Sub New (evaluate As Func(Of LoopContext, CancellationToken, ValueTask(Of LoopEvaluation)))
Parameters
- evaluate
- Func<LoopContext,CancellationToken,ValueTask<LoopEvaluation>>
A callback that decides whether to re-invoke the agent and what feedback to provide.
Exceptions
evaluate is null.