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

Function get_node_registration

runtime/node/registry.py:70–76  ·  view source on GitHub ↗
(name: str)

Source from the content-addressed store, hash-verified

68
69
70def get_node_registration(name: str) -> NodeRegistration:
71 _ensure_builtins_loaded()
72 entry: RegistryEntry = node_registry.get(name)
73 registration = entry.load()
74 if not isinstance(registration, NodeRegistration):
75 raise RegistryError(f"Registry entry '{name}' is not a NodeRegistration")
76 return registration
77
78
79def iter_node_registrations() -> Dict[str, NodeRegistration]:

Callers 1

Calls 4

RegistryErrorClass · 0.90
_ensure_builtins_loadedFunction · 0.70
getMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected