Skip to content
Tracon

LoopSettings

← All HTTP schemas

Turns the harness loop on: the agent is re-invoked until a stop criterion says the work is finished.

Shape: object

Property Required Type Description Rules
criteria yes array of LoopCriterion Gets the stop criteria, evaluated in order. At least one is required. —
maxIterations no integer (int32) Gets the upper number of loop iterations. null takes DefaultMaxIterations. Must be greater than zero. pattern `^-?(?:0\
freshContextPerIteration no boolean Gets a value that starts every iteration from a fresh context instead of carrying the previous iterations’ messages forward. —
onExhausted no LoopOutcome Gets what happens when the iteration ceiling is reached while a criterion still asks for another iteration. LoopOutcome.ReturnLastResponse by default. —
onCriterionError no LoopOutcome Gets what happens when a criterion throws while it is evaluated. LoopOutcome.ReturnLastResponse by default. —