Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
"⚠️ **
|
| 66 |
-
"
|
| 67 |
"```json\n"
|
| 68 |
-
|
| 69 |
"```\n"
|
| 70 |
-
"That JSON must start at the very first character of your response and end at the last
|
| 71 |
-
"
|
| 72 |
-
"If you do NOT need any tool,
|
| 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 |
|