rol-websocket-channel 1.8.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/index.ts +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -916,7 +916,7 @@ function registerToolEventHooks(api) {
|
|
|
916
916
|
params: event.params,
|
|
917
917
|
},
|
|
918
918
|
});
|
|
919
|
-
});
|
|
919
|
+
}, { name: "rol_ws_before_tool_call" });
|
|
920
920
|
// after_tool_call:工具执行完毕(含结果或错误)时触发
|
|
921
921
|
api.registerHook("after_tool_call", (event, ctx) => {
|
|
922
922
|
publishToolEvent({
|
|
@@ -935,5 +935,5 @@ function registerToolEventHooks(api) {
|
|
|
935
935
|
result: event.result,
|
|
936
936
|
},
|
|
937
937
|
});
|
|
938
|
-
});
|
|
938
|
+
}, { name: "rol_ws_after_tool_call" });
|
|
939
939
|
}
|
package/index.ts
CHANGED
|
@@ -1168,7 +1168,7 @@ function registerToolEventHooks(api: any): void {
|
|
|
1168
1168
|
params: event.params,
|
|
1169
1169
|
},
|
|
1170
1170
|
});
|
|
1171
|
-
});
|
|
1171
|
+
}, { name: "rol_ws_before_tool_call" });
|
|
1172
1172
|
|
|
1173
1173
|
// after_tool_call:工具执行完毕(含结果或错误)时触发
|
|
1174
1174
|
api.registerHook("after_tool_call", (event: any, ctx: any) => {
|
|
@@ -1188,5 +1188,5 @@ function registerToolEventHooks(api: any): void {
|
|
|
1188
1188
|
result: event.result,
|
|
1189
1189
|
},
|
|
1190
1190
|
});
|
|
1191
|
-
});
|
|
1191
|
+
}, { name: "rol_ws_after_tool_call" });
|
|
1192
1192
|
}
|