Spaces:
Sleeping
Sleeping
Update tools/FinalAnswerTool.py
Browse files- tools/FinalAnswerTool.py +8 -3
tools/FinalAnswerTool.py
CHANGED
|
@@ -13,10 +13,15 @@ class FinalAnswerTool(Tool):
|
|
| 13 |
description = """
|
| 14 |
Takes the agent's computed result and formats the final answer.
|
| 15 |
|
| 16 |
-
If the question asks
|
| 17 |
-
|
| 18 |
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
"""
|
| 21 |
inputs = {
|
| 22 |
"answer": {"type": "string", "description": "The final, correctly formatted answer string."}
|
|
|
|
| 13 |
description = """
|
| 14 |
Takes the agent's computed result and formats the final answer.
|
| 15 |
|
| 16 |
+
If the question asks for time rounded to the nearest *thousand hours*,
|
| 17 |
+
you MUST:
|
| 18 |
|
| 19 |
+
1. First compute total time in hours.
|
| 20 |
+
2. THEN divide by 1000 to convert to 'thousands of hours'.
|
| 21 |
+
3. Round that result to the nearest integer.
|
| 22 |
+
4. Output ONLY that integer (e.g., 17), with no units and no extra text.
|
| 23 |
+
|
| 24 |
+
Always output a clean string with ONLY the final answer.
|
| 25 |
"""
|
| 26 |
inputs = {
|
| 27 |
"answer": {"type": "string", "description": "The final, correctly formatted answer string."}
|