MCPcopy
hub / github.com/OpenBMB/ChatDev / get_function

Method get_function

utils/function_manager.py:90–94  ·  view source on GitHub ↗

Get a function by name.

(self, name: str)

Source from the content-addressed store, hash-verified

88 return f"{_MODULE_PREFIX}.{parts}_{unique_suffix}"
89
90 def get_function(self, name: str) -> Optional[Callable]:
91 """Get a function by name."""
92 if not self._loaded:
93 self.load_functions()
94 return self.functions.get(name)
95
96 def has_function(self, name: str) -> bool:
97 """Check if a function exists."""

Callers 4

call_functionMethod · 0.95
_resolve_functionMethod · 0.80
_resolveMethod · 0.80

Calls 2

load_functionsMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected