faizaltkl commited on
Commit
eda2d83
·
verified ·
1 Parent(s): eb1e69c

Update prompts.yaml

Browse files
Files changed (1) hide show
  1. prompts.yaml +85 -0
prompts.yaml CHANGED
@@ -83,3 +83,88 @@ managed_agent:
83
  report: |-
84
  Here is the final answer from your managed agent '{{name}}':
85
  {{final_answer}}.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  report: |-
84
  Here is the final answer from your managed agent '{{name}}':
85
  {{final_answer}}.
86
+
87
+ planning:
88
+ initial_facts: |-
89
+ ### 1. Facts given in the task
90
+ (List facts directly stated in the task)
91
+
92
+ ### 2. Facts to look up
93
+ (List facts you need to retrieve using tools or reasoning)
94
+
95
+ ### 3. Facts to derive
96
+ (List any computations or conclusions based on above)
97
+
98
+ initial_plan: |-
99
+ 1. Understand the task and break it into sub-steps.
100
+ 2. Use tools to gather necessary data (e.g., current time, text generation, image).
101
+ 3. Use print to store info between steps.
102
+ 4. When complete, return the result using final_answer().
103
+ <end_plan>
104
+
105
+ update_facts_pre_messages: |-
106
+ You are a world expert at gathering known and unknown facts based on a conversation.
107
+ 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:
108
+ ### 1. Facts given in the task
109
+ ### 2. Facts that we have learned
110
+ ### 3. Facts still to look up
111
+ ### 4. Facts still to derive
112
+
113
+ update_facts_post_messages: |-
114
+ Earlier we've built a list of facts.
115
+ But since in your previous steps you may have learned useful new facts or invalidated some false ones.
116
+ Please update your list of facts based on the previous history, and provide these headings:
117
+ ### 1. Facts given in the task
118
+ ### 2. Facts that we have learned
119
+ ### 3. Facts still to look up
120
+ ### 4. Facts still to derive
121
+
122
+ update_plan_pre_messages: |-
123
+ You are a world expert at making efficient plans to solve any task using a set of carefully crafted tools.
124
+
125
+ You have been given a task:
126
+ ```
127
+ {{task}}
128
+ ```
129
+
130
+ 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.
131
+ If the previous tries so far have met some success, you can make an updated plan based on these actions.
132
+ If you are stalled, you can make a completely new plan starting from scratch.
133
+
134
+ update_plan_post_messages: |-
135
+ You're still working towards solving this task:
136
+ ```
137
+ {{task}}
138
+ ```
139
+
140
+ You can leverage these tools:
141
+ {%- for tool in tools.values() %}
142
+ - {{ tool.name }}: {{ tool.description }}
143
+ Takes inputs: {{tool.inputs}}
144
+ Returns an output of type: {{tool.output_type}}
145
+ {%- endfor %}
146
+
147
+ {%- if managed_agents and managed_agents.values() | list %}
148
+ You can also give tasks to team members.
149
+ Calling a team member works the same as for calling a tool: simply, the only argument you can give in the call is 'task'.
150
+ 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.
151
+ Here is a list of the team members that you can call:
152
+ {%- for agent in managed_agents.values() %}
153
+ - {{ agent.name }}: {{ agent.description }}
154
+ {%- endfor %}
155
+ {%- else %}
156
+ {%- endif %}
157
+
158
+ Here is the up to date list of facts that you know:
159
+ ```
160
+ {{facts_update}}
161
+ ```
162
+
163
+ Now for the given task, develop a step-by-step high-level plan taking into account the above inputs and list of facts.
164
+ This plan should involve individual tasks based on the available tools, that if executed correctly will yield the correct answer.
165
+ Beware that you have {remaining_steps} steps remaining.
166
+ Do not skip steps, do not add any superfluous steps. Only write the high-level plan, DO NOT DETAIL INDIVIDUAL TOOL CALLS.
167
+ After writing the final step of the plan, write the '\n<end_plan>' tag and stop there.
168
+
169
+ Now write your new plan below.
170
+