@mozaik-ai/core 4.0.5 → 4.0.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.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2153,7 +2153,10 @@ var DefaultFunctionCallRunner = class {
|
|
|
2153
2153
|
async run(input, tool) {
|
|
2154
2154
|
try {
|
|
2155
2155
|
const result = await tool.invoke(JSON.parse(input.args));
|
|
2156
|
-
return FunctionCallOutputItem.create(
|
|
2156
|
+
return FunctionCallOutputItem.create(
|
|
2157
|
+
input.callId,
|
|
2158
|
+
typeof result === "string" ? result : JSON.stringify(result)
|
|
2159
|
+
);
|
|
2157
2160
|
} catch (error) {
|
|
2158
2161
|
return FunctionCallOutputItem.create(input.callId, `Error calling tool: ${error}`);
|
|
2159
2162
|
}
|