Sborole commited on
Commit
ac2d3eb
·
verified ·
1 Parent(s): 9a4e876

Update tools/FinalAnswerTool.py

Browse files
Files changed (1) hide show
  1. 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 to express time in 'thousands of hours', divide the total hours by 1000,
17
- round to the nearest integer, and return ONLY that integer with no extra text.
18
 
19
- Output only the final answer as a clean string — no explanation, no labels, no formatting.
 
 
 
 
 
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."}