Skip to content

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

fixbug: last_talk

莘权 马18a65470f031
diff --git a/metagpt/memory/brain_memory.py b/metagpt/memory/brain_memory.py
index 60c563ed4..92a71f69a 100644
--- a/metagpt/memory/brain_memory.py
+++ b/metagpt/memory/brain_memory.py
@@ -124,3 +124,8 @@ class BrainMemory(pydantic.BaseModel):
return int(v)
except:
return default_value
+
+ def pop_last_talk(self):
+ v = self.last_talk
+ self.last_talk = ""
+ return v