@vedmalex/ai-connect 0.10.0 → 0.10.1
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/browser/index.js +11 -0
- package/dist/browser/index.js.map +2 -2
- package/dist/bun/index.js +11 -0
- package/dist/bun/index.js.map +2 -2
- package/dist/bun/local.js +11 -0
- package/dist/bun/local.js.map +2 -2
- package/dist/node/index.js +11 -0
- package/dist/node/index.js.map +2 -2
- package/dist/node/local.js +11 -0
- package/dist/node/local.js.map +2 -2
- package/dist/types/client.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -4618,6 +4618,17 @@ function createClient(configOrInput, options = {}) {
|
|
|
4618
4618
|
await returnIterator();
|
|
4619
4619
|
}
|
|
4620
4620
|
if (!roundResult) {
|
|
4621
|
+
if (toolRoundsExecuted > 0) {
|
|
4622
|
+
lastResult = {
|
|
4623
|
+
route,
|
|
4624
|
+
text: accumulatedText,
|
|
4625
|
+
attachments: [],
|
|
4626
|
+
warnings: [...aggregatedWarnings],
|
|
4627
|
+
attempts,
|
|
4628
|
+
...aggregatedUsage ? { usage: aggregatedUsage } : {}
|
|
4629
|
+
};
|
|
4630
|
+
yield { type: "result", result: lastResult };
|
|
4631
|
+
}
|
|
4621
4632
|
break roundsLoop;
|
|
4622
4633
|
}
|
|
4623
4634
|
if (registry.size === 0 || !roundResult.toolCalls?.length) {
|