@agentv/core 2.7.1-next.3 → 2.7.1-next.5
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/evaluation/validation/index.cjs +14 -0
- package/dist/evaluation/validation/index.cjs.map +1 -1
- package/dist/evaluation/validation/index.js +14 -0
- package/dist/evaluation/validation/index.js.map +1 -1
- package/dist/index.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -2637,6 +2637,7 @@ async function loadTestsFromYaml(evalFilePath, repoRoot, options) {
|
|
|
2637
2637
|
throw new Error(`Invalid test file format: ${evalFilePath} - missing 'tests' field`);
|
|
2638
2638
|
}
|
|
2639
2639
|
const suiteWorkspace = parseWorkspaceConfig(suite.workspace, evalFileDir);
|
|
2640
|
+
const suiteInputMessages = expandInputShorthand(suite.input);
|
|
2640
2641
|
const rawGlobalExecution = isJsonObject(suite.execution) ? suite.execution : void 0;
|
|
2641
2642
|
const _globalTarget = asString6(rawGlobalExecution?.target) ?? asString6(suite.target);
|
|
2642
2643
|
const globalExecution = suite.assert !== void 0 ? { ...rawGlobalExecution ?? {}, assert: suite.assert } : rawGlobalExecution;
|
|
@@ -2661,14 +2662,17 @@ async function loadTestsFromYaml(evalFilePath, repoRoot, options) {
|
|
|
2661
2662
|
);
|
|
2662
2663
|
}
|
|
2663
2664
|
}
|
|
2664
|
-
const
|
|
2665
|
+
const testInputMessages = resolveInputMessages(evalcase);
|
|
2665
2666
|
const expectedMessages = resolveExpectedMessages(evalcase) ?? [];
|
|
2666
|
-
if (!id || !outcome || !
|
|
2667
|
+
if (!id || !outcome || !testInputMessages || testInputMessages.length === 0) {
|
|
2667
2668
|
logError2(
|
|
2668
2669
|
`Skipping incomplete test: ${id ?? "unknown"}. Missing required fields: id, criteria, and/or input`
|
|
2669
2670
|
);
|
|
2670
2671
|
continue;
|
|
2671
2672
|
}
|
|
2673
|
+
const caseExecution = isJsonObject(evalcase.execution) ? evalcase.execution : void 0;
|
|
2674
|
+
const skipDefaults = caseExecution?.skip_defaults === true;
|
|
2675
|
+
const inputMessages = suiteInputMessages && !skipDefaults ? [...suiteInputMessages, ...testInputMessages] : testInputMessages;
|
|
2672
2676
|
const hasExpectedMessages = expectedMessages.length > 0;
|
|
2673
2677
|
const guidelinePaths = [];
|
|
2674
2678
|
const inputTextParts = [];
|