@meetsmore-oss/use-ai-client 1.9.2 → 1.9.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/bundled.js +13 -0
- package/dist/bundled.js.map +1 -1
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/bundled.js
CHANGED
|
@@ -23576,6 +23576,19 @@ var UseAIClient = class {
|
|
|
23576
23576
|
}
|
|
23577
23577
|
});
|
|
23578
23578
|
}
|
|
23579
|
+
} else if (event.type === export_EventType.TOOL_CALL_RESULT) {
|
|
23580
|
+
const e = event;
|
|
23581
|
+
const alreadyTracked = this._pendingToolResults.some(
|
|
23582
|
+
(r) => "toolCallId" in r && r.toolCallId === e.toolCallId
|
|
23583
|
+
);
|
|
23584
|
+
if (!alreadyTracked) {
|
|
23585
|
+
this._pendingToolResults.push({
|
|
23586
|
+
id: e.messageId,
|
|
23587
|
+
role: "tool",
|
|
23588
|
+
content: e.content,
|
|
23589
|
+
toolCallId: e.toolCallId
|
|
23590
|
+
});
|
|
23591
|
+
}
|
|
23579
23592
|
} else if (event.type === export_EventType.RUN_FINISHED) {
|
|
23580
23593
|
if (this._currentAssistantMessage) {
|
|
23581
23594
|
if (this._currentAssistantToolCalls.length > 0) {
|