@ai-sdk/anthropic 3.0.56 → 3.0.58

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.
@@ -1285,6 +1285,7 @@ async function prepareTools({
1285
1285
  canCache: true
1286
1286
  });
1287
1287
  const anthropicOptions = (_a = tool.providerOptions) == null ? void 0 : _a.anthropic;
1288
+ const eagerInputStreaming = anthropicOptions == null ? void 0 : anthropicOptions.eagerInputStreaming;
1288
1289
  const deferLoading = anthropicOptions == null ? void 0 : anthropicOptions.deferLoading;
1289
1290
  const allowedCallers = anthropicOptions == null ? void 0 : anthropicOptions.allowedCallers;
1290
1291
  anthropicTools2.push({
@@ -1292,6 +1293,7 @@ async function prepareTools({
1292
1293
  description: tool.description,
1293
1294
  input_schema: tool.inputSchema,
1294
1295
  cache_control: cacheControl,
1296
+ ...eagerInputStreaming ? { eager_input_streaming: true } : {},
1295
1297
  ...supportsStructuredOutput === true && tool.strict != null ? { strict: tool.strict } : {},
1296
1298
  ...deferLoading != null ? { defer_loading: deferLoading } : {},
1297
1299
  ...allowedCallers != null ? { allowed_callers: allowedCallers } : {},