ai 5.0.1 → 5.0.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/CHANGELOG.md +7 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -9099,6 +9099,7 @@ var AbstractChat = class {
|
|
9099
9099
|
body
|
9100
9100
|
});
|
9101
9101
|
if (reconnect == null) {
|
9102
|
+
this.setStatus({ status: "ready" });
|
9102
9103
|
return;
|
9103
9104
|
}
|
9104
9105
|
stream = reconnect;
|
@@ -9388,7 +9389,7 @@ function lastAssistantMessageIsCompleteWithToolCalls({
|
|
9388
9389
|
const lastStepStartIndex = message.parts.reduce((lastIndex, part, index) => {
|
9389
9390
|
return part.type === "step-start" ? index : lastIndex;
|
9390
9391
|
}, -1);
|
9391
|
-
const lastStepToolInvocations = message.parts.slice(lastStepStartIndex + 1).filter(isToolUIPart);
|
9392
|
+
const lastStepToolInvocations = message.parts.slice(lastStepStartIndex + 1).filter((part) => isToolUIPart(part) || part.type === "dynamic-tool");
|
9392
9393
|
return lastStepToolInvocations.length > 0 && lastStepToolInvocations.every((part) => part.state === "output-available");
|
9393
9394
|
}
|
9394
9395
|
|