MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / _parse_for_each_step

Method _parse_for_each_step

src/harness/parsing/yaml_parser.py:192–202  ·  view source on GitHub ↗

Parse loop step

(self, step_data: Dict[str, Any])

Source from the content-addressed store, hash-verified

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"""

Callers 2

_parse_stepMethod · 0.95

Calls 2

_parse_steps_listMethod · 0.95
getMethod · 0.80

Tested by 1