Skip to content

Commit 4b0e6d3

Browse files
committed
fix: wrong item name actionFn
1 parent 5a057af commit 4b0e6d3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

samples/js-schoolAgent/src/attendanceAgent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const toolNames: string[] = tools.map((item) => {
2525
if (typeof item === 'string') {
2626
return item;
2727
} else {
28-
return item.name;
28+
return item.__action.name;
2929
}
3030
});
3131

samples/js-schoolAgent/src/gradesAgent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const toolNames: string[] = tools.map((item) => {
2525
if (typeof item === 'string') {
2626
return item;
2727
} else {
28-
return item.name;
28+
return item.__action.name;
2929
}
3030
});
3131

0 commit comments

Comments
 (0)