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

Method reset

methods/memos_agent.py:456–460  ·  view source on GitHub ↗

Reset agent state and clear all memory systems.

(self)

Source from the content-addressed store, hash-verified

454 def reset(self) -> None:
455 """Reset agent state. Clears Neo4j data for current context."""
456 super().reset()
457
458 if self._tree_memory is not None:
459 try:
460 context_id = self._get_context_id()
461 user_name = f"ctx_{context_id}"
462 self._tree_memory.delete_all(user_name=user_name)
463 except Exception as e:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected