diff --git a/README.md b/README.md index 5a2a7ef..0e0660e 100644 --- a/README.md +++ b/README.md @@ -177,6 +177,7 @@ The plugin also provides explicit memory tools: | `mem0_profile` | Retrieve all stored memories about the user | | `mem0_search` | Search memories by semantic similarity | | `mem0_conclude` | Store a fact verbatim (no LLM extraction) | +| `mem0_delete` | Delete a specific memory by ID. Use when user explicitly requests to remove or forget a stored fact. | **Tool usage examples**: diff --git a/__init__.py b/__init__.py index c5257cd..f1b8bdb 100644 --- a/__init__.py +++ b/__init__.py @@ -160,15 +160,10 @@ class Mem0LocalMemoryProvider(MemoryProvider): return "mem0-local" def is_available(self) -> bool: - cfg = _load_config() - base_url = cfg.get("base_url", "") - if not base_url: - return False - # Try to reach the server try: - client = LocalMem0Client(base_url) - return client.health() - except Exception: + return self._get_client().health() + except Exception as e: + logger.debug("Mem0 availability check failed: %s", e) return False def save_config(self, values: dict, hermes_home):