agent-swarm-kit 1.0.27 → 1.0.28

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
@@ -1071,11 +1071,14 @@ var ClientHistory = /** @class */ (function () {
1071
1071
  content: prompt,
1072
1072
  role: "system",
1073
1073
  });
1074
- system && promptMessages.push({
1075
- agentName: this.params.agentName,
1076
- content: system,
1077
- role: "system",
1078
- });
1074
+ system &&
1075
+ system.forEach(function (content) {
1076
+ return promptMessages.push({
1077
+ agentName: _this.params.agentName,
1078
+ content: content,
1079
+ role: "system",
1080
+ });
1081
+ });
1079
1082
  }
1080
1083
  return [2 /*return*/, __spreadArray(__spreadArray(__spreadArray([], __read(promptMessages), false), __read(systemMessages), false), __read(commonMessages), false)];
1081
1084
  }
package/build/index.mjs CHANGED
@@ -1069,11 +1069,14 @@ var ClientHistory = /** @class */ (function () {
1069
1069
  content: prompt,
1070
1070
  role: "system",
1071
1071
  });
1072
- system && promptMessages.push({
1073
- agentName: this.params.agentName,
1074
- content: system,
1075
- role: "system",
1076
- });
1072
+ system &&
1073
+ system.forEach(function (content) {
1074
+ return promptMessages.push({
1075
+ agentName: _this.params.agentName,
1076
+ content: content,
1077
+ role: "system",
1078
+ });
1079
+ });
1077
1080
  }
1078
1081
  return [2 /*return*/, __spreadArray(__spreadArray(__spreadArray([], __read(promptMessages), false), __read(systemMessages), false), __read(commonMessages), false)];
1079
1082
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-swarm-kit",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "description": "A TypeScript library for building orchestrated framework-agnostic multi-agent AI systems",
5
5
  "author": {
6
6
  "name": "Petr Tripolsky",
package/types.d.ts CHANGED
@@ -66,7 +66,7 @@ interface IHistory {
66
66
  * @param {string} prompt - The prompt to filter messages for the agent.
67
67
  * @returns {Promise<IModelMessage[]>}
68
68
  */
69
- toArrayForAgent(prompt: string, system?: string): Promise<IModelMessage[]>;
69
+ toArrayForAgent(prompt: string, system?: string[]): Promise<IModelMessage[]>;
70
70
  /**
71
71
  * Converts the history to an array of raw messages.
72
72
  * @returns {Promise<IModelMessage[]>}
@@ -279,7 +279,7 @@ interface IAgentSchema {
279
279
  /** The prompt for the agent. */
280
280
  prompt: string;
281
281
  /** The system prompt. Usually used for tool calling protocol. */
282
- system?: string;
282
+ system?: string[];
283
283
  /** The names of the tools used by the agent. */
284
284
  tools?: ToolName[];
285
285
  /**
@@ -582,7 +582,7 @@ declare class ClientHistory implements IHistory {
582
582
  * @param {string} system - The tool calling protocol
583
583
  * @returns {Promise<IModelMessage[]>} - The array of messages for the agent.
584
584
  */
585
- toArrayForAgent: (prompt: string, system?: string) => Promise<IModelMessage[]>;
585
+ toArrayForAgent: (prompt: string, system?: string[]) => Promise<IModelMessage[]>;
586
586
  }
587
587
 
588
588
  /**