@wix/evalforge-evaluator 0.123.0 → 0.125.0

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.js CHANGED
@@ -266,16 +266,24 @@ function resolveSystemAssertion(assertionId, params) {
266
266
  case "skill_was_called":
267
267
  baseAssertion = {
268
268
  type: "skill_was_called",
269
- skillNames: parseSkillNamesFromParams(params?.skillNames)
269
+ skillNames: parseSkillNamesFromParams(params?.skillNames),
270
+ ...params?.negate !== void 0 && {
271
+ negate: params.negate
272
+ }
270
273
  };
271
274
  break;
272
275
  case "tool_called_with_param":
273
276
  baseAssertion = {
274
277
  type: "tool_called_with_param",
275
278
  toolName: params?.toolName ?? "",
276
- expectedParams: params?.expectedParams ?? "{}",
279
+ ...params?.expectedParams !== void 0 && {
280
+ expectedParams: params.expectedParams
281
+ },
277
282
  ...params?.requireSuccess !== void 0 && {
278
283
  requireSuccess: params.requireSuccess
284
+ },
285
+ ...params?.negate !== void 0 && {
286
+ negate: params.negate
279
287
  }
280
288
  };
281
289
  break;