Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ccb1bdf043 |
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ztimson/ai-utils",
|
"name": "@ztimson/ai-utils",
|
||||||
"version": "0.8.9",
|
"version": "0.8.10",
|
||||||
"description": "AI Utility library",
|
"description": "AI Utility library",
|
||||||
"author": "Zak Timson",
|
"author": "Zak Timson",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import * as cheerio from 'cheerio';
|
import * as cheerio from 'cheerio';
|
||||||
import {$Sync} from '@ztimson/node-utils';
|
import {$Sync} from '@ztimson/node-utils';
|
||||||
import {ASet, consoleInterceptor, Http, fn as Fn} from '@ztimson/utils';
|
import {ASet, consoleInterceptor, Http, fn as Fn} from '@ztimson/utils';
|
||||||
import * as os from 'node:os';
|
import * as os from 'node:os';
|
||||||
@@ -51,6 +51,13 @@ export const CliTool: AiTool = {
|
|||||||
|
|
||||||
export const DateTimeTool: AiTool = {
|
export const DateTimeTool: AiTool = {
|
||||||
name: 'get_datetime',
|
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',
|
description: 'Get current UTC date / time',
|
||||||
args: {},
|
args: {},
|
||||||
fn: async () => new Date().toUTCString()
|
fn: async () => new Date().toUTCString()
|
||||||
|
|||||||
Reference in New Issue
Block a user