diff --git a/package.json b/package.json index fdf29e0..1672e21 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ztimson/ai-utils", - "version": "0.8.9", + "version": "0.8.10", "description": "AI Utility library", "author": "Zak Timson", "license": "MIT", diff --git a/src/tools.ts b/src/tools.ts index 8c089c6..8d70b78 100644 --- a/src/tools.ts +++ b/src/tools.ts @@ -1,4 +1,4 @@ -import * as cheerio from 'cheerio'; +import * as cheerio from 'cheerio'; import {$Sync} from '@ztimson/node-utils'; import {ASet, consoleInterceptor, Http, fn as Fn} from '@ztimson/utils'; import * as os from 'node:os'; @@ -51,6 +51,13 @@ export const CliTool: AiTool = { export const DateTimeTool: AiTool = { name: 'get_datetime', + description: 'Get local date / time', + args: {}, + fn: async () => new Date().toString() +} + +export const DateTimeUTCTool: AiTool = { + name: 'get_datetime_utc', description: 'Get current UTC date / time', args: {}, fn: async () => new Date().toUTCString()