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

Method _parse_if_step

src/harness/parsing/yaml_parser.py:204–211  ·  view source on GitHub ↗

Parse conditional step

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

Source from the content-addressed store, hash-verified

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

Callers 2

_parse_stepMethod · 0.95
test_parse_if_stepMethod · 0.45

Calls 2

_parse_steps_listMethod · 0.95
getMethod · 0.80

Tested by 1

test_parse_if_stepMethod · 0.36