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
5b3f6e0b68
commit
1df4121b12
1 changed files with 1 additions and 1 deletions
|
|
@ -194,7 +194,7 @@ class BrainMemory(pydantic.BaseModel):
|
|||
@staticmethod
|
||||
def to_metagpt_history_format(history) -> str:
|
||||
mmsg = []
|
||||
for m in reversed(history):
|
||||
for m in history:
|
||||
msg = Message(**m)
|
||||
r = RawMessage(role="user" if MessageType.Talk.value in msg.tags else "assistant", content=msg.content)
|
||||
mmsg.append(r)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue