Spaces:
Sleeping
Sleeping
Update tools/FinalAnswerTool.py
Browse files- tools/FinalAnswerTool.py +1 -11
tools/FinalAnswerTool.py
CHANGED
|
@@ -11,18 +11,8 @@ print(settings.llm_model_id)
|
|
| 11 |
class FinalAnswerTool(Tool):
|
| 12 |
name = "final_answer"
|
| 13 |
description = """
|
| 14 |
-
SYSTEM INSTRUCTIONS FOR THE AGENT
|
| 15 |
-
=================================
|
| 16 |
-
You are a reasoning agent that must solve each question using tools.
|
| 17 |
-
|
| 18 |
-
You may NOT return a final answer directly in text. The final answer
|
| 19 |
-
MUST come through the final_answer tool.
|
| 20 |
-
|
| 21 |
-
------------------------------------------------------
|
| 22 |
-
RULES FOR FINAL ANSWERS
|
| 23 |
-
------------------------------------------------------
|
| 24 |
The final answer MUST be produced ONLY by calling final_answer.
|
| 25 |
-
The agent MUST NOT output explanations after final_answer.
|
| 26 |
|
| 27 |
For numerical questions:
|
| 28 |
- If the question requires a single numeric answer → compute it and
|
|
|
|
| 11 |
class FinalAnswerTool(Tool):
|
| 12 |
name = "final_answer"
|
| 13 |
description = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
The final answer MUST be produced ONLY by calling final_answer.
|
| 15 |
+
The agent MUST NOT output explanations after final_answer. Your answer should be precise. No sentences.
|
| 16 |
|
| 17 |
For numerical questions:
|
| 18 |
- If the question requires a single numeric answer → compute it and
|