Use ctx.register_tool() for proper plugin tracking in general plugin context

This commit is contained in:
2026-04-10 13:09:23 +02:00
parent 73f7b98fcf
commit 82d5f6cf92
+1 -3
View File
@@ -425,14 +425,12 @@ def register(ctx) -> None:
# General plugin context (~/.hermes/plugins/ directory)
# Register tools manually since we can't register as memory provider
from tools.registry import registry
def make_handler(tool_name: str):
"""Create a handler closure for a specific tool."""
return lambda args: provider.handle_tool_call(tool_name, args)
for schema in [PROFILE_SCHEMA, SEARCH_SCHEMA, CONCLUDE_SCHEMA]:
registry.register(
ctx.register_tool(
name=schema["name"],
toolset="mem0_local",
schema=schema,