diff --git a/examples/groupchat/README.md b/examples/groupchat/README.md index 023cf6467..cc95d9674 100644 --- a/examples/groupchat/README.md +++ b/examples/groupchat/README.md @@ -66,12 +66,6 @@ To customize this message, modify the `DEFAULT_TOPIC` variable in the `main.py` DEFAULT_TOPIC = """ This is a chat room about the Future of Artificial Intelligence and you can speak freely and briefly. - -You can designate a member to reply to your message, you can use the @ symbol. -This means including the @ symbol in your message, followed by -that person's name, and leaving a space after the name. - -All participants are: {agent_names} """ ``` diff --git a/examples/groupchat/main.py b/examples/groupchat/main.py index f6e2f5784..0847c1979 100644 --- a/examples/groupchat/main.py +++ b/examples/groupchat/main.py @@ -14,7 +14,9 @@ USER_TIME_TO_SPEAK = 10 DEFAULT_TOPIC = """ This is a chat room and you can speak freely and briefly. +""" +SYS_PROMPT = """ You can designate a member to reply to your message, you can use the @ symbol. This means including the @ symbol in your message, followed by that person's name, and leaving a space after the name. @@ -36,7 +38,8 @@ def main() -> None: hint = Msg( name="Host", - content=DEFAULT_TOPIC.format( + content=DEFAULT_TOPIC + + SYS_PROMPT.format( agent_names=[agent.name for agent in agents], ), )