Upload app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,8 @@ from smolagents import (
|
|
| 16 |
DuckDuckGoSearchTool,
|
| 17 |
OpenAIServerModel,
|
| 18 |
Tool,
|
| 19 |
-
PythonInterpreterTool
|
|
|
|
| 20 |
)
|
| 21 |
from typing import List, Dict, Any, Optional, Tuple
|
| 22 |
|
|
@@ -318,7 +319,7 @@ class GAIAAgent:
|
|
| 318 |
def setup_tools(self):
|
| 319 |
"""Set up the tools for the agent"""
|
| 320 |
self.tools = [
|
| 321 |
-
|
| 322 |
PythonInterpreterTool(),
|
| 323 |
ReverseTextTool(),
|
| 324 |
TableParseTool(),
|
|
|
|
| 16 |
DuckDuckGoSearchTool,
|
| 17 |
OpenAIServerModel,
|
| 18 |
Tool,
|
| 19 |
+
PythonInterpreterTool,
|
| 20 |
+
tool # Make sure to import the 'tool' decorator
|
| 21 |
)
|
| 22 |
from typing import List, Dict, Any, Optional, Tuple
|
| 23 |
|
|
|
|
| 319 |
def setup_tools(self):
|
| 320 |
"""Set up the tools for the agent"""
|
| 321 |
self.tools = [
|
| 322 |
+
DuckDuckGoSearchTool(), # Fixed typo in tool name
|
| 323 |
PythonInterpreterTool(),
|
| 324 |
ReverseTextTool(),
|
| 325 |
TableParseTool(),
|