@ai-sdk/anthropic 4.0.84 → 4.0.86

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @ai-sdk/anthropic
2
2
 
3
+ ## 4.0.86
4
+
5
+ ### Patch Changes
6
+
7
+ - 43ad966: Report `interrupted` when a stream ends cleanly without its provider completion signal, preserving partial output without emitting an error solely for the interruption.
8
+
9
+ This applies to OpenAI (Chat, Responses, and Completions), Anthropic, Google (Generate Content and Interactions), Alibaba, Amazon Bedrock Converse, Cohere, DeepSeek, Groq, Hugging Face Responses, Mistral Chat, Moonshot AI, Open Responses, Perplexity, and xAI Responses. It also covers cutoffs in later Anthropic messages and Google automatic continuations.
10
+
11
+ **Compatibility notice:** These streams previously fell back to `other` or omitted the finish part. Applications must now handle `interrupted` in finish-reason switches, mappings, and custom validation. Check `finishReason === 'interrupted'` to detect incomplete responses; interruption alone does not trigger error handling.
12
+
13
+ Explicit unknown completion reasons still map to `other`. Actual provider, parsing, and transport errors retain their error paths; affected error paths that previously left the finish reason as `other` now report `error`. OpenAI-compatible remains unchanged.
14
+
15
+ - aac6026: fix(anthropic): preserve empty-stream rejection for interrupted responses
16
+ - Updated dependencies [10026d1]
17
+ - @ai-sdk/provider@4.0.32
18
+ - @ai-sdk/provider-utils@5.0.66
19
+
20
+ ## 4.0.85
21
+
22
+ ### Patch Changes
23
+
24
+ - 39a776b: Add a shared encodePathSegment helper and use it to encode provider-returned identifiers in credentialed follow-up request paths.
25
+ - d39b41d: Defer construction of provider validation schemas until first use to reduce package import time.
26
+ - bc1a2e9: Defer construction of Anthropic provider option schemas until they are first used to reduce package import time.
27
+ - Updated dependencies [b089ce8]
28
+ - Updated dependencies [39a776b]
29
+ - @ai-sdk/provider-utils@5.0.65
30
+
3
31
  ## 4.0.84
4
32
 
