agent-swarm-kit 1.0.56 → 1.0.57
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 +4 -0
- package/build/index.mjs +4 -0
- package/package.json +1 -1
package/build/index.cjs
CHANGED
|
@@ -1230,6 +1230,10 @@ var ClientHistory = /** @class */ (function () {
|
|
|
1230
1230
|
return agentName === _this.params.agentName;
|
|
1231
1231
|
});
|
|
1232
1232
|
commonMessages = commonMessagesRaw
|
|
1233
|
+
.map(function (_a) {
|
|
1234
|
+
var content = _a.content, tool_calls = _a.tool_calls, other = __rest(_a, ["content", "tool_calls"]);
|
|
1235
|
+
return (__assign(__assign({}, other), { tool_calls: tool_calls, content: (tool_calls === null || tool_calls === void 0 ? void 0 : tool_calls.length) ? "" : content }));
|
|
1236
|
+
})
|
|
1233
1237
|
.filter(this._filterCondition)
|
|
1234
1238
|
.slice(-GLOBAL_CONFIG.CC_KEEP_MESSAGES);
|
|
1235
1239
|
assistantToolOutputCallSet = new Set(commonMessages
|
package/build/index.mjs
CHANGED
|
@@ -1228,6 +1228,10 @@ var ClientHistory = /** @class */ (function () {
|
|
|
1228
1228
|
return agentName === _this.params.agentName;
|
|
1229
1229
|
});
|
|
1230
1230
|
commonMessages = commonMessagesRaw
|
|
1231
|
+
.map(function (_a) {
|
|
1232
|
+
var content = _a.content, tool_calls = _a.tool_calls, other = __rest(_a, ["content", "tool_calls"]);
|
|
1233
|
+
return (__assign(__assign({}, other), { tool_calls: tool_calls, content: (tool_calls === null || tool_calls === void 0 ? void 0 : tool_calls.length) ? "" : content }));
|
|
1234
|
+
})
|
|
1231
1235
|
.filter(this._filterCondition)
|
|
1232
1236
|
.slice(-GLOBAL_CONFIG.CC_KEEP_MESSAGES);
|
|
1233
1237
|
assistantToolOutputCallSet = new Set(commonMessages
|