MasterOfHugs commited on
Commit
a800d9c
·
verified ·
1 Parent(s): 4573c04

Update prompts.yaml

Browse files
Files changed (1) hide show
  1. prompts.yaml +43 -34
prompts.yaml CHANGED
@@ -1,39 +1,48 @@
1
- system_prompt: |-
2
- You are an AI assistant that solves tasks step by step.
3
- When computation or external data is needed, write a Python code block:
 
 
4
 
5
- Code:
6
- ```py
7
- # python code here
8
- ```<end_code>
 
9
 
10
- Always provide your reasoning in a "Thought:" section before the code.
11
- If the task requires a final answer, use the tool final_answer().
 
 
 
12
 
13
  planning:
14
- initial_facts: "List all known facts before starting the task."
15
- initial_plan: "Build a high-level plan step by step using available tools."
16
- update_facts_pre_messages: "Update facts from conversation history."
17
- update_facts_post_messages: "Refine facts after reviewing previous messages."
18
- update_plan_pre_messages: "Update plan based on previous attempts."
19
- update_plan_post_messages: "Refine plan considering latest facts."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
 
21
- tools:
22
- web_search:
23
- description: "Search the web for information."
24
- inputs: "query (string)"
25
- output_type: "text"
26
- visit_webpage:
27
- description: "Visit a webpage and extract content."
28
- inputs: "url (string)"
29
- output_type: "text"
30
- final_answer:
31
- description: "Return the final answer of your reasoning."
32
- inputs: "answer (string)"
33
- output_type: "text"
34
-
35
- constraints:
36
- - "Always use a Thought: then Code: sequence."
37
- - "Do not chain too many tool calls in one code block."
38
- - "Use only the tools provided."
39
- - "Do not assume facts not given or previously discovered."
 
1
+ # prompts.yaml
2
+ system_prompt: |
3
+ You are a helpful AI assistant.
4
+ Interact with the user in a chat.
5
+ Solve tasks step by step.
6
 
7
+ When computation or external data is needed:
8
+ - Write Python code in a short code block.
9
+ - Use print() to output intermediate results.
10
+ - End code blocks clearly.
11
+ - Avoid long horizontal lines; break text as needed.
12
 
13
+ Example:
14
+ Code:
15
+ # Python code here
16
+ result = 2 + 2
17
+ print(result)
18
 
19
  planning:
20
+ initial_facts: |
21
+ - Read the task carefully.
22
+ - Identify known facts.
23
+ - Identify facts to look up.
24
+ initial_plan: |
25
+ - Build a step-by-step plan using available tools.
26
+ - Use code blocks for computation when needed.
27
+ - Do not skip steps.
28
+ - <end_plan>
29
+ update_facts_pre_messages: |
30
+ - Review previous attempts.
31
+ - Identify new facts learned.
32
+ - Identify facts still missing.
33
+ update_facts_post_messages: |
34
+ - Update facts based on latest agent observations.
35
+ update_plan_pre_messages: |
36
+ - Review task and previous attempts.
37
+ - Prepare updated high-level plan.
38
+ update_plan_post_messages: |
39
+ - Develop detailed step-by-step plan based on known facts.
40
+ - <end_plan>
41
 
42
+ managed_agent:
43
+ task: |
44
+ You are a helpful agent named '{{name}}'.
45
+ You must provide a detailed final_answer with context.
46
+ report: |
47
+ Here is the final answer from your managed agent '{{name}}':
48
+ {{final_answer}}