@kenkaiiii/gg-ai 4.3.238 → 4.3.239
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 +8 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1098,11 +1098,18 @@ async function* runStream(options) {
|
|
|
1098
1098
|
args: tc.args
|
|
1099
1099
|
};
|
|
1100
1100
|
} else if (accum.type === "server_tool_use") {
|
|
1101
|
+
let input = accum.input;
|
|
1102
|
+
if (accum.argsJson) {
|
|
1103
|
+
try {
|
|
1104
|
+
input = JSON.parse(accum.argsJson);
|
|
1105
|
+
} catch {
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1101
1108
|
const stc = {
|
|
1102
1109
|
type: "server_tool_call",
|
|
1103
1110
|
id: accum.toolId,
|
|
1104
1111
|
name: accum.toolName,
|
|
1105
|
-
input
|
|
1112
|
+
input
|
|
1106
1113
|
};
|
|
1107
1114
|
contentParts.push(stc);
|
|
1108
1115
|
yield {
|