Sborole commited on
Commit
c8d0d6f
·
verified ·
1 Parent(s): 0e0b570

Update tools/FinalAnswerTool.py

Browse files
Files changed (1) hide show
  1. tools/FinalAnswerTool.py +1 -1
tools/FinalAnswerTool.py CHANGED
@@ -13,7 +13,7 @@ class FinalAnswerTool(Tool):
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
19
  pass the numeric string to final_answer. No long sentences or thought process. Just the precise 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
+ - **CRITICAL TEXT RULE: Do not use short forms (e.g., abbreviations like 'St.' for 'Saint' or 'Dr.' for 'Doctor') in the string passed to final_answer.** Preserve full, unabbreviated words for all names and locations.
17
  For numerical questions:
18
  - If the question requires a single numeric answer → compute it and
19
  pass the numeric string to final_answer. No long sentences or thought process. Just the precise answer.