5
33
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import { Experimental_BatchV4, Experimental_DecisionModelV4, FilesV4, JSONObject
2
2
  import { Experimental_SandboxSession, FetchFunction, InferSchema, ProviderDefinedTool, Tool, ToolExecuteFunction } from "@ai-sdk/provider-utils";
3
3
  import { z } from "zod/v4";
4
4
  //#region src/anthropic-api.d.ts
5
- declare const anthropicSafeguardResultSchema: z.ZodObject<{
5
+ declare const anthropicSafeguardResultSchema: () => z.ZodObject<{
6
6
  type: z.ZodString;
7
7
  status: z.ZodObject<{
8
8
  type: z.ZodString;
@@ -13,10 +13,18 @@ declare const anthropicSafeguardResultSchema: z.ZodObject<{
13
13
  }, z.core.$strip>>>>;
14
14
  }, z.core.$strip>;
15
15
  }, z.core.$strip>;
16
- type AnthropicSafeguardResult = z.infer<typeof anthropicSafeguardResultSchema>;
16
+ type AnthropicSafeguardResult = z.infer<ReturnType<typeof anthropicSafeguardResultSchema>>;
17
17
  declare const anthropicResponseSchema: import("@ai-sdk/provider-utils").LazySchema<{
18
18
  type: "message";
19
19
  content: ({
20
+ type: "fallback";
21
+ from: {
22
+ model: string;
23
+ };
24
+ to: {
25
+ model: string;
26
+ };
27
+ } | {
20
28
  type: "text";
21
29
  text: string;
22
30
  citations?: ({
@@ -267,14 +275,6 @@ declare const anthropicResponseSchema: import("@ai-sdk/provider-utils").LazySche
267
275
  type: "advisor_tool_result_error";
268
276
  error_code: string;
269
277
  };
270
- } | {
271
- type: "fallback";
272
- from: {
273
- model: string;
274
- };
275
- to: {
276
- model: string;
277
- };
278
278
  })[];
279
279
  usage: {
280
280
  [x: string]: unknown;
@@ -571,172 +571,134 @@ type AnthropicModelId = 'claude-3-haiku-20240307' | 'claude-haiku-4-5-20251001'
571
571
  /**
572
572
  * Anthropic provider options for system messages.
573
573
  */
574
- declare const anthropicSystemMessageProviderOptions: z.ZodObject<{
575
- clearAt: z.ZodOptional<z.ZodLiteral<"next_user_message">>;
576
- effort: z.ZodOptional<z.ZodEnum<{
577
- low: "low";
578
- medium: "medium";
579
- high: "high";
580
- xhigh: "xhigh";
581
- max: "max";
582
- }>>;
583
- toolChanges: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
584
- type: z.ZodLiteral<"tool_addition">;
585
- toolName: z.ZodString;
586
- }, z.core.$strip>, z.ZodObject<{
587
- type: z.ZodLiteral<"tool_removal">;
588
- toolName: z.ZodString;
589
- }, z.core.$strip>]>>>;
590
- }, z.core.$strip>;
591
- type AnthropicSystemMessageProviderOptions = z.infer<typeof anthropicSystemMessageProviderOptions>;
592
- declare const anthropicLanguageModelOptions: z.ZodObject<{
593
- sendReasoning: z.ZodOptional<z.ZodBoolean>;
594
- structuredOutputMode: z.ZodOptional<z.ZodEnum<{
595
- outputFormat: "outputFormat";
596
- jsonTool: "jsonTool";
597
- auto: "auto";
598
- }>>;
599
- thinking: z.ZodOptional<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
600
- type: z.ZodLiteral<"adaptive">;
601
- display: z.ZodOptional<z.ZodEnum<{
602
- omitted: "omitted";
603
- summarized: "summarized";
604
- updates: "updates";
605
- }>>;
606
- blockBinding: z.ZodOptional<z.ZodObject<{
607
- prefixMismatchBehavior: z.ZodEnum<{
608
- error: "error";
609
- drop_block: "drop_block";
610
- }>;
611
- }, z.core.$strip>>;
612
- }, z.core.$strip>, z.ZodObject<{
613
- type: z.ZodLiteral<"enabled">;
614
- budgetTokens: z.ZodOptional<z.ZodNumber>;
615
- }, z.core.$strip>, z.ZodObject<{
616
- type: z.ZodLiteral<"disabled">;
617
- }, z.core.$strip>, z.ZodObject<{
618
- type: z.ZodLiteral<"between_tools">;
619
- }, z.core.$strip>]>, z.ZodObject<{
620
- type: z.ZodOptional<z.ZodNever>;
621
- blockBinding: z.ZodObject<{
622
- prefixMismatchBehavior: z.ZodEnum<{
623
- error: "error";
624
- drop_block: "drop_block";
625
- }>;
626
- }, z.core.$strip>;
627
- }, z.core.$strip>]>>;
628
- disableParallelToolUse: z.ZodOptional<z.ZodBoolean>;
629
- cacheControl: z.ZodOptional<z.ZodObject<{
630
- type: z.ZodLiteral<"ephemeral">;
631
- ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"5m">, z.ZodLiteral<"1h">]>>;
632
- }, z.core.$strip>>;
633
- metadata: z.ZodOptional<z.ZodObject<{
634
- userId: z.ZodOptional<z.ZodString>;
635
- }, z.core.$strip>>;
636
- mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
637
- type: z.ZodLiteral<"url">;
638
- name: z.ZodString;
639
- url: z.ZodString;
640
- authorizationToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
641
- toolConfiguration: z.ZodOptional<z.ZodNullable<z.ZodObject<{
642
- enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
643
- allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
644
- }, z.core.$strip>>>;
645
- }, z.core.$strip>>>;
646
- container: z.ZodOptional<z.ZodObject<{
647
- id: z.ZodOptional<z.ZodString>;
648
- skills: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
649
- type: z.ZodLiteral<"anthropic">;
650
- skillId: z.ZodString;
651
- version: z.ZodOptional<z.ZodString>;
652
- }, z.core.$strip>, z.ZodObject<{
653
- type: z.ZodLiteral<"custom">;
654
- providerReference: z.ZodRecord<z.ZodString, z.ZodString>;
655
- version: z.ZodOptional<z.ZodString>;
656
- }, z.core.$strip>]>>>;
657
- }, z.core.$strip>>;
658
- toolStreaming: z.ZodOptional<z.ZodBoolean>;
659
- effort: z.ZodOptional<z.ZodEnum<{
660
- low: "low";
661
- medium: "medium";
662
- high: "high";
663
- xhigh: "xhigh";
664
- max: "max";
665
- }>>;
666
- taskBudget: z.ZodOptional<z.ZodObject<{
667
- type: z.ZodLiteral<"tokens">;
668
- total: z.ZodNumber;
669
- remaining: z.ZodOptional<z.ZodNumber>;
670
- }, z.core.$strip>>;
671
- speed: z.ZodOptional<z.ZodEnum<{
672
- fast: "fast";
673
- standard: "standard";
674
- }>>;
675
- serviceTier: z.ZodOptional<z.ZodEnum<{
676
- auto: "auto";
677
- standard_only: "standard_only";
678
- }>>;
679
- inferenceGeo: z.ZodOptional<z.ZodEnum<{
680
- us: "us";
681
- global: "global";
682
- }>>;
683
- fallbacks: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"default">, z.ZodArray<z.ZodObject<{
684
- model: z.ZodString;
685
- max_tokens: z.ZodOptional<z.ZodNumber>;
686
- thinking: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
687
- output_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
688
- speed: z.ZodOptional<z.ZodEnum<{
689
- fast: "fast";
690
- standard: "standard";
691
- }>>;
692
- }, z.core.$strip>>]>>;
693
- anthropicBeta: z.ZodOptional<z.ZodArray<z.ZodString>>;
694
- safeguards: z.ZodOptional<z.ZodArray<z.ZodObject<{
695
- type: z.ZodLiteral<"dangerous_tool_use">;
696
- classifierContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
697
- }, z.core.$strip>>>;
698
- compaction: z.ZodOptional<z.ZodObject<{
699
- type: z.ZodLiteral<"summarize">;
700
- instructions: z.ZodOptional<z.ZodString>;
701
- }, z.core.$strip>>;
702
- contextManagement: z.ZodOptional<z.ZodObject<{
703
- edits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
704
- type: z.ZodLiteral<"clear_tool_uses_20250919">;
705
- trigger: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
706
- type: z.ZodLiteral<"input_tokens">;
707
- value: z.ZodNumber;
708
- }, z.core.$strip>, z.ZodObject<{
709
- type: z.ZodLiteral<"tool_uses">;
710
- value: z.ZodNumber;
711
- }, z.core.$strip>]>>;
712
- keep: z.ZodOptional<z.ZodObject<{
713
- type: z.ZodLiteral<"tool_uses">;
714
- value: z.ZodNumber;
715
- }, z.core.$strip>>;
716
- clearAtLeast: z.ZodOptional<z.ZodObject<{
717
- type: z.ZodLiteral<"input_tokens">;
718
- value: z.ZodNumber;
719
- }, z.core.$strip>>;
720
- clearToolInputs: z.ZodOptional<z.ZodBoolean>;
721
- excludeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
722
- }, z.core.$strip>, z.ZodObject<{
723
- type: z.ZodLiteral<"clear_thinking_20251015">;
724
- keep: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodObject<{
725
- type: z.ZodLiteral<"thinking_turns">;
726
- value: z.ZodNumber;
727
- }, z.core.$strip>]>>;
728
- }, z.core.$strip>, z.ZodObject<{
729
- type: z.ZodLiteral<"compact_20260112">;
730
- trigger: z.ZodOptional<z.ZodObject<{
731
- type: z.ZodLiteral<"input_tokens">;
732
- value: z.ZodNumber;
733
- }, z.core.$strip>>;
734
- pauseAfterCompaction: z.ZodOptional<z.ZodBoolean>;
735
- instructions: z.ZodOptional<z.ZodString>;
736
- }, z.core.$strip>]>>;
737
- }, z.core.$strip>>;
738
- }, z.core.$strip>;
739
- type AnthropicLanguageModelOptions = z.infer<typeof anthropicLanguageModelOptions>;
574
+ declare const anthropicSystemMessageProviderOptions: import("@ai-sdk/provider-utils").LazySchema<{
575
+ clearAt?: "next_user_message" | undefined;
576
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
577
+ toolChanges?: ({
578
+ type: "tool_addition";
579
+ toolName: string;
580
+ } | {
581
+ type: "tool_removal";
582
+ toolName: string;
583
+ })[] | undefined;
584
+ }>;
585
+ type AnthropicSystemMessageProviderOptions = InferSchema<typeof anthropicSystemMessageProviderOptions>;
586
+ declare const anthropicLanguageModelOptions: import("@ai-sdk/provider-utils").LazySchema<{
587
+ sendReasoning?: boolean | undefined;
588
+ structuredOutputMode?: "outputFormat" | "jsonTool" | "auto" | undefined;
589
+ thinking?: {
590
+ type: "adaptive";
591
+ display?: "omitted" | "summarized" | "updates" | undefined;
592
+ blockBinding?: {
593
+ prefixMismatchBehavior: "error" | "drop_block";
594
+ } | undefined;
595
+ } | {
596
+ type: "enabled";
597
+ budgetTokens?: number | undefined;
598
+ } | {
599
+ type: "disabled";
600
+ } | {
601
+ type: "between_tools";
602
+ } | {
603
+ blockBinding: {
604
+ prefixMismatchBehavior: "error" | "drop_block";
605
+ };
606
+ type?: undefined;
607
+ } | undefined;
608
+ disableParallelToolUse?: boolean | undefined;
609
+ cacheControl?: {
610
+ type: "ephemeral";
611
+ ttl?: "5m" | "1h" | undefined;
612
+ } | undefined;
613
+ metadata?: {
614
+ userId?: string | undefined;
615
+ } | undefined;
616
+ mcpServers?: {
617
+ type: "url";
618
+ name: string;
619
+ url: string;
620
+ authorizationToken?: string | null | undefined;
621
+ toolConfiguration?: {
622
+ enabled?: boolean | null | undefined;
623
+ allowedTools?: string[] | null | undefined;
624
+ } | null | undefined;
625
+ }[] | undefined;
626
+ container?: {
627
+ id?: string | undefined;
628
+ skills?: ({
629
+ type: "anthropic";
630
+ skillId: string;
631
+ version?: string | undefined;
632
+ } | {
633
+ type: "custom";
634
+ providerReference: Record<string, string>;
635
+ version?: string | undefined;
636
+ })[] | undefined;
637
+ } | undefined;
638
+ toolStreaming?: boolean | undefined;
639
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
640
+ taskBudget?: {
641
+ type: "tokens";
642
+ total: number;
643
+ remaining?: number | undefined;
644
+ } | undefined;
645
+ speed?: "fast" | "standard" | undefined;
646
+ serviceTier?: "auto" | "standard_only" | undefined;
647
+ inferenceGeo?: "us" | "global" | undefined;
648
+ fallbacks?: "default" | {
649
+ model: string;
650
+ max_tokens?: number | undefined;
651
+ thinking?: Record<string, unknown> | undefined;
652
+ output_config?: Record<string, unknown> | undefined;
653
+ speed?: "fast" | "standard" | undefined;
654
+ }[] | undefined;
655
+ anthropicBeta?: string[] | undefined;
656
+ safeguards?: {
657
+ type: "dangerous_tool_use";
658
+ classifierContext?: Record<string, unknown> | undefined;
659
+ }[] | undefined;
660
+ compaction?: {
661
+ type: "summarize";
662
+ instructions?: string | undefined;
663
+ } | undefined;
664
+ contextManagement?: {
665
+ edits: ({
666
+ type: "clear_tool_uses_20250919";
667
+ trigger?: {
668
+ type: "input_tokens";
669
+ value: number;
670
+ } | {
671
+ type: "tool_uses";
672
+ value: number;
673
+ } | undefined;
674
+ keep?: {
675
+ type: "tool_uses";
676
+ value: number;
677
+ } | undefined;
678
+ clearAtLeast?: {
679
+ type: "input_tokens";
680
+ value: number;
681
+ } | undefined;
682
+ clearToolInputs?: boolean | undefined;
683
+ excludeTools?: string[] | undefined;
684
+ } | {
685
+ type: "clear_thinking_20251015";
686
+ keep?: "all" | {
687
+ type: "thinking_turns";
688
+ value: number;
689
+ } | undefined;
690
+ } | {
691
+ type: "compact_20260112";
692
+ trigger?: {
693
+ type: "input_tokens";
694
+ value: number;
695
+ } | undefined;
696
+ pauseAfterCompaction?: boolean | undefined;
697
+ instructions?: string | undefined;
698
+ })[];
699
+ } | undefined;
700
+ }>;
701
+ type AnthropicLanguageModelOptions = InferSchema<typeof anthropicLanguageModelOptions>;
740
702
  //#endregion
741
703
  //#region src/anthropic-prepare-tools.d.ts
742
704
  interface AnthropicToolOptions {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":["SandboxSession","SandboxSession","_$__tool_computer_toolset_202608010.ComputerToolset_20260801Member","DecisionModelV4","BatchV4"],"sources":["../src/anthropic-api.ts","../src/anthropic-message-metadata.ts","../src/anthropic-provider-metadata.ts","../src/anthropic-language-model-options.ts","../src/anthropic-prepare-tools.ts","../src/tool/computer-toolset_20260801.ts","../src/tool/bash_20241022.ts","../src/tool/bash_20250124.ts","../src/anthropic-tools.ts","../src/anthropic-provider.ts","../src/forward-anthropic-container-id-from-last-step.ts","../src/version.ts"],"mappings":";;;;cA4rBM,gCAA8B,EAAA;;;;;;;;;;GAelC,EAAA,KAAA;KAEU,2BAA2B,EAAE,aAChC;cAuFI,0DAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;EAE1C,gBAAgB,SAAS,mBAAmBA;IAC1C,YAAYA;;EAGd,sBAAsBC;IAAU,MAAM;;;;;EAKtC,mBAAmB;EAEnB,SAAS;;;;EAKT,UAAU;;;;EAKV,cAAc;;UAGC;;EAEf;;IAEE;;;;;;EAOF;;;;;;EAOA;;;;;;EAOA;;;;EAKA,UAAU;;;;;EAMV,QAAQ;EAER;;;;;EAMA;;;;;wBAMc,gBACd,UAAS,4BACR;;;;qBA0HU,WAAS;;;;;;;;;;wBCvPN,0CACd;EAEA,OAAO;IACL,mBAAmB,eAAe;;;EAEpB,kBAAkB,eAAe;;;;qBCdtC"}
1
+ {"version":3,"file":"index.d.ts","names":["SandboxSession","SandboxSession","_$__tool_computer_toolset_202608010.ComputerToolset_20260801Member","DecisionModelV4","BatchV4"],"sources":["../src/anthropic-api.ts","../src/anthropic-message-metadata.ts","../src/anthropic-provider-metadata.ts","../src/anthropic-language-model-options.ts","../src/anthropic-prepare-tools.ts","../src/tool/computer-toolset_20260801.ts","../src/tool/bash_20241022.ts","../src/tool/bash_20250124.ts","../src/anthropic-tools.ts","../src/anthropic-provider.ts","../src/forward-anthropic-container-id-from-last-step.ts","../src/version.ts"],"mappings":";;;;cAmsBM,sCAA8B,EAAA;;;;;;;;;;GAgBhC,EAAA,KAAA;KAEQ,2BAA2B,EAAE,MACvC,kBAAkB;cA2FP,0DAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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