@agentv/core 4.25.3-next.1 → 4.25.5-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.
@@ -0,0 +1,7 @@
1
+ import {
2
+ AgentvProvider
3
+ } from "./chunk-M5X2KMEA.js";
4
+ export {
5
+ AgentvProvider
6
+ };
7
+ //# sourceMappingURL=agentv-provider-7AMUD2GX.js.map
@@ -17,7 +17,7 @@ import {
17
17
  readTextFile,
18
18
  resolveDelegatedTargetDefinition,
19
19
  resolveTargetDefinition
20
- } from "./chunk-CALQDF2Y.js";
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-5XV3FAAD.js";
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-E6MROJGR.js");
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-E6MROJGR.js");
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-MUIGGIP3.js");
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-EVEZQXIS.js.map
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 = "2024-12-01-preview";
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, apiFormat) {
561
- const defaultVersion = apiFormat === "responses" ? DEFAULT_AZURE_RESPONSES_API_VERSION : DEFAULT_AZURE_API_VERSION;
559
+ function normalizeAzureApiVersion(value) {
562
560
  if (!value) {
563
- return defaultVersion;
561
+ return DEFAULT_AZURE_API_VERSION;
564
562
  }
565
563
  const trimmed = value.trim();
566
564
  if (trimmed.length === 0) {
567
- return defaultVersion;
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 : defaultVersion;
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-CALQDF2Y.js.map
1974
+ //# sourceMappingURL=chunk-7LQI7772.js.map