@superinterface/react 3.6.3 → 3.7.0
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 +12 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2882,7 +2882,7 @@ var threadRunRequiresAction = /* @__PURE__ */ function() {
|
|
|
2882
2882
|
4,
|
|
2883
2883
|
(0, import_radash8.map)(toolCalls, /* @__PURE__ */ function() {
|
|
2884
2884
|
var _ref3 = _asyncToGenerator3(function(toolCall) {
|
|
2885
|
-
var fn, args, parsedArgs, output, error;
|
|
2885
|
+
var fn, args, parsedArgs, output, _yield$fn, error, serializedOutput;
|
|
2886
2886
|
return _ts_generator(this, function(_state) {
|
|
2887
2887
|
switch(_state.label){
|
|
2888
2888
|
case 0:
|
|
@@ -2920,7 +2920,7 @@ var threadRunRequiresAction = /* @__PURE__ */ function() {
|
|
|
2920
2920
|
fn(parsedArgs)
|
|
2921
2921
|
];
|
|
2922
2922
|
case 2:
|
|
2923
|
-
output = _state.sent();
|
|
2923
|
+
output = (_yield$fn = _state.sent()) !== null && _yield$fn !== void 0 ? _yield$fn : "";
|
|
2924
2924
|
return [
|
|
2925
2925
|
3,
|
|
2926
2926
|
4
|
|
@@ -2933,11 +2933,20 @@ var threadRunRequiresAction = /* @__PURE__ */ function() {
|
|
|
2933
2933
|
4
|
|
2934
2934
|
];
|
|
2935
2935
|
case 4:
|
|
2936
|
+
try {
|
|
2937
|
+
if (typeof output === "string") {
|
|
2938
|
+
serializedOutput = output;
|
|
2939
|
+
} else {
|
|
2940
|
+
serializedOutput = JSON.stringify(output);
|
|
2941
|
+
}
|
|
2942
|
+
} catch (error) {
|
|
2943
|
+
serializedOutput = "Error: ".concat(error.message);
|
|
2944
|
+
}
|
|
2936
2945
|
return [
|
|
2937
2946
|
2,
|
|
2938
2947
|
{
|
|
2939
2948
|
toolCallId: toolCall.id,
|
|
2940
|
-
output:
|
|
2949
|
+
output: serializedOutput
|
|
2941
2950
|
}
|
|
2942
2951
|
];
|
|
2943
2952
|
}
|