From 82d5f6cf92ff89caa094083a70539e8a17b157b1 Mon Sep 17 00:00:00 2001 From: ARIA Date: Fri, 10 Apr 2026 13:09:23 +0200 Subject: [PATCH] Use ctx.register_tool() for proper plugin tracking in general plugin context --- __init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/__init__.py b/__init__.py index 35004f6..36ea3d8 100644 --- a/__init__.py +++ b/__init__.py @@ -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,