bstraehle commited on
Commit
bfdc5d8
1 Parent(s): 8771516

Update tools.py

Browse files
Files changed (1) hide show
  1. tools.py +12 -0
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