agent-swarm-kit 1.0.49 → 1.0.50

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
@@ -3125,6 +3125,9 @@ var AgentValidationService = /** @class */ (function () {
3125
3125
  }
3126
3126
  _this.completionValidationService.validate(agent.completion, source);
3127
3127
  (_a = agent.tools) === null || _a === void 0 ? void 0 : _a.forEach(function (toolName) {
3128
+ if (typeof toolName !== "string") {
3129
+ throw new Error("agent-swarm agent ".concat(agentName, " tool list is invalid (toolName=").concat(String(toolName), ") source=").concat(source));
3130
+ }
3128
3131
  _this.toolValidationService.validate(toolName, source);
3129
3132
  });
3130
3133
  });
package/build/index.mjs CHANGED
@@ -3123,6 +3123,9 @@ var AgentValidationService = /** @class */ (function () {
3123
3123
  }
3124
3124
  _this.completionValidationService.validate(agent.completion, source);
3125
3125
  (_a = agent.tools) === null || _a === void 0 ? void 0 : _a.forEach(function (toolName) {
3126
+ if (typeof toolName !== "string") {
3127
+ throw new Error("agent-swarm agent ".concat(agentName, " tool list is invalid (toolName=").concat(String(toolName), ") source=").concat(source));
3128
+ }
3126
3129
  _this.toolValidationService.validate(toolName, source);
3127
3130
  });
3128
3131
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-swarm-kit",
3
- "version": "1.0.49",
3
+ "version": "1.0.50",
4
4
  "description": "A TypeScript library for building orchestrated framework-agnostic multi-agent AI systems",
5
5
  "author": {
6
6
  "name": "Petr Tripolsky",