@ai-sdk/anthropic 4.0.76 → 4.0.78

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.
@@ -1489,7 +1489,7 @@ async function prepareTools({ tools, toolChoice, disableParallelToolUse, cacheCo
1489
1489
  const eagerInputStreaming = anthropicOptions?.eagerInputStreaming ?? defaultEagerInputStreaming;
1490
1490
  const deferLoading = anthropicOptions?.deferLoading;
1491
1491
  const allowedCallers = anthropicOptions?.allowedCallers;
1492
- if (!supportsStrictTools && tool.strict != null) toolWarnings.push({
1492
+ if (!supportsStrictTools && tool.strict === true) toolWarnings.push({
1493
1493
  type: "unsupported",
1494
1494
  feature: "strict",
1495
1495
  details: `Tool '${tool.name}' has strict: ${tool.strict}, but strict mode is not supported by this provider. The strict property will be ignored.`