Loop Steps

ParameterTypeDefaultDescription
stepsWorkflowStepsRequiredSteps to execute in each loop iteration
nameOptional[str]NoneName of the loop step
descriptionOptional[str]NoneDescription of the loop step
max_iterationsint3Maximum number of iterations for the loop
forward_iteration_outputboolTrueIf True, each iteration receives the previous iteration's output as input. If False, all iterations receive the original loop input
end_conditionOptional[Union[Callable[[List[StepOutput]], bool], Callable[[List[StepOutput]], Awaitable[bool]]]]NoneFunction to evaluate if the loop should end
human_reviewOptional[HumanReview]NoneAll HITL settings in a single config. See HumanReview Config.
requires_confirmationboolFalsePause for user confirmation before starting the loop
confirmation_messageOptional[str]NoneMessage shown to user when requesting confirmation
requires_iteration_reviewboolFalsePause after each iteration so the user can review and approve, edit, or reject. See Loop HITL.
iteration_review_messageOptional[str]NoneMessage shown to user during iteration review
hitl_timeoutOptional[int]NoneSeconds before the HITL pause auto-resolves. See Timeout.
on_timeoutUnion[OnTimeout, str]OnTimeout.cancelAction when the HITL timeout expires: approve, reject, cancel
on_rejectOnRejectOnReject.skipAction when rejected: skip, cancel, retry