Skip to content

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

fix conflict

seehi93d4c8c318fc
diff --cc metagpt/roles/di/role_zero.py
index 738de2244,da26796d5..7f3d81b9d
--- a/metagpt/roles/di/role_zero.py
+++ b/metagpt/roles/di/role_zero.py
@@@ -32,10 -31,9 +32,9 @@@ from metagpt.prompts.di.role_zero impor
ROLE_INSTRUCTION,
SUMMARY_PROMPT,
SYSTEM_PROMPT,
- THOUGHT_GUIDANCE,
)
from metagpt.roles import Role
-from metagpt.schema import AIMessage, Message, UserMessage
+from metagpt.schema import AIMessage, LongTermMemoryItem, Message, UserMessage
from metagpt.strategy.experience_retriever import DummyExpRetriever, ExpRetriever
from metagpt.strategy.planner import Planner
from metagpt.tools.libs.browser import Browser
@@@ -87,9 -83,7 +85,9 @@@ 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 = 200 # number of memories (messages) to use as historical context
+ enable_longterm_memory: bool = True # whether to use longterm memory
+ longterm_memory: RoleZeroLongTermMemory = None
use_fixed_sop: bool = False
requirements_constraints: str = "" # the constraints in user requirements
use_summary: bool = True # whether to summarize at the end