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 summarizer bug in async agent (#195)

Vivian Fange7caf22f4919
diff --git a/memgpt/agent.py b/memgpt/agent.py
index 4ff3396b2..215e7f0b7 100644
--- a/memgpt/agent.py
+++ b/memgpt/agent.py
@@ -970,7 +970,7 @@ class AgentAsync(Agent):
message_sequence_to_summarize = self.messages[1:cutoff] # do NOT get rid of the system message
printd(f"Attempting to summarize {len(message_sequence_to_summarize)} messages [1:{cutoff}] of {len(self.messages)}")
- summary = await summarize_messages(self.model, message_sequence_to_summarize)
+ summary = await a_summarize_messages(self.model, message_sequence_to_summarize)
printd(f"Got summary: {summary}")
# Metadata that's useful for the agent to see