naman1102 commited on
Commit
13e3fe4
·
1 Parent(s): 0da2bb5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -62,14 +62,14 @@ def respond_to_input(user_input: str) -> str:
62
  " 1) web_search(query:str)\n"
63
  " 2) parse_excel(path:str,sheet_name:str)\n"
64
  " 3) ocr_image(path:str)\n\n"
65
- "⚠️ **IMPORTANT** ⚠️: If (and only if) you need to call a tool, output exactly one\n"
66
- "JSON object (no extra text). For example:\n"
67
  "```json\n"
68
- '{"tool":"web_search","query":"Mercedes Sosa albums 2000-2009"}\n'
69
  "```\n"
70
- "That JSON must start at the very first character of your response and end at the last\n"
71
- "character—no quotes, no code fences, and no explanation.\n\n"
72
- "If you do NOT need any tool, simply reply with your final answer as plain text."
73
  )
74
  )
75
 
 
62
  " 1) web_search(query:str)\n"
63
  " 2) parse_excel(path:str,sheet_name:str)\n"
64
  " 3) ocr_image(path:str)\n\n"
65
+ "⚠️ **MANDATORY** ⚠️: If (and only if) you need to call a tool, your entire response MUST be exactly ONE JSON OBJECT and NOTHING ELSE. \n"
66
+ "For example, if you want to call web_search, you must respond with exactly:\n"
67
  "```json\n"
68
+ "{\"tool\":\"web_search\",\"query\":\"Mercedes Sosa studio albums 2000-2009\"}\n"
69
  "```\n"
70
+ "That JSON string must start at the very first character of your response and end at the very last character—"
71
+ "no surrounding quotes, no markdown fences, no explanatory text. \n\n"
72
+ "If you do NOT need to call any tool, then you must respond with your final answer as plain text (no JSON)."
73
  )
74
  )
75