Use ctx.register_tool() for proper plugin tracking in general plugin context
This commit is contained in:
+1
-3
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user