Skip to main content
ParameterTypeDefaultDescription
evaluatorUnion[Callable[[StepInput], bool], Callable[[StepInput], Awaitable[bool]], bool]NoneFunction or boolean to evaluate the condition (ignored when requires_confirmation=True)
stepsWorkflowStepsRequiredSteps to execute if the condition is met (if branch)
else_stepsWorkflowStepsNoneSteps to execute if the condition is not met (else branch)
nameOptional[str]NoneName of the condition step
descriptionOptional[str]NoneDescription of the condition step
requires_confirmationboolFalsePause for user to decide which branch to execute
confirmation_messageOptional[str]NoneMessage shown to user when requesting decision
on_rejectOnRejectOnReject.else_branchAction when rejected: else_branch (execute else_steps), skip, cancel