@ai-sdk/anthropic 2.0.69 → 2.0.70

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/index.mjs CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  } from "@ai-sdk/provider-utils";
12
12
 
13
13
  // src/version.ts
14
- var VERSION = true ? "2.0.69" : "0.0.0-test";
14
+ var VERSION = true ? "2.0.70" : "0.0.0-test";
15
15
 
16
16
  // src/anthropic-messages-language-model.ts
17
17
  import {
@@ -953,6 +953,7 @@ async function prepareTools({
953
953
  disableParallelToolUse,
954
954
  cacheControlValidator
955
955
  }) {
956
+ var _a;
956
957
  tools = (tools == null ? void 0 : tools.length) ? tools : void 0;
957
958
  const toolWarnings = [];
958
959
  const betas = /* @__PURE__ */ new Set();
@@ -968,11 +969,14 @@ async function prepareTools({
968
969
  type: "tool definition",
969
970
  canCache: true
970
971
  });
972
+ const anthropicOptions = (_a = tool.providerOptions) == null ? void 0 : _a.anthropic;
973
+ const eagerInputStreaming = anthropicOptions == null ? void 0 : anthropicOptions.eagerInputStreaming;
971
974
  anthropicTools2.push({
972
975
  name: tool.name,
973
976
  description: tool.description,
974
977
  input_schema: tool.inputSchema,
975
- cache_control: cacheControl
978
+ cache_control: cacheControl,
979
+ ...eagerInputStreaming ? { eager_input_streaming: true } : {}
976
980
  });
977
981
  break;
978
982
  }