mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
add comments
This commit is contained in:
parent
2b2e4abf92
commit
1fa0abf6e8
1 changed files with 2 additions and 0 deletions
|
|
@ -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_NAME
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue