@agentv/core 4.25.3-next.1 → 4.25.4-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/agentv-provider-7AMUD2GX.js +7 -0
- package/dist/{chunk-EVEZQXIS.js → chunk-46TUI4JM.js} +6 -6
- package/dist/{chunk-CALQDF2Y.js → chunk-7LQI7772.js} +12 -12
- package/dist/chunk-7LQI7772.js.map +1 -0
- package/dist/{chunk-5XV3FAAD.js → chunk-M5X2KMEA.js} +20 -11
- package/dist/chunk-M5X2KMEA.js.map +1 -0
- package/dist/evaluation/validation/index.cjs +18 -1
- package/dist/evaluation/validation/index.cjs.map +1 -1
- package/dist/evaluation/validation/index.js +19 -2
- package/dist/evaluation/validation/index.js.map +1 -1
- package/dist/index.cjs +31 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +3 -3
- package/dist/ts-eval-loader-E6N374V2.js +12 -0
- package/package.json +1 -1
- package/dist/agentv-provider-MUIGGIP3.js +0 -7
- package/dist/chunk-5XV3FAAD.js.map +0 -1
- package/dist/chunk-CALQDF2Y.js.map +0 -1
- package/dist/ts-eval-loader-E6MROJGR.js +0 -12
- /package/dist/{agentv-provider-MUIGGIP3.js.map → agentv-provider-7AMUD2GX.js.map} +0 -0
- /package/dist/{chunk-EVEZQXIS.js.map → chunk-46TUI4JM.js.map} +0 -0
- /package/dist/{ts-eval-loader-E6MROJGR.js.map → ts-eval-loader-E6N374V2.js.map} +0 -0
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
readTextFile,
|
|
18
18
|
resolveDelegatedTargetDefinition,
|
|
19
19
|
resolveTargetDefinition
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-7LQI7772.js";
|
|
21
21
|
import {
|
|
22
22
|
execFileWithStdin,
|
|
23
23
|
execShellWithStdin
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
GeminiProvider,
|
|
30
30
|
OpenAIProvider,
|
|
31
31
|
OpenRouterProvider
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-M5X2KMEA.js";
|
|
33
33
|
|
|
34
34
|
// src/evaluation/loaders/ts-eval-loader.ts
|
|
35
35
|
import path46 from "node:path";
|
|
@@ -15683,7 +15683,7 @@ async function loadTestSuite(evalFilePath, repoRoot, options) {
|
|
|
15683
15683
|
return { tests: await loadTestsFromAgentSkills(evalFilePath) };
|
|
15684
15684
|
}
|
|
15685
15685
|
if (format === "typescript") {
|
|
15686
|
-
const { loadTsEvalSuite: loadTsEvalSuite2 } = await import("./ts-eval-loader-
|
|
15686
|
+
const { loadTsEvalSuite: loadTsEvalSuite2 } = await import("./ts-eval-loader-E6N374V2.js");
|
|
15687
15687
|
return loadTsEvalSuite2(evalFilePath, resolveToAbsolutePath(repoRoot), options);
|
|
15688
15688
|
}
|
|
15689
15689
|
const { tests, parsed, suiteWorkspacePath } = await loadTestsFromYaml(
|
|
@@ -15718,7 +15718,7 @@ async function loadTests(evalFilePath, repoRoot, options) {
|
|
|
15718
15718
|
return loadTestsFromAgentSkills(evalFilePath);
|
|
15719
15719
|
}
|
|
15720
15720
|
if (format === "typescript") {
|
|
15721
|
-
const { loadTsEvalSuite: loadTsEvalSuite2 } = await import("./ts-eval-loader-
|
|
15721
|
+
const { loadTsEvalSuite: loadTsEvalSuite2 } = await import("./ts-eval-loader-E6N374V2.js");
|
|
15722
15722
|
const suite = await loadTsEvalSuite2(evalFilePath, resolveToAbsolutePath(repoRoot), options);
|
|
15723
15723
|
return suite.tests;
|
|
15724
15724
|
}
|
|
@@ -16456,7 +16456,7 @@ async function runEvaluation(options) {
|
|
|
16456
16456
|
if (!cliModel) {
|
|
16457
16457
|
throw new Error('--grader-target "agentv" requires --model (e.g., "openai:gpt-5-mini")');
|
|
16458
16458
|
}
|
|
16459
|
-
const { AgentvProvider: AgentvProvider2 } = await import("./agentv-provider-
|
|
16459
|
+
const { AgentvProvider: AgentvProvider2 } = await import("./agentv-provider-7AMUD2GX.js");
|
|
16460
16460
|
return new AgentvProvider2("agentv", { model: cliModel, temperature: 0 });
|
|
16461
16461
|
}
|
|
16462
16462
|
const overrideTarget = resolveTargetByName(cliGraderTarget);
|
|
@@ -19590,4 +19590,4 @@ export {
|
|
|
19590
19590
|
loadTestById,
|
|
19591
19591
|
loadEvalCaseById
|
|
19592
19592
|
};
|
|
19593
|
-
//# sourceMappingURL=chunk-
|
|
19593
|
+
//# sourceMappingURL=chunk-46TUI4JM.js.map
|
|
@@ -554,20 +554,18 @@ var BASE_TARGET_SCHEMA = z.object({
|
|
|
554
554
|
subagent_mode_allowed: z.boolean().optional(),
|
|
555
555
|
fallback_targets: z.array(z.string().min(1)).optional()
|
|
556
556
|
}).passthrough();
|
|
557
|
-
var DEFAULT_AZURE_API_VERSION = "
|
|
558
|
-
var DEFAULT_AZURE_RESPONSES_API_VERSION = "v1";
|
|
557
|
+
var DEFAULT_AZURE_API_VERSION = "v1";
|
|
559
558
|
var DEFAULT_OPENAI_BASE_URL = "https://api.openai.com/v1";
|
|
560
|
-
function normalizeAzureApiVersion(value
|
|
561
|
-
const defaultVersion = apiFormat === "responses" ? DEFAULT_AZURE_RESPONSES_API_VERSION : DEFAULT_AZURE_API_VERSION;
|
|
559
|
+
function normalizeAzureApiVersion(value) {
|
|
562
560
|
if (!value) {
|
|
563
|
-
return
|
|
561
|
+
return DEFAULT_AZURE_API_VERSION;
|
|
564
562
|
}
|
|
565
563
|
const trimmed = value.trim();
|
|
566
564
|
if (trimmed.length === 0) {
|
|
567
|
-
return
|
|
565
|
+
return DEFAULT_AZURE_API_VERSION;
|
|
568
566
|
}
|
|
569
567
|
const withoutPrefix = trimmed.replace(/^api[-_]?version\s*=\s*/i, "").trim();
|
|
570
|
-
return withoutPrefix.length > 0 ? withoutPrefix :
|
|
568
|
+
return withoutPrefix.length > 0 ? withoutPrefix : DEFAULT_AZURE_API_VERSION;
|
|
571
569
|
}
|
|
572
570
|
function resolveRetryConfig(target) {
|
|
573
571
|
const maxRetries = resolveOptionalNumber(target.max_retries, `${target.name} max retries`);
|
|
@@ -824,6 +822,11 @@ function normalizeOpenAIBaseUrl(value) {
|
|
|
824
822
|
return trimmed.endsWith("/v1") ? trimmed : `${trimmed}/v1`;
|
|
825
823
|
}
|
|
826
824
|
function resolveAzureConfig(target, env) {
|
|
825
|
+
if (target.api_format !== void 0) {
|
|
826
|
+
throw new Error(
|
|
827
|
+
`The 'api_format' field is no longer supported on Azure targets ('${target.name}'). AgentV always uses Azure's Responses API. If your deployment only exposes /chat/completions, use 'provider: openai' with a deployment-scoped 'base_url' instead. See docs/targets/llm-providers for details.`
|
|
828
|
+
);
|
|
829
|
+
}
|
|
827
830
|
const endpointSource = target.endpoint ?? target.resource;
|
|
828
831
|
const apiKeySource = target.api_key;
|
|
829
832
|
const deploymentSource = target.deployment ?? target.model;
|
|
@@ -833,13 +836,11 @@ function resolveAzureConfig(target, env) {
|
|
|
833
836
|
const resourceName = resolveString(endpointSource, env, `${target.name} endpoint`);
|
|
834
837
|
const apiKey = resolveString(apiKeySource, env, `${target.name} api key`);
|
|
835
838
|
const deploymentName = resolveString(deploymentSource, env, `${target.name} deployment`);
|
|
836
|
-
const apiFormat = resolveApiFormat(target, env, target.name);
|
|
837
839
|
const version = normalizeAzureApiVersion(
|
|
838
840
|
resolveOptionalString(versionSource, env, `${target.name} api version`, {
|
|
839
841
|
allowLiteral: true,
|
|
840
842
|
optionalEnv: true
|
|
841
|
-
})
|
|
842
|
-
apiFormat
|
|
843
|
+
})
|
|
843
844
|
);
|
|
844
845
|
const temperature = resolveOptionalNumber(temperatureSource, `${target.name} temperature`);
|
|
845
846
|
const maxOutputTokens = resolveOptionalNumber(
|
|
@@ -852,7 +853,6 @@ function resolveAzureConfig(target, env) {
|
|
|
852
853
|
deploymentName,
|
|
853
854
|
apiKey,
|
|
854
855
|
version,
|
|
855
|
-
apiFormat,
|
|
856
856
|
temperature,
|
|
857
857
|
maxOutputTokens,
|
|
858
858
|
retry
|
|
@@ -1971,4 +1971,4 @@ export {
|
|
|
1971
1971
|
resolveDelegatedTargetDefinition,
|
|
1972
1972
|
resolveTargetDefinition
|
|
1973
1973
|
};
|
|
1974
|
-
//# sourceMappingURL=chunk-
|
|
1974
|
+
//# sourceMappingURL=chunk-7LQI7772.js.map
|