Update associative_memory.py

修改规范错误
This commit is contained in:
爱吃屁的小张 2023-09-28 11:02:35 +08:00 committed by GitHub
parent 770dcdc755
commit 9672d82969
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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信息