bstraehle's picture
Update tools.py
948a35d verified
raw
history blame
419 Bytes
from crewai_tools import ScrapeWebsiteTool, SerperDevTool, tool
from datetime import date
def search_tool():
return SerperDevTool()
def scrape_tool():
return ScrapeWebsiteTool()
@tool("Today tool")
def today_tool() -> str:
"""Returns today's date. Use this for any questions related to knowing today's date.
Any date mathematics should occur outside this function."""
return str(date.today())