@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.
@@ -1695,6 +1695,9 @@ async function convertToAnthropicMessagesPrompt({
1695
1695
  case "tool": {
1696
1696
  for (let i2 = 0; i2 < content.length; i2++) {
1697
1697
  const part = content[i2];
1698
+ if (part.type === "tool-approval-response") {
1699
+ continue;
1700
+ }
1698
1701
  const isLastPart = i2 === content.length - 1;
1699
1702
  const cacheControl = (_d = validator.getCacheControl(part.providerOptions, {
1700
1703
  type: "tool result part",