mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-11 15:15:18 +02:00
refactor: brain memory
This commit is contained in:
parent
f2da313548
commit
f92aeb0e50
1 changed files with 2 additions and 1 deletions
|
|
@ -134,7 +134,8 @@ class BrainMemory(pydantic.BaseModel):
|
|||
max_token_count = DEFAULT_MAX_TOKENS
|
||||
max_count = 100
|
||||
texts = [self.historical_summary]
|
||||
for m in self.history:
|
||||
for i in self.history:
|
||||
m = Message(**i)
|
||||
texts.append(m.content)
|
||||
text = "\n".join(texts)
|
||||
text_length = len(text)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue