@anthropic-ai/sdk 0.104.2 → 0.106.0

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.
Files changed (196) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/core/streaming.d.mts.map +1 -1
  9. package/core/streaming.d.ts.map +1 -1
  10. package/core/streaming.js +2 -1
  11. package/core/streaming.js.map +1 -1
  12. package/core/streaming.mjs +2 -1
  13. package/core/streaming.mjs.map +1 -1
  14. package/helpers/beta/mcp.d.mts +1 -1
  15. package/helpers/beta/mcp.d.mts.map +1 -1
  16. package/helpers/beta/mcp.d.ts +1 -1
  17. package/helpers/beta/mcp.d.ts.map +1 -1
  18. package/helpers/beta/mcp.js +1 -1
  19. package/helpers/beta/mcp.js.map +1 -1
  20. package/helpers/beta/mcp.mjs +1 -1
  21. package/helpers/beta/mcp.mjs.map +1 -1
  22. package/internal/headers.d.mts +7 -0
  23. package/internal/headers.d.mts.map +1 -1
  24. package/internal/headers.d.ts +7 -0
  25. package/internal/headers.d.ts.map +1 -1
  26. package/internal/headers.js +45 -4
  27. package/internal/headers.js.map +1 -1
  28. package/internal/headers.mjs +43 -3
  29. package/internal/headers.mjs.map +1 -1
  30. package/internal/message-stream-utils.d.mts +10 -0
  31. package/internal/message-stream-utils.d.mts.map +1 -0
  32. package/internal/message-stream-utils.d.ts +10 -0
  33. package/internal/message-stream-utils.d.ts.map +1 -0
  34. package/internal/message-stream-utils.js +34 -0
  35. package/internal/message-stream-utils.js.map +1 -0
  36. package/internal/message-stream-utils.mjs +30 -0
  37. package/internal/message-stream-utils.mjs.map +1 -0
  38. package/internal/stainless-helper-header.d.mts +60 -0
  39. package/internal/stainless-helper-header.d.mts.map +1 -0
  40. package/internal/stainless-helper-header.d.ts +60 -0
  41. package/internal/stainless-helper-header.d.ts.map +1 -0
  42. package/{lib → internal}/stainless-helper-header.js +27 -6
  43. package/internal/stainless-helper-header.js.map +1 -0
  44. package/{lib → internal}/stainless-helper-header.mjs +25 -5
  45. package/internal/stainless-helper-header.mjs.map +1 -0
  46. package/lib/BetaMessageStream.d.mts.map +1 -1
  47. package/lib/BetaMessageStream.d.ts.map +1 -1
  48. package/lib/BetaMessageStream.js +38 -28
  49. package/lib/BetaMessageStream.js.map +1 -1
  50. package/lib/BetaMessageStream.mjs +38 -28
  51. package/lib/BetaMessageStream.mjs.map +1 -1
  52. package/lib/MessageStream.d.mts.map +1 -1
  53. package/lib/MessageStream.d.ts.map +1 -1
  54. package/lib/MessageStream.js +20 -23
  55. package/lib/MessageStream.js.map +1 -1
  56. package/lib/MessageStream.mjs +17 -20
  57. package/lib/MessageStream.mjs.map +1 -1
  58. package/lib/helper-client.d.mts +2 -20
  59. package/lib/helper-client.d.mts.map +1 -1
  60. package/lib/helper-client.d.ts +2 -20
  61. package/lib/helper-client.d.ts.map +1 -1
  62. package/lib/helper-client.js +2 -1
  63. package/lib/helper-client.js.map +1 -1
  64. package/lib/helper-client.mjs +2 -1
  65. package/lib/helper-client.mjs.map +1 -1
  66. package/lib/middleware.d.mts.map +1 -1
  67. package/lib/middleware.d.ts.map +1 -1
  68. package/lib/middleware.js +14 -6
  69. package/lib/middleware.js.map +1 -1
  70. package/lib/middleware.mjs +14 -6
  71. package/lib/middleware.mjs.map +1 -1
  72. package/lib/tools/BetaToolRunner.d.mts.map +1 -1
  73. package/lib/tools/BetaToolRunner.d.ts.map +1 -1
  74. package/lib/tools/BetaToolRunner.js +11 -5
  75. package/lib/tools/BetaToolRunner.js.map +1 -1
  76. package/lib/tools/BetaToolRunner.mjs +11 -5
  77. package/lib/tools/BetaToolRunner.mjs.map +1 -1
  78. package/lib/tools/SessionToolRunner.d.mts.map +1 -1
  79. package/lib/tools/SessionToolRunner.d.ts.map +1 -1
  80. package/lib/tools/SessionToolRunner.js +2 -3
  81. package/lib/tools/SessionToolRunner.js.map +1 -1
  82. package/lib/tools/SessionToolRunner.mjs +2 -3
  83. package/lib/tools/SessionToolRunner.mjs.map +1 -1
  84. package/package.json +1 -1
  85. package/resources/beta/agents/agents.d.mts +7 -2
  86. package/resources/beta/agents/agents.d.mts.map +1 -1
  87. package/resources/beta/agents/agents.d.ts +7 -2
  88. package/resources/beta/agents/agents.d.ts.map +1 -1
  89. package/resources/beta/agents/agents.js.map +1 -1
  90. package/resources/beta/agents/agents.mjs.map +1 -1
  91. package/resources/beta/beta.d.mts +4 -4
  92. package/resources/beta/beta.d.mts.map +1 -1
  93. package/resources/beta/beta.d.ts +4 -4
  94. package/resources/beta/beta.d.ts.map +1 -1
  95. package/resources/beta/beta.js.map +1 -1
  96. package/resources/beta/beta.mjs.map +1 -1
  97. package/resources/beta/files.js +1 -1
  98. package/resources/beta/files.js.map +1 -1
  99. package/resources/beta/files.mjs +1 -1
  100. package/resources/beta/files.mjs.map +1 -1
  101. package/resources/beta/index.d.mts +2 -2
  102. package/resources/beta/index.d.mts.map +1 -1
  103. package/resources/beta/index.d.ts +2 -2
  104. package/resources/beta/index.d.ts.map +1 -1
  105. package/resources/beta/index.js.map +1 -1
  106. package/resources/beta/index.mjs.map +1 -1
  107. package/resources/beta/messages/batches.d.mts +8 -5
  108. package/resources/beta/messages/batches.d.mts.map +1 -1
  109. package/resources/beta/messages/batches.d.ts +8 -5
  110. package/resources/beta/messages/batches.d.ts.map +1 -1
  111. package/resources/beta/messages/batches.js +5 -2
  112. package/resources/beta/messages/batches.js.map +1 -1
  113. package/resources/beta/messages/batches.mjs +5 -2
  114. package/resources/beta/messages/batches.mjs.map +1 -1
  115. package/resources/beta/messages/index.d.mts +1 -1
  116. package/resources/beta/messages/index.d.mts.map +1 -1
  117. package/resources/beta/messages/index.d.ts +1 -1
  118. package/resources/beta/messages/index.d.ts.map +1 -1
  119. package/resources/beta/messages/index.js.map +1 -1
  120. package/resources/beta/messages/index.mjs.map +1 -1
  121. package/resources/beta/messages/messages.d.mts +94 -51
  122. package/resources/beta/messages/messages.d.mts.map +1 -1
  123. package/resources/beta/messages/messages.d.ts +94 -51
  124. package/resources/beta/messages/messages.d.ts.map +1 -1
  125. package/resources/beta/messages/messages.js +6 -3
  126. package/resources/beta/messages/messages.js.map +1 -1
  127. package/resources/beta/messages/messages.mjs +6 -3
  128. package/resources/beta/messages/messages.mjs.map +1 -1
  129. package/resources/beta/webhooks.d.mts +11 -2
  130. package/resources/beta/webhooks.d.mts.map +1 -1
  131. package/resources/beta/webhooks.d.ts +11 -2
  132. package/resources/beta/webhooks.d.ts.map +1 -1
  133. package/resources/index.d.mts +1 -1
  134. package/resources/index.d.mts.map +1 -1
  135. package/resources/index.d.ts +1 -1
  136. package/resources/index.d.ts.map +1 -1
  137. package/resources/index.js.map +1 -1
  138. package/resources/index.mjs.map +1 -1
  139. package/resources/messages/batches.d.mts +11 -3
  140. package/resources/messages/batches.d.mts.map +1 -1
  141. package/resources/messages/batches.d.ts +11 -3
  142. package/resources/messages/batches.d.ts.map +1 -1
  143. package/resources/messages/batches.js +10 -2
  144. package/resources/messages/batches.js.map +1 -1
  145. package/resources/messages/batches.mjs +10 -2
  146. package/resources/messages/batches.mjs.map +1 -1
  147. package/resources/messages/index.d.mts +1 -1
  148. package/resources/messages/index.d.mts.map +1 -1
  149. package/resources/messages/index.d.ts +1 -1
  150. package/resources/messages/index.d.ts.map +1 -1
  151. package/resources/messages/index.js.map +1 -1
  152. package/resources/messages/index.mjs.map +1 -1
  153. package/resources/messages/messages.d.mts +84 -48
  154. package/resources/messages/messages.d.mts.map +1 -1
  155. package/resources/messages/messages.d.ts +84 -48
  156. package/resources/messages/messages.d.ts.map +1 -1
  157. package/resources/messages/messages.js +9 -4
  158. package/resources/messages/messages.js.map +1 -1
  159. package/resources/messages/messages.mjs +9 -4
  160. package/resources/messages/messages.mjs.map +1 -1
  161. package/src/client.ts +2 -0
  162. package/src/core/streaming.ts +2 -1
  163. package/src/helpers/beta/mcp.ts +1 -1
  164. package/src/internal/headers.ts +47 -4
  165. package/src/internal/message-stream-utils.ts +30 -0
  166. package/src/internal/stainless-helper-header.ts +122 -0
  167. package/src/lib/BetaMessageStream.ts +39 -31
  168. package/src/lib/MessageStream.ts +17 -23
  169. package/src/lib/helper-client.ts +6 -9
  170. package/src/lib/middleware.ts +17 -5
  171. package/src/lib/tools/BetaToolRunner.ts +15 -6
  172. package/src/lib/tools/SessionToolRunner.ts +2 -4
  173. package/src/resources/beta/agents/agents.ts +7 -2
  174. package/src/resources/beta/beta.ts +6 -0
  175. package/src/resources/beta/files.ts +1 -1
  176. package/src/resources/beta/index.ts +3 -0
  177. package/src/resources/beta/messages/batches.ts +14 -8
  178. package/src/resources/beta/messages/index.ts +2 -0
  179. package/src/resources/beta/messages/messages.ts +157 -51
  180. package/src/resources/beta/webhooks.ts +16 -1
  181. package/src/resources/index.ts +1 -0
  182. package/src/resources/messages/batches.ts +21 -4
  183. package/src/resources/messages/index.ts +1 -0
  184. package/src/resources/messages/messages.ts +134 -50
  185. package/src/version.ts +1 -1
  186. package/version.d.mts +1 -1
  187. package/version.d.ts +1 -1
  188. package/version.js +1 -1
  189. package/version.mjs +1 -1
  190. package/lib/stainless-helper-header.d.mts +0 -34
  191. package/lib/stainless-helper-header.d.mts.map +0 -1
  192. package/lib/stainless-helper-header.d.ts +0 -34
  193. package/lib/stainless-helper-header.d.ts.map +0 -1
  194. package/lib/stainless-helper-header.js.map +0 -1
  195. package/lib/stainless-helper-header.mjs.map +0 -1
  196. package/src/lib/stainless-helper-header.ts +0 -80
