LoopAgentOptions.MaxIterations Property

Definition

Gets or sets the global safety cap on the number of times the wrapped agent is invoked in a single loop run, or null to use DefaultMaxIterations.

public int? MaxIterations { get; set; }
member this.MaxIterations : Nullable<int> with get, set
Public Property MaxIterations As Nullable(Of Integer)

Property Value

Remarks

This is an absolute upper bound that applies regardless of the configured LoopEvaluator set. An evaluator may stop the loop earlier, but no evaluator can cause the loop to exceed this cap, so raise this value if you intend to allow longer loops.

Applies to