Spaces:
Sleeping
Sleeping
crcdng
commited on
Commit
·
f6e250e
1
Parent(s):
d74f269
try fix prompts.yaml
Browse files- prompts.yaml +11 -11
prompts.yaml
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 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 been given access to a list of tools: these tools are basically Python functions which you can call with code.
|
| 4 |
To solve the task, you must plan forward to proceed in a series of steps, in a cycle of Thought, Code, and Observation sequences.
|
|
@@ -178,8 +178,8 @@ system_prompt: |-
|
|
| 178 |
{%- endif %}
|
| 179 |
|
| 180 |
Now Begin!
|
| 181 |
-
planning:
|
| 182 |
-
initial_plan : |-
|
| 183 |
You are a world expert at analyzing a situation to derive facts, and plan accordingly towards solving a task.
|
| 184 |
Below I will present you a task. You will need to 1. build a survey of facts known or needed to solve the task, then 2. make a plan of action to solve the task.
|
| 185 |
|
|
@@ -242,7 +242,7 @@ planning:
|
|
| 242 |
{{task}}
|
| 243 |
```
|
| 244 |
First in part 1, write the facts survey, then in part 2, write your plan.
|
| 245 |
-
update_plan_pre_messages: |-
|
| 246 |
You are a world expert at analyzing a situation, and plan accordingly towards solving a task.
|
| 247 |
You have been given the following task:
|
| 248 |
```
|
|
@@ -255,7 +255,7 @@ planning:
|
|
| 255 |
If you are stalled, you can make a completely new plan starting from scratch.
|
| 256 |
|
| 257 |
Find the task and history below:
|
| 258 |
-
update_plan_post_messages: |-
|
| 259 |
Now write your updated facts below, taking into account the above history:
|
| 260 |
## 1. Updated facts survey
|
| 261 |
### 1.1. Facts given in the task
|
|
@@ -304,8 +304,8 @@ planning:
|
|
| 304 |
{%- endif %}
|
| 305 |
|
| 306 |
Now write your updated facts survey below, then your new plan.
|
| 307 |
-
managed_agent:
|
| 308 |
-
task: |-
|
| 309 |
You're a helpful agent named '{{name}}'.
|
| 310 |
You have been submitted this task by your manager.
|
| 311 |
---
|
|
@@ -321,12 +321,12 @@ managed_agent:
|
|
| 321 |
|
| 322 |
Put all these in your final_answer tool, everything that you do not pass as an argument to final_answer will be lost.
|
| 323 |
And even if your task resolution is not successful, please return as much context as possible, so that your manager can act upon this feedback.
|
| 324 |
-
report: |-
|
| 325 |
Here is the final answer from your managed agent '{{name}}':
|
| 326 |
{{final_answer}}
|
| 327 |
-
final_answer:
|
| 328 |
-
pre_messages: |-
|
| 329 |
An agent tried to answer a user query but it got stuck and failed to do so. You are tasked with providing an answer instead. Here is the agent's memory:
|
| 330 |
-
post_messages: |-
|
| 331 |
Based on the above, please provide an answer to the following user task:
|
| 332 |
{{task}}
|
|
|
|
| 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 been given access to a list of tools: these tools are basically Python functions which you can call with code.
|
| 4 |
To solve the task, you must plan forward to proceed in a series of steps, in a cycle of Thought, Code, and Observation sequences.
|
|
|
|
| 178 |
{%- endif %}
|
| 179 |
|
| 180 |
Now Begin!
|
| 181 |
+
"planning":
|
| 182 |
+
"initial_plan" : |-
|
| 183 |
You are a world expert at analyzing a situation to derive facts, and plan accordingly towards solving a task.
|
| 184 |
Below I will present you a task. You will need to 1. build a survey of facts known or needed to solve the task, then 2. make a plan of action to solve the task.
|
| 185 |
|
|
|
|
| 242 |
{{task}}
|
| 243 |
```
|
| 244 |
First in part 1, write the facts survey, then in part 2, write your plan.
|
| 245 |
+
"update_plan_pre_messages": |-
|
| 246 |
You are a world expert at analyzing a situation, and plan accordingly towards solving a task.
|
| 247 |
You have been given the following task:
|
| 248 |
```
|
|
|
|
| 255 |
If you are stalled, you can make a completely new plan starting from scratch.
|
| 256 |
|
| 257 |
Find the task and history below:
|
| 258 |
+
"update_plan_post_messages": |-
|
| 259 |
Now write your updated facts below, taking into account the above history:
|
| 260 |
## 1. Updated facts survey
|
| 261 |
### 1.1. Facts given in the task
|
|
|
|
| 304 |
{%- endif %}
|
| 305 |
|
| 306 |
Now write your updated facts survey below, then your new plan.
|
| 307 |
+
"managed_agent":
|
| 308 |
+
"task": |-
|
| 309 |
You're a helpful agent named '{{name}}'.
|
| 310 |
You have been submitted this task by your manager.
|
| 311 |
---
|
|
|
|
| 321 |
|
| 322 |
Put all these in your final_answer tool, everything that you do not pass as an argument to final_answer will be lost.
|
| 323 |
And even if your task resolution is not successful, please return as much context as possible, so that your manager can act upon this feedback.
|
| 324 |
+
"report": |-
|
| 325 |
Here is the final answer from your managed agent '{{name}}':
|
| 326 |
{{final_answer}}
|
| 327 |
+
"final_answer":
|
| 328 |
+
"pre_messages": |-
|
| 329 |
An agent tried to answer a user query but it got stuck and failed to do so. You are tasked with providing an answer instead. Here is the agent's memory:
|
| 330 |
+
"post_messages": |-
|
| 331 |
Based on the above, please provide an answer to the following user task:
|
| 332 |
{{task}}
|