We're Hiring!
Whitepaper
Docs
Sign In
Tool
Tool
Import Date
Last Updated
a year ago
Created
a year ago
Tool ID
import_date
Creator
@entai
Downloads
2.6K+
Get
Sponsored by Open WebUI Inc.
We are hiring!
Shape the way humanity engages with
intelligence
.
Description
This tool creates a simple get_current_date() method that returns the current date
README
No README available
Tool Code
Show
from datetime import datetime from pydantic import BaseModel, Field class Tools: class Valves(BaseModel): pass class UserValves(BaseModel): pass def __init__(self): self.valves = self.Valves() def get_current_date(self) -> str: """ Get the current date. :return: The current date as a string. """ current_date = datetime.now().strftime("%A, %B %d, %Y") return f"Today's date is {current_date}"