MCPcopy Index your code
hub / github.com/AstrBotDevs/AstrBot / merge

Method merge

astrbot/core/agent/tool.py:348–351  ·  view source on GitHub ↗

Merge another ToolSet into this one.

(self, other: "ToolSet")

Source from the content-addressed store, hash-verified

346 return [tool.name for tool in self.tools]
347
348 def merge(self, other: "ToolSet") -> None:
349 """Merge another ToolSet into this one."""
350 for tool in other.tools:
351 self.add_tool(tool)
352
353 def __len__(self) -> int:
354 return len(self.tools)

Callers 1

Calls 1

add_toolMethod · 0.95

Tested by

no test coverage detected