🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
update setter of is_writable and is_readable
seehidbf41120b099
diff --git a/metagpt/exp_pool/manager.py b/metagpt/exp_pool/manager.pyindex 38772239b..35de17079 100644--- a/metagpt/exp_pool/manager.py+++ b/metagpt/exp_pool/manager.py@@ -49,7 +49,11 @@ class ExperienceManager(BaseModel):@is_readable.setterdef is_readable(self, value: bool):- self.config.exp_pool.enabled = self.config.exp_pool.enable_read = value+ self.config.exp_pool.enable_read = value++ # If set to True, ensure that enabled is also True.+ if value:+ self.config.exp_pool.enabled = True@propertydef is_writable(self) -> bool:@@ -57,7 +61,11 @@ class ExperienceManager(BaseModel):@is_writable.setterdef is_writable(self, value: bool):- self.config.exp_pool.enabled = self.config.exp_pool.enable_write = value+ self.config.exp_pool.enable_write = value++ # If set to True, ensure that enabled is also True.+ if value:+ self.config.exp_pool.enabled = True@handle_exceptiondef create_exp(self, exp: Experience):