mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-26 17:26:22 +02:00
add enable_longterm_memory config
This commit is contained in:
parent
d9ab81bbae
commit
99e5a73fbb
3 changed files with 3 additions and 3 deletions
|
|
@ -173,7 +173,7 @@ class RoleZero(Role):
|
|||
The role name will be used as the collection name.
|
||||
"""
|
||||
|
||||
if self.config.role_zero and self.config.role_zero.enable_longterm_memory:
|
||||
if self.config.role_zero.enable_longterm_memory:
|
||||
self.rc.memory = RoleZeroLongTermMemory(collection_name=self.name.replace(" ", ""), memory_k=self.memory_k)
|
||||
logger.info(f"Long-term memory set for role '{self.name}'")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue