Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
Merge newest fix
Qingzheng Gao8ac3fbcde09e
diff --git a/memgpt/autogen/memgpt_agent.py b/memgpt/autogen/memgpt_agent.pyindex 5cf70b5ff..20151a190 100644--- a/memgpt/autogen/memgpt_agent.py+++ b/memgpt/autogen/memgpt_agent.py@@ -205,10 +205,10 @@ class MemGPTAgent(ConversableAgent):# Extend the MemGPT message list with multiple 'user' messages, then push the last one with agent.step()self.agent.messages.extend(new_messages[:-1])user_message = new_messages[-1]- elif len(new_messages) < 1:- user_message = ""- else:+ elif len(new_messages) == 1:user_message = new_messages[0]+ else:+ return True, self._default_auto_reply# Package the user messageuser_message = system.package_user_message(user_message)