From 5894421830d287c37457d4e7fd7dfa7322df764d Mon Sep 17 00:00:00 2001 From: John Smith Date: Mon, 16 Dec 2024 21:04:26 +1030 Subject: [PATCH] fix: Correct datetime tool format (#314) --- .../src/modules/workflows/agent/tools/date-time.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/control-plane/src/modules/workflows/agent/tools/date-time.ts b/control-plane/src/modules/workflows/agent/tools/date-time.ts index 2263e99..0d7933b 100644 --- a/control-plane/src/modules/workflows/agent/tools/date-time.ts +++ b/control-plane/src/modules/workflows/agent/tools/date-time.ts @@ -10,8 +10,13 @@ export const buildCurrentDateTimeTool = (): AgentTool => schema: z.object({}), func: async () => { return JSON.stringify({ - iso8601: new Date().toISOString(), - unix: new Date().getTime() - }) + result: { + + iso8601: new Date().toISOString(), + unix: new Date().getTime() + }, + resultType: "resolution", + status: "success", + }); }, });