bstraehle's picture
Update tools.py
bfdc5d8 verified
raw
history blame
388 Bytes
from crewai_tools import ScrapeWebsiteTool, SerperDevTool
from datetime import date
class TodayTool(BaseTool):
name: str ="Today Tool"
description: str = ("Gets today's date.")
def _run() -> str:
return (str(date.today())
def today_tool():
return TodayTool()
def search_tool():
return SerperDevTool()
def scrape_tool():
return ScrapeWebsiteTool()