MCPcopy Create free account
hub / github.com/AQ-MedAI/MedMemoryBench / memory_count

Method memory_count

methods/mem0_agent.py:472–479  ·  view source on GitHub ↗

Get memory count in Mem0.

(self)

Source from the content-addressed store, hash-verified

470 client.close()
471 logger.info("[Mem0Agent] Closed Q&A LLM client")
472 except Exception as e:
473 logger.warning(f"[Mem0Agent] Warning: Failed to close Q&A LLM client: {e}")
474 self._llm_client = None
475
476 self._agent_start_time = time.time()
477
478 def set_context_id(self, context_id: int) -> None:
479 """Set context ID and reinitialize Mem0 storage for isolation."""
480 old_context_id = self._context_id
481 super().set_context_id(context_id)
482 self._user_id = f"context_{context_id}"

Callers

nothing calls this directly

Calls 3

_get_user_idMethod · 0.95
get_allMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected