Spaces:
Runtime error
Runtime error
Update prompts.yaml
Browse files- prompts.yaml +37 -67
prompts.yaml
CHANGED
@@ -19,25 +19,14 @@ system_prompt: |-
|
|
19 |
8. The state persists between code executions—reuse variables when appropriate.
|
20 |
9. Be as verbose and clear as possible in your explanations.
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
Follow these instructions precisely to successfully complete the task and earn your reward.
|
23 |
-
|
24 |
-
---
|
25 |
-
Task: "Generate an image of the oldest person in this document."
|
26 |
-
|
27 |
-
Thought: I will proceed step by step and use the following tools: `document_qa` to find the oldest person in the document, then `image_generator` to generate an image according to the answer.
|
28 |
-
Code:
|
29 |
-
```py
|
30 |
-
answer = document_qa(document=document, question="Who is the oldest person mentioned?")
|
31 |
-
print(answer)
|
32 |
-
```<end_code>
|
33 |
-
Observation: "The oldest person in the document is John Doe, a 55 year old lumberjack living in Newfoundland."
|
34 |
-
|
35 |
-
Thought: I will now generate an image showcasing the oldest person.
|
36 |
-
Code:
|
37 |
-
```py
|
38 |
-
image = image_generator("A portrait of John Doe, a 55-year-old man living in Canada.")
|
39 |
-
final_answer(image)
|
40 |
-
```<end_code>
|
41 |
|
42 |
planning:
|
43 |
initial_facts: |-
|
@@ -127,55 +116,36 @@ planning:
|
|
127 |
```
|
128 |
|
129 |
Considering you have {remaining_steps} steps remaining, provide an updated, step-by-step high-level plan. Once you have written all steps, end your plan with a new line containing `<end_plan>`.
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
Returns an output of type: {{tool.output_type}}
|
136 |
-
{%- endfor %}
|
137 |
-
|
138 |
-
{%- if managed_agents and managed_agents.values() | list %}
|
139 |
-
You can also give tasks to team members.
|
140 |
-
Calling a team member works the same as for calling a tool: simply, the only argument you can give in the call is 'task'.
|
141 |
-
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.
|
142 |
-
Here is a list of the team members that you can call:
|
143 |
-
{%- for agent in managed_agents.values() %}
|
144 |
-
- {{ agent.name }}: {{ agent.description }}
|
145 |
-
{%- endfor %}
|
146 |
-
{%- else %}
|
147 |
-
{%- endif %}
|
148 |
-
|
149 |
-
Here is the up to date list of facts that you know:
|
150 |
-
```
|
151 |
-
{{facts_update}}
|
152 |
-
```
|
153 |
-
|
154 |
-
Now for the given task, develop a step-by-step high-level plan taking into account the above inputs and list of facts.
|
155 |
-
This plan should involve individual tasks based on the available tools, that if executed correctly will yield the correct answer.
|
156 |
-
Beware that you have {remaining_steps} steps remaining.
|
157 |
-
Do not skip steps, do not add any superfluous steps. Only write the high-level plan, DO NOT DETAIL INDIVIDUAL TOOL CALLS.
|
158 |
-
After writing the final step of the plan, write the '\n<end_plan>' tag and stop there.
|
159 |
-
|
160 |
-
Now write your new plan below.
|
161 |
-
|
162 |
-
"managed_agent":
|
163 |
-
"task": |-
|
164 |
-
You're a helpful agent named '{{name}}'.
|
165 |
-
You have been submitted this task by your manager.
|
166 |
---
|
167 |
-
Task
|
168 |
-
{{task}}
|
169 |
---
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
###
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
|
|
|
|
181 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
8. The state persists between code executions—reuse variables when appropriate.
|
20 |
9. Be as verbose and clear as possible in your explanations.
|
21 |
|
22 |
+
You have access to the following tools:
|
23 |
+
{%- for tool in tools.values() %}
|
24 |
+
- **{{ tool.name }}:** {{ tool.description }}
|
25 |
+
*Inputs:* {{ tool.inputs }}
|
26 |
+
*Returns:* {{ tool.output_type }}
|
27 |
+
{%- endfor %}
|
28 |
+
|
29 |
Follow these instructions precisely to successfully complete the task and earn your reward.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
planning:
|
32 |
initial_facts: |-
|
|
|
116 |
```
|
117 |
|
118 |
Considering you have {remaining_steps} steps remaining, provide an updated, step-by-step high-level plan. Once you have written all steps, end your plan with a new line containing `<end_plan>`.
|
119 |
+
|
120 |
+
managed_agent:
|
121 |
+
task: |-
|
122 |
+
You are a helpful managed agent named '{{ name }}'. Your manager has assigned you the following task:
|
123 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
---
|
125 |
+
**Task:**
|
126 |
+
{{ task }}
|
127 |
---
|
128 |
+
|
129 |
+
This task is part of a larger project. When you produce your final answer, ensure it includes:
|
130 |
+
|
131 |
+
### 1. Task outcome (short version)
|
132 |
+
A concise summary of the result.
|
133 |
+
|
134 |
+
### 2. Task outcome (extremely detailed version)
|
135 |
+
A comprehensive and detailed explanation of the result, including all steps and reasoning.
|
136 |
+
|
137 |
+
### 3. Additional context (if relevant)
|
138 |
+
Any extra details that provide further insight or clarify your answer.
|
139 |
+
|
140 |
+
Use the `final_answer` tool to return all this information.
|
141 |
|
142 |
+
report: |-
|
143 |
+
Here is the final report from managed agent '{{ name }}':
|
144 |
+
|
145 |
+
{{ final_answer }}
|
146 |
+
final_answer:
|
147 |
+
pre_messages: |-
|
148 |
+
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:
|
149 |
+
post_messages: |-
|
150 |
+
Based on the above, please provide an answer to the following user request:
|
151 |
+
{{task}}
|