Spaces:
Sleeping
Sleeping
File size: 319 Bytes
f871fed |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
from datetime import datetime
from langchain.tools import tool
# todo: turn this into a system prompt variable
@tool
def get_current_timestamp() -> str:
"""
name: get_current_timestamp
Returns the current timestamp in the format YYYYMMDDHHmmss.
"""
return datetime.now().strftime("%Y%m%d%H%M%S")
|