MCPcopy Create free account
hub / github.com/dot-agent/nextpy / remove_memory

Method remove_memory

nextpy/ai/memory/in_memory.py:42–47  ·  view source on GitHub ↗

Remove a memory from the store.

(self, prompt: str)

Source from the content-addressed store, hash-verified

40 return messages_to_text
41
42 def remove_memory(self, prompt: str) -> None:
43 """Remove a memory from the store."""
44 for conversation in self.messages:
45 if conversation["prompt"] == prompt:
46 self.messages.remove(conversation)
47 break
48
49 def clear(self) -> None:
50 """Clear all memories."""

Callers

nothing calls this directly

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected