la-machina-engine 0.11.1 → 0.11.3
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 +7 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1985,7 +1985,12 @@ function toAISdkMessages(messages) {
|
|
|
1985
1985
|
type: "tool-call",
|
|
1986
1986
|
toolCallId: id,
|
|
1987
1987
|
toolName: name,
|
|
1988
|
-
args
|
|
1988
|
+
// AI SDK v6 field name — must NOT be `args` (v4 name).
|
|
1989
|
+
// Engine 0.11.1 fixed the same rename on the tool
|
|
1990
|
+
// declaration side (toolConverter.ts); without this
|
|
1991
|
+
// fix on the history side, the model's own prior
|
|
1992
|
+
// turn is malformed on every multi-turn run.
|
|
1993
|
+
input: block.input ?? {}
|
|
1989
1994
|
});
|
|
1990
1995
|
}
|
|
1991
1996
|
}
|
|
@@ -8291,7 +8296,7 @@ function createApiCallTool(opts) {
|
|
|
8291
8296
|
bodyText = input.body;
|
|
8292
8297
|
defaultContentType = "text/plain";
|
|
8293
8298
|
} else {
|
|
8294
|
-
bodyText = JSON.stringify(input.body);
|
|
8299
|
+
bodyText = typeof input.body === "string" ? input.body : JSON.stringify(input.body);
|
|
8295
8300
|
defaultContentType = "application/json";
|
|
8296
8301
|
}
|
|
8297
8302
|
const cap = svc.maxBodyBytes ?? DEFAULT_MAX_BODY_BYTES;
|