@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.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
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.
|
|
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.
|
|
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
|
-
|
|
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(),
|