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

Method _get_function_manager

runtime/node/agent/tool/tool_manager.py:47–52  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

45 self._mcp_stdio_clients: Dict[str, "_StdioClientWrapper"] = {}
46
47 def _get_function_manager(self) -> FunctionManager:
48 entry = self._function_managers.get(self._functions_dir)
49 if entry is None:
50 entry = _FunctionManagerCacheEntry(manager=FunctionManager(self._functions_dir))
51 self._function_managers[self._functions_dir] = entry
52 return entry.manager
53
54 def _ensure_functions_loaded(self, auto_load: bool) -> None:
55 if not auto_load:

Callers 1

Calls 3

FunctionManagerClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected