Sudheer Tripathi
feat: agent with uvlock setup
3f8a628
raw
history blame
310 Bytes
from smolagents import Tool
import datetime
class GetCurrentDateTool(Tool):
name="get_current_date"
description="""
This tool returns the current date in YYYY-MM-DD format
"""
inputs={}
output_type = "string"
def forward(self) -> str:
return datetime.datetime.date()