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

Method has_function

utils/function_manager.py:96–100  ·  view source on GitHub ↗

Check if a function exists.

(self, name: str)

Source from the content-addressed store, hash-verified

94 return self.functions.get(name)
95
96 def has_function(self, name: str) -> bool:
97 """Check if a function exists."""
98 if not self._loaded:
99 self.load_functions()
100 return name in self.functions
101
102 def call_function(self, name: str, *args, **kwargs) -> Any:
103 """Call a function by name with given arguments."""

Callers

nothing calls this directly

Calls 1

load_functionsMethod · 0.95

Tested by

no test coverage detected