mobina1380 commited on
Commit
28a2f7e
·
verified ·
1 Parent(s): 926834a

Update prompts.yaml

Browse files
Files changed (1) hide show
  1. 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
- To do so, you have access to a list of tools (Python functions).
4
- At each step, follow this pattern:
5
- - Thought: Describe your reasoning.
6
- - Code: Write the Python code in a code block ending with <end_code>.
7
- - Observation: The output from the code.
8
 
9
- Use print() statements for intermediate outputs you need later.
10
- You must use the final_answer(...) tool to give your final answer.
11
 
12
  final_answer: |
13
  Code:
@@ -17,56 +17,45 @@ final_answer: |
17
 
18
  planning:
19
  initial_facts: |
20
- Below I will present you a task.
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
- You are an expert at planning solutions to technical problems using available tools.
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
- You will now update the known facts based on the previous steps and results.
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 list of facts above based on any new information or corrections.
47
 
48
  update_plan_pre_messages: |
49
- The previous plan needs to be revised based on what has been learned so far.
50
 
51
  update_plan_post_messages: |
52
- Create a new or revised high-level plan using the updated facts and current task context.
53
- You still have {remaining_steps} steps remaining.
54
  End with <end_plan>.
55
 
56
- managed_agent: |
57
- You are a helpful assistant agent named '{{name}}'.
58
-
59
- You have been assigned the following task:
60
- ---
61
- Task:
62
- {{task}}
63
- ---
64
-
65
- Please work on this task thoroughly, not just returning a one-line result.
66
-
67
- Your `final_answer` MUST contain:
68
- ### 1. Task outcome (short version):
69
- ### 2. Task outcome (extremely detailed version):
70
- ### 3. Additional context (if relevant):
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}}