bstraehle commited on
Commit
251729e
1 Parent(s): 46a86a7

Update tools.py

Browse files
Files changed (1) hide show
  1. tools.py +4 -5
tools.py CHANGED
@@ -1,14 +1,13 @@
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()
12
 
13
- def get_scrape_tool():
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()