@wix/evalforge-evaluator 0.125.0 → 0.127.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
@@ -316,6 +316,17 @@ function resolveSystemAssertion(assertionId, params) {
316
316
  temperature: params?.temperature
317
317
  };
318
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;
319
330
  default:
320
331
  baseAssertion = { type: "llm_judge", prompt: "" };
321
332
  }