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

Function get_function_manager

utils/function_manager.py:126–134  ·  view source on GitHub ↗

Get or create the global function manager instance for a directory.

(functions_dir: str | Path)

Source from the content-addressed store, hash-verified

124
125
126def get_function_manager(functions_dir: str | Path) -> FunctionManager:
127 """Get or create the global function manager instance for a directory."""
128 directory = Path(functions_dir).resolve()
129
130 manager = _function_managers.get(directory)
131 if manager is None:
132 manager = FunctionManager(directory)
133 _function_managers[directory] = manager
134 return manager

Callers 2

refreshMethod · 0.90
buildMethod · 0.90

Calls 3

FunctionManagerClass · 0.85
resolveMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected