@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.cjs
CHANGED
|
@@ -2964,7 +2964,7 @@ var threadRunRequiresAction = /*#__PURE__*/ function() {
|
|
|
2964
2964
|
4,
|
|
2965
2965
|
(0, import_radash12.map)(toolCalls, /*#__PURE__*/ function() {
|
|
2966
2966
|
var _ref = _async_to_generator(function(toolCall) {
|
|
2967
|
-
var fn, args, parsedArgs, output;
|
|
2967
|
+
var fn, args, parsedArgs, output, error;
|
|
2968
2968
|
return _ts_generator(this, function(_state) {
|
|
2969
2969
|
switch(_state.label){
|
|
2970
2970
|
case 0:
|
|
@@ -2989,12 +2989,32 @@ var threadRunRequiresAction = /*#__PURE__*/ function() {
|
|
|
2989
2989
|
}
|
|
2990
2990
|
args = toolCall.function.arguments;
|
|
2991
2991
|
parsedArgs = JSON.parse(args);
|
|
2992
|
+
_state.label = 1;
|
|
2993
|
+
case 1:
|
|
2994
|
+
_state.trys.push([
|
|
2995
|
+
1,
|
|
2996
|
+
3,
|
|
2997
|
+
,
|
|
2998
|
+
4
|
|
2999
|
+
]);
|
|
2992
3000
|
return [
|
|
2993
3001
|
4,
|
|
2994
3002
|
fn(parsedArgs)
|
|
2995
3003
|
];
|
|
2996
|
-
case
|
|
3004
|
+
case 2:
|
|
2997
3005
|
output = _state.sent();
|
|
3006
|
+
return [
|
|
3007
|
+
3,
|
|
3008
|
+
4
|
|
3009
|
+
];
|
|
3010
|
+
case 3:
|
|
3011
|
+
error = _state.sent();
|
|
3012
|
+
output = "Error: ".concat(error.message);
|
|
3013
|
+
return [
|
|
3014
|
+
3,
|
|
3015
|
+
4
|
|
3016
|
+
];
|
|
3017
|
+
case 4:
|
|
2998
3018
|
return [
|
|
2999
3019
|
2,
|
|
3000
3020
|
{
|