@superinterface/react 2.24.5 → 2.24.6
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.cjs +22 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +22 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2809,7 +2809,7 @@ var threadRunRequiresAction = /*#__PURE__*/ function() {
|
|
|
2809
2809
|
4,
|
|
2810
2810
|
map(toolCalls, /*#__PURE__*/ function() {
|
|
2811
2811
|
var _ref = _async_to_generator(function(toolCall) {
|
|
2812
|
-
var fn, args, parsedArgs, output;
|
|
2812
|
+
var fn, args, parsedArgs, output, error;
|
|
2813
2813
|
return _ts_generator(this, function(_state) {
|
|
2814
2814
|
switch(_state.label){
|
|
2815
2815
|
case 0:
|
|
@@ -2834,12 +2834,32 @@ var threadRunRequiresAction = /*#__PURE__*/ function() {
|
|
|
2834
2834
|
}
|
|
2835
2835
|
args = toolCall.function.arguments;
|
|
2836
2836
|
parsedArgs = JSON.parse(args);
|
|
2837
|
+
_state.label = 1;
|
|
2838
|
+
case 1:
|
|
2839
|
+
_state.trys.push([
|
|
2840
|
+
1,
|
|
2841
|
+
3,
|
|
2842
|
+
,
|
|
2843
|
+
4
|
|
2844
|
+
]);
|
|
2837
2845
|
return [
|
|
2838
2846
|
4,
|
|
2839
2847
|
fn(parsedArgs)
|
|
2840
2848
|
];
|
|
2841
|
-
case
|
|
2849
|
+
case 2:
|
|
2842
2850
|
output = _state.sent();
|
|
2851
|
+
return [
|
|
2852
|
+
3,
|
|
2853
|
+
4
|
|
2854
|
+
];
|
|
2855
|
+
case 3:
|
|
2856
|
+
error = _state.sent();
|
|
2857
|
+
output = "Error: ".concat(error.message);
|
|
2858
|
+
return [
|
|
2859
|
+
3,
|
|
2860
|
+
4
|
|
2861
|
+
];
|
|
2862
|
+
case 4:
|
|
2843
2863
|
return [
|
|
2844
2864
|
2,
|
|
2845
2865
|
{
|