Spaces:
Running
Running
File size: 389 Bytes
ef088c2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
from datetime import date
from langchain_core.tools import tool
@tool
def get_current_day() -> date:
"""Get the current day to reference for any time-sensitive data requests. This might be useful for information
searches through news data, where more current articles may be more relevant.
Returns
-------
date
Today's date
"""
return date.today()
|