Steps
Parameter reference for the Steps class, which groups a list of steps into a single sequential pipeline.
| Parameter | Type | Default | Description |
|---|---|---|---|
name | Optional[str] | None | Name of the steps group for identification |
description | Optional[str] | None | Description of the steps group's purpose |
steps | Optional[List[Any]] | None (empty list when unset) | List of steps to execute sequentially |
human_review | Optional[HumanReview] | None | All HITL settings in a single config. See HumanReview Config. |
HumanReview configuration
Pass these settings inside human_review=HumanReview(...). They are not direct constructor arguments. See HumanReview for the complete configuration and supported combinations.
| Parameter | Type | Default | Description |
|---|---|---|---|
requires_confirmation | bool | False | Pause for user confirmation before executing the pipeline |
confirmation_message | Optional[str] | None | Message shown to user when requesting confirmation |
on_reject | Union[OnReject, str] | OnReject.skip | Action when rejected: skip, cancel, retry |
Constructor example (install agno first): |
from agno.workflow.steps import Steps
from agno.workflow.step import Step
from agno.workflow.types import HumanReview, StepInput, StepOutput
def prepare(step_input: StepInput) -> StepOutput:
return StepOutput(content=step_input.input)
prepare_step = Step(name="prepare", executor=prepare)
step = Steps(
steps=[prepare_step],
human_review=HumanReview(requires_confirmation=True),
)