Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
change pop, since agent.messages is locked
Charles Packer47a27c99e863
diff --git a/main.py b/main.pyindex 2c3bfa002..121cef5a8 100644--- a/main.py+++ b/main.py@@ -269,7 +269,8 @@ async def main():command = user_input.strip().split()amount = int(command[1]) if len(command) > 1 and command[1].isdigit() else 2print(f"Popping last {amount} messages from stack")- memgpt_agent.messages = memgpt_agent.messages[:-amount]+ for _ in range(min(amount, len(memgpt_agent.messages))):+ memgpt_agent.messages.pop()continue# No skip options