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