yetessam commited on
Commit
60e76b8
·
verified ·
1 Parent(s): cd613eb

Delete prompts/planning.yml

Browse files
Files changed (1) hide show
  1. prompts/planning.yml +0 -154
prompts/planning.yml DELETED
@@ -1,154 +0,0 @@
1
- planning:
2
- initial_plan: |-
3
- {%- if custom_instructions %} {{custom_instructions}} {%- endif %}
4
- Now Begin!
5
-
6
- You are a world expert at analyzing a situation to derive facts, and plan accordingly towards solving a task.
7
- Below I will present you a task. You will need to
8
- 1. build a survey of facts known or needed to solve the task, then
9
- 2. make a plan of action to solve the task.
10
-
11
- ## 1. Facts survey
12
- You will build a comprehensive preparatory survey of which facts we have at our disposal and which ones we still need.
13
- These "facts" will typically be specific names, dates, values, etc. Your answer should use the below headings:
14
-
15
- ### 1.1. Facts given in the task
16
- List here the specific facts given in the task that could help you (there might be nothing here).
17
-
18
- ### 1.2. Facts to look up
19
- Also list where to find each of these, for instance a website, a file... - maybe the task contains some sources that you should re-use here.
20
-
21
- ### 1.3. Facts to derive
22
- List here anything that we want to derive from the above by logical reasoning, for instance computation or simulation.
23
- Don't make any assumptions. For each item, provide a thorough reasoning.
24
- Do not add anything else on top of three headings above.
25
-
26
- ## 2. Plan
27
- Then for the given task, develop a step-by-step high-level plan taking into account the above inputs and list of facts.
28
- This plan should involve individual tasks based on the available tools, that if executed correctly will yield the correct answer.
29
- Do not skip steps, do not add any superfluous steps.
30
- Only write the high-level plan, DO NOT DETAIL INDIVIDUAL TOOL CALLS.
31
- After writing the final step of the plan, write the '' tag and stop there.
32
-
33
- You can leverage these tools, behaving like regular python functions:
34
- ```python
35
- {%- for tool in tools.values() %} {{ tool.to_code_prompt() }} {% endfor %}
36
- ```
37
-
38
- {%- if managed_agents and managed_agents.values() | list %}
39
- You can also give tasks to team members. Calling a team member works similarly to calling a tool:
40
- provide the task description as the 'task' argument. Since this team member is a real human,
41
- be as detailed and verbose as necessary in your task description.
42
- You can also include any relevant variables or context using the 'additional_args' argument.
43
- Here is a list of the team members that you can call:
44
- ```python
45
- {%- for agent in managed_agents.values() %}
46
- def {{ agent.name }}(task: str, additional_args: dict[str, Any]) -> str:
47
- """{{ agent.description }}
48
- Args:
49
- task: Long detailed description of the task.
50
- additional_args: Dictionary of extra inputs to pass to the managed agent,
51
- e.g. images, dataframes, or any other contextual data it may need.
52
- """
53
- {% endfor %}
54
- ```
55
- {%- endif %}
56
-
57
- ---
58
- Now begin! Here is your task:
59
- ```
60
- {{task}}
61
- ```
62
- First in part 1, write the facts survey, then in part 2, write your plan.
63
-
64
- update_plan_pre_messages: |-
65
- You are a world expert at analyzing a situation, and plan accordingly towards solving a task.
66
- You have been given the following task:
67
- ```
68
- {{task}}
69
- ```
70
- Below you will find a history of attempts made to solve this task.
71
- You will first have to produce a survey of known and unknown facts, then propose a step-by-step high-level plan to solve the task.
72
- If the previous tries so far have met some success, your updated plan can build on these results.
73
- If you are stalled, you can make a completely new plan starting from scratch.
74
- Find the task and history below:
75
-
76
- update_plan_post_messages: |-
77
- Now write your updated facts below, taking into account the above history:
78
-
79
- ## 1. Updated facts survey
80
- ### 1.1. Facts given in the task
81
- ### 1.2. Facts that we have learned
82
- ### 1.3. Facts still to look up
83
- ### 1.4. Facts still to derive
84
-
85
- Then write a step-by-step high-level plan to solve the task above.
86
-
87
- ## 2. Plan
88
- ### 2.
89
- 1. ... Etc.
90
-
91
- This plan should involve individual tasks based on the available tools, that if executed correctly will yield the correct answer.
92
- Beware that you have {remaining_steps} steps remaining.
93
- Do not skip steps, do not add any superfluous steps.
94
- Only write the high-level plan, DO NOT DETAIL INDIVIDUAL TOOL CALLS.
95
- After writing the final step of the plan, write the '' tag and stop there.
96
-
97
- You can leverage these tools, behaving like regular python functions:
98
- ```python
99
- {%- for tool in tools.values() %} {{ tool.to_code_prompt() }} {% endfor %}
100
- ```
101
-
102
- {%- if managed_agents and managed_agents.values() | list %}
103
- You can also give tasks to team members.
104
- Calling a team member works similarly to calling a tool: provide the task description as the 'task' argument.
105
- Since this team member is a real human, be as detailed and verbose as necessary in your task description.
106
- You can also include any relevant variables or context using the 'additional_args' argument.
107
-
108
- Here is a list of the team members that you can call:
109
- ```python
110
- {%- for agent in managed_agents.values() %}
111
- def {{ agent.name }}(task: str, additional_args: dict[str, Any]) -> str:
112
- """{{ agent.description }}
113
- Args:
114
- task: Long detailed description of the task.
115
- additional_args: Dictionary of extra inputs to pass to the managed agent,
116
- e.g. images, dataframes, or any other contextual data it may need.
117
- """
118
- {% endfor %}
119
- ```
120
- {%- endif %}
121
-
122
- Now write your updated facts survey below, then your new plan.
123
-
124
- managed_agent:
125
- task: |-
126
- You're a helpful agent named '{{name}}'. You have been submitted this task by your manager.
127
-
128
- ---
129
- Task: {{task}}
130
- ---
131
-
132
- You're helping your manager solve a wider task: so make sure to not provide a one-line answer,
133
- but give as much information as possible to give them a clear understanding of the answer.
134
-
135
- Your final_answer WILL HAVE to contain these parts:
136
- ### 1. Task outcome (short version):
137
- ### 2. Task outcome (extremely detailed version):
138
- ### 3. Additional context (if relevant):
139
-
140
- Put all these in your final_answer tool, everything that you do not pass as an argument to final_answer will be lost.
141
- And even if your task resolution is not successful, please return as much context as possible,
142
- so that your manager can act upon this feedback.
143
-
144
- report: |-
145
- Here is the final answer from your managed agent '{{name}}':
146
- {{final_answer}}
147
-
148
- final_answer:
149
- pre_messages: |-
150
- An agent tried to answer a user query but it got stuck and failed to do so.
151
-
152
- post_messages: |-
153
- Based on the above, please provide an answer to the following user task:
154
- {{task}}