@@ -170,7 +170,7 @@ export interface BetaAdvisorTool20260301 {
170
170
  */
171
171
  name: 'advisor';
172
172
  type: 'advisor_20260301';
173
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
173
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
174
174
  /**
175
175
  * Create a cache control breakpoint at this content block.
176
176
  */
@@ -295,7 +295,9 @@ export interface BetaCacheControlEphemeral {
295
295
  * - `5m`: 5 minutes
296
296
  * - `1h`: 1 hour
297
297
  *
298
- * Defaults to `5m`.
298
+ * Defaults to `5m`. See
299
+ * [prompt caching pricing](https://docs.claude.com/en/docs/build-with-claude/prompt-caching)
300
+ * for details.
299
301
  */
300
302
  ttl?: '5m' | '1h';
301
303
  }
@@ -618,7 +620,7 @@ export interface BetaCodeExecutionTool20250522 {
618
620
  */
619
621
  name: 'code_execution';
620
622
  type: 'code_execution_20250522';
621
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
623
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
622
624
  /**
623
625
  * Create a cache control breakpoint at this content block.
624
626
  */
@@ -641,7 +643,7 @@ export interface BetaCodeExecutionTool20250825 {
641
643
  */
642
644
  name: 'code_execution';
643
645
  type: 'code_execution_20250825';
644
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
646
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
645
647
  /**
646
648
  * Create a cache control breakpoint at this content block.
647
649
  */
@@ -668,7 +670,33 @@ export interface BetaCodeExecutionTool20260120 {
668
670
  */
669
671
  name: 'code_execution';
670
672
  type: 'code_execution_20260120';
671
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
673
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
674
+ /**
675
+ * Create a cache control breakpoint at this content block.
676
+ */
677
+ cache_control?: BetaCacheControlEphemeral | null;
678
+ /**
679
+ * If true, tool will not be included in initial system prompt. Only loaded when
680
+ * returned via tool_reference from tool search.
681
+ */
682
+ defer_loading?: boolean;
683
+ /**
684
+ * When true, guarantees schema validation on tool names and inputs
685
+ */
686
+ strict?: boolean;
687
+ }
688
+ /**
689
+ * Code execution tool with REPL state persistence.
690
+ */
691
+ export interface BetaCodeExecutionTool20260521 {
692
+ /**
693
+ * Name of the tool.
694
+ *
695
+ * This is how the tool will be called by the model and in `tool_use` blocks.
696
+ */
697
+ name: 'code_execution';
698
+ type: 'code_execution_20260521';
699
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
672
700
  /**
673
701
  * Create a cache control breakpoint at this content block.
674
702
  */
@@ -968,10 +996,10 @@ export interface BetaEncryptedCodeExecutionResultBlockParam {
968
996
  * Marks the point in `content` where one model's output gives way to the next.
969
997
  *
970
998
  * One block appears per hop where a preceding model actually ran this turn and
971
- * declined. A turn routed directly by the sticky decision has no such boundary and
972
- * carries no block — the signal for whether a fallback model served the response
973
- * is the presence of a `fallback_message` entry in `usage.iterations`, not this
974
- * block.
999
+ * declined. A turn where no preceding model ran and declined has no such boundary
1000
+ * and carries no block — the signal for whether a fallback model served the
1001
+ * response is the presence of a `fallback_message` entry in `usage.iterations`,
1002
+ * not this block.
975
1003
  *
976
1004
  * The block is treated like a server-tool content block for streaming: it arrives
977
1005
  * via the standard `content_block_start` / `content_block_stop` pair and carries
@@ -990,24 +1018,25 @@ export interface BetaFallbackBlock {
990
1018
  * always the canonical id.
991
1019
  */
992
1020
  to: BetaFallbackInfo;
1021
+ /**
1022
+ * What caused the `from` model to hand over at this hop.
1023
+ */
1024
+ trigger: BetaFallbackRefusalTrigger;
993
1025
  type: 'fallback';
994
1026
  }
995
1027
  /**
996
1028
  * A `fallback` block echoed back from a prior response.
997
1029
  *
998
- * Accepted in `messages[].content` and never rendered into the prompt, not
999
- * validated against the request's `fallbacks` chain or top-level `model`, and
1000
- * stripped before the sticky-routing cache key is computed.
1030
+ * Accepted in `messages[].content` and not rendered into the prompt; not validated
1031
+ * against the request's `fallbacks` chain or top-level `model`.
1001
1032
  *
1002
- * Callers should echo the assistant turn verbatim block included. The block's
1003
- * position is load-bearing for thinking verification: the thinking runs on either
1004
- * side of a fallback hop carry independently-rooted verification hash chains, and
1005
- * this block is the only record of where one chain ends and the next begins. When
1006
- * thinking runs flank the boundary, omitting the block merges the runs into one
1007
- * contiguous span whose hashes cannot verify (the request is rejected), and moving
1008
- * it into the middle of a single run splits that run's chain and is likewise
1009
- * rejected; between non-thinking blocks the block's placement has no verification
1010
- * effect.
1033
+ * Echo the assistant turn back verbatim, including this block in its original
1034
+ * position. The block marks the boundary between content produced before and after
1035
+ * a fallback hop, and the server relies on that boundary to validate the turn:
1036
+ * when thinking runs flank the boundary, omitting the block merges them into one
1037
+ * span the server cannot validate (the request is rejected), and moving it into
1038
+ * the middle of a single run is likewise rejected; between non-thinking blocks the
1039
+ * block's placement has no validation effect.
1011
1040
  */
1012
1041
  export interface BetaFallbackBlockParam {
1013
1042
  /**
@@ -1019,6 +1048,11 @@ export interface BetaFallbackBlockParam {
1019
1048
  */
1020
1049
  to: BetaFallbackInfoParam;
1021
1050
  type: 'fallback';
1051
+ /**
1052
+ * The response block's `trigger`, echoed verbatim. Accepted and ignored by the
1053
+ * server; any object or `null` is allowed.
1054
+ */
1055
+ trigger?: unknown;
1022
1056
  }
1023
1057
  /**
1024
1058
  * Identifies one hop of a fallback transition.
@@ -1107,6 +1141,16 @@ export interface BetaFallbackParam {
1107
1141
  thinking?: BetaThinkingConfigEnabled | BetaThinkingConfigDisabled | BetaThinkingConfigAdaptive | null;
1108
1142
  [k: string]: unknown;
1109
1143
  }
1144
+ /**
1145
+ * The `from` model declined for policy reasons.
1146
+ */
1147
+ export interface BetaFallbackRefusalTrigger {
1148
+ /**
1149
+ * The policy category that triggered a refusal.
1150
+ */
1151
+ category: 'cyber' | 'bio' | 'frontier_llm' | 'reasoning_extraction' | 'military_weapons' | null;
1152
+ type: 'refusal';
1153
+ }
1110
1154
  export interface BetaFileDocumentSource {
1111
1155
  file_id: string;
1112
1156
  type: 'file';
@@ -1237,7 +1281,7 @@ export interface BetaMemoryTool20250818 {
1237
1281
  */
1238
1282
  name: 'memory';
1239
1283
  type: 'memory_20250818';
1240
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
1284
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
1241
1285
  /**
1242
1286
  * Create a cache control breakpoint at this content block.
1243
1287
  */
@@ -1703,11 +1747,9 @@ export interface BetaRedactedThinkingBlockParam {
1703
1747
  */
1704
1748
  export interface BetaRefusalStopDetails {
1705
1749
  /**
1706
- * The policy category that triggered the refusal.
1707
- *
1708
- * `null` when the refusal doesn't map to a named category.
1750
+ * The policy category that triggered a refusal.
1709
1751
  */
1710
- category: 'cyber' | 'bio' | 'frontier_llm' | 'reasoning_extraction' | null;
1752
+ category: 'cyber' | 'bio' | 'frontier_llm' | 'reasoning_extraction' | 'military_weapons' | null;
1711
1753
  /**
1712
1754
  * Human-readable explanation of the refusal.
1713
1755
  *
@@ -2095,7 +2137,7 @@ export interface BetaTool {
2095
2137
  * This is how the tool will be called by the model and in `tool_use` blocks.
2096
2138
  */
2097
2139
  name: string;
2098
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
2140
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
2099
2141
  /**
2100
2142
  * Create a cache control breakpoint at this content block.
2101
2143
  */
@@ -2153,7 +2195,7 @@ export interface BetaToolBash20241022 {
2153
2195
  */
2154
2196
  name: 'bash';
2155
2197
  type: 'bash_20241022';
2156
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
2198
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
2157
2199
  /**
2158
2200
  * Create a cache control breakpoint at this content block.
2159
2201
  */
@@ -2179,7 +2221,7 @@ export interface BetaToolBash20250124 {
2179
2221
  */
2180
2222
  name: 'bash';
2181
2223
  type: 'bash_20250124';
2182
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
2224
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
2183
2225
  /**
2184
2226
  * Create a cache control breakpoint at this content block.
2185
2227
  */
@@ -2267,7 +2309,7 @@ export interface BetaToolComputerUse20241022 {
2267
2309
  */
2268
2310
  name: 'computer';
2269
2311
  type: 'computer_20241022';
2270
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
2312
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
2271
2313
  /**
2272
2314
  * Create a cache control breakpoint at this content block.
2273
2315
  */
@@ -2305,7 +2347,7 @@ export interface BetaToolComputerUse20250124 {
2305
2347
  */
2306
2348
  name: 'computer';
2307
2349
  type: 'computer_20250124';
2308
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
2350
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
2309
2351
  /**
2310
2352
  * Create a cache control breakpoint at this content block.
2311
2353
  */
@@ -2343,7 +2385,7 @@ export interface BetaToolComputerUse20251124 {
2343
2385
  */
2344
2386
  name: 'computer';
2345
2387
  type: 'computer_20251124';
2346
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
2388
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
2347
2389
  /**
2348
2390
  * Create a cache control breakpoint at this content block.
2349
2391
  */
@@ -2402,7 +2444,7 @@ export interface BetaToolSearchToolBm25_20251119 {
2402
2444
  */
2403
2445
  name: 'tool_search_tool_bm25';
2404
2446
  type: 'tool_search_tool_bm25_20251119' | 'tool_search_tool_bm25';
2405
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
2447
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
2406
2448
  /**
2407
2449
  * Create a cache control breakpoint at this content block.
2408
2450
  */
@@ -2425,7 +2467,7 @@ export interface BetaToolSearchToolRegex20251119 {
2425
2467
  */
2426
2468
  name: 'tool_search_tool_regex';
2427
2469
  type: 'tool_search_tool_regex_20251119' | 'tool_search_tool_regex';
2428
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
2470
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
2429
2471
  /**
2430
2472
  * Create a cache control breakpoint at this content block.
2431
2473
  */
@@ -2481,7 +2523,7 @@ export interface BetaToolTextEditor20241022 {
2481
2523
  */
2482
2524
  name: 'str_replace_editor';
2483
2525
  type: 'text_editor_20241022';
2484
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
2526
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
2485
2527
  /**
2486
2528
  * Create a cache control breakpoint at this content block.
2487
2529
  */
@@ -2507,7 +2549,7 @@ export interface BetaToolTextEditor20250124 {
2507
2549
  */
2508
2550
  name: 'str_replace_editor';
2509
2551
  type: 'text_editor_20250124';
2510
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
2552
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
2511
2553
  /**
2512
2554
  * Create a cache control breakpoint at this content block.
2513
2555
  */
@@ -2533,7 +2575,7 @@ export interface BetaToolTextEditor20250429 {
2533
2575
  */
2534
2576
  name: 'str_replace_based_edit_tool';
2535
2577
  type: 'text_editor_20250429';
2536
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
2578
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
2537
2579
  /**
2538
2580
  * Create a cache control breakpoint at this content block.
2539
2581
  */
@@ -2559,7 +2601,7 @@ export interface BetaToolTextEditor20250728 {
2559
2601
  */
2560
2602
  name: 'str_replace_based_edit_tool';
2561
2603
  type: 'text_editor_20250728';
2562
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
2604
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
2563
2605
  /**
2564
2606
  * Create a cache control breakpoint at this content block.
2565
2607
  */
@@ -2586,7 +2628,7 @@ export interface BetaToolTextEditor20250728 {
2586
2628
  * Code execution tool with REPL state persistence (daemon mode + gVisor
2587
2629
  * checkpoint).
2588
2630
  */
2589
- export type BetaToolUnion = BetaTool | BetaToolBash20241022 | BetaToolBash20250124 | BetaCodeExecutionTool20250522 | BetaCodeExecutionTool20250825 | BetaCodeExecutionTool20260120 | BetaToolComputerUse20241022 | BetaMemoryTool20250818 | BetaToolComputerUse20250124 | BetaToolTextEditor20241022 | BetaToolComputerUse20251124 | BetaToolTextEditor20250124 | BetaToolTextEditor20250429 | BetaToolTextEditor20250728 | BetaWebSearchTool20250305 | BetaWebFetchTool20250910 | BetaWebSearchTool20260209 | BetaWebFetchTool20260209 | BetaWebFetchTool20260309 | BetaAdvisorTool20260301 | BetaToolSearchToolBm25_20251119 | BetaToolSearchToolRegex20251119 | BetaMCPToolset;
2631
+ export type BetaToolUnion = BetaTool | BetaToolBash20241022 | BetaToolBash20250124 | BetaCodeExecutionTool20250522 | BetaCodeExecutionTool20250825 | BetaCodeExecutionTool20260120 | BetaCodeExecutionTool20260521 | BetaToolComputerUse20241022 | BetaMemoryTool20250818 | BetaToolComputerUse20250124 | BetaToolTextEditor20241022 | BetaToolComputerUse20251124 | BetaToolTextEditor20250124 | BetaToolTextEditor20250429 | BetaToolTextEditor20250728 | BetaWebSearchTool20250305 | BetaWebFetchTool20250910 | BetaWebSearchTool20260209 | BetaWebFetchTool20260209 | BetaWebFetchTool20260309 | BetaAdvisorTool20260301 | BetaToolSearchToolBm25_20251119 | BetaToolSearchToolRegex20251119 | BetaMCPToolset;
2590
2632
  export interface BetaToolUseBlock {
2591
2633
  id: string;
2592
2634
  input: unknown;
@@ -2738,7 +2780,7 @@ export interface BetaWebFetchTool20250910 {
2738
2780
  */
2739
2781
  name: 'web_fetch';
2740
2782
  type: 'web_fetch_20250910';
2741
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
2783
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
2742
2784
  /**
2743
2785
  * List of domains to allow fetching from
2744
2786
  */
@@ -2783,7 +2825,7 @@ export interface BetaWebFetchTool20260209 {
2783
2825
  */
2784
2826
  name: 'web_fetch';
2785
2827
  type: 'web_fetch_20260209';
2786
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
2828
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
2787
2829
  /**
2788
2830
  * List of domains to allow fetching from
2789
2831
  */
@@ -2831,7 +2873,7 @@ export interface BetaWebFetchTool20260309 {
2831
2873
  */
2832
2874
  name: 'web_fetch';
2833
2875
  type: 'web_fetch_20260309';
2834
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
2876
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
2835
2877
  /**
2836
2878
  * List of domains to allow fetching from
2837
2879
  */
@@ -2927,7 +2969,7 @@ export interface BetaWebSearchTool20250305 {
2927
2969
  */
2928
2970
  name: 'web_search';
2929
2971
  type: 'web_search_20250305';
2930
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
2972
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
2931
2973
  /**
2932
2974
  * If provided, only these domains will be included in results. Cannot be used
2933
2975
  * alongside `blocked_domains`.
@@ -2969,7 +3011,7 @@ export interface BetaWebSearchTool20260209 {
2969
3011
  */
2970
3012
  name: 'web_search';
2971
3013
  type: 'web_search_20260209';
2972
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
3014
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
2973
3015
  /**
2974
3016
  * If provided, only these domains will be included in results. Cannot be used
2975
3017
  * alongside `blocked_domains`.
@@ -3358,15 +3400,16 @@ export interface MessageCreateParamsBase {
3358
3400
  * other values will be rejected with a 400 error.
3359
3401
  */
3360
3402
  top_p?: number;
3361
- /**
3362
- * Body param: The user profile ID to attribute this request to. Use when acting on
3363
- * behalf of a party other than your organization.
3364
- */
3365
- user_profile_id?: string | null;
3366
3403
  /**
3367
3404
  * Header param: Optional header to specify the beta version(s) you want to use.
3368
3405
  */
3369
3406
  betas?: Array<BetaAPI.AnthropicBeta>;
3407
+ /**
3408
+ * Header param: The user profile ID to attribute this request to. Use when acting
3409
+ * on behalf of a party other than your organization. Requires the `user-profiles`
3410
+ * beta header.
3411
+ */
3412
+ user_profile_id?: string;
3370
3413
  }
3371
3414
  export declare namespace MessageCreateParams {
3372
3415
  type MessageCreateParamsNonStreaming = BetaMessagesAPI.MessageCreateParamsNonStreaming;
@@ -3602,7 +3645,7 @@ export interface MessageCountTokensParams {
3602
3645
  *
3603
3646
  * See our [guide](https://docs.claude.com/en/docs/tool-use) for more details.
3604
3647
  */
3605
- tools?: Array<BetaTool | BetaToolBash20241022 | BetaToolBash20250124 | BetaCodeExecutionTool20250522 | BetaCodeExecutionTool20250825 | BetaCodeExecutionTool20260120 | BetaToolComputerUse20241022 | BetaMemoryTool20250818 | BetaToolComputerUse20250124 | BetaToolTextEditor20241022 | BetaToolComputerUse20251124 | BetaToolTextEditor20250124 | BetaToolTextEditor20250429 | BetaToolTextEditor20250728 | BetaWebSearchTool20250305 | BetaWebFetchTool20250910 | BetaWebSearchTool20260209 | BetaWebFetchTool20260209 | BetaWebFetchTool20260309 | BetaAdvisorTool20260301 | BetaToolSearchToolBm25_20251119 | BetaToolSearchToolRegex20251119 | BetaMCPToolset>;
3648
+ tools?: Array<BetaTool | BetaToolBash20241022 | BetaToolBash20250124 | BetaCodeExecutionTool20250522 | BetaCodeExecutionTool20250825 | BetaCodeExecutionTool20260120 | BetaCodeExecutionTool20260521 | BetaToolComputerUse20241022 | BetaMemoryTool20250818 | BetaToolComputerUse20250124 | BetaToolTextEditor20241022 | BetaToolComputerUse20251124 | BetaToolTextEditor20250124 | BetaToolTextEditor20250429 | BetaToolTextEditor20250728 | BetaWebSearchTool20250305 | BetaWebFetchTool20250910 | BetaWebSearchTool20260209 | BetaWebFetchTool20260209 | BetaWebFetchTool20260309 | BetaAdvisorTool20260301 | BetaToolSearchToolBm25_20251119 | BetaToolSearchToolRegex20251119 | BetaMCPToolset>;
3606
3649
  /**
3607
3650
  * Header param: Optional header to specify the beta version(s) you want to use.
3608
3651
  */
@@ -3611,7 +3654,7 @@ export interface MessageCountTokensParams {
3611
3654
  export { BetaToolRunner, type BetaToolRunnerParams } from "../../../lib/tools/BetaToolRunner.js";
3612
3655
  export { ToolError } from "../../../lib/tools/ToolError.js";
3613
3656
  export declare namespace Messages {
3614
- export { type BetaAdvisorMessageIterationUsage as BetaAdvisorMessageIterationUsage, type BetaAdvisorRedactedResultBlock as BetaAdvisorRedactedResultBlock, type BetaAdvisorRedactedResultBlockParam as BetaAdvisorRedactedResultBlockParam, type BetaAdvisorResultBlock as BetaAdvisorResultBlock, type BetaAdvisorResultBlockParam as BetaAdvisorResultBlockParam, type BetaAdvisorTool20260301 as BetaAdvisorTool20260301, type BetaAdvisorToolResultBlock as BetaAdvisorToolResultBlock, type BetaAdvisorToolResultBlockParam as BetaAdvisorToolResultBlockParam, type BetaAdvisorToolResultError as BetaAdvisorToolResultError, type BetaAdvisorToolResultErrorParam as BetaAdvisorToolResultErrorParam, type BetaAllThinkingTurns as BetaAllThinkingTurns, type BetaBase64ImageSource as BetaBase64ImageSource, type BetaBase64PDFSource as BetaBase64PDFSource, type BetaBashCodeExecutionOutputBlock as BetaBashCodeExecutionOutputBlock, type BetaBashCodeExecutionOutputBlockParam as BetaBashCodeExecutionOutputBlockParam, type BetaBashCodeExecutionResultBlock as BetaBashCodeExecutionResultBlock, type BetaBashCodeExecutionResultBlockParam as BetaBashCodeExecutionResultBlockParam, type BetaBashCodeExecutionToolResultBlock as BetaBashCodeExecutionToolResultBlock, type BetaBashCodeExecutionToolResultBlockParam as BetaBashCodeExecutionToolResultBlockParam, type BetaBashCodeExecutionToolResultError as BetaBashCodeExecutionToolResultError, type BetaBashCodeExecutionToolResultErrorParam as BetaBashCodeExecutionToolResultErrorParam, type BetaCacheControlEphemeral as BetaCacheControlEphemeral, type BetaCacheCreation as BetaCacheCreation, type BetaCacheMissMessagesChanged as BetaCacheMissMessagesChanged, type BetaCacheMissModelChanged as BetaCacheMissModelChanged, type BetaCacheMissPreviousMessageNotFound as BetaCacheMissPreviousMessageNotFound, type BetaCacheMissSystemChanged as BetaCacheMissSystemChanged, type BetaCacheMissToolsChanged as BetaCacheMissToolsChanged, type BetaCacheMissUnavailable as BetaCacheMissUnavailable, type BetaCitationCharLocation as BetaCitationCharLocation, type BetaCitationCharLocationParam as BetaCitationCharLocationParam, type BetaCitationConfig as BetaCitationConfig, type BetaCitationContentBlockLocation as BetaCitationContentBlockLocation, type BetaCitationContentBlockLocationParam as BetaCitationContentBlockLocationParam, type BetaCitationPageLocation as BetaCitationPageLocation, type BetaCitationPageLocationParam as BetaCitationPageLocationParam, type BetaCitationSearchResultLocation as BetaCitationSearchResultLocation, type BetaCitationSearchResultLocationParam as BetaCitationSearchResultLocationParam, type BetaCitationWebSearchResultLocationParam as BetaCitationWebSearchResultLocationParam, type BetaCitationsConfigParam as BetaCitationsConfigParam, type BetaCitationsDelta as BetaCitationsDelta, type BetaCitationsWebSearchResultLocation as BetaCitationsWebSearchResultLocation, type BetaClearThinking20251015Edit as BetaClearThinking20251015Edit, type BetaClearThinking20251015EditResponse as BetaClearThinking20251015EditResponse, type BetaClearToolUses20250919Edit as BetaClearToolUses20250919Edit, type BetaClearToolUses20250919EditResponse as BetaClearToolUses20250919EditResponse, type BetaCodeExecutionOutputBlock as BetaCodeExecutionOutputBlock, type BetaCodeExecutionOutputBlockParam as BetaCodeExecutionOutputBlockParam, type BetaCodeExecutionResultBlock as BetaCodeExecutionResultBlock, type BetaCodeExecutionResultBlockParam as BetaCodeExecutionResultBlockParam, type BetaCodeExecutionTool20250522 as BetaCodeExecutionTool20250522, type BetaCodeExecutionTool20250825 as BetaCodeExecutionTool20250825, type BetaCodeExecutionTool20260120 as BetaCodeExecutionTool20260120, type BetaCodeExecutionToolResultBlock as BetaCodeExecutionToolResultBlock, type BetaCodeExecutionToolResultBlockContent as BetaCodeExecutionToolResultBlockContent, type BetaCodeExecutionToolResultBlockParam as BetaCodeExecutionToolResultBlockParam, type BetaCodeExecutionToolResultBlockParamContent as BetaCodeExecutionToolResultBlockParamContent, type BetaCodeExecutionToolResultError as BetaCodeExecutionToolResultError, type BetaCodeExecutionToolResultErrorCode as BetaCodeExecutionToolResultErrorCode, type BetaCodeExecutionToolResultErrorParam as BetaCodeExecutionToolResultErrorParam, type BetaCompact20260112Edit as BetaCompact20260112Edit, type BetaCompactionBlock as BetaCompactionBlock, type BetaCompactionBlockParam as BetaCompactionBlockParam, type BetaCompactionContentBlockDelta as BetaCompactionContentBlockDelta, type BetaCompactionIterationUsage as BetaCompactionIterationUsage, type BetaContainer as BetaContainer, type BetaContainerParams as BetaContainerParams, type BetaContainerUploadBlock as BetaContainerUploadBlock, type BetaContainerUploadBlockParam as BetaContainerUploadBlockParam, type BetaContentBlock as BetaContentBlock, type BetaContentBlockParam as BetaContentBlockParam, type BetaContentBlockSource as BetaContentBlockSource, type BetaContentBlockSourceContent as BetaContentBlockSourceContent, type BetaContextManagementConfig as BetaContextManagementConfig, type BetaContextManagementResponse as BetaContextManagementResponse, type BetaCountTokensContextManagementResponse as BetaCountTokensContextManagementResponse, type BetaDiagnostics as BetaDiagnostics, type BetaDiagnosticsParam as BetaDiagnosticsParam, type BetaDirectCaller as BetaDirectCaller, type BetaDocumentBlock as BetaDocumentBlock, type BetaEncryptedCodeExecutionResultBlock as BetaEncryptedCodeExecutionResultBlock, type BetaEncryptedCodeExecutionResultBlockParam as BetaEncryptedCodeExecutionResultBlockParam, type BetaFallbackBlock as BetaFallbackBlock, type BetaFallbackBlockParam as BetaFallbackBlockParam, type BetaFallbackInfo as BetaFallbackInfo, type BetaFallbackInfoParam as BetaFallbackInfoParam, type BetaFallbackMessageIterationUsage as BetaFallbackMessageIterationUsage, type BetaFallbackParam as BetaFallbackParam, type BetaFileDocumentSource as BetaFileDocumentSource, type BetaFileImageSource as BetaFileImageSource, type BetaImageBlockParam as BetaImageBlockParam, type BetaInputJSONDelta as BetaInputJSONDelta, type BetaInputTokensClearAtLeast as BetaInputTokensClearAtLeast, type BetaInputTokensTrigger as BetaInputTokensTrigger, type BetaIterationsUsage as BetaIterationsUsage, type BetaJSONOutputFormat as BetaJSONOutputFormat, type BetaMCPToolConfig as BetaMCPToolConfig, type BetaMCPToolDefaultConfig as BetaMCPToolDefaultConfig, type BetaMCPToolResultBlock as BetaMCPToolResultBlock, type BetaMCPToolUseBlock as BetaMCPToolUseBlock, type BetaMCPToolUseBlockParam as BetaMCPToolUseBlockParam, type BetaMCPToolset as BetaMCPToolset, type BetaMemoryTool20250818 as BetaMemoryTool20250818, type BetaMemoryTool20250818Command as BetaMemoryTool20250818Command, type BetaMemoryTool20250818CreateCommand as BetaMemoryTool20250818CreateCommand, type BetaMemoryTool20250818DeleteCommand as BetaMemoryTool20250818DeleteCommand, type BetaMemoryTool20250818InsertCommand as BetaMemoryTool20250818InsertCommand, type BetaMemoryTool20250818RenameCommand as BetaMemoryTool20250818RenameCommand, type BetaMemoryTool20250818StrReplaceCommand as BetaMemoryTool20250818StrReplaceCommand, type BetaMemoryTool20250818ViewCommand as BetaMemoryTool20250818ViewCommand, type BetaMessage as BetaMessage, type BetaMessageDeltaUsage as BetaMessageDeltaUsage, type BetaMessageIterationUsage as BetaMessageIterationUsage, type BetaMessageParam as BetaMessageParam, type BetaMessageTokensCount as BetaMessageTokensCount, type BetaMetadata as BetaMetadata, type BetaMidConversationSystemBlockParam as BetaMidConversationSystemBlockParam, type BetaOutputConfig as BetaOutputConfig, type BetaOutputTokensDetails as BetaOutputTokensDetails, type BetaPlainTextSource as BetaPlainTextSource, type BetaRawContentBlockDelta as BetaRawContentBlockDelta, type BetaRawContentBlockDeltaEvent as BetaRawContentBlockDeltaEvent, type BetaRawContentBlockStartEvent as BetaRawContentBlockStartEvent, type BetaRawContentBlockStopEvent as BetaRawContentBlockStopEvent, type BetaRawMessageDeltaEvent as BetaRawMessageDeltaEvent, type BetaRawMessageStartEvent as BetaRawMessageStartEvent, type BetaRawMessageStopEvent as BetaRawMessageStopEvent, type BetaRawMessageStreamEvent as BetaRawMessageStreamEvent, type BetaRedactedThinkingBlock as BetaRedactedThinkingBlock, type BetaRedactedThinkingBlockParam as BetaRedactedThinkingBlockParam, type BetaRefusalStopDetails as BetaRefusalStopDetails, type BetaRequestDocumentBlock as BetaRequestDocumentBlock, type BetaRequestMCPServerToolConfiguration as BetaRequestMCPServerToolConfiguration, type BetaRequestMCPServerURLDefinition as BetaRequestMCPServerURLDefinition, type BetaRequestMCPToolResultBlockParam as BetaRequestMCPToolResultBlockParam, type BetaSearchResultBlockParam as BetaSearchResultBlockParam, type BetaServerToolCaller as BetaServerToolCaller, type BetaServerToolCaller20260120 as BetaServerToolCaller20260120, type BetaServerToolUsage as BetaServerToolUsage, type BetaServerToolUseBlock as BetaServerToolUseBlock, type BetaServerToolUseBlockParam as BetaServerToolUseBlockParam, type BetaSignatureDelta as BetaSignatureDelta, type BetaSkill as BetaSkill, type BetaSkillParams as BetaSkillParams, type BetaStopReason as BetaStopReason, type BetaTextBlock as BetaTextBlock, type BetaTextBlockParam as BetaTextBlockParam, type BetaTextCitation as BetaTextCitation, type BetaTextCitationParam as BetaTextCitationParam, type BetaTextDelta as BetaTextDelta, type BetaTextEditorCodeExecutionCreateResultBlock as BetaTextEditorCodeExecutionCreateResultBlock, type BetaTextEditorCodeExecutionCreateResultBlockParam as BetaTextEditorCodeExecutionCreateResultBlockParam, type BetaTextEditorCodeExecutionStrReplaceResultBlock as BetaTextEditorCodeExecutionStrReplaceResultBlock, type BetaTextEditorCodeExecutionStrReplaceResultBlockParam as BetaTextEditorCodeExecutionStrReplaceResultBlockParam, type BetaTextEditorCodeExecutionToolResultBlock as BetaTextEditorCodeExecutionToolResultBlock, type BetaTextEditorCodeExecutionToolResultBlockParam as BetaTextEditorCodeExecutionToolResultBlockParam, type BetaTextEditorCodeExecutionToolResultError as BetaTextEditorCodeExecutionToolResultError, type BetaTextEditorCodeExecutionToolResultErrorParam as BetaTextEditorCodeExecutionToolResultErrorParam, type BetaTextEditorCodeExecutionViewResultBlock as BetaTextEditorCodeExecutionViewResultBlock, type BetaTextEditorCodeExecutionViewResultBlockParam as BetaTextEditorCodeExecutionViewResultBlockParam, type BetaThinkingBlock as BetaThinkingBlock, type BetaThinkingBlockParam as BetaThinkingBlockParam, type BetaThinkingConfigAdaptive as BetaThinkingConfigAdaptive, type BetaThinkingConfigDisabled as BetaThinkingConfigDisabled, type BetaThinkingConfigEnabled as BetaThinkingConfigEnabled, type BetaThinkingConfigParam as BetaThinkingConfigParam, type BetaThinkingDelta as BetaThinkingDelta, type BetaThinkingTurns as BetaThinkingTurns, type BetaTokenTaskBudget as BetaTokenTaskBudget, type BetaTool as BetaTool, type BetaToolBash20241022 as BetaToolBash20241022, type BetaToolBash20250124 as BetaToolBash20250124, type BetaToolChoice as BetaToolChoice, type BetaToolChoiceAny as BetaToolChoiceAny, type BetaToolChoiceAuto as BetaToolChoiceAuto, type BetaToolChoiceNone as BetaToolChoiceNone, type BetaToolChoiceTool as BetaToolChoiceTool, type BetaToolComputerUse20241022 as BetaToolComputerUse20241022, type BetaToolComputerUse20250124 as BetaToolComputerUse20250124, type BetaToolComputerUse20251124 as BetaToolComputerUse20251124, type BetaToolReferenceBlock as BetaToolReferenceBlock, type BetaToolReferenceBlockParam as BetaToolReferenceBlockParam, type BetaToolResultBlockParam as BetaToolResultBlockParam, type BetaToolResultContentBlockParam as BetaToolResultContentBlockParam, type BetaToolSearchToolBm25_20251119 as BetaToolSearchToolBm25_20251119, type BetaToolSearchToolRegex20251119 as BetaToolSearchToolRegex20251119, type BetaToolSearchToolResultBlock as BetaToolSearchToolResultBlock, type BetaToolSearchToolResultBlockParam as BetaToolSearchToolResultBlockParam, type BetaToolSearchToolResultError as BetaToolSearchToolResultError, type BetaToolSearchToolResultErrorParam as BetaToolSearchToolResultErrorParam, type BetaToolSearchToolSearchResultBlock as BetaToolSearchToolSearchResultBlock, type BetaToolSearchToolSearchResultBlockParam as BetaToolSearchToolSearchResultBlockParam, type BetaToolTextEditor20241022 as BetaToolTextEditor20241022, type BetaToolTextEditor20250124 as BetaToolTextEditor20250124, type BetaToolTextEditor20250429 as BetaToolTextEditor20250429, type BetaToolTextEditor20250728 as BetaToolTextEditor20250728, type BetaToolUnion as BetaToolUnion, type BetaToolUseBlock as BetaToolUseBlock, type BetaToolUseBlockParam as BetaToolUseBlockParam, type BetaToolUsesKeep as BetaToolUsesKeep, type BetaToolUsesTrigger as BetaToolUsesTrigger, type BetaURLImageSource as BetaURLImageSource, type BetaURLPDFSource as BetaURLPDFSource, type BetaUsage as BetaUsage, type BetaUserLocation as BetaUserLocation, type BetaWebFetchBlock as BetaWebFetchBlock, type BetaWebFetchBlockParam as BetaWebFetchBlockParam, type BetaWebFetchTool20250910 as BetaWebFetchTool20250910, type BetaWebFetchTool20260209 as BetaWebFetchTool20260209, type BetaWebFetchTool20260309 as BetaWebFetchTool20260309, type BetaWebFetchToolResultBlock as BetaWebFetchToolResultBlock, type BetaWebFetchToolResultBlockParam as BetaWebFetchToolResultBlockParam, type BetaWebFetchToolResultErrorBlock as BetaWebFetchToolResultErrorBlock, type BetaWebFetchToolResultErrorBlockParam as BetaWebFetchToolResultErrorBlockParam, type BetaWebFetchToolResultErrorCode as BetaWebFetchToolResultErrorCode, type BetaWebSearchResultBlock as BetaWebSearchResultBlock, type BetaWebSearchResultBlockParam as BetaWebSearchResultBlockParam, type BetaWebSearchTool20250305 as BetaWebSearchTool20250305, type BetaWebSearchTool20260209 as BetaWebSearchTool20260209, type BetaWebSearchToolRequestError as BetaWebSearchToolRequestError, type BetaWebSearchToolResultBlock as BetaWebSearchToolResultBlock, type BetaWebSearchToolResultBlockContent as BetaWebSearchToolResultBlockContent, type BetaWebSearchToolResultBlockParam as BetaWebSearchToolResultBlockParam, type BetaWebSearchToolResultBlockParamContent as BetaWebSearchToolResultBlockParamContent, type BetaWebSearchToolResultError as BetaWebSearchToolResultError, type BetaWebSearchToolResultErrorCode as BetaWebSearchToolResultErrorCode, type BetaBase64PDFBlock as BetaBase64PDFBlock, type MessageCreateParams as MessageCreateParams, type MessageCreateParamsNonStreaming as MessageCreateParamsNonStreaming, type MessageCreateParamsStreaming as MessageCreateParamsStreaming, type MessageCountTokensParams as MessageCountTokensParams, };
3657
+ export { type BetaAdvisorMessageIterationUsage as BetaAdvisorMessageIterationUsage, type BetaAdvisorRedactedResultBlock as BetaAdvisorRedactedResultBlock, type BetaAdvisorRedactedResultBlockParam as BetaAdvisorRedactedResultBlockParam, type BetaAdvisorResultBlock as BetaAdvisorResultBlock, type BetaAdvisorResultBlockParam as BetaAdvisorResultBlockParam, type BetaAdvisorTool20260301 as BetaAdvisorTool20260301, type BetaAdvisorToolResultBlock as BetaAdvisorToolResultBlock, type BetaAdvisorToolResultBlockParam as BetaAdvisorToolResultBlockParam, type BetaAdvisorToolResultError as BetaAdvisorToolResultError, type BetaAdvisorToolResultErrorParam as BetaAdvisorToolResultErrorParam, type BetaAllThinkingTurns as BetaAllThinkingTurns, type BetaBase64ImageSource as BetaBase64ImageSource, type BetaBase64PDFSource as BetaBase64PDFSource, type BetaBashCodeExecutionOutputBlock as BetaBashCodeExecutionOutputBlock, type BetaBashCodeExecutionOutputBlockParam as BetaBashCodeExecutionOutputBlockParam, type BetaBashCodeExecutionResultBlock as BetaBashCodeExecutionResultBlock, type BetaBashCodeExecutionResultBlockParam as BetaBashCodeExecutionResultBlockParam, type BetaBashCodeExecutionToolResultBlock as BetaBashCodeExecutionToolResultBlock, type BetaBashCodeExecutionToolResultBlockParam as BetaBashCodeExecutionToolResultBlockParam, type BetaBashCodeExecutionToolResultError as BetaBashCodeExecutionToolResultError, type BetaBashCodeExecutionToolResultErrorParam as BetaBashCodeExecutionToolResultErrorParam, type BetaCacheControlEphemeral as BetaCacheControlEphemeral, type BetaCacheCreation as BetaCacheCreation, type BetaCacheMissMessagesChanged as BetaCacheMissMessagesChanged, type BetaCacheMissModelChanged as BetaCacheMissModelChanged, type BetaCacheMissPreviousMessageNotFound as BetaCacheMissPreviousMessageNotFound, type BetaCacheMissSystemChanged as BetaCacheMissSystemChanged, type BetaCacheMissToolsChanged as BetaCacheMissToolsChanged, type BetaCacheMissUnavailable as BetaCacheMissUnavailable, type BetaCitationCharLocation as BetaCitationCharLocation, type BetaCitationCharLocationParam as BetaCitationCharLocationParam, type BetaCitationConfig as BetaCitationConfig, type BetaCitationContentBlockLocation as BetaCitationContentBlockLocation, type BetaCitationContentBlockLocationParam as BetaCitationContentBlockLocationParam, type BetaCitationPageLocation as BetaCitationPageLocation, type BetaCitationPageLocationParam as BetaCitationPageLocationParam, type BetaCitationSearchResultLocation as BetaCitationSearchResultLocation, type BetaCitationSearchResultLocationParam as BetaCitationSearchResultLocationParam, type BetaCitationWebSearchResultLocationParam as BetaCitationWebSearchResultLocationParam, type BetaCitationsConfigParam as BetaCitationsConfigParam, type BetaCitationsDelta as BetaCitationsDelta, type BetaCitationsWebSearchResultLocation as BetaCitationsWebSearchResultLocation, type BetaClearThinking20251015Edit as BetaClearThinking20251015Edit, type BetaClearThinking20251015EditResponse as BetaClearThinking20251015EditResponse, type BetaClearToolUses20250919Edit as BetaClearToolUses20250919Edit, type BetaClearToolUses20250919EditResponse as BetaClearToolUses20250919EditResponse, type BetaCodeExecutionOutputBlock as BetaCodeExecutionOutputBlock, type BetaCodeExecutionOutputBlockParam as BetaCodeExecutionOutputBlockParam, type BetaCodeExecutionResultBlock as BetaCodeExecutionResultBlock, type BetaCodeExecutionResultBlockParam as BetaCodeExecutionResultBlockParam, type BetaCodeExecutionTool20250522 as BetaCodeExecutionTool20250522, type BetaCodeExecutionTool20250825 as BetaCodeExecutionTool20250825, type BetaCodeExecutionTool20260120 as BetaCodeExecutionTool20260120, type BetaCodeExecutionTool20260521 as BetaCodeExecutionTool20260521, type BetaCodeExecutionToolResultBlock as BetaCodeExecutionToolResultBlock, type BetaCodeExecutionToolResultBlockContent as BetaCodeExecutionToolResultBlockContent, type BetaCodeExecutionToolResultBlockParam as BetaCodeExecutionToolResultBlockParam, type BetaCodeExecutionToolResultBlockParamContent as BetaCodeExecutionToolResultBlockParamContent, type BetaCodeExecutionToolResultError as BetaCodeExecutionToolResultError, type BetaCodeExecutionToolResultErrorCode as BetaCodeExecutionToolResultErrorCode, type BetaCodeExecutionToolResultErrorParam as BetaCodeExecutionToolResultErrorParam, type BetaCompact20260112Edit as BetaCompact20260112Edit, type BetaCompactionBlock as BetaCompactionBlock, type BetaCompactionBlockParam as BetaCompactionBlockParam, type BetaCompactionContentBlockDelta as BetaCompactionContentBlockDelta, type BetaCompactionIterationUsage as BetaCompactionIterationUsage, type BetaContainer as BetaContainer, type BetaContainerParams as BetaContainerParams, type BetaContainerUploadBlock as BetaContainerUploadBlock, type BetaContainerUploadBlockParam as BetaContainerUploadBlockParam, type BetaContentBlock as BetaContentBlock, type BetaContentBlockParam as BetaContentBlockParam, type BetaContentBlockSource as BetaContentBlockSource, type BetaContentBlockSourceContent as BetaContentBlockSourceContent, type BetaContextManagementConfig as BetaContextManagementConfig, type BetaContextManagementResponse as BetaContextManagementResponse, type BetaCountTokensContextManagementResponse as BetaCountTokensContextManagementResponse, type BetaDiagnostics as BetaDiagnostics, type BetaDiagnosticsParam as BetaDiagnosticsParam, type BetaDirectCaller as BetaDirectCaller, type BetaDocumentBlock as BetaDocumentBlock, type BetaEncryptedCodeExecutionResultBlock as BetaEncryptedCodeExecutionResultBlock, type BetaEncryptedCodeExecutionResultBlockParam as BetaEncryptedCodeExecutionResultBlockParam, type BetaFallbackBlock as BetaFallbackBlock, type BetaFallbackBlockParam as BetaFallbackBlockParam, type BetaFallbackInfo as BetaFallbackInfo, type BetaFallbackInfoParam as BetaFallbackInfoParam, type BetaFallbackMessageIterationUsage as BetaFallbackMessageIterationUsage, type BetaFallbackParam as BetaFallbackParam, type BetaFallbackRefusalTrigger as BetaFallbackRefusalTrigger, type BetaFileDocumentSource as BetaFileDocumentSource, type BetaFileImageSource as BetaFileImageSource, type BetaImageBlockParam as BetaImageBlockParam, type BetaInputJSONDelta as BetaInputJSONDelta, type BetaInputTokensClearAtLeast as BetaInputTokensClearAtLeast, type BetaInputTokensTrigger as BetaInputTokensTrigger, type BetaIterationsUsage as BetaIterationsUsage, type BetaJSONOutputFormat as BetaJSONOutputFormat, type BetaMCPToolConfig as BetaMCPToolConfig, type BetaMCPToolDefaultConfig as BetaMCPToolDefaultConfig, type BetaMCPToolResultBlock as BetaMCPToolResultBlock, type BetaMCPToolUseBlock as BetaMCPToolUseBlock, type BetaMCPToolUseBlockParam as BetaMCPToolUseBlockParam, type BetaMCPToolset as BetaMCPToolset, type BetaMemoryTool20250818 as BetaMemoryTool20250818, type BetaMemoryTool20250818Command as BetaMemoryTool20250818Command, type BetaMemoryTool20250818CreateCommand as BetaMemoryTool20250818CreateCommand, type BetaMemoryTool20250818DeleteCommand as BetaMemoryTool20250818DeleteCommand, type BetaMemoryTool20250818InsertCommand as BetaMemoryTool20250818InsertCommand, type BetaMemoryTool20250818RenameCommand as BetaMemoryTool20250818RenameCommand, type BetaMemoryTool20250818StrReplaceCommand as BetaMemoryTool20250818StrReplaceCommand, type BetaMemoryTool20250818ViewCommand as BetaMemoryTool20250818ViewCommand, type BetaMessage as BetaMessage, type BetaMessageDeltaUsage as BetaMessageDeltaUsage, type BetaMessageIterationUsage as BetaMessageIterationUsage, type BetaMessageParam as BetaMessageParam, type BetaMessageTokensCount as BetaMessageTokensCount, type BetaMetadata as BetaMetadata, type BetaMidConversationSystemBlockParam as BetaMidConversationSystemBlockParam, type BetaOutputConfig as BetaOutputConfig, type BetaOutputTokensDetails as BetaOutputTokensDetails, type BetaPlainTextSource as BetaPlainTextSource, type BetaRawContentBlockDelta as BetaRawContentBlockDelta, type BetaRawContentBlockDeltaEvent as BetaRawContentBlockDeltaEvent, type BetaRawContentBlockStartEvent as BetaRawContentBlockStartEvent, type BetaRawContentBlockStopEvent as BetaRawContentBlockStopEvent, type BetaRawMessageDeltaEvent as BetaRawMessageDeltaEvent, type BetaRawMessageStartEvent as BetaRawMessageStartEvent, type BetaRawMessageStopEvent as BetaRawMessageStopEvent, type BetaRawMessageStreamEvent as BetaRawMessageStreamEvent, type BetaRedactedThinkingBlock as BetaRedactedThinkingBlock, type BetaRedactedThinkingBlockParam as BetaRedactedThinkingBlockParam, type BetaRefusalStopDetails as BetaRefusalStopDetails, type BetaRequestDocumentBlock as BetaRequestDocumentBlock, type BetaRequestMCPServerToolConfiguration as BetaRequestMCPServerToolConfiguration, type BetaRequestMCPServerURLDefinition as BetaRequestMCPServerURLDefinition, type BetaRequestMCPToolResultBlockParam as BetaRequestMCPToolResultBlockParam, type BetaSearchResultBlockParam as BetaSearchResultBlockParam, type BetaServerToolCaller as BetaServerToolCaller, type BetaServerToolCaller20260120 as BetaServerToolCaller20260120, type BetaServerToolUsage as BetaServerToolUsage, type BetaServerToolUseBlock as BetaServerToolUseBlock, type BetaServerToolUseBlockParam as BetaServerToolUseBlockParam, type BetaSignatureDelta as BetaSignatureDelta, type BetaSkill as BetaSkill, type BetaSkillParams as BetaSkillParams, type BetaStopReason as BetaStopReason, type BetaTextBlock as BetaTextBlock, type BetaTextBlockParam as BetaTextBlockParam, type BetaTextCitation as BetaTextCitation, type BetaTextCitationParam as BetaTextCitationParam, type BetaTextDelta as BetaTextDelta, type BetaTextEditorCodeExecutionCreateResultBlock as BetaTextEditorCodeExecutionCreateResultBlock, type BetaTextEditorCodeExecutionCreateResultBlockParam as BetaTextEditorCodeExecutionCreateResultBlockParam, type BetaTextEditorCodeExecutionStrReplaceResultBlock as BetaTextEditorCodeExecutionStrReplaceResultBlock, type BetaTextEditorCodeExecutionStrReplaceResultBlockParam as BetaTextEditorCodeExecutionStrReplaceResultBlockParam, type BetaTextEditorCodeExecutionToolResultBlock as BetaTextEditorCodeExecutionToolResultBlock, type BetaTextEditorCodeExecutionToolResultBlockParam as BetaTextEditorCodeExecutionToolResultBlockParam, type BetaTextEditorCodeExecutionToolResultError as BetaTextEditorCodeExecutionToolResultError, type BetaTextEditorCodeExecutionToolResultErrorParam as BetaTextEditorCodeExecutionToolResultErrorParam, type BetaTextEditorCodeExecutionViewResultBlock as BetaTextEditorCodeExecutionViewResultBlock, type BetaTextEditorCodeExecutionViewResultBlockParam as BetaTextEditorCodeExecutionViewResultBlockParam, type BetaThinkingBlock as BetaThinkingBlock, type BetaThinkingBlockParam as BetaThinkingBlockParam, type BetaThinkingConfigAdaptive as BetaThinkingConfigAdaptive, type BetaThinkingConfigDisabled as BetaThinkingConfigDisabled, type BetaThinkingConfigEnabled as BetaThinkingConfigEnabled, type BetaThinkingConfigParam as BetaThinkingConfigParam, type BetaThinkingDelta as BetaThinkingDelta, type BetaThinkingTurns as BetaThinkingTurns, type BetaTokenTaskBudget as BetaTokenTaskBudget, type BetaTool as BetaTool, type BetaToolBash20241022 as BetaToolBash20241022, type BetaToolBash20250124 as BetaToolBash20250124, type BetaToolChoice as BetaToolChoice, type BetaToolChoiceAny as BetaToolChoiceAny, type BetaToolChoiceAuto as BetaToolChoiceAuto, type BetaToolChoiceNone as BetaToolChoiceNone, type BetaToolChoiceTool as BetaToolChoiceTool, type BetaToolComputerUse20241022 as BetaToolComputerUse20241022, type BetaToolComputerUse20250124 as BetaToolComputerUse20250124, type BetaToolComputerUse20251124 as BetaToolComputerUse20251124, type BetaToolReferenceBlock as BetaToolReferenceBlock, type BetaToolReferenceBlockParam as BetaToolReferenceBlockParam, type BetaToolResultBlockParam as BetaToolResultBlockParam, type BetaToolResultContentBlockParam as BetaToolResultContentBlockParam, type BetaToolSearchToolBm25_20251119 as BetaToolSearchToolBm25_20251119, type BetaToolSearchToolRegex20251119 as BetaToolSearchToolRegex20251119, type BetaToolSearchToolResultBlock as BetaToolSearchToolResultBlock, type BetaToolSearchToolResultBlockParam as BetaToolSearchToolResultBlockParam, type BetaToolSearchToolResultError as BetaToolSearchToolResultError, type BetaToolSearchToolResultErrorParam as BetaToolSearchToolResultErrorParam, type BetaToolSearchToolSearchResultBlock as BetaToolSearchToolSearchResultBlock, type BetaToolSearchToolSearchResultBlockParam as BetaToolSearchToolSearchResultBlockParam, type BetaToolTextEditor20241022 as BetaToolTextEditor20241022, type BetaToolTextEditor20250124 as BetaToolTextEditor20250124, type BetaToolTextEditor20250429 as BetaToolTextEditor20250429, type BetaToolTextEditor20250728 as BetaToolTextEditor20250728, type BetaToolUnion as BetaToolUnion, type BetaToolUseBlock as BetaToolUseBlock, type BetaToolUseBlockParam as BetaToolUseBlockParam, type BetaToolUsesKeep as BetaToolUsesKeep, type BetaToolUsesTrigger as BetaToolUsesTrigger, type BetaURLImageSource as BetaURLImageSource, type BetaURLPDFSource as BetaURLPDFSource, type BetaUsage as BetaUsage, type BetaUserLocation as BetaUserLocation, type BetaWebFetchBlock as BetaWebFetchBlock, type BetaWebFetchBlockParam as BetaWebFetchBlockParam, type BetaWebFetchTool20250910 as BetaWebFetchTool20250910, type BetaWebFetchTool20260209 as BetaWebFetchTool20260209, type BetaWebFetchTool20260309 as BetaWebFetchTool20260309, type BetaWebFetchToolResultBlock as BetaWebFetchToolResultBlock, type BetaWebFetchToolResultBlockParam as BetaWebFetchToolResultBlockParam, type BetaWebFetchToolResultErrorBlock as BetaWebFetchToolResultErrorBlock, type BetaWebFetchToolResultErrorBlockParam as BetaWebFetchToolResultErrorBlockParam, type BetaWebFetchToolResultErrorCode as BetaWebFetchToolResultErrorCode, type BetaWebSearchResultBlock as BetaWebSearchResultBlock, type BetaWebSearchResultBlockParam as BetaWebSearchResultBlockParam, type BetaWebSearchTool20250305 as BetaWebSearchTool20250305, type BetaWebSearchTool20260209 as BetaWebSearchTool20260209, type BetaWebSearchToolRequestError as BetaWebSearchToolRequestError, type BetaWebSearchToolResultBlock as BetaWebSearchToolResultBlock, type BetaWebSearchToolResultBlockContent as BetaWebSearchToolResultBlockContent, type BetaWebSearchToolResultBlockParam as BetaWebSearchToolResultBlockParam, type BetaWebSearchToolResultBlockParamContent as BetaWebSearchToolResultBlockParamContent, type BetaWebSearchToolResultError as BetaWebSearchToolResultError, type BetaWebSearchToolResultErrorCode as BetaWebSearchToolResultErrorCode, type BetaBase64PDFBlock as BetaBase64PDFBlock, type MessageCreateParams as MessageCreateParams, type MessageCreateParamsNonStreaming as MessageCreateParamsNonStreaming, type MessageCreateParamsStreaming as MessageCreateParamsStreaming, type MessageCountTokensParams as MessageCountTokensParams, };
3615
3658
  export { type BetaToolRunnerParams, BetaToolRunner };
3616
3659
  export { ToolError };
3617
3660
  export { Batches as Batches, type BetaDeletedMessageBatch as BetaDeletedMessageBatch, type BetaMessageBatch as BetaMessageBatch, type BetaMessageBatchCanceledResult as BetaMessageBatchCanceledResult, type BetaMessageBatchErroredResult as BetaMessageBatchErroredResult, type BetaMessageBatchExpiredResult as BetaMessageBatchExpiredResult, type BetaMessageBatchIndividualResponse as BetaMessageBatchIndividualResponse, type BetaMessageBatchRequestCounts as BetaMessageBatchRequestCounts, type BetaMessageBatchResult as BetaMessageBatchResult, type BetaMessageBatchSucceededResult as BetaMessageBatchSucceededResult, type BetaMessageBatchesPage as BetaMessageBatchesPage, type BatchCreateParams as BatchCreateParams, type BatchRetrieveParams as BatchRetrieveParams, type BatchListParams as BatchListParams, type BatchDeleteParams as BatchDeleteParams, type BatchCancelParams as BatchCancelParams, type BatchResultsParams as BatchResultsParams, };