la-machina-engine 0.11.0 → 0.11.2
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 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -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
|
}
|
|
@@ -2007,7 +2012,8 @@ function toAISdkTools(tools) {
|
|
|
2007
2012
|
const schema = tool.inputSchema ?? tool.input_schema ?? { type: "object" };
|
|
2008
2013
|
out[name] = {
|
|
2009
2014
|
description,
|
|
2010
|
-
parameters
|
|
2015
|
+
// AI SDK v6 field name. Must NOT be `parameters` (v3/v4 name).
|
|
2016
|
+
inputSchema: (0, import_ai.jsonSchema)(schema)
|
|
2011
2017
|
};
|
|
2012
2018
|
}
|
|
2013
2019
|
return out;
|