@@ -465,7 +465,7 @@ multiplyTool = await client.loadTool("multiply")
465465const multiplyNumbers = tool (multiplyTool, {
466466 name: multiplyTool .getName (),
467467 description: multiplyTool .getDescription (),
468- schema: multiplyTool .getParams ()
468+ schema: multiplyTool .getParamSchema ()
469469});
470470
471471await multiplyNumbers .invoke ({ a: 2 , b: 3 });
@@ -494,7 +494,7 @@ multiplyTool = await client.loadTool("multiply")
494494const multiplyNumbers = tool ({
495495 name: multiplyTool .getName (),
496496 description: multiplyTool .getDescription (),
497- parameters: multiplyTool .getParams (),
497+ parameters: multiplyTool .getParamSchema (),
498498 execute: mutliplyTool
499499});
500500
@@ -530,7 +530,7 @@ const ai = genkit({
530530const multiplyNumbers = ai .defineTool ({
531531 name: multiplyTool .getName (),
532532 description: multiplyTool .getDescription (),
533- inputSchema: multiplyTool .getParams (),
533+ inputSchema: multiplyTool .getParamSchema (),
534534 },
535535 multiplyTool,
536536);
0 commit comments