Skip to content

Commit eab82f0

Browse files
committed
feat: add skill tool support to extractParameterKey
1 parent 4cb7f98 commit eab82f0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/messages/utils.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ export const extractParameterKey = (tool: string, parameters: any): string => {
137137
if (tool === "task" && parameters.description) {
138138
return parameters.description
139139
}
140+
if (tool === "skill" && parameters.name) {
141+
return parameters.name
142+
}
140143

141144
const paramStr = JSON.stringify(parameters)
142145
if (paramStr === "{}" || paramStr === "[]" || paramStr === "null") {

0 commit comments

Comments
 (0)