Scott Cogan commited on
Commit
c7acf7c
·
1 Parent(s): 16ef7b5

fix: update all templates to use YAML block scalar syntax and remove escaped newlines

Browse files
Files changed (1) hide show
  1. prompts.yaml +102 -11
prompts.yaml CHANGED
@@ -40,24 +40,115 @@ prompt_templates:
40
  10. Don't give up! You're in charge of solving the task, not providing directions to solve it.
41
 
42
  final_answer:
43
- text: "You have reached the final step of your task. Use the final_answer tool to submit your answer.\\nThe answer should be clear, concise, and directly address the original question.\\nFormat: final_answer(your_answer)"
44
- pre_messages: "You are about to submit your final answer. Make sure it is:\\n1. Clear and concise\\n2. Directly addresses the original question\\n3. Based on the information gathered\\n4. Uses the final_answer tool correctly"
45
- post_messages: "You have submitted your final answer. The answer should now be complete and ready for evaluation.\\nRemember that your answer should be:\\n1. Based on the information you gathered\\n2. Directly addressing the original question\\n3. Clear and well-structured\\n4. Using the final_answer tool correctly"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
 
47
  planning:
48
- initial_facts: "Below I will present you a task.\\nYou will now build a comprehensive preparatory survey of which facts we have at our disposal and which ones we still need.\\nTo do so, you will have to read the task and identify things that must be discovered in order to successfully complete it.\\nDon't make any assumptions. For each item, provide a thorough reasoning. Here is how you will structure this survey:\\n\\n### 1. Facts given in the task\\nList here the specific facts given in the task that could help you (there might be nothing here).\\n\\n### 2. Facts to look up\\nList here any facts that we may need to look up.\\nAlso 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.\\n\\n### 3. Facts to derive\\nList here anything that we want to derive from the above by logical reasoning, for instance computation or simulation."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
 
50
- initial_plan: "You are a world expert at making efficient plans to solve any task using a set of carefully crafted tools.\\nNow for the given task, develop a step-by-step high-level plan taking into account the above inputs and list of facts.\\nThis plan should involve individual tasks based on the available tools, that if executed correctly will yield the correct answer.\\nDo not skip steps, do not add any superfluous steps. Only write the high-level plan, DO NOT DETAIL INDIVIDUAL TOOL CALLS.\\nAfter writing the final step of the plan, write the '\\n<end_plan>' tag and stop there.\\n\\nTask:\\n```\\n{{ task }}\\n```\\n\\nAvailable tools:\\n{% for tool in tools %}\\n- {{ tool.name }}: {{ tool.description }}\\n{% endfor %}\\n\\nList of facts that you know:\\n```\\n{{ answer_facts }}\\n```"
 
 
 
 
 
 
51
 
52
- update_facts_pre_messages: "You are a world expert at gathering known and unknown facts based on a conversation.\\nBelow you will find a task, and a history of attempts made to solve the task. You will have to produce a list of these:\\n### 1. Facts given in the task\\n### 2. Facts that we have learned\\n### 3. Facts still to look up\\n### 4. Facts still to derive"
 
 
 
 
 
 
 
53
 
54
- update_facts_post_messages: "Earlier we've built a list of facts.\\nBut since in your previous steps you may have learned useful new facts or invalidated some false ones.\\nPlease update your list of facts based on the previous history, and provide these headings:\\n### 1. Facts given in the task\\n### 2. Facts that we have learned\\n### 3. Facts still to look up\\n### 4. Facts still to derive"
 
 
 
 
 
55
 
56
- update_plan_pre_messages: "You are a world expert at making efficient plans to solve any task using a set of carefully crafted tools.\\nYou have been given a task:\\n```\\n{{ task }}\\n```"
 
 
 
 
57
 
58
- update_plan_post_messages: "You're still working towards solving this task:\\n```\\n{{ task }}\\n```\\n\\nNow for the given task, develop a step-by-step high-level plan taking into account the above inputs and list of facts.\\nThis plan should involve individual tasks based on the available tools, that if executed correctly will yield the correct answer.\\nBeware that you have {{ remaining_steps }} steps remaining.\\nDo not skip steps, do not add any superfluous steps. Only write the high-level plan, DO NOT DETAIL INDIVIDUAL TOOL CALLS.\\nAfter writing the final step of the plan, write the '\\n<end_plan>' tag and stop there."
 
 
 
 
 
59
 
60
  managed_agent:
61
- task: "You're a helpful agent named '{{ name }}'.\\nYou have been submitted this task by your manager.\\n---\\nTask:\\n{{ task }}\\n---\\nYou're helping your manager solve a wider task: so make sure to not provide a one-line answer, but give as much information as possible to give them a clear understanding of the answer.\\nYour final_answer WILL HAVE to contain these parts:\\n### 1. Task outcome (short version):\\n### 2. Task outcome (extremely detailed version):\\n### 3. Additional context (if relevant):"
 
 
 
 
 
 
 
 
 
 
 
62
 
63
- report: "Here is the final answer from your managed agent '{{ name }}':\\n{{ final_answer }}"
 
 
 
40
  10. Don't give up! You're in charge of solving the task, not providing directions to solve it.
41
 
42
  final_answer:
43
+ text: |
44
+ You have reached the final step of your task. Use the final_answer tool to submit your answer.
45
+ The answer should be clear, concise, and directly address the original question.
46
+ Format: final_answer(your_answer)
47
+ pre_messages: |
48
+ You are about to submit your final answer. Make sure it is:
49
+ 1. Clear and concise
50
+ 2. Directly addresses the original question
51
+ 3. Based on the information gathered
52
+ 4. Uses the final_answer tool correctly
53
+ post_messages: |
54
+ You have submitted your final answer. The answer should now be complete and ready for evaluation.
55
+ Remember that your answer should be:
56
+ 1. Based on the information you gathered
57
+ 2. Directly addressing the original question
58
+ 3. Clear and well-structured
59
+ 4. Using the final_answer tool correctly
60
 
61
  planning:
62
+ initial_facts: |
63
+ Below I will present you a task.
64
+ You will now build a comprehensive preparatory survey of which facts we have at our disposal and which ones we still need.
65
+ To do so, you will have to read the task and identify things that must be discovered in order to successfully complete it.
66
+ Don't make any assumptions. For each item, provide a thorough reasoning. Here is how you will structure this survey:
67
+
68
+ ### 1. Facts given in the task
69
+ List here the specific facts given in the task that could help you (there might be nothing here).
70
+
71
+ ### 2. Facts to look up
72
+ List here any facts that we may need to look up.
73
+ 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.
74
+
75
+ ### 3. Facts to derive
76
+ List here anything that we want to derive from the above by logical reasoning, for instance computation or simulation.
77
+
78
+ initial_plan: |
79
+ You are a world expert at making efficient plans to solve any task using a set of carefully crafted tools.
80
+ Now for the given task, develop a step-by-step high-level plan taking into account the above inputs and list of facts.
81
+ This plan should involve individual tasks based on the available tools, that if executed correctly will yield the correct answer.
82
+ Do not skip steps, do not add any superfluous steps. Only write the high-level plan, DO NOT DETAIL INDIVIDUAL TOOL CALLS.
83
+ After writing the final step of the plan, write the '
84
+ <end_plan>' tag and stop there.
85
+
86
+ Task:
87
+ ```
88
+ {{ task }}
89
+ ```
90
+
91
+ Available tools:
92
+ {% for tool in tools %}
93
+ - {{ tool.name }}: {{ tool.description }}
94
+ {% endfor %}
95
+
96
+ List of facts that you know:
97
+ ```
98
+ {{ answer_facts }}
99
+ ```
100
 
101
+ update_facts_pre_messages: |
102
+ You are a world expert at gathering known and unknown facts based on a conversation.
103
+ Below you will find a task, and a history of attempts made to solve the task. You will have to produce a list of these:
104
+ ### 1. Facts given in the task
105
+ ### 2. Facts that we have learned
106
+ ### 3. Facts still to look up
107
+ ### 4. Facts still to derive
108
 
109
+ update_facts_post_messages: |
110
+ Earlier we've built a list of facts.
111
+ But since in your previous steps you may have learned useful new facts or invalidated some false ones.
112
+ Please update your list of facts based on the previous history, and provide these headings:
113
+ ### 1. Facts given in the task
114
+ ### 2. Facts that we have learned
115
+ ### 3. Facts still to look up
116
+ ### 4. Facts still to derive
117
 
118
+ update_plan_pre_messages: |
119
+ You are a world expert at making efficient plans to solve any task using a set of carefully crafted tools.
120
+ You have been given a task:
121
+ ```
122
+ {{ task }}
123
+ ```
124
 
125
+ update_plan_post_messages: |
126
+ You're still working towards solving this task:
127
+ ```
128
+ {{ task }}
129
+ ```
130
 
131
+ Now for the given task, develop a step-by-step high-level plan taking into account the above inputs and list of facts.
132
+ This plan should involve individual tasks based on the available tools, that if executed correctly will yield the correct answer.
133
+ Beware that you have {{ remaining_steps }} steps remaining.
134
+ Do not skip steps, do not add any superfluous steps. Only write the high-level plan, DO NOT DETAIL INDIVIDUAL TOOL CALLS.
135
+ After writing the final step of the plan, write the '
136
+ <end_plan>' tag and stop there.
137
 
138
  managed_agent:
139
+ task: |
140
+ You're a helpful agent named '{{ name }}'.
141
+ You have been submitted this task by your manager.
142
+ ---
143
+ Task:
144
+ {{ task }}
145
+ ---
146
+ You're helping your manager solve a wider task: so make sure to not provide a one-line answer, but give as much information as possible to give them a clear understanding of the answer.
147
+ Your final_answer WILL HAVE to contain these parts:
148
+ ### 1. Task outcome (short version):
149
+ ### 2. Task outcome (extremely detailed version):
150
+ ### 3. Additional context (if relevant):
151
 
152
+ report: |
153
+ Here is the final answer from your managed agent '{{ name }}':
154
+ {{ final_answer }}