mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-27 01:36:29 +02:00
Change the way of taking over memory
This commit is contained in:
parent
d077cd0b2f
commit
c0d5c031f8
8 changed files with 270 additions and 407 deletions
|
|
@ -965,9 +965,8 @@ class BaseEnum(Enum):
|
|||
|
||||
|
||||
class LongTermMemoryItem(BaseModel):
|
||||
user_message: Message
|
||||
ai_message: Message
|
||||
message: Message
|
||||
created_at: Optional[float] = Field(default_factory=time.time)
|
||||
|
||||
def rag_key(self) -> str:
|
||||
return self.user_message.content
|
||||
return self.message.content
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue