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

Method _parse_if_step

verifier/AgentVerifier/yaml_parser.py:201–208  ·  view source on GitHub ↗

Parse conditional step

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

Source from the content-addressed store, hash-verified

199 }
200
201 def _parse_if_step(self, step_data: Dict[str, Any]) -> Dict[str, Any]:
202 """Parse conditional step"""
203 return {
204 "type": "conditional",
205 "condition": step_data.get("condition", ""),
206 "then": self._parse_steps_list(step_data.get("then", [])),
207 "else": self._parse_steps_list(step_data.get("else", [])),
208 }
209
210 def _parse_while_step(self, step_data: Dict[str, Any]) -> Dict[str, Any]:
211 """Parse while loop"""

Callers 1

_parse_stepMethod · 0.95

Calls 2

_parse_steps_listMethod · 0.95
getMethod · 0.80

Tested by

no test coverage detected