Spaces:
Running
Running
Update agent.py
Browse files
agent.py
CHANGED
@@ -292,7 +292,7 @@ class MagAgent:
|
|
292 |
# WikipediaSearchTool(),
|
293 |
SpeechToTextTool(),
|
294 |
ExcelReaderTool(),
|
295 |
-
VisitWebpageTool(),
|
296 |
PythonCodeReaderTool(),
|
297 |
search_arxiv,
|
298 |
# PNG2FENTool,
|
@@ -334,7 +334,6 @@ class MagAgent:
|
|
334 |
"4. **Error Handling**:\n"
|
335 |
" - If you cannot retrieve or process data (e.g., due to blocked requests), return a clear error message: \"Unable to retrieve data. Please refine the question or check external sources.\"\n\n"
|
336 |
f"Answer the following question: {question} \n"
|
337 |
-
f"{question} \n"
|
338 |
f"If the question references an attachment, use tool to download it with task_id: {task_id}\n"
|
339 |
# f"Return the answer as a string."
|
340 |
)
|
|
|
292 |
# WikipediaSearchTool(),
|
293 |
SpeechToTextTool(),
|
294 |
ExcelReaderTool(),
|
295 |
+
# VisitWebpageTool(),
|
296 |
PythonCodeReaderTool(),
|
297 |
search_arxiv,
|
298 |
# PNG2FENTool,
|
|
|
334 |
"4. **Error Handling**:\n"
|
335 |
" - If you cannot retrieve or process data (e.g., due to blocked requests), return a clear error message: \"Unable to retrieve data. Please refine the question or check external sources.\"\n\n"
|
336 |
f"Answer the following question: {question} \n"
|
|
|
337 |
f"If the question references an attachment, use tool to download it with task_id: {task_id}\n"
|
338 |
# f"Return the answer as a string."
|
339 |
)
|