Run steps repeatedly until an end condition is met or max iterations reached.Documentation Index
Fetch the complete documentation index at: https://docs.definable.ai/llms.txt
Use this file to discover all available pages before exploring further.
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
Called after each iteration. Return
True to stop. Supports sync and async.Maximum iterations before stopping.
Tracking Iterations
Use theLoopIterationEvent to monitor progress: