Closed lemon-little closed 3 months ago
def add( self, data, user_id=None, agent_id=None, run_id=None, metadata=None, filters=None, prompt=None, ):
existing_memories = [ MemoryItem( id=mem.id, score=mem.score, metadata=mem.payload, memory=mem.payload["data"], ) for mem in existing_memories ] serialized_existing_memories = [ item.model_dump(include={"id", "text", "score"}) for item in existing_memories ]
memory=mem.payload["data"], update: text=mem.payload["data"],
def add( self, data, user_id=None, agent_id=None, run_id=None, metadata=None, filters=None, prompt=None, ):
existing_memories = [ MemoryItem( id=mem.id, score=mem.score, metadata=mem.payload, memory=mem.payload["data"], ) for mem in existing_memories ] serialized_existing_memories = [ item.model_dump(include={"id", "text", "score"}) for item in existing_memories ]
memory=mem.payload["data"], update: text=mem.payload["data"],
What's the meaning?
🐛 Describe the bug
Running the code for the first time:
Then I added the following code to run the code a second time:
The questions are as follows: