From d97955643cb5dc17d12762dab7bb1470096a02ab Mon Sep 17 00:00:00 2001 From: garylin2099 Date: Mon, 14 Oct 2024 16:35:32 +0800 Subject: [PATCH] pm watch UserRequirement if fixed sop --- metagpt/roles/product_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metagpt/roles/product_manager.py b/metagpt/roles/product_manager.py index 93d83e329..f2a47affd 100644 --- a/metagpt/roles/product_manager.py +++ b/metagpt/roles/product_manager.py @@ -42,8 +42,8 @@ class ProductManager(RoleZero): # NOTE: The following init setting will only be effective when self.use_fixed_sop is changed to True self.enable_memory = False self.set_actions([PrepareDocuments(send_to=any_to_str(self)), WritePRD]) - self._watch([UserRequirement, PrepareDocuments]) if self.use_fixed_sop: + self._watch([UserRequirement, PrepareDocuments]) self.rc.react_mode = RoleReactMode.BY_ORDER def _update_tool_execution(self):