Spaces:
Running
Running
Update prompts.yaml
Browse files- prompts.yaml +111 -1
prompts.yaml
CHANGED
@@ -132,4 +132,114 @@
|
|
132 |
Do not skip steps, do not add any superfluous steps. Only write the high-level plan, DO NOT DETAIL INDIVIDUAL TOOL CALLS.
|
133 |
After writing the final step of the plan, write the '\n<end_plan>' tag and stop there.
|
134 |
|
135 |
-
Here is your task:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
Do not skip steps, do not add any superfluous steps. Only write the high-level plan, DO NOT DETAIL INDIVIDUAL TOOL CALLS.
|
133 |
After writing the final step of the plan, write the '\n<end_plan>' tag and stop there.
|
134 |
|
135 |
+
Here is your task:
|
136 |
+
|
137 |
+
Task:
|
138 |
+
```
|
139 |
+
{{task}}
|
140 |
+
```
|
141 |
+
You can leverage these tools:
|
142 |
+
{%- for tool in tools.values() %}
|
143 |
+
- {{ tool.name }}: {{ tool.description }}
|
144 |
+
Takes inputs: {{tool.inputs}}
|
145 |
+
Returns an output of type: {{tool.output_type}}
|
146 |
+
{%- endfor %}
|
147 |
+
|
148 |
+
{%- if managed_agents and managed_agents.values() | list %}
|
149 |
+
You can also give tasks to team members.
|
150 |
+
Calling a team member works the same as for calling a tool: simply, the only argument you can give in the call is 'request', a long string explaining your request.
|
151 |
+
Given that this team member is a real human, you should be very verbose in your request.
|
152 |
+
Here is a list of the team members that you can call:
|
153 |
+
{%- for agent in managed_agents.values() %}
|
154 |
+
- {{ agent.name }}: {{ agent.description }}
|
155 |
+
{%- endfor %}
|
156 |
+
{%- else %}
|
157 |
+
{%- endif %}
|
158 |
+
|
159 |
+
List of facts that you know:
|
160 |
+
```
|
161 |
+
{{answer_facts}}
|
162 |
+
```
|
163 |
+
|
164 |
+
Now begin! Write your plan below.
|
165 |
+
"update_facts_pre_messages": |-
|
166 |
+
You are a world expert at gathering known and unknown facts based on a conversation.
|
167 |
+
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:
|
168 |
+
### 1. Facts given in the task
|
169 |
+
### 2. Facts that we have learned
|
170 |
+
### 3. Facts still to look up
|
171 |
+
### 4. Facts still to derive
|
172 |
+
Find the task and history below:
|
173 |
+
"update_facts_post_messages": |-
|
174 |
+
Earlier we've built a list of facts.
|
175 |
+
But since in your previous steps you may have learned useful new facts or invalidated some false ones.
|
176 |
+
Please update your list of facts based on the previous history, and provide these headings:
|
177 |
+
### 1. Facts given in the task
|
178 |
+
### 2. Facts that we have learned
|
179 |
+
### 3. Facts still to look up
|
180 |
+
### 4. Facts still to derive
|
181 |
+
Now write your new list of facts below.
|
182 |
+
"update_plan_pre_messages": |-
|
183 |
+
You are a world expert at making efficient plans to solve any task using a set of carefully crafted tools.
|
184 |
+
You have been given a task:
|
185 |
+
```
|
186 |
+
{{task}}
|
187 |
+
```
|
188 |
+
|
189 |
+
Find below the record of what has been tried so far to solve it. Then you will be asked to make an updated plan to solve the task.
|
190 |
+
If the previous tries so far have met some success, you can make an updated plan based on these actions.
|
191 |
+
If you are stalled, you can make a completely new plan starting from scratch.
|
192 |
+
"update_plan_post_messages": |-
|
193 |
+
You're still working towards solving this task:
|
194 |
+
```
|
195 |
+
{{task}}
|
196 |
+
```
|
197 |
+
You can leverage these tools:
|
198 |
+
{%- for tool in tools.values() %}
|
199 |
+
- {{ tool.name }}: {{ tool.description }}
|
200 |
+
Takes inputs: {{tool.inputs}}
|
201 |
+
Returns an output of type: {{tool.output_type}}
|
202 |
+
{%- endfor %}
|
203 |
+
|
204 |
+
{%- if managed_agents and managed_agents.values() | list %}
|
205 |
+
You can also give tasks to team members.
|
206 |
+
Calling a team member works the same as for calling a tool: simply, the only argument you can give in the call is 'task'.
|
207 |
+
Given that this team member is a real human, you should be very verbose in your task, it should be a long string providing informations as detailed as necessary.
|
208 |
+
Here is a list of the team members that you can call:
|
209 |
+
{%- for agent in managed_agents.values() %}
|
210 |
+
- {{ agent.name }}: {{ agent.description }}
|
211 |
+
{%- endfor %}
|
212 |
+
{%- else %}
|
213 |
+
{%- endif %}
|
214 |
+
|
215 |
+
Here is the up to date list of facts that you know:
|
216 |
+
```
|
217 |
+
{{facts_update}}
|
218 |
+
```
|
219 |
+
|
220 |
+
Now for the given task, develop a step-by-step high-level plan taking into account the above inputs and list of facts.
|
221 |
+
This plan should involve individual tasks based on the available tools, that if executed correctly will yield the correct answer.
|
222 |
+
Beware that you have {remaining_steps} steps remaining.
|
223 |
+
Do not skip steps, do not add any superfluous steps. Only write the high-level plan, DO NOT DETAIL INDIVIDUAL TOOL CALLS.
|
224 |
+
After writing the final step of the plan, write the '\n<end_plan>' tag and stop there.
|
225 |
+
|
226 |
+
Now write your new plan below.
|
227 |
+
"managed_agent":
|
228 |
+
"task": |-
|
229 |
+
You're a helpful agent named '{{Garden Magus}}'.
|
230 |
+
You have been submitted this task by your manager.
|
231 |
+
---
|
232 |
+
Task:
|
233 |
+
{{task}}
|
234 |
+
---
|
235 |
+
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.
|
236 |
+
Your final_answer WILL HAVE to contain these parts:
|
237 |
+
### 1. Task outcome (short version):
|
238 |
+
### 2. Task outcome (extremely detailed version):
|
239 |
+
### 3. Additional context (if relevant):
|
240 |
+
|
241 |
+
Put all these in your final_answer tool, everything that you do not pass as an argument to final_answer will be lost.
|
242 |
+
And even if your task resolution is not successful, please return as much context as possible, so that your manager can act upon this feedback.
|
243 |
+
"report": |-
|
244 |
+
Here is the final answer from your managed agent '{{Garden Magus}}':
|
245 |
+
{{final_answer}}
|