| Parameter | Type | Default | Description |
|---|---|---|---|
evaluator | Union[Callable[[StepInput], bool], Callable[[StepInput], Awaitable[bool]], bool, str] | True | Function, boolean, or CEL expression string 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 |
human_review | Optional[HumanReview] | None | All HITL settings in a single config. See HumanReview Config. |
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 |
on_error | Union[OnError, str] | OnError.skip | Action when a sub-step fails: skip (log and stop remaining sub-steps), fail (re-raise), pause (pause for HITL retry or skip) |