fix(agent): Fix long-term memory error

This commit is contained in:
Fangyin Cheng
2025-04-23 11:09:59 +08:00
parent 3d7d52250f
commit a059ef1412
3 changed files with 9 additions and 3 deletions

View File

@@ -142,7 +142,7 @@ class MultiAgents(BaseComponent, ABC):
).create()
storage_manager = StorageManager.get_instance(self.system_app)
index_name = "_agent_memory_"
index_name = "agent_memory_long_term"
vector_store = storage_manager.create_vector_store(index_name=index_name)
if not vector_store.vector_name_exists():
vector_store.create_collection(collection_name=index_name)