From 2b5c105abb718db1883dc3ba37176b27a2c3c015 Mon Sep 17 00:00:00 2001 From: Gregor Lohaus Date: Tue, 31 Mar 2026 14:39:56 +0200 Subject: [PATCH] current time tool --- src/app/api/chat/route.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/api/chat/route.ts b/src/app/api/chat/route.ts index 0924b08..e2dd062 100644 --- a/src/app/api/chat/route.ts +++ b/src/app/api/chat/route.ts @@ -76,7 +76,9 @@ export async function POST(req: Request) { }), getCurrentUnixTime: tool({ description: 'Get the current unix time to reference for meeting dates', - inputSchema: z.undefined(), + inputSchema: z.object({ + none: z.string().optional().describe("no inputs are needed") + }), execute: async () => { return {success: true, currentTime: Date.now()} } }) },