MCPcopy Create free account
hub / github.com/Louisym/MiniCC / register

Method register

tutorials/05_agentic_loop_complete.py:127–129  ·  view source on GitHub ↗
(self, name: str, handler: Callable[[str], str])

Source from the content-addressed store, hash-verified

125 self._handlers: dict[str, Callable[[str], str]] = {}
126
127 def register(self, name: str, handler: Callable[[str], str]) -> "ToolExecutor":
128 self._handlers[name] = handler
129 return self
130
131 def execute(self, tool_name: str, tool_input: str) -> tuple[str, bool]:
132 if tool_name not in self._handlers:

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected