Spaces:
Running
Running
Update tools.py
Browse files
tools.py
CHANGED
@@ -7,8 +7,7 @@ def scrape_tool():
|
|
7 |
return ScrapeWebsiteTool()
|
8 |
|
9 |
@tool("Today tool")
|
10 |
-
def today_tool(
|
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())
|
|
|
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 this function."""
|
13 |
return str(date.today())
|