Spaces:
Sleeping
Sleeping
File size: 505 Bytes
490cfd4 4eccbfe 251729e 4eccbfe 251729e 490cfd4 adfab55 490cfd4 adfab55 490cfd4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
from crewai_tools import ScrapeWebsiteTool, SerperDevTool, tool
def search_tool():
return SerperDevTool()
def scrape_tool():
return ScrapeWebsiteTool()
@tool("Today tool")
def today_tool(text: str) -> str:
"""Returns today's date. Use this for any questions related to knowing today's date.
The input should always be an empty string, and this function will always return today's date.
Any date mathematics should occur outside this function."""
return str(date.today()) |