| 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() | |