mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-17 15:35:21 +02:00
Update associative_memory.py
修改规范错误
This commit is contained in:
parent
770dcdc755
commit
9672d82969
1 changed files with 5 additions and 5 deletions
|
|
@ -9,10 +9,10 @@ from datetime import datetime
|
|||
|
||||
class MemoryBasic(Message):
|
||||
|
||||
def __init__(self,memory_id:str,memory_count:int,type_count:int,memory_type:str,depth:int,content:int,
|
||||
creaetd:datetime,expiration:datetime,
|
||||
subject:str,predicate:str,object:str,
|
||||
embedding_key:str,poignancy:int,keywords:list,filling:list):
|
||||
def __init__(self, memory_id:str, memory_count:int, type_count:int, memory_type:str, depth:int, content:int,
|
||||
creaetd:datetime, expiration:datetime,
|
||||
subject:str, predicate:str, object:str,
|
||||
embedding_key:str, poignancy:int, keywords:list, filling:list):
|
||||
"""
|
||||
MemoryBasic继承于MG的Message类,其中content属性替代description属性
|
||||
Message类中对于Chat类型支持的非常好,对于Agent个体的Perceive,Reflection,Plan支持的并不多
|
||||
|
|
@ -51,7 +51,7 @@ class AgentMemory(Memory):
|
|||
2. Node.json (Dict Node_id:Node)
|
||||
3. kw_strength.json
|
||||
"""
|
||||
def __init__(self,memory_saved:str):
|
||||
def __init__(self, memory_saved:str):
|
||||
"""
|
||||
AgentMemory类继承自Memory类,重写storage替代GA中id_to_node,一方面存储所有信息,一方面作为JSON转化
|
||||
index存储与不同Agent的chat信息
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue