agent-swarm-kit 1.0.197 → 1.0.199
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/build/index.cjs +3 -0
- package/build/index.mjs +3 -0
- package/package.json +1 -1
package/build/index.cjs
CHANGED
|
@@ -4349,6 +4349,9 @@ class ClientHistory {
|
|
|
4349
4349
|
const systemMessagesRaw = [];
|
|
4350
4350
|
for await (const content of this.params.items.iterate(this.params.clientId, this.params.agentName)) {
|
|
4351
4351
|
const message = content;
|
|
4352
|
+
if (!message.tool_calls?.length && !message.content && !message.payload) {
|
|
4353
|
+
continue;
|
|
4354
|
+
}
|
|
4352
4355
|
if (message.role === "resque") {
|
|
4353
4356
|
commonMessagesRaw.splice(0, commonMessagesRaw.length);
|
|
4354
4357
|
systemMessagesRaw.splice(0, systemMessagesRaw.length);
|
package/build/index.mjs
CHANGED
|
@@ -4347,6 +4347,9 @@ class ClientHistory {
|
|
|
4347
4347
|
const systemMessagesRaw = [];
|
|
4348
4348
|
for await (const content of this.params.items.iterate(this.params.clientId, this.params.agentName)) {
|
|
4349
4349
|
const message = content;
|
|
4350
|
+
if (!message.tool_calls?.length && !message.content && !message.payload) {
|
|
4351
|
+
continue;
|
|
4352
|
+
}
|
|
4350
4353
|
if (message.role === "resque") {
|
|
4351
4354
|
commonMessagesRaw.splice(0, commonMessagesRaw.length);
|
|
4352
4355
|
systemMessagesRaw.splice(0, systemMessagesRaw.length);
|