provide default arguments for random number tool

This commit is contained in:
Avraham Sakal
2025-05-02 12:01:44 -04:00
parent d35379afae
commit a42b6a63bb
+1 -1
View File
@@ -123,7 +123,7 @@ export const personalAssistantAgent: Agent = {
},
},
}),
execute: async ({ min, max }: { min: number; max: number }) => {
execute: async ({ min = 0, max = 1 }: { min?: number; max?: number }) => {
return Math.random() * (max - min) + min;
},
}),