@agentv/core 4.17.1 → 4.19.0-next.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/{chunk-6VZY3B6M.js → chunk-24ND5HZC.js} +102 -102
- package/dist/chunk-24ND5HZC.js.map +1 -0
- package/dist/chunk-QXX3IBYV.js +19740 -0
- package/dist/chunk-QXX3IBYV.js.map +1 -0
- package/dist/evaluation/validation/index.cjs +5 -5
- package/dist/evaluation/validation/index.cjs.map +1 -1
- package/dist/evaluation/validation/index.js +3 -3
- package/dist/evaluation/validation/index.js.map +1 -1
- package/dist/index.cjs +22852 -21848
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1015 -974
- package/dist/index.d.ts +1015 -974
- package/dist/index.js +494 -19790
- package/dist/index.js.map +1 -1
- package/dist/ts-eval-loader-XFQ6S4DT.js +12 -0
- package/dist/ts-eval-loader-XFQ6S4DT.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-6VZY3B6M.js.map +0 -1
|
@@ -162,7 +162,7 @@ function isJsonValue(value) {
|
|
|
162
162
|
}
|
|
163
163
|
return false;
|
|
164
164
|
}
|
|
165
|
-
var
|
|
165
|
+
var GRADER_KIND_VALUES = [
|
|
166
166
|
"code-grader",
|
|
167
167
|
"llm-grader",
|
|
168
168
|
"rubric",
|
|
@@ -188,9 +188,9 @@ var EVALUATOR_KIND_VALUES = [
|
|
|
188
188
|
"rubrics",
|
|
189
189
|
"inline-assert"
|
|
190
190
|
];
|
|
191
|
-
var
|
|
192
|
-
function
|
|
193
|
-
return typeof value === "string" &&
|
|
191
|
+
var GRADER_KIND_SET = new Set(GRADER_KIND_VALUES);
|
|
192
|
+
function isGraderKind(value) {
|
|
193
|
+
return typeof value === "string" && GRADER_KIND_SET.has(value);
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
// src/evaluation/loaders/case-file-loader.ts
|
|
@@ -844,7 +844,7 @@ function validateAssertArray(assertField, parentLocation, filePath, errors, cust
|
|
|
844
844
|
continue;
|
|
845
845
|
}
|
|
846
846
|
const typeValue = rawTypeValue.replace(/_/g, "-");
|
|
847
|
-
if (!
|
|
847
|
+
if (!isGraderKind(typeValue) && !customAssertionTypes.has(typeValue)) {
|
|
848
848
|
errors.push({
|
|
849
849
|
severity: "warning",
|
|
850
850
|
filePath,
|