| Parameter | Type | Default | Description |
|---|---|---|---|
evaluator | Union[Callable[[StepInput], bool], Callable[[StepInput], Awaitable[bool]], bool] | None | Function or boolean to evaluate the condition (ignored when requires_confirmation=True) |
steps | WorkflowSteps | Required | Steps to execute if the condition is met (if branch) |
else_steps | WorkflowSteps | None | Steps to execute if the condition is not met (else branch) |
name | Optional[str] | None | Name of the condition step |
description | Optional[str] | None | Description of the condition step |
requires_confirmation | bool | False | Pause for user to decide which branch to execute |
confirmation_message | Optional[str] | None | Message shown to user when requesting decision |
on_reject | OnReject | OnReject.else_branch | Action when rejected: else_branch (execute else_steps), skip, cancel |