🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
add comments
garylin20991fa0abf6e867
diff --git a/metagpt/environment/mgx/mgx_env.py b/metagpt/environment/mgx/mgx_env.pyindex f360cd605..a8fc0df9f 100644--- a/metagpt/environment/mgx/mgx_env.py+++ b/metagpt/environment/mgx/mgx_env.py@@ -79,6 +79,8 @@ class MGXEnv(Environment, SerializationMixin):if converted_msg.role not in ["system", "user", "assistant"]:converted_msg.role = "assistant"sent_from = converted_msg.metadata[AGENT] if AGENT in converted_msg.metadata else converted_msg.sent_from+ # When displaying send_to, change it to those who need to react and exclude those who only need to be aware, e.g.:+ # send_to={<all>} -> Mike; send_to={Alice} -> Alice; send_to={Alice, <all>} -> Alice.if converted_msg.send_to == {MESSAGE_ROUTE_TO_ALL}:send_to = TEAMLEADER_NAMEelse: