mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-11 15:15:18 +02:00
add enable_longterm_memory config
This commit is contained in:
parent
99e5a73fbb
commit
ea9582cf0e
1 changed files with 2 additions and 0 deletions
|
|
@ -137,6 +137,8 @@ class RoleZeroLongTermMemory(Memory):
|
|||
return self.get_by_position(-1)
|
||||
|
||||
def _is_last_message_from_user_requirement(self) -> bool:
|
||||
"""Checks if the last message is from a user requirement or sent by the team leader."""
|
||||
|
||||
message = self._get_the_last_message()
|
||||
|
||||
if not message:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue