Represents a workflow step.
| 101 | |
| 102 | @dataclass |
| 103 | class Step: |
| 104 | """Represents a workflow step.""" |
| 105 | |
| 106 | step_id: str |
| 107 | number: str |
| 108 | name: str |
| 109 | step_type: str |
| 110 | instruction: str = "" |
| 111 | depth: int = 0 |
| 112 | parent_step_id: Optional[str] = None |
| 113 | parent_iteration: Optional[int] = None |
| 114 | tokens: int = 0 |
| 115 | status: str = "running" |
| 116 | variables: Dict[str, str] = field(default_factory=dict) |
| 117 | iterations: List[AgentIteration] = field(default_factory=list) |
| 118 | events: List[ParsedEvent] = field(default_factory=list) |
| 119 | start_time: str = "" |
| 120 | end_time: str = "" |
| 121 | |
| 122 | |
| 123 | @dataclass |