summaryrefslogtreecommitdiff
path: root/tools.py
diff options
context:
space:
mode:
authorbatsumaru <>2026-09-14 17:33:50 +0900
committerbatsumaru <>2026-09-14 17:33:50 +0900
commit606e264c9c6ba99ae0c04a8463d37d85568f0c86 (patch)
tree8eba9a90d7c35158b6ef57064e1b0214db6cce0b /tools.py
parenta3e492d29c4ebb59a11dd6d6ffd1be04dca6834e (diff)
Wired tools to agent
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}")