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

Function _node_ids

check/check_workflow.py:10–17  ·  view source on GitHub ↗
(graph: Dict[str, Any])

Source from the content-addressed store, hash-verified

8
9
10def _node_ids(graph: Dict[str, Any]) -> List[str]:
11 nodes = graph.get("nodes", []) or []
12 ids: List[str] = []
13 for n in nodes:
14 nid = n.get("id")
15 if isinstance(nid, str):
16 ids.append(nid)
17 return ids
18
19
20def _edge_list(graph: Dict[str, Any]) -> List[Dict[str, Any]]:

Callers 1

_analyze_graphFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected