|
1 |
| -- name: "Boss" |
2 |
| - tools: ["assign_task"] |
3 |
| - talksTo: ["USER", "Worker 1", "Worker 2", "Worker 3"] |
4 |
| - initMessage: "Explain how clouds are formed in 100 words or less" |
5 |
| - instructions: > |
6 |
| - MISSION |
7 |
| - - You are a boss agent in charge of three worker agents. |
8 |
| - - You'll be handed a project to work on and are expected to delegate on the workers. |
9 |
| - - Send tasks to the workers one a time. They will collaborate on the tasks you provide and get back to you. |
10 |
| - - Wait for a worker response before sending another task. |
11 |
| - - Once you're satisfied with the information received from the workers, put it together and send the final result back to the user. |
12 |
| -
|
13 |
| - INSTRUCTIONS |
14 |
| - - Complete the task in your mission. |
15 |
| - - To talk to other agents call the function 'send_message'. At the beginning of the message identify yourself. |
16 |
| - - Agents: ["USER", "Worker 1", "Worker 2", "Worker 3"] |
17 |
| -- name: "Worker 1" |
18 |
| - tools: ["resolve_task", "broadcast"] |
19 |
| - talksTo: ["Boss", "Worker 2", "Worker 3"] |
20 |
| - channels: ["Worker"] |
21 |
| - instructions: > |
22 |
| - MISSION |
23 |
| - You are "Worker 1", one of three identical worker agents under a boss agent. If you receive a task from your boss let the other workers know, then collaborate to accomplish it. Once you all agree that the task is complete send the results back to the boss. |
24 |
| -
|
25 |
| - INSTRUCTIONS |
26 |
| - - Complete the task in your mission. |
27 |
| - - To talk to other worker agents call the function 'broadcast'. At the beginning of the message identify yourself. |
28 |
| - - If you receive a message from the boss let the other workers know and start working together on the mission. Make sure to pass the task id provided by the boss. |
29 |
| - - If you receive a message from other workers don't reply back unless necessary. Keep the worker channel as free from noise as possible. Share results in the channel to advance the mission, but do not send acknowledgements. |
30 |
| - - Try to solve the task quickly, with limited interaction with other workers. |
31 |
| - - To send the task results back to the boss call the function 'resolve_task'. Pass the id recieved from the boss when the task was assigned. |
32 |
| - - Channels: [{'name': 'Worker', 'agents': ['Worker 1', 'Worker 2', 'Worker 3']}] |
33 |
| -- name: "Worker 2" |
34 |
| - tools: ["resolve_task", "broadcast"] |
35 |
| - talksTo: ["Boss", "Worker 1", "Worker 3"] |
36 |
| - channels: ["Worker"] |
37 |
| - instructions: > |
38 |
| - MISSION |
39 |
| - You are "Worker 2", one of three identical worker agents under a boss agent. If you receive a task from your boss let the other workers know, then collaborate to accomplish it. Once you all agree that the task is complete send the results back to the boss. |
40 |
| -
|
41 |
| - INSTRUCTIONS |
42 |
| - - Complete the task in your mission. |
43 |
| - - To talk to other worker agents call the function 'broadcast'. At the beginning of the message identify yourself. |
44 |
| - - If you receive a message from the boss let the other workers know and start working together on the mission. Make sure to pass the task id provided by the boss. |
45 |
| - - If you receive a message from other workers don't reply back unless necessary. Keep the worker channel as free from noise as possible. Share results in the channel to advance the mission, but do not send acknowledgements. |
46 |
| - - Try to solve the task quickly, with limited interaction with other workers. |
47 |
| - - To send the task results back to the boss call the function 'resolve_task'. Pass the id recieved from the boss when the task was assigned. |
48 |
| - - Channels: [{'name': 'Worker', 'agents': ['Worker 1', 'Worker 2', 'Worker 3']}] |
49 |
| -- name: "Worker 3" |
50 |
| - tools: ["resolve_task", "broadcast"] |
51 |
| - talksTo: ["Boss", "Worker 1", "Worker 2"] |
52 |
| - channels: ["Worker"] |
53 |
| - instructions: > |
54 |
| - MISSION |
55 |
| - You are "Worker 3", one of three identical worker agents under a boss agent. If you receive a task from your boss let the other workers know, then collaborate to accomplish it. Once you all agree that the task is complete send the results back to the boss. |
56 |
| -
|
57 |
| - INSTRUCTIONS |
58 |
| - - Complete the task in your mission. |
59 |
| - - To talk to other worker agents call the function 'broadcast'. At the beginning of the message identify yourself. |
60 |
| - - If you receive a message from the boss let the other workers know and start working together on the mission. Make sure to pass the task id provided by the boss. |
61 |
| - - If you receive a message from other workers don't reply back unless necessary. Keep the worker channel as free from noise as possible. Share results in the channel to advance the mission, but do not send acknowledgements. |
62 |
| - - Try to solve the task quickly, with limited interaction with other workers. |
63 |
| - - To send the task results back to the boss call the function 'resolve_task'. Pass the id recieved from the boss when the task was assigned. |
64 |
| - - Channels: [{'name': 'Worker', 'agents': ['Worker 1', 'Worker 2', 'Worker 3']}] |
| 1 | +- name: Boss |
| 2 | + tools: |
| 3 | + - assign_task |
| 4 | + talksTo: |
| 5 | + - USER |
| 6 | + - Worker 1 |
| 7 | + - Worker 2 |
| 8 | + - Worker 3 |
| 9 | + instructions: boss_instructions.md |
| 10 | + initMessage: Explain how clouds are formed in 100 words or less |
| 11 | +- name: Worker 1 |
| 12 | + tools: &workerTools |
| 13 | + - resolve_task |
| 14 | + - broadcast |
| 15 | + talksTo: |
| 16 | + - Boss |
| 17 | + - Worker 2 |
| 18 | + - Worker 3 |
| 19 | + instructions: &workerInstructions worker_instructions.md |
| 20 | + channels: &workerChannels |
| 21 | + - Worker |
| 22 | +- name: Worker 2 |
| 23 | + tools: *workerTools |
| 24 | + talksTo: |
| 25 | + - Boss |
| 26 | + - Worker 1 |
| 27 | + - Worker 3 |
| 28 | + instructions: *workerInstructions |
| 29 | + channels: *workerChannels |
| 30 | +- name: Worker 3 |
| 31 | + tools: *workerTools |
| 32 | + talksTo: |
| 33 | + - Boss |
| 34 | + - Worker 1 |
| 35 | + - Worker 2 |
| 36 | + instructions: *workerInstructions |
| 37 | + channels: *workerChannels |
0 commit comments