agent-swarm-kit 1.0.200 → 1.0.201

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 CHANGED
@@ -4349,9 +4349,6 @@ 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
- }
4355
4352
  if (message.role === "resque") {
4356
4353
  commonMessagesRaw.splice(0, commonMessagesRaw.length);
4357
4354
  systemMessagesRaw.splice(0, systemMessagesRaw.length);
@@ -4362,6 +4359,9 @@ class ClientHistory {
4362
4359
  systemMessagesRaw.splice(0, systemMessagesRaw.length);
4363
4360
  continue;
4364
4361
  }
4362
+ if (!message.tool_calls?.length && !message.content && !message.payload) {
4363
+ continue;
4364
+ }
4365
4365
  if (message.role === "system") {
4366
4366
  systemMessagesRaw.push(message);
4367
4367
  }
package/build/index.mjs CHANGED
@@ -4347,9 +4347,6 @@ 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
- }
4353
4350
  if (message.role === "resque") {
4354
4351
  commonMessagesRaw.splice(0, commonMessagesRaw.length);
4355
4352
  systemMessagesRaw.splice(0, systemMessagesRaw.length);
@@ -4360,6 +4357,9 @@ class ClientHistory {
4360
4357
  systemMessagesRaw.splice(0, systemMessagesRaw.length);
4361
4358
  continue;
4362
4359
  }
4360
+ if (!message.tool_calls?.length && !message.content && !message.payload) {
4361
+ continue;
4362
+ }
4363
4363
  if (message.role === "system") {
4364
4364
  systemMessagesRaw.push(message);
4365
4365
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-swarm-kit",
3
- "version": "1.0.200",
3
+ "version": "1.0.201",
4
4
  "description": "A TypeScript library for building orchestrated framework-agnostic multi-agent AI systems",
5
5
  "author": {
6
6
  "name": "Petr Tripolsky",