@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.
@@ -938,6 +938,7 @@ async function prepareTools({
938
938
  disableParallelToolUse,
939
939
  cacheControlValidator
940
940
  }) {
941
+ var _a;
941
942
  tools = (tools == null ? void 0 : tools.length) ? tools : void 0;
942
943
  const toolWarnings = [];
943
944
  const betas = /* @__PURE__ */ new Set();
@@ -953,11 +954,14 @@ async function prepareTools({
953
954
  type: "tool definition",
954
955
  canCache: true
955
956
  });
957
+ const anthropicOptions = (_a = tool.providerOptions) == null ? void 0 : _a.anthropic;
958
+ const eagerInputStreaming = anthropicOptions == null ? void 0 : anthropicOptions.eagerInputStreaming;
956
959
  anthropicTools2.push({
957
960
  name: tool.name,
958
961
  description: tool.description,
959
962
  input_schema: tool.inputSchema,
960
- cache_control: cacheControl
963
+ cache_control: cacheControl,
964
+ ...eagerInputStreaming ? { eager_input_streaming: true } : {}
961
965
  });
962
966
  break;
963
967
  }