How It Works
generateandevaluatesteps execute sequentially.- After each iteration,
end_conditionreceives all step outputs from that iteration. - If it returns
True, the loop stops. - If
max_iterationsis reached, the loop stops regardless.
Parameters
Callable[[List[StepOutput]], bool]
Called after each iteration. Return
True to stop. Supports sync and async.int
default:"3"
Maximum iterations before stopping.
Tracking Iterations
Use theLoopIterationEvent to monitor progress: