weifuwu 0.82.6 → 0.82.7
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/ai/types.d.ts +2 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/ai/types.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -3229,7 +3229,7 @@ function createAgent(client, config) {
|
|
|
3229
3229
|
if (signal?.aborted) return;
|
|
3230
3230
|
const name = tc.function?.name ?? "";
|
|
3231
3231
|
const args = safeParseArgs(tc.function?.arguments ?? "");
|
|
3232
|
-
emit("wf:step", { type: "tool", toolCallId: tc.id, name });
|
|
3232
|
+
emit("wf:step", { type: "tool", toolCallId: tc.id, name, args: tc.function?.arguments ?? "{}" });
|
|
3233
3233
|
let execArgs = args;
|
|
3234
3234
|
const needApproval = typeof config.humanInTheLoop === "function" ? config.humanInTheLoop({ name, args }) : !!config.humanInTheLoop;
|
|
3235
3235
|
if (needApproval) {
|