bstraehle's picture
Update tools.py
46a86a7 verified
raw
history blame
513 Bytes
from crewai_tools import tool, ScrapeWebsiteTool, SerperDevTool
@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())
def get_search_tool():
return SerperDevTool()
def get_scrape_tool():
return ScrapeWebsiteTool()