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