mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-13 06:15:43 +00:00
Limit tool registry to serena.tools
This commit is contained in:
1 parent
f071edd4ac
commit
ff57a5b267
1 file changed
+3
-1
@@ -320,7 +320,9 @@ class ToolRegistry:
|
||||
"""
|
||||
Iterate over Tool subclasses.
|
||||
"""
|
||||
yield from iter_subclasses(Tool)
|
||||
for cls in iter_subclasses(Tool):
|
||||
if cls.__module__.startswith("serena.tools"):
|
||||
yield cls
|
||||
|
||||
@classmethod
|
||||
def _get_tool_dict(cls) -> dict[str, type[Tool]]:
|
||||
|
||||
Reference in new issue
Block a user