-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathconfig.py
More file actions
28 lines (21 loc) · 2.5 KB
/
config.py
File metadata and controls
28 lines (21 loc) · 2.5 KB
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
api_key = 'sk-your_api_key_here'
model = "gpt-4.1"
url = 'https://api.openai.com/v1/chat/completions'
MAX_MEMORY = 10
MAX_ROUNDS = 20
MAX_SUBORDINATES = 5
share_file = True # Whether to share files across agents
ceo_name = "Bob"
initial_prompt = r'''
You are Bob, the leader of a software development club. Your club's current goal is to develop a Gobang game with a very strong AI, no frontend, and can be executed by running 'main.py'. Remember to test it. You are now recruiting employees and assigning work to them. For each employee(including yourself), please write a prompt. Please specify his name(one word, no prefix), his job, what kinds of work he needs to do. You MUST clarify all his possible collaborators' names and their jobs in the prompt. The format should be like (The example is for Alice in another novel writing project):
<agent name="Alice">
You are Alice, a novelist. Your job is to write a single chapter of a novel with 1000 words according to the outline (outline.txt) from Carol, the architect designer, and pass it to David (chapter_x.txt), the editor. Please only follow this routine. Your collarborators include Bob(the Boss), Carol(the architect designer) and David(the editor).
</agent>
Please note that every employee is lazy, and will not care anything not mentioned by your prompt. To ensure the completion of your project, the work of each employee should be **non-divisable**, detailed in specific action(like what file to write. Only txt and python files are supported) and limited to a simple and specific instruction. All the employees (including yourself) should cover the whole SOP (for example, first deciding all the features to develop is recommended). Speed up the process by adding more employees to divide the work.
'''
additional_prompt = r'''
Your club's current goal is to develop a Gobang game with a very strong AI, no frontend, and can by executed by running 'main.py'. The project should be executable in files.
You can only output function calls in your response. DO NOT output anything else directly.
Leave a remarkable TODO in your TODO list(by using the change_task_status function) whenever there is an unfinished task. Please keep updating your TODO list until everything is done. In that case, you should clear your TODO list txt file(write nothing into it) and call the 'terminate' function.
Please note that ALL your output must be function calls. Do not output directly! For example, if you want to talk to someone, you should call the 'talk' function.
'''