Skip to content

Commit 6f18e99

Browse files
authored
docs: fix method name (#76)
1 parent b0bf370 commit 6f18e99

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/toolbox-core/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ multiplyTool = await client.loadTool("multiply")
465465
const multiplyNumbers = tool(multiplyTool, {
466466
name: multiplyTool.getName(),
467467
description: multiplyTool.getDescription(),
468-
schema: multiplyTool.getParams()
468+
schema: multiplyTool.getParamSchema()
469469
});
470470

471471
await multiplyNumbers.invoke({ a: 2, b: 3 });
@@ -494,7 +494,7 @@ multiplyTool = await client.loadTool("multiply")
494494
const 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({
530530
const 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

Comments
 (0)