Spaces:
Running
Running
Update tools.py
Browse files
tools.py
CHANGED
@@ -1,14 +1,7 @@
|
|
1 |
-
from crewai_tools import ScrapeWebsiteTool, SerperDevTool
|
2 |
-
from datetime import date
|
3 |
|
4 |
def search_tool():
|
5 |
return SerperDevTool()
|
6 |
|
7 |
def scrape_tool():
|
8 |
-
return ScrapeWebsiteTool()
|
9 |
-
|
10 |
-
@tool("Today tool")
|
11 |
-
def today_tool() -> str:
|
12 |
-
"""Returns today's date. Use this for any questions related to knowing today's date.
|
13 |
-
Any date mathematics should occur outside this function."""
|
14 |
-
return str(date.today())
|
|
|
1 |
+
from crewai_tools import ScrapeWebsiteTool, SerperDevTool
|
|
|
2 |
|
3 |
def search_tool():
|
4 |
return SerperDevTool()
|
5 |
|
6 |
def scrape_tool():
|
7 |
+
return ScrapeWebsiteTool()
|
|
|
|
|
|
|
|
|
|
|
|