@ai-sdk/anthropic 3.0.0-beta.95 → 3.0.0-beta.97

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.
@@ -1711,6 +1711,9 @@ async function convertToAnthropicMessagesPrompt({
1711
1711
  case "tool": {
1712
1712
  for (let i2 = 0; i2 < content.length; i2++) {
1713
1713
  const part = content[i2];
1714
+ if (part.type === "tool-approval-response") {
1715
+ continue;
1716
+ }
1714
1717
  const isLastPart = i2 === content.length - 1;
1715
1718
  const cacheControl = (_d = validator.getCacheControl(part.providerOptions, {
1716
1719
  type: "tool result part",