@agtlantis/eval 0.1.0 → 0.1.1

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/dist/index.d.cts CHANGED
@@ -231,7 +231,7 @@ interface Criterion {
231
231
  */
232
232
  type ZodIssue = {
233
233
  readonly code: string;
234
- readonly path: readonly (string | number)[];
234
+ readonly path: readonly PropertyKey[];
235
235
  readonly message: string;
236
236
  };
237
237
  /**
package/dist/index.d.ts CHANGED
@@ -231,7 +231,7 @@ interface Criterion {
231
231
  */
232
232
  type ZodIssue = {
233
233
  readonly code: string;
234
- readonly path: readonly (string | number)[];
234
+ readonly path: readonly PropertyKey[];
235
235
  readonly message: string;
236
236
  };
237
237
  /**
package/dist/index.js CHANGED
@@ -1409,7 +1409,7 @@ function createJudge(config) {
1409
1409
 
1410
1410
  // src/judge/criteria/validate-schema.ts
1411
1411
  function formatZodErrors(error) {
1412
- return error.errors.map((e) => {
1412
+ return error.issues.map((e) => {
1413
1413
  const path3 = e.path.length > 0 ? `${e.path.join(".")}: ` : "";
1414
1414
  return `- ${path3}${e.message}`;
1415
1415
  }).join("\n");
@@ -1428,7 +1428,7 @@ function schema(options) {
1428
1428
  }
1429
1429
  return {
1430
1430
  valid: false,
1431
- errors: result.error.errors,
1431
+ errors: result.error.issues,
1432
1432
  errorSummary: formatZodErrors(result.error)
1433
1433
  };
1434
1434
  }
@@ -2670,9 +2670,7 @@ import fg from "fast-glob";
2670
2670
  import { z as z3 } from "zod";
2671
2671
  var llmConfigSchema = z3.object({
2672
2672
  provider: z3.enum(["openai", "gemini"], {
2673
- errorMap: () => ({
2674
- message: "provider must be 'openai' or 'gemini'"
2675
- })
2673
+ error: "provider must be 'openai' or 'gemini'"
2676
2674
  }),
2677
2675
  apiKey: z3.string().optional(),
2678
2676
  defaultModel: z3.string().optional(),