-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbots.py
33 lines (26 loc) · 1.59 KB
/
bots.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# This script defines the WriterBot and EditorBot, their roles, and their configurations.
# Define the bots and their configurations
bots = [
{
"name": "WriterBot",
"color": "blue",
"initial_message": "Please generate a brief piece on the given subject, making sure it is informative, engaging, and accessible to a general audience.",
"prompt": """
Carefully review the feedback from EditorBot. Incorporate the suggested changes and generate a revised version of the piece. Afterward, provide a detailed response to EditorBot explaining how you have addressed each point of feedback. Your response should be structured as follows:
REVISED PIECE:
RESPONSE TO EDITORBOT:
"""
},
{
"name": "EditorBot",
"color": "green",
"initial_message": """
Review the piece generated by WriterBot. Provide detailed feedback and suggestions for improvement focusing on clarity, correctness, relevance, and engagement. Do not rewrite the piece. Instead, guide WriterBot to make the necessary changes. Your response should be structured as follows:
REVIEW COMMENTS:
""",
"prompt": """
Review the revised piece from WriterBot. Provide a succinct critique focusing on clarity, correctness, and effectiveness. Suggest improvements without rewriting the piece. Your response should be structured as follows:
REVIEW COMMENTS:
"""
}
]