Spaces:
Runtime error
Runtime error
Update prompts.yaml
Browse files- prompts.yaml +43 -34
prompts.yaml
CHANGED
|
@@ -1,39 +1,48 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
| 4 |
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
|
|
|
| 9 |
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
planning:
|
| 14 |
-
initial_facts:
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 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}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|