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

Function _iter_module_paths

src/harness/utils/reproducibility.py:191–200  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

189 # 2) Collect workflow modules referenced via `module: "modules/xxx.yaml"`
190
191 def _iter_module_paths(node):
192 if isinstance(node, dict):
193 for k, v in node.items():
194 if k == "module" and isinstance(v, str):
195 yield v
196 else:
197 yield from _iter_module_paths(v)
198 elif isinstance(node, list):
199 for item in node:
200 yield from _iter_module_paths(item)
201
202 for module_rel in _iter_module_paths(yaml_data):
203 # Resolve module path using the same semantics as runtime:

Callers 1

_collect_submodule_pathsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected