@ai-sdk/anthropic 2.1.0-beta.10 → 2.1.0-beta.11

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.
@@ -460,7 +460,7 @@ async function convertToAnthropicMessagesPrompt({
460
460
  sendReasoning,
461
461
  warnings
462
462
  }) {
463
- var _a, _b, _c, _d, _e;
463
+ var _a, _b, _c, _d, _e, _f;
464
464
  const betas = /* @__PURE__ */ new Set();
465
465
  const blocks = groupIntoBlocks(prompt);
466
466
  let system = void 0;
@@ -636,6 +636,9 @@ async function convertToAnthropicMessagesPrompt({
636
636
  case "error-text":
637
637
  contentValue = output.value;
638
638
  break;
639
+ case "execution-denied":
640
+ contentValue = (_e = output.reason) != null ? _e : "Tool execution denied.";
641
+ break;
639
642
  case "json":
640
643
  case "error-json":
641
644
  default:
@@ -670,7 +673,7 @@ async function convertToAnthropicMessagesPrompt({
670
673
  for (let k = 0; k < content.length; k++) {
671
674
  const part = content[k];
672
675
  const isLastContentPart = k === content.length - 1;
673
- const cacheControl = (_e = getCacheControl(part.providerOptions)) != null ? _e : isLastContentPart ? getCacheControl(message.providerOptions) : void 0;
676
+ const cacheControl = (_f = getCacheControl(part.providerOptions)) != null ? _f : isLastContentPart ? getCacheControl(message.providerOptions) : void 0;
674
677
  switch (part.type) {
675
678
  case "text": {
676
679
  anthropicContent.push({