Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

fix: max memory rethink check (#1766)

cthomas3ab0b50fcfc5
diff --git a/letta/sleeptime_agent.py b/letta/sleeptime_agent.py
index 9aa6226e9..812c53946 100644
--- a/letta/sleeptime_agent.py
+++ b/letta/sleeptime_agent.py
@@ -46,8 +46,7 @@ class SleeptimeAgent(Agent):
for message in step_response.messages:
if message.tool_calls:
for tool_call in message.tool_calls:
- # check if the function name is "finish_rethinking_memory"
- if tool_call.function.name == "finish_rethinking_memory":
+ if tool_call.function.name == "memory_finish_edits":
counter = self.max_memory_rethinks
break
usage = step_response.usage