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

Method _parse_while_step

verifier/AgentVerifier/yaml_parser.py:210–217  ·  view source on GitHub ↗

Parse while loop

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

Source from the content-addressed store, hash-verified

208 }
209
210 def _parse_while_step(self, step_data: Dict[str, Any]) -> Dict[str, Any]:
211 """Parse while loop"""
212 return {
213 "type": "while_loop",
214 "condition": step_data.get("condition", ""),
215 "max_iterations": step_data.get("max_iterations", 10),
216 "steps": self._parse_steps_list(step_data.get("steps", [])),
217 }
218
219 def _parse_switch_step(self, step_data: Dict[str, Any]) -> Dict[str, Any]:
220 """Parse switch statement"""

Callers 1

_parse_stepMethod · 0.95

Calls 2

_parse_steps_listMethod · 0.95
getMethod · 0.80

Tested by

no test coverage detected