provide default arguments for random number tool
This commit is contained in:
@@ -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;
|
||||
},
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user