Spaces:
Running
Running
Update tools.py
Browse files
tools.py
CHANGED
@@ -1,5 +1,17 @@
|
|
1 |
from crewai_tools import ScrapeWebsiteTool, SerperDevTool
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
def search_tool():
|
4 |
return SerperDevTool()
|
5 |
|
|
|
1 |
from crewai_tools import ScrapeWebsiteTool, SerperDevTool
|
2 |
|
3 |
+
from datetime import date
|
4 |
+
|
5 |
+
class TodayTool(BaseTool):
|
6 |
+
name: str ="Today Tool"
|
7 |
+
description: str = ("Gets today's date.")
|
8 |
+
|
9 |
+
def _run() -> str:
|
10 |
+
return (str(date.today())
|
11 |
+
|
12 |
+
def today_tool():
|
13 |
+
return TodayTool()
|
14 |
+
|
15 |
def search_tool():
|
16 |
return SerperDevTool()
|
17 |
|