Parse loop step
(self, step_data: Dict[str, Any])
| 190 | } |
| 191 | |
| 192 | def _parse_for_each_step(self, step_data: Dict[str, Any]) -> Dict[str, Any]: |
| 193 | """Parse loop step""" |
| 194 | return { |
| 195 | "type": "loop", |
| 196 | "variable": step_data.get("variable", "item"), |
| 197 | "source": step_data.get("in", ""), |
| 198 | "max_iterations": step_data.get("max_iterations", 10), |
| 199 | "parallel": step_data.get("parallel", False), |
| 200 | "limit": step_data.get("limit"), |
| 201 | "body": self._parse_steps_list(step_data.get("steps", [])), |
| 202 | } |
| 203 | |
| 204 | def _parse_if_step(self, step_data: Dict[str, Any]) -> Dict[str, Any]: |
| 205 | """Parse conditional step""" |