Building a custom Tool
Learn how to build a custom tool to get current time.
Last updated
Learn how to build a custom tool to get current time.
Last updated
async function exeFunc({ timeZone }) {
return new Date().toLocaleString("en-US", { timeZone: timeZone })
}{
"timeZone": {
"type": "string",
"description": "Use the given timezone to format a new time e.g., 'Asia/Tokyo'. The value cannot be UTC."
}
}