Spaces:
Runtime error
Runtime error
Update prompts.yaml
Browse files- prompts.yaml +29 -40
prompts.yaml
CHANGED
|
@@ -1,13 +1,13 @@
|
|
| 1 |
system_prompt: |
|
| 2 |
You are an expert assistant who can solve any task using code blobs. You will be given a task to solve as best you can.
|
| 3 |
-
|
| 4 |
-
At each step,
|
| 5 |
-
- Thought:
|
| 6 |
-
- Code:
|
| 7 |
-
- Observation:
|
| 8 |
|
| 9 |
-
Use print()
|
| 10 |
-
|
| 11 |
|
| 12 |
final_answer: |
|
| 13 |
Code:
|
|
@@ -17,56 +17,45 @@ final_answer: |
|
|
| 17 |
|
| 18 |
planning:
|
| 19 |
initial_facts: |
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
You will now build a comprehensive preparatory survey of which facts we have at our disposal and which ones we still need.
|
| 23 |
-
Don't make any assumptions. For each item, provide a thorough reasoning. Use these headings:
|
| 24 |
-
|
| 25 |
### 1. Facts given in the task
|
| 26 |
### 2. Facts to look up
|
| 27 |
### 3. Facts to derive
|
| 28 |
|
| 29 |
initial_plan: |
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
Based on the known facts and tools, create a high-level, step-by-step plan that solves the task.
|
| 33 |
-
Do NOT write actual code, just describe what needs to be done in each step.
|
| 34 |
End your plan with <end_plan>.
|
| 35 |
|
| 36 |
update_facts_pre_messages: |
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
Use these headers:
|
| 40 |
### 1. Facts given in the task
|
| 41 |
### 2. Facts that we have learned
|
| 42 |
### 3. Facts still to look up
|
| 43 |
### 4. Facts still to derive
|
| 44 |
|
| 45 |
update_facts_post_messages: |
|
| 46 |
-
Update the
|
| 47 |
|
| 48 |
update_plan_pre_messages: |
|
| 49 |
-
|
| 50 |
|
| 51 |
update_plan_post_messages: |
|
| 52 |
-
|
| 53 |
-
You still have {remaining_steps} steps remaining.
|
| 54 |
End with <end_plan>.
|
| 55 |
|
| 56 |
-
managed_agent:
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
Everything must be included inside the final_answer(...) call.
|
|
|
|
| 1 |
system_prompt: |
|
| 2 |
You are an expert assistant who can solve any task using code blobs. You will be given a task to solve as best you can.
|
| 3 |
+
You have access to a list of Python tools that you can use to solve tasks step-by-step.
|
| 4 |
+
At each step, write:
|
| 5 |
+
- Thought: your reasoning.
|
| 6 |
+
- Code: your Python code (in a code block), ending with <end_code>.
|
| 7 |
+
- Observation: the result of your code.
|
| 8 |
|
| 9 |
+
Use `print()` to return outputs you need in the next steps.
|
| 10 |
+
Always end with `final_answer(...)` to return your final result.
|
| 11 |
|
| 12 |
final_answer: |
|
| 13 |
Code:
|
|
|
|
| 17 |
|
| 18 |
planning:
|
| 19 |
initial_facts: |
|
| 20 |
+
Analyze the task and list:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
### 1. Facts given in the task
|
| 22 |
### 2. Facts to look up
|
| 23 |
### 3. Facts to derive
|
| 24 |
|
| 25 |
initial_plan: |
|
| 26 |
+
Write a high-level plan to solve the task using the available tools.
|
| 27 |
+
Do not write code.
|
|
|
|
|
|
|
| 28 |
End your plan with <end_plan>.
|
| 29 |
|
| 30 |
update_facts_pre_messages: |
|
| 31 |
+
Based on task progress, update these:
|
|
|
|
|
|
|
| 32 |
### 1. Facts given in the task
|
| 33 |
### 2. Facts that we have learned
|
| 34 |
### 3. Facts still to look up
|
| 35 |
### 4. Facts still to derive
|
| 36 |
|
| 37 |
update_facts_post_messages: |
|
| 38 |
+
Update the facts above using new observations or corrections.
|
| 39 |
|
| 40 |
update_plan_pre_messages: |
|
| 41 |
+
Revise your plan based on what has happened so far.
|
| 42 |
|
| 43 |
update_plan_post_messages: |
|
| 44 |
+
Write a revised high-level plan (you have {remaining_steps} steps left).
|
|
|
|
| 45 |
End with <end_plan>.
|
| 46 |
|
| 47 |
+
managed_agent:
|
| 48 |
+
task: |
|
| 49 |
+
You are a helpful agent named '{{name}}'.
|
| 50 |
+
You have received this task:
|
| 51 |
+
---
|
| 52 |
+
{{task}}
|
| 53 |
+
---
|
| 54 |
+
Work thoroughly. In the end, use the `final_answer(...)` tool to report:
|
| 55 |
+
### 1. Task outcome (short version):
|
| 56 |
+
### 2. Task outcome (detailed version):
|
| 57 |
+
### 3. Additional context (if needed):
|
| 58 |
+
|
| 59 |
+
report: |
|
| 60 |
+
Final answer from '{{name}}':
|
| 61 |
+
{{final_answer}}
|
|
|
|
|
|