Spaces:
Runtime error
Runtime error
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- 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:
|
| 44 |
-
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
planning:
|
| 48 |
-
initial_facts:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
|
| 52 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
|
| 54 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
|
| 56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
|
| 60 |
managed_agent:
|
| 61 |
-
task:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
|
| 63 |
-
report:
|
|
|
|
|
|
|
|
|
| 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 }}
|