Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
rayrayraykk committed Mar 13, 2024
1 parent dd82b5b commit 2883577
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 0 additions & 6 deletions examples/groupchat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}
"""
```

Expand Down
5 changes: 4 additions & 1 deletion examples/groupchat/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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],
),
)
Expand Down

0 comments on commit 2883577

Please sign in to comment.