mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-04 05:12:37 +02:00
fixbug: exceed length
This commit is contained in:
parent
3454761f95
commit
7babb5ef71
1 changed files with 1 additions and 0 deletions
|
|
@ -49,6 +49,7 @@ class BrainMemory(pydantic.BaseModel):
|
|||
return "\n".join(texts)
|
||||
|
||||
def move_to_solution(self, history_summary):
|
||||
"""放入solution队列,以备后续长程检索。目前还未加此功能"""
|
||||
if len(self.history) < 2:
|
||||
return
|
||||
msgs = self.history[:-1]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue