@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.mjs
CHANGED
|
@@ -246,16 +246,24 @@ function resolveSystemAssertion(assertionId, params) {
|
|
|
246
246
|
case "skill_was_called":
|
|
247
247
|
baseAssertion = {
|
|
248
248
|
type: "skill_was_called",
|
|
249
|
-
skillNames: parseSkillNamesFromParams(params?.skillNames)
|
|
249
|
+
skillNames: parseSkillNamesFromParams(params?.skillNames),
|
|
250
|
+
...params?.negate !== void 0 && {
|
|
251
|
+
negate: params.negate
|
|
252
|
+
}
|
|
250
253
|
};
|
|
251
254
|
break;
|
|
252
255
|
case "tool_called_with_param":
|
|
253
256
|
baseAssertion = {
|
|
254
257
|
type: "tool_called_with_param",
|
|
255
258
|
toolName: params?.toolName ?? "",
|
|
256
|
-
|
|
259
|
+
...params?.expectedParams !== void 0 && {
|
|
260
|
+
expectedParams: params.expectedParams
|
|
261
|
+
},
|
|
257
262
|
...params?.requireSuccess !== void 0 && {
|
|
258
263
|
requireSuccess: params.requireSuccess
|
|
264
|
+
},
|
|
265
|
+
...params?.negate !== void 0 && {
|
|
266
|
+
negate: params.negate
|
|
259
267
|
}
|
|
260
268
|
};
|
|
261
269
|
break;
|
|
@@ -288,6 +296,17 @@ function resolveSystemAssertion(assertionId, params) {
|
|
|
288
296
|
temperature: params?.temperature
|
|
289
297
|
};
|
|
290
298
|
break;
|
|
299
|
+
case "api_call":
|
|
300
|
+
baseAssertion = {
|
|
301
|
+
type: "api_call",
|
|
302
|
+
url: params?.url ?? "",
|
|
303
|
+
expectedResponse: params?.expectedResponse ?? "{}",
|
|
304
|
+
method: params?.method ?? void 0,
|
|
305
|
+
requestBody: params?.requestBody ?? void 0,
|
|
306
|
+
requestHeaders: params?.requestHeaders ?? void 0,
|
|
307
|
+
timeoutMs: params?.timeoutMs ?? void 0
|
|
308
|
+
};
|
|
309
|
+
break;
|
|
291
310
|
default:
|
|
292
311
|
baseAssertion = { type: "llm_judge", prompt: "" };
|
|
293
312
|
}
|