Return value from a step execution.
| 77 | |
| 78 | @dataclass |
| 79 | class StepResult: |
| 80 | """Return value from a step execution.""" |
| 81 | |
| 82 | #: Step status. |
| 83 | status: StepStatus = StepStatus.COMPLETED |
| 84 | |
| 85 | #: Output data (stored as ``steps.<id>.output``). |
| 86 | output: dict[str, Any] = field(default_factory=dict) |
| 87 | |
| 88 | #: Nested steps to execute (for control-flow steps like if/then). |
| 89 | next_steps: list[dict[str, Any]] = field(default_factory=list) |
| 90 | |
| 91 | #: Error message if step failed. |
| 92 | error: str | None = None |
| 93 | |
| 94 | |
| 95 | class StepBase(ABC): |