mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-21 14:05:17 +02:00
feat: truncated history
This commit is contained in:
parent
05532426c0
commit
92402bedd4
1 changed files with 1 additions and 0 deletions
|
|
@ -110,6 +110,7 @@ class BrainMemory(pydantic.BaseModel):
|
|||
if self.to_int(msg.id, 0) <= self.to_int(self.last_history_id, -1):
|
||||
return
|
||||
self.history.append(msg.dict())
|
||||
self.last_history_id = str(msg.id)
|
||||
self.is_dirty = True
|
||||
|
||||
def exists(self, text) -> bool:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue