bstraehle commited on
Commit
adfab55
·
verified ·
1 Parent(s): 490cfd4

Update tools.py

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