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

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.
@@ -436,7 +436,7 @@ async function convertToAnthropicMessagesPrompt({
436
436
  sendReasoning,
437
437
  warnings
438
438
  }) {
439
- var _a, _b, _c, _d, _e;
439
+ var _a, _b, _c, _d, _e, _f;
440
440
  const betas = /* @__PURE__ */ new Set();
441
441
  const blocks = groupIntoBlocks(prompt);
442
442
  let system = void 0;
@@ -612,6 +612,9 @@ async function convertToAnthropicMessagesPrompt({
612
612
  case "error-text":
613
613
  contentValue = output.value;
614
614
  break;
615
+ case "execution-denied":
616
+ contentValue = (_e = output.reason) != null ? _e : "Tool execution denied.";
617
+ break;
615
618
  case "json":
616
619
  case "error-json":
617
620
  default:
@@ -646,7 +649,7 @@ async function convertToAnthropicMessagesPrompt({
646
649
  for (let k = 0; k < content.length; k++) {
647
650
  const part = content[k];
648
651
  const isLastContentPart = k === content.length - 1;
649
- const cacheControl = (_e = getCacheControl(part.providerOptions)) != null ? _e : isLastContentPart ? getCacheControl(message.providerOptions) : void 0;
652
+ const cacheControl = (_f = getCacheControl(part.providerOptions)) != null ? _f : isLastContentPart ? getCacheControl(message.providerOptions) : void 0;
650
653
  switch (part.type) {
651
654
  case "text": {
652
655
  anthropicContent.push({