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

Function check_workflow_structure

check/check_workflow.py:119–128  ·  view source on GitHub ↗
(data: Any)

Source from the content-addressed store, hash-verified

117
118
119def check_workflow_structure(data: Any) -> List[str]:
120 errors: List[str] = []
121 if not isinstance(data, dict) or "graph" not in data:
122 return ["<root>.graph is required"]
123 graph = data["graph"]
124 if not isinstance(graph, dict):
125 return ["<root>.graph must be object"]
126
127 _analyze_graph(graph, "graph", errors)
128 return errors
129
130
131def main():

Callers 3

load_configFunction · 0.90
check_configFunction · 0.90
mainFunction · 0.85

Calls 1

_analyze_graphFunction · 0.85

Tested by

no test coverage detected