From 1fa0abf6e867221209bb279d9fac3a461389861e Mon Sep 17 00:00:00 2001 From: garylin2099 Date: Tue, 15 Oct 2024 10:24:28 +0800 Subject: [PATCH] add comments --- metagpt/environment/mgx/mgx_env.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/metagpt/environment/mgx/mgx_env.py b/metagpt/environment/mgx/mgx_env.py index 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={} -> Mike; send_to={Alice} -> Alice; send_to={Alice, } -> Alice. if converted_msg.send_to == {MESSAGE_ROUTE_TO_ALL}: send_to = TEAMLEADER_NAME else: