AgentOptimizationOptions.MaxStalls Property

Definition

Maximum number of consecutive reflective minibatch rejections before stopping early. A 'stall' occurs when the optimizer proposes a prompt change, evaluates it on a small subset, and the score does not improve β€” so no full validation-set evaluation is triggered. The counter resets whenever a minibatch passes and its full-validation score beats the current best. Only a sustained plateau of max_stalls consecutive minibatch failures triggers the stop. The service defaults to 5 if a value is not specified by the caller. Must be >= 1 when set.

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

Property Value

Applies to