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,