agent-swarm-kit 1.0.198 → 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 -3
- package/build/index.mjs +3 -3
- package/package.json +1 -1
package/build/index.cjs
CHANGED
|
@@ -2784,9 +2784,6 @@ const CC_AGENT_DISALLOWED_TAGS = ["tool_call", "toolcall", "tool"];
|
|
|
2784
2784
|
const CC_AGENT_DISALLOWED_SYMBOLS = ["{", "}"];
|
|
2785
2785
|
const CC_AGENT_HISTORY_FILTER = (agentName) => (message) => {
|
|
2786
2786
|
let isOk = true;
|
|
2787
|
-
{
|
|
2788
|
-
isOk = isOk && (!!message.tool_calls?.length || !!message.content);
|
|
2789
|
-
}
|
|
2790
2787
|
if (message.role === "tool") {
|
|
2791
2788
|
isOk = isOk && message.agentName === agentName;
|
|
2792
2789
|
}
|
|
@@ -4352,6 +4349,9 @@ class ClientHistory {
|
|
|
4352
4349
|
const systemMessagesRaw = [];
|
|
4353
4350
|
for await (const content of this.params.items.iterate(this.params.clientId, this.params.agentName)) {
|
|
4354
4351
|
const message = content;
|
|
4352
|
+
if (!message.tool_calls?.length && !message.content && !message.payload) {
|
|
4353
|
+
continue;
|
|
4354
|
+
}
|
|
4355
4355
|
if (message.role === "resque") {
|
|
4356
4356
|
commonMessagesRaw.splice(0, commonMessagesRaw.length);
|
|
4357
4357
|
systemMessagesRaw.splice(0, systemMessagesRaw.length);
|
package/build/index.mjs
CHANGED
|
@@ -2782,9 +2782,6 @@ const CC_AGENT_DISALLOWED_TAGS = ["tool_call", "toolcall", "tool"];
|
|
|
2782
2782
|
const CC_AGENT_DISALLOWED_SYMBOLS = ["{", "}"];
|
|
2783
2783
|
const CC_AGENT_HISTORY_FILTER = (agentName) => (message) => {
|
|
2784
2784
|
let isOk = true;
|
|
2785
|
-
{
|
|
2786
|
-
isOk = isOk && (!!message.tool_calls?.length || !!message.content);
|
|
2787
|
-
}
|
|
2788
2785
|
if (message.role === "tool") {
|
|
2789
2786
|
isOk = isOk && message.agentName === agentName;
|
|
2790
2787
|
}
|
|
@@ -4350,6 +4347,9 @@ class ClientHistory {
|
|
|
4350
4347
|
const systemMessagesRaw = [];
|
|
4351
4348
|
for await (const content of this.params.items.iterate(this.params.clientId, this.params.agentName)) {
|
|
4352
4349
|
const message = content;
|
|
4350
|
+
if (!message.tool_calls?.length && !message.content && !message.payload) {
|
|
4351
|
+
continue;
|
|
4352
|
+
}
|
|
4353
4353
|
if (message.role === "resque") {
|
|
4354
4354
|
commonMessagesRaw.splice(0, commonMessagesRaw.length);
|
|
4355
4355
|
systemMessagesRaw.splice(0, systemMessagesRaw.length);
|