Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

fixbug: last_talk

莘权 马b0966ca54133
diff --git a/metagpt/memory/brain_memory.py b/metagpt/memory/brain_memory.py
index e2d9ad5ff..60c563ed4 100644
--- a/metagpt/memory/brain_memory.py
+++ b/metagpt/memory/brain_memory.py
@@ -66,15 +66,6 @@ class BrainMemory(pydantic.BaseModel):
return "\n".join(texts)
- @property
- def last_talk(self):
- if len(self.history) == 0:
- return None
- last_msg = Message(**self.history[-1])
- if not last_msg.is_contain(MessageType.Talk.value):
- return None
- return last_msg.content
-
@staticmethod
async def loads(redis_key: str, redis_conf: Dict = None) -> "BrainMemory":
redis = Redis(conf=redis_conf)