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
c66012d087
commit
0c21aa810f
1 changed files with 2 additions and 2 deletions
|
|
@ -10,7 +10,7 @@
|
|||
import json
|
||||
import re
|
||||
from enum import Enum
|
||||
from typing import Dict, List
|
||||
from typing import Dict, List, Optional
|
||||
|
||||
import openai
|
||||
import pydantic
|
||||
|
|
@ -40,7 +40,7 @@ class BrainMemory(pydantic.BaseModel):
|
|||
last_history_id: str = ""
|
||||
is_dirty: bool = False
|
||||
last_talk: str = None
|
||||
llm_type: str
|
||||
llm_type: Optional[str] = None
|
||||
|
||||
def add_talk(self, msg: Message):
|
||||
msg.add_tag(MessageType.Talk.value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue