MCPcopy Index your code
hub / github.com/OpenBMB/ChatDev / _resolve_existing_path

Function _resolve_existing_path

workflow/subgraph_loader.py:34–43  ·  view source on GitHub ↗
(candidates: List[Path])

Source from the content-addressed store, hash-verified

32
33
34def _resolve_existing_path(candidates: List[Path]) -> Path:
35 checked: List[str] = []
36 for candidate in candidates:
37 checked.append(str(candidate))
38 if candidate.exists():
39 return candidate
40 raise ConfigError(
41 f"subgraph YAML not found; tried: {', '.join(checked)}",
42 path=checked[-1] if checked else None,
43 )
44
45
46def _load_graph_dict(path: Path) -> Dict[str, Any]:

Callers 1

load_subgraph_configFunction · 0.85

Calls 1

ConfigErrorClass · 0.90

Tested by

no test coverage detected