Get memory count in Mem0.
(self)
| 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}" |
nothing calls this directly
no test coverage detected