DelegateLoopEvaluator Constructor

Definition

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.

Applies to