🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
refactor: update notations
莘权 马a996440d5e7b
diff --git a/metagpt/memory/memory.py b/metagpt/memory/memory.pyindex 282e89b17..7f04be63d 100644--- a/metagpt/memory/memory.py+++ b/metagpt/memory/memory.py@@ -5,7 +5,7 @@@Author : alexanderwu@File : memory.py@Modified By: mashenquan, 2023-11-1. According to Chapter 2.2.1 and 2.2.2 of RFC 116:- Modify the new message distribution feature for message filtering.+ Updated the message filtering logic."""from collections import defaultdictfrom typing import Iterable, Setdiff --git a/metagpt/roles/engineer.py b/metagpt/roles/engineer.pyindex 9826ea0b7..ff71a61d8 100644--- a/metagpt/roles/engineer.py+++ b/metagpt/roles/engineer.py@@ -4,10 +4,12 @@@Time : 2023/5/11 14:43@Author : alexanderwu@File : engineer.py-@Modified By: mashenquan, 2023-11-1. Optimization:- 1. Consolidate message reception and processing logic within `_observe`.- 2. Fix bug: Add logic for handling asynchronous message processing when messages are not ready.- 3. Supplemented the external transmission of internal messages.+@Modified By: mashenquan, 2023-11-1. In accordance with Chapter 2.2.1 and 2.2.2 of RFC 116:+ 1. Modify the data type of the `cause_by` value in the `Message` to a string, and utilize the new message+ distribution feature for message filtering.+ 2. Consolidate message reception and processing logic within `_observe`.+ 3. Fix bug: Add logic for handling asynchronous message processing when messages are not ready.+ 4. Supplemented the external transmission of internal messages."""import asyncioimport shutil