Add debug logging to is_available() for better diagnostics
This commit is contained in:
@@ -177,6 +177,7 @@ The plugin also provides explicit memory tools:
|
|||||||
| `mem0_profile` | Retrieve all stored memories about the user |
|
| `mem0_profile` | Retrieve all stored memories about the user |
|
||||||
| `mem0_search` | Search memories by semantic similarity |
|
| `mem0_search` | Search memories by semantic similarity |
|
||||||
| `mem0_conclude` | Store a fact verbatim (no LLM extraction) |
|
| `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**:
|
**Tool usage examples**:
|
||||||
|
|
||||||
|
|||||||
+3
-8
@@ -160,15 +160,10 @@ class Mem0LocalMemoryProvider(MemoryProvider):
|
|||||||
return "mem0-local"
|
return "mem0-local"
|
||||||
|
|
||||||
def is_available(self) -> bool:
|
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:
|
try:
|
||||||
client = LocalMem0Client(base_url)
|
return self._get_client().health()
|
||||||
return client.health()
|
except Exception as e:
|
||||||
except Exception:
|
logger.debug("Mem0 availability check failed: %s", e)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def save_config(self, values: dict, hermes_home):
|
def save_config(self, values: dict, hermes_home):
|
||||||
|
|||||||
Reference in New Issue
Block a user