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.

return default_auto_reply instead of None

Vivian Fangd38399ce7f06
diff --git a/memgpt/autogen/memgpt_agent.py b/memgpt/autogen/memgpt_agent.py
index 78502c1e1..6d25ebfab 100644
--- a/memgpt/autogen/memgpt_agent.py
+++ b/memgpt/autogen/memgpt_agent.py
@@ -147,7 +147,7 @@ class MemGPTAgent(ConversableAgent):
elif len(new_messages) == 1:
user_message = new_messages[0]
else:
- return True, None
+ return True, self._default_auto_reply
# Package the user message
user_message = system.package_user_message(user_message)