@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/cli.js +4 -6
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +3 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1549,7 +1549,7 @@ function createJudge(config) {
|
|
|
1549
1549
|
|
|
1550
1550
|
// src/judge/criteria/validate-schema.ts
|
|
1551
1551
|
function formatZodErrors(error) {
|
|
1552
|
-
return error.
|
|
1552
|
+
return error.issues.map((e) => {
|
|
1553
1553
|
const path3 = e.path.length > 0 ? `${e.path.join(".")}: ` : "";
|
|
1554
1554
|
return `- ${path3}${e.message}`;
|
|
1555
1555
|
}).join("\n");
|
|
@@ -1568,7 +1568,7 @@ function schema(options) {
|
|
|
1568
1568
|
}
|
|
1569
1569
|
return {
|
|
1570
1570
|
valid: false,
|
|
1571
|
-
errors: result.error.
|
|
1571
|
+
errors: result.error.issues,
|
|
1572
1572
|
errorSummary: formatZodErrors(result.error)
|
|
1573
1573
|
};
|
|
1574
1574
|
}
|
|
@@ -2799,9 +2799,7 @@ var import_fast_glob = __toESM(require("fast-glob"), 1);
|
|
|
2799
2799
|
var import_zod3 = require("zod");
|
|
2800
2800
|
var llmConfigSchema = import_zod3.z.object({
|
|
2801
2801
|
provider: import_zod3.z.enum(["openai", "gemini"], {
|
|
2802
|
-
|
|
2803
|
-
message: "provider must be 'openai' or 'gemini'"
|
|
2804
|
-
})
|
|
2802
|
+
error: "provider must be 'openai' or 'gemini'"
|
|
2805
2803
|
}),
|
|
2806
2804
|
apiKey: import_zod3.z.string().optional(),
|
|
2807
2805
|
defaultModel: import_zod3.z.string().optional(),
|