@wix/evalforge-evaluator 0.92.0 → 0.94.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
@@ -264,6 +264,17 @@ function applyParamsToAssertion(assertion, params) {
264
264
  skillNames: parseSkillNamesFromParams(params.skillNames)
265
265
  };
266
266
  }
267
+ if (assertion.type === "tool_called_with_param") {
268
+ return {
269
+ ...assertion,
270
+ ...params.toolName !== void 0 && {
271
+ toolName: params.toolName
272
+ },
273
+ ...params.expectedParams !== void 0 && {
274
+ expectedParams: params.expectedParams
275
+ }
276
+ };
277
+ }
267
278
  return { ...assertion, ...params };
268
279
  }
269
280
  function resolveSystemAssertion(assertionId, params) {
@@ -276,6 +287,13 @@ function resolveSystemAssertion(assertionId, params) {
276
287
  skillNames: parseSkillNamesFromParams(params?.skillNames)
277
288
  };
278
289
  break;
290
+ case "tool_called_with_param":
291
+ baseAssertion = {
292
+ type: "tool_called_with_param",
293
+ toolName: params?.toolName ?? "",
294
+ expectedParams: params?.expectedParams ?? "{}"
295
+ };
296
+ break;
279
297
  case "build_passed":
280
298
  baseAssertion = {
281
299
  type: "build_passed",