@wix/evalforge-evaluator 0.125.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.mjs CHANGED
@@ -296,6 +296,17 @@ function resolveSystemAssertion(assertionId, params) {
296
296
  temperature: params?.temperature
297
297
  };
298
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;
299
310
  default:
300
311
  baseAssertion = { type: "llm_judge", prompt: "" };
301
312
  }