Building AI agents, atomically
Fix bug: chat memory not being copied
KennyVaneetvelded09d099257b0
diff --git a/atomic_agents/lib/components/chat_memory.py b/atomic_agents/lib/components/chat_memory.pyindex c0d96ed..34a071e 100644--- a/atomic_agents/lib/components/chat_memory.py+++ b/atomic_agents/lib/components/chat_memory.py@@ -87,4 +87,6 @@ class ChatMemory:ChatMemory: A copy of the chat memory."""new_memory = ChatMemory()- new_memory.load(self.dump())\ No newline at end of file+ new_memory.load(self.dump())++ return new_memory\ No newline at end of file