Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -260,7 +260,11 @@ class BasicAgent:
|
|
| 260 |
except Exception as e:
|
| 261 |
return f"File analysis error: {str(e)}"
|
| 262 |
|
| 263 |
-
return [
|
|
|
|
|
|
|
|
|
|
|
|
|
| 264 |
|
| 265 |
def _create_workflow(self):
|
| 266 |
"""Create optimized LangGraph workflow."""
|
|
@@ -392,11 +396,11 @@ Be extremely specific in your tool inputs. Avoid vague searches."""
|
|
| 392 |
|
| 393 |
# Add flexible matching
|
| 394 |
tool_matches = {
|
| 395 |
-
"web_search": ["web", "search", "google", "internet"],
|
| 396 |
"wikipedia_search": ["wiki", "wikipedia"],
|
| 397 |
"python_calculator": ["python", "code", "calc", "calculate"],
|
| 398 |
"simple_math": ["math", "arithmetic"],
|
| 399 |
-
"file_analyzer": ["file", "analyze"]
|
| 400 |
}
|
| 401 |
|
| 402 |
matched_tool = None
|
|
|
|
| 260 |
except Exception as e:
|
| 261 |
return f"File analysis error: {str(e)}"
|
| 262 |
|
| 263 |
+
return [
|
| 264 |
+
# web_search,
|
| 265 |
+
wikipedia_search, python_calculator, simple_math
|
| 266 |
+
# , file_analyzer
|
| 267 |
+
]
|
| 268 |
|
| 269 |
def _create_workflow(self):
|
| 270 |
"""Create optimized LangGraph workflow."""
|
|
|
|
| 396 |
|
| 397 |
# Add flexible matching
|
| 398 |
tool_matches = {
|
| 399 |
+
# "web_search": ["web", "search", "google", "internet"],
|
| 400 |
"wikipedia_search": ["wiki", "wikipedia"],
|
| 401 |
"python_calculator": ["python", "code", "calc", "calculate"],
|
| 402 |
"simple_math": ["math", "arithmetic"],
|
| 403 |
+
# "file_analyzer": ["file", "analyze"]
|
| 404 |
}
|
| 405 |
|
| 406 |
matched_tool = None
|