Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

expand mem window to 100

garylin209944d82d3efc86
diff --git a/metagpt/roles/di/role_zero.py b/metagpt/roles/di/role_zero.py
index b8d0c671a..8eafe8cb5 100644
--- a/metagpt/roles/di/role_zero.py
+++ b/metagpt/roles/di/role_zero.py
@@ -83,7 +83,7 @@ class RoleZero(Role):
# Others
command_rsp: str = "" # the raw string containing the commands
commands: list[dict] = [] # commands to be executed
- memory_k: int = 20 # number of memories (messages) to use as historical context
+ memory_k: int = 100 # number of memories (messages) to use as historical context
use_fixed_sop: bool = False
requirements_constraints: str = "" # the constraints in user requirements
use_summary: bool = True # whether to summarize at the end