MCPcopy
hub / github.com/HKUDS/DeepCode / register

Method register

nanobot/nanobot/agent/tools/registry.py:18–20  ·  view source on GitHub ↗

Register a tool.

(self, tool: Tool)

Source from the content-addressed store, hash-verified

16 self._tools: dict[str, Tool] = {}
17
18 def register(self, tool: Tool) -> None:
19 """Register a tool."""
20 self._tools[tool.name] = tool
21
22 def unregister(self, name: str) -> None:
23 """Unregister a tool by name."""

Callers 3

_run_subagentMethod · 0.95
_enable_line_editingFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected