🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
feat: +cache
莘权 马26e35d799db5
diff --git a/metagpt/memory/brain_memory.py b/metagpt/memory/brain_memory.pyindex 2ea8ac209..50c414c97 100644--- a/metagpt/memory/brain_memory.py+++ b/metagpt/memory/brain_memory.py@@ -54,7 +54,7 @@ class BrainMemory(pydantic.BaseModel):@propertydef history_text(self):- if len(self.history) == 0:+ if len(self.history) == 0 and not self.historical_summary:return ""texts = [self.historical_summary] if self.historical_summary else []for m in self.history[:-1]: