Skip to content

Commit

Permalink
fix: Correct datetime tool format (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjcsmith authored Dec 16, 2024
1 parent e2b173e commit 5894421
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions control-plane/src/modules/workflows/agent/tools/date-time.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
});
},
});

0 comments on commit 5894421

Please sign in to comment.