@wix/evalforge-evaluator 0.124.0 → 0.126.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 +21 -2
- package/build/index.js.map +2 -2
- package/build/index.mjs +21 -2
- package/build/index.mjs.map +2 -2
- package/package.json +5 -5
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
|
-
|
|
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;
|
|
@@ -308,6 +316,17 @@ function resolveSystemAssertion(assertionId, params) {
|
|
|
308
316
|
temperature: params?.temperature
|
|
309
317
|
};
|
|
310
318
|
break;
|
|
319
|
+
case "api_call":
|
|
320
|
+
baseAssertion = {
|
|
321
|
+
type: "api_call",
|
|
322
|
+
url: params?.url ?? "",
|
|
323
|
+
expectedResponse: params?.expectedResponse ?? "{}",
|
|
324
|
+
method: params?.method ?? void 0,
|
|
325
|
+
requestBody: params?.requestBody ?? void 0,
|
|
326
|
+
requestHeaders: params?.requestHeaders ?? void 0,
|
|
327
|
+
timeoutMs: params?.timeoutMs ?? void 0
|
|
328
|
+
};
|
|
329
|
+
break;
|
|
311
330
|
default:
|
|
312
331
|
baseAssertion = { type: "llm_judge", prompt: "" };
|
|
313
332
|
}
|