bstraehle commited on
Commit
46a86a7
·
verified ·
1 Parent(s): 5e2d6bd

Update tools.py

Browse files
Files changed (1) hide show
  1. tools.py +8 -1
tools.py CHANGED
@@ -1,4 +1,11 @@
1
- from crewai_tools import ScrapeWebsiteTool, SerperDevTool
 
 
 
 
 
 
 
2
 
3
  def get_search_tool():
4
  return SerperDevTool()
 
1
+ from crewai_tools import tool, ScrapeWebsiteTool, SerperDevTool
2
+
3
+ @tool("Today tool")
4
+ def today_tool(text: str) -> str:
5
+ """Returns today's date. Use this for any questions related to knowing today's date.
6
+ The input should always be an empty string, and this function will always return today's date.
7
+ Any date mathematics should occur outside this function."""
8
+ return str(date.today())
9
 
10
  def get_search_tool():
11
  return SerperDevTool()