🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
refactor: brain memory
莘权 马24a3e7257263
diff --git a/metagpt/memory/brain_memory.py b/metagpt/memory/brain_memory.pyindex 3d713ddfb..09a4915fc 100644--- a/metagpt/memory/brain_memory.py+++ b/metagpt/memory/brain_memory.py@@ -181,7 +181,7 @@ class BrainMemory(pydantic.BaseModel):m.content = m.content[0:left]msgs.append(m.dict())break- msgs.append(m.dict())+ msgs.append(i)total_length += deltaself.history = msgsself.is_dirty = True