summaryrefslogtreecommitdiff
path: root/tools.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools.py')
-rw-r--r--tools.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools.py b/tools.py
index 54c837e..78299b8 100644
--- a/tools.py
+++ b/tools.py
@@ -213,7 +213,7 @@ class MemoryRemoveFactTool(Tool):
if not isinstance(fact, str):
raise ToolError("fact must be a string")
- self.memory.add_fact(fact)
+ self.memory.remove_fact(fact)
return ToolResult(content=f"Removed fact: {fact}")
@@ -249,7 +249,7 @@ class MemoryRemoveNoteTool(Tool):
if not isinstance(note, str):
raise ToolError("note must be a string")
- self.memory.add_note(note)
+ self.memory.remove_note(note)
return ToolResult(content=f"Removed note: {note}")