@anthropic-ai/sdk 0.70.1 → 0.71.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 (83) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +1 -1
  3. package/lib/tools/BetaToolRunner.d.mts +2 -0
  4. package/lib/tools/BetaToolRunner.d.mts.map +1 -1
  5. package/lib/tools/BetaToolRunner.d.ts +2 -0
  6. package/lib/tools/BetaToolRunner.d.ts.map +1 -1
  7. package/lib/tools/BetaToolRunner.js +88 -15
  8. package/lib/tools/BetaToolRunner.js.map +1 -1
  9. package/lib/tools/BetaToolRunner.mjs +88 -15
  10. package/lib/tools/BetaToolRunner.mjs.map +1 -1
  11. package/lib/tools/CompactionControl.d.mts +25 -0
  12. package/lib/tools/CompactionControl.d.mts.map +1 -0
  13. package/lib/tools/CompactionControl.d.ts +25 -0
  14. package/lib/tools/CompactionControl.d.ts.map +1 -0
  15. package/lib/tools/CompactionControl.js +28 -0
  16. package/lib/tools/CompactionControl.js.map +1 -0
  17. package/lib/tools/CompactionControl.mjs +25 -0
  18. package/lib/tools/CompactionControl.mjs.map +1 -0
  19. package/lib/tools/ToolRunner.js +1 -1
  20. package/lib/tools/ToolRunner.js.map +1 -1
  21. package/lib/tools/ToolRunner.mjs +1 -1
  22. package/lib/tools/ToolRunner.mjs.map +1 -1
  23. package/package.json +1 -1
  24. package/resources/beta/beta.d.mts +3 -3
  25. package/resources/beta/beta.d.mts.map +1 -1
  26. package/resources/beta/beta.d.ts +3 -3
  27. package/resources/beta/beta.d.ts.map +1 -1
  28. package/resources/beta/beta.js.map +1 -1
  29. package/resources/beta/beta.mjs.map +1 -1
  30. package/resources/beta/index.d.mts +1 -1
  31. package/resources/beta/index.d.mts.map +1 -1
  32. package/resources/beta/index.d.ts +1 -1
  33. package/resources/beta/index.d.ts.map +1 -1
  34. package/resources/beta/index.js.map +1 -1
  35. package/resources/beta/index.mjs.map +1 -1
  36. package/resources/beta/messages/batches.d.mts +288 -3
  37. package/resources/beta/messages/batches.d.mts.map +1 -1
  38. package/resources/beta/messages/batches.d.ts +288 -3
  39. package/resources/beta/messages/batches.d.ts.map +1 -1
  40. package/resources/beta/messages/batches.js.map +1 -1
  41. package/resources/beta/messages/batches.mjs.map +1 -1
  42. package/resources/beta/messages/index.d.mts +1 -1
  43. package/resources/beta/messages/index.d.mts.map +1 -1
  44. package/resources/beta/messages/index.d.ts +1 -1
  45. package/resources/beta/messages/index.d.ts.map +1 -1
  46. package/resources/beta/messages/index.js.map +1 -1
  47. package/resources/beta/messages/index.mjs.map +1 -1
  48. package/resources/beta/messages/messages.d.mts +344 -11
  49. package/resources/beta/messages/messages.d.mts.map +1 -1
  50. package/resources/beta/messages/messages.d.ts +344 -11
  51. package/resources/beta/messages/messages.d.ts.map +1 -1
  52. package/resources/beta/messages/messages.js +1 -1
  53. package/resources/beta/messages/messages.js.map +1 -1
  54. package/resources/beta/messages/messages.mjs +1 -1
  55. package/resources/beta/messages/messages.mjs.map +1 -1
  56. package/resources/completions.d.mts +1 -1
  57. package/resources/completions.d.ts +1 -1
  58. package/resources/messages/batches.d.mts +2 -2
  59. package/resources/messages/batches.d.ts +2 -2
  60. package/resources/messages/messages.d.mts +2 -2
  61. package/resources/messages/messages.d.mts.map +1 -1
  62. package/resources/messages/messages.d.ts +2 -2
  63. package/resources/messages/messages.d.ts.map +1 -1
  64. package/resources/messages/messages.js +1 -1
  65. package/resources/messages/messages.js.map +1 -1
  66. package/resources/messages/messages.mjs +1 -1
  67. package/resources/messages/messages.mjs.map +1 -1
  68. package/src/lib/tools/BetaToolRunner.ts +101 -15
  69. package/src/lib/tools/CompactionControl.ts +52 -0
  70. package/src/lib/tools/ToolRunner.ts +1 -1
  71. package/src/resources/beta/beta.ts +19 -2
  72. package/src/resources/beta/index.ts +18 -1
  73. package/src/resources/beta/messages/batches.ts +307 -3
  74. package/src/resources/beta/messages/index.ts +18 -1
  75. package/src/resources/beta/messages/messages.ts +462 -6
  76. package/src/resources/completions.ts +1 -1
  77. package/src/resources/messages/batches.ts +2 -2
  78. package/src/resources/messages/messages.ts +3 -1
  79. package/src/version.ts +1 -1
  80. package/version.d.mts +1 -1
  81. package/version.d.ts +1 -1
  82. package/version.js +1 -1
  83. package/version.mjs +1 -1
@@ -69,7 +69,7 @@ export declare class Messages extends APIResource {
69
69
  * const betaMessageTokensCount =
70
70
  * await client.beta.messages.countTokens({
71
71
  * messages: [{ content: 'string', role: 'user' }],
72
- * model: 'claude-sonnet-4-5',
72
+ * model: 'claude-opus-4-5-20251101',
73
73
  * });
74
74
  * ```
75
75
  */
@@ -347,10 +347,16 @@ export interface BetaCodeExecutionTool20250522 {
347
347
  */
348
348
  name: 'code_execution';
349
349
  type: 'code_execution_20250522';
350
+ allowed_callers?: Array<'direct' | 'code_execution_20250825'>;
350
351
  /**
351
352
  * Create a cache control breakpoint at this content block.
352
353
  */
353
354
  cache_control?: BetaCacheControlEphemeral | null;
355
+ /**
356
+ * If true, tool will not be included in initial system prompt. Only loaded when
357
+ * returned via tool_reference from tool search.
358
+ */
359
+ defer_loading?: boolean;
354
360
  strict?: boolean;
355
361
  }
356
362
  export interface BetaCodeExecutionTool20250825 {
@@ -361,10 +367,16 @@ export interface BetaCodeExecutionTool20250825 {
361
367
  */
362
368
  name: 'code_execution';
363
369
  type: 'code_execution_20250825';
370
+ allowed_callers?: Array<'direct' | 'code_execution_20250825'>;
364
371
  /**
365
372
  * Create a cache control breakpoint at this content block.
366
373
  */
367
374
  cache_control?: BetaCacheControlEphemeral | null;
375
+ /**
376
+ * If true, tool will not be included in initial system prompt. Only loaded when
377
+ * returned via tool_reference from tool search.
378
+ */
379
+ defer_loading?: boolean;
368
380
  strict?: boolean;
369
381
  }
370
382
  export interface BetaCodeExecutionToolResultBlock {
@@ -445,11 +457,11 @@ export interface BetaContainerUploadBlockParam {
445
457
  /**
446
458
  * Response model for a file uploaded to the container.
447
459
  */
448
- export type BetaContentBlock = BetaTextBlock | BetaThinkingBlock | BetaRedactedThinkingBlock | BetaToolUseBlock | BetaServerToolUseBlock | BetaWebSearchToolResultBlock | BetaWebFetchToolResultBlock | BetaCodeExecutionToolResultBlock | BetaBashCodeExecutionToolResultBlock | BetaTextEditorCodeExecutionToolResultBlock | BetaMCPToolUseBlock | BetaMCPToolResultBlock | BetaContainerUploadBlock;
460
+ export type BetaContentBlock = BetaTextBlock | BetaThinkingBlock | BetaRedactedThinkingBlock | BetaToolUseBlock | BetaServerToolUseBlock | BetaWebSearchToolResultBlock | BetaWebFetchToolResultBlock | BetaCodeExecutionToolResultBlock | BetaBashCodeExecutionToolResultBlock | BetaTextEditorCodeExecutionToolResultBlock | BetaToolSearchToolResultBlock | BetaMCPToolUseBlock | BetaMCPToolResultBlock | BetaContainerUploadBlock;
449
461
  /**
450
462
  * Regular text content.
451
463
  */
452
- export type BetaContentBlockParam = BetaTextBlockParam | BetaImageBlockParam | BetaRequestDocumentBlock | BetaSearchResultBlockParam | BetaThinkingBlockParam | BetaRedactedThinkingBlockParam | BetaToolUseBlockParam | BetaToolResultBlockParam | BetaServerToolUseBlockParam | BetaWebSearchToolResultBlockParam | BetaWebFetchToolResultBlockParam | BetaCodeExecutionToolResultBlockParam | BetaBashCodeExecutionToolResultBlockParam | BetaTextEditorCodeExecutionToolResultBlockParam | BetaMCPToolUseBlockParam | BetaRequestMCPToolResultBlockParam | BetaContainerUploadBlockParam;
464
+ export type BetaContentBlockParam = BetaTextBlockParam | BetaImageBlockParam | BetaRequestDocumentBlock | BetaSearchResultBlockParam | BetaThinkingBlockParam | BetaRedactedThinkingBlockParam | BetaToolUseBlockParam | BetaToolResultBlockParam | BetaServerToolUseBlockParam | BetaWebSearchToolResultBlockParam | BetaWebFetchToolResultBlockParam | BetaCodeExecutionToolResultBlockParam | BetaBashCodeExecutionToolResultBlockParam | BetaTextEditorCodeExecutionToolResultBlockParam | BetaToolSearchToolResultBlockParam | BetaMCPToolUseBlockParam | BetaRequestMCPToolResultBlockParam | BetaContainerUploadBlockParam;
453
465
  export interface BetaContentBlockSource {
454
466
  content: string | Array<BetaContentBlockSourceContent>;
455
467
  type: 'content';
@@ -473,6 +485,12 @@ export interface BetaCountTokensContextManagementResponse {
473
485
  */
474
486
  original_input_tokens: number;
475
487
  }
488
+ /**
489
+ * Tool invocation directly from the model.
490
+ */
491
+ export interface BetaDirectCaller {
492
+ type: 'direct';
493
+ }
476
494
  export interface BetaDocumentBlock {
477
495
  /**
478
496
  * Citation configuration for the document
@@ -522,6 +540,20 @@ export interface BetaJSONOutputFormat {
522
540
  };
523
541
  type: 'json_schema';
524
542
  }
543
+ /**
544
+ * Configuration for a specific tool in an MCP toolset.
545
+ */
546
+ export interface BetaMCPToolConfig {
547
+ defer_loading?: boolean;
548
+ enabled?: boolean;
549
+ }
550
+ /**
551
+ * Default configuration for tools in an MCP toolset.
552
+ */
553
+ export interface BetaMCPToolDefaultConfig {
554
+ defer_loading?: boolean;
555
+ enabled?: boolean;
556
+ }
525
557
  export interface BetaMCPToolResultBlock {
526
558
  content: string | Array<BetaTextBlock>;
527
559
  is_error: boolean;
@@ -555,6 +587,33 @@ export interface BetaMCPToolUseBlockParam {
555
587
  */
556
588
  cache_control?: BetaCacheControlEphemeral | null;
557
589
  }
590
+ /**
591
+ * Configuration for a group of tools from an MCP server.
592
+ *
593
+ * Allows configuring enabled status and defer_loading for all tools from an MCP
594
+ * server, with optional per-tool overrides.
595
+ */
596
+ export interface BetaMCPToolset {
597
+ /**
598
+ * Name of the MCP server to configure tools for
599
+ */
600
+ mcp_server_name: string;
601
+ type: 'mcp_toolset';
602
+ /**
603
+ * Create a cache control breakpoint at this content block.
604
+ */
605
+ cache_control?: BetaCacheControlEphemeral | null;
606
+ /**
607
+ * Configuration overrides for specific tools, keyed by tool name
608
+ */
609
+ configs?: {
610
+ [key: string]: BetaMCPToolConfig;
611
+ } | null;
612
+ /**
613
+ * Default configuration applied to all tools from this server
614
+ */
615
+ default_config?: BetaMCPToolDefaultConfig;
616
+ }
558
617
  export interface BetaMemoryTool20250818 {
559
618
  /**
560
619
  * Name of the tool.
@@ -563,10 +622,19 @@ export interface BetaMemoryTool20250818 {
563
622
  */
564
623
  name: 'memory';
565
624
  type: 'memory_20250818';
625
+ allowed_callers?: Array<'direct' | 'code_execution_20250825'>;
566
626
  /**
567
627
  * Create a cache control breakpoint at this content block.
568
628
  */
569
629
  cache_control?: BetaCacheControlEphemeral | null;
630
+ /**
631
+ * If true, tool will not be included in initial system prompt. Only loaded when
632
+ * returned via tool_reference from tool search.
633
+ */
634
+ defer_loading?: boolean;
635
+ input_examples?: Array<{
636
+ [key: string]: unknown;
637
+ }>;
570
638
  strict?: boolean;
571
639
  }
572
640
  export type BetaMemoryTool20250818Command = BetaMemoryTool20250818ViewCommand | BetaMemoryTool20250818CreateCommand | BetaMemoryTool20250818StrReplaceCommand | BetaMemoryTool20250818InsertCommand | BetaMemoryTool20250818DeleteCommand | BetaMemoryTool20250818RenameCommand;
@@ -820,6 +888,12 @@ export interface BetaMetadata {
820
888
  */
821
889
  user_id?: string | null;
822
890
  }
891
+ export interface BetaOutputConfig {
892
+ /**
893
+ * All possible effort levels.
894
+ */
895
+ effort?: 'low' | 'medium' | 'high' | null;
896
+ }
823
897
  export interface BetaPlainTextSource {
824
898
  data: string;
825
899
  media_type: 'text/plain';
@@ -835,7 +909,7 @@ export interface BetaRawContentBlockStartEvent {
835
909
  /**
836
910
  * Response model for a file uploaded to the container.
837
911
  */
838
- content_block: BetaTextBlock | BetaThinkingBlock | BetaRedactedThinkingBlock | BetaToolUseBlock | BetaServerToolUseBlock | BetaWebSearchToolResultBlock | BetaWebFetchToolResultBlock | BetaCodeExecutionToolResultBlock | BetaBashCodeExecutionToolResultBlock | BetaTextEditorCodeExecutionToolResultBlock | BetaMCPToolUseBlock | BetaMCPToolResultBlock | BetaContainerUploadBlock;
912
+ content_block: BetaTextBlock | BetaThinkingBlock | BetaRedactedThinkingBlock | BetaToolUseBlock | BetaServerToolUseBlock | BetaWebSearchToolResultBlock | BetaWebFetchToolResultBlock | BetaCodeExecutionToolResultBlock | BetaBashCodeExecutionToolResultBlock | BetaTextEditorCodeExecutionToolResultBlock | BetaToolSearchToolResultBlock | BetaMCPToolUseBlock | BetaMCPToolResultBlock | BetaContainerUploadBlock;
839
913
  index: number;
840
914
  type: 'content_block_start';
841
915
  }
@@ -939,6 +1013,13 @@ export interface BetaSearchResultBlockParam {
939
1013
  cache_control?: BetaCacheControlEphemeral | null;
940
1014
  citations?: BetaCitationsConfigParam;
941
1015
  }
1016
+ /**
1017
+ * Tool invocation generated by a server-side tool.
1018
+ */
1019
+ export interface BetaServerToolCaller {
1020
+ tool_id: string;
1021
+ type: 'code_execution_20250825';
1022
+ }
942
1023
  export interface BetaServerToolUsage {
943
1024
  /**
944
1025
  * The number of web fetch tool requests.
@@ -951,19 +1032,29 @@ export interface BetaServerToolUsage {
951
1032
  }
952
1033
  export interface BetaServerToolUseBlock {
953
1034
  id: string;
954
- input: unknown;
955
- name: 'web_search' | 'web_fetch' | 'code_execution' | 'bash_code_execution' | 'text_editor_code_execution';
1035
+ /**
1036
+ * Tool invocation directly from the model.
1037
+ */
1038
+ caller: BetaDirectCaller | BetaServerToolCaller;
1039
+ input: {
1040
+ [key: string]: unknown;
1041
+ };
1042
+ name: 'web_search' | 'web_fetch' | 'code_execution' | 'bash_code_execution' | 'text_editor_code_execution' | 'tool_search_tool_regex' | 'tool_search_tool_bm25';
956
1043
  type: 'server_tool_use';
957
1044
  }
958
1045
  export interface BetaServerToolUseBlockParam {
959
1046
  id: string;
960
1047
  input: unknown;
961
- name: 'web_search' | 'web_fetch' | 'code_execution' | 'bash_code_execution' | 'text_editor_code_execution';
1048
+ name: 'web_search' | 'web_fetch' | 'code_execution' | 'bash_code_execution' | 'text_editor_code_execution' | 'tool_search_tool_regex' | 'tool_search_tool_bm25';
962
1049
  type: 'server_tool_use';
963
1050
  /**
964
1051
  * Create a cache control breakpoint at this content block.
965
1052
  */
966
1053
  cache_control?: BetaCacheControlEphemeral | null;
1054
+ /**
1055
+ * Tool invocation directly from the model.
1056
+ */
1057
+ caller?: BetaDirectCaller | BetaServerToolCaller;
967
1058
  }
968
1059
  export interface BetaSignatureDelta {
969
1060
  signature: string;
@@ -1157,10 +1248,16 @@ export interface BetaTool {
1157
1248
  * This is how the tool will be called by the model and in `tool_use` blocks.
1158
1249
  */
1159
1250
  name: string;
1251
+ allowed_callers?: Array<'direct' | 'code_execution_20250825'>;
1160
1252
  /**
1161
1253
  * Create a cache control breakpoint at this content block.
1162
1254
  */
1163
1255
  cache_control?: BetaCacheControlEphemeral | null;
1256
+ /**
1257
+ * If true, tool will not be included in initial system prompt. Only loaded when
1258
+ * returned via tool_reference from tool search.
1259
+ */
1260
+ defer_loading?: boolean;
1164
1261
  /**
1165
1262
  * Description of what this tool does.
1166
1263
  *
@@ -1170,6 +1267,9 @@ export interface BetaTool {
1170
1267
  * aspects of the tool input JSON schema.
1171
1268
  */
1172
1269
  description?: string;
1270
+ input_examples?: Array<{
1271
+ [key: string]: unknown;
1272
+ }>;
1173
1273
  strict?: boolean;
1174
1274
  type?: 'custom' | null;
1175
1275
  }
@@ -1195,10 +1295,19 @@ export interface BetaToolBash20241022 {
1195
1295
  */
1196
1296
  name: 'bash';
1197
1297
  type: 'bash_20241022';
1298
+ allowed_callers?: Array<'direct' | 'code_execution_20250825'>;
1198
1299
  /**
1199
1300
  * Create a cache control breakpoint at this content block.
1200
1301
  */
1201
1302
  cache_control?: BetaCacheControlEphemeral | null;
1303
+ /**
1304
+ * If true, tool will not be included in initial system prompt. Only loaded when
1305
+ * returned via tool_reference from tool search.
1306
+ */
1307
+ defer_loading?: boolean;
1308
+ input_examples?: Array<{
1309
+ [key: string]: unknown;
1310
+ }>;
1202
1311
  strict?: boolean;
1203
1312
  }
1204
1313
  export interface BetaToolBash20250124 {
@@ -1209,10 +1318,19 @@ export interface BetaToolBash20250124 {
1209
1318
  */
1210
1319
  name: 'bash';
1211
1320
  type: 'bash_20250124';
1321
+ allowed_callers?: Array<'direct' | 'code_execution_20250825'>;
1212
1322
  /**
1213
1323
  * Create a cache control breakpoint at this content block.
1214
1324
  */
1215
1325
  cache_control?: BetaCacheControlEphemeral | null;
1326
+ /**
1327
+ * If true, tool will not be included in initial system prompt. Only loaded when
1328
+ * returned via tool_reference from tool search.
1329
+ */
1330
+ defer_loading?: boolean;
1331
+ input_examples?: Array<{
1332
+ [key: string]: unknown;
1333
+ }>;
1216
1334
  strict?: boolean;
1217
1335
  }
1218
1336
  /**
@@ -1285,14 +1403,23 @@ export interface BetaToolComputerUse20241022 {
1285
1403
  */
1286
1404
  name: 'computer';
1287
1405
  type: 'computer_20241022';
1406
+ allowed_callers?: Array<'direct' | 'code_execution_20250825'>;
1288
1407
  /**
1289
1408
  * Create a cache control breakpoint at this content block.
1290
1409
  */
1291
1410
  cache_control?: BetaCacheControlEphemeral | null;
1411
+ /**
1412
+ * If true, tool will not be included in initial system prompt. Only loaded when
1413
+ * returned via tool_reference from tool search.
1414
+ */
1415
+ defer_loading?: boolean;
1292
1416
  /**
1293
1417
  * The X11 display number (e.g. 0, 1) for the display.
1294
1418
  */
1295
1419
  display_number?: number | null;
1420
+ input_examples?: Array<{
1421
+ [key: string]: unknown;
1422
+ }>;
1296
1423
  strict?: boolean;
1297
1424
  }
1298
1425
  export interface BetaToolComputerUse20250124 {
@@ -1311,16 +1438,79 @@ export interface BetaToolComputerUse20250124 {
1311
1438
  */
1312
1439
  name: 'computer';
1313
1440
  type: 'computer_20250124';
1441
+ allowed_callers?: Array<'direct' | 'code_execution_20250825'>;
1442
+ /**
1443
+ * Create a cache control breakpoint at this content block.
1444
+ */
1445
+ cache_control?: BetaCacheControlEphemeral | null;
1446
+ /**
1447
+ * If true, tool will not be included in initial system prompt. Only loaded when
1448
+ * returned via tool_reference from tool search.
1449
+ */
1450
+ defer_loading?: boolean;
1451
+ /**
1452
+ * The X11 display number (e.g. 0, 1) for the display.
1453
+ */
1454
+ display_number?: number | null;
1455
+ input_examples?: Array<{
1456
+ [key: string]: unknown;
1457
+ }>;
1458
+ strict?: boolean;
1459
+ }
1460
+ export interface BetaToolComputerUse20251124 {
1461
+ /**
1462
+ * The height of the display in pixels.
1463
+ */
1464
+ display_height_px: number;
1465
+ /**
1466
+ * The width of the display in pixels.
1467
+ */
1468
+ display_width_px: number;
1469
+ /**
1470
+ * Name of the tool.
1471
+ *
1472
+ * This is how the tool will be called by the model and in `tool_use` blocks.
1473
+ */
1474
+ name: 'computer';
1475
+ type: 'computer_20251124';
1476
+ allowed_callers?: Array<'direct' | 'code_execution_20250825'>;
1314
1477
  /**
1315
1478
  * Create a cache control breakpoint at this content block.
1316
1479
  */
1317
1480
  cache_control?: BetaCacheControlEphemeral | null;
1481
+ /**
1482
+ * If true, tool will not be included in initial system prompt. Only loaded when
1483
+ * returned via tool_reference from tool search.
1484
+ */
1485
+ defer_loading?: boolean;
1318
1486
  /**
1319
1487
  * The X11 display number (e.g. 0, 1) for the display.
1320
1488
  */
1321
1489
  display_number?: number | null;
1490
+ /**
1491
+ * Whether to enable an action to take a zoomed-in screenshot of the screen.
1492
+ */
1493
+ enable_zoom?: boolean;
1494
+ input_examples?: Array<{
1495
+ [key: string]: unknown;
1496
+ }>;
1322
1497
  strict?: boolean;
1323
1498
  }
1499
+ export interface BetaToolReferenceBlock {
1500
+ tool_name: string;
1501
+ type: 'tool_reference';
1502
+ }
1503
+ /**
1504
+ * Tool reference block that can be included in tool_result content.
1505
+ */
1506
+ export interface BetaToolReferenceBlockParam {
1507
+ tool_name: string;
1508
+ type: 'tool_reference';
1509
+ /**
1510
+ * Create a cache control breakpoint at this content block.
1511
+ */
1512
+ cache_control?: BetaCacheControlEphemeral | null;
1513
+ }
1324
1514
  export interface BetaToolResultBlockParam {
1325
1515
  tool_use_id: string;
1326
1516
  type: 'tool_result';
@@ -1328,9 +1518,80 @@ export interface BetaToolResultBlockParam {
1328
1518
  * Create a cache control breakpoint at this content block.
1329
1519
  */
1330
1520
  cache_control?: BetaCacheControlEphemeral | null;
1331
- content?: string | Array<BetaTextBlockParam | BetaImageBlockParam | BetaSearchResultBlockParam | BetaRequestDocumentBlock>;
1521
+ content?: string | Array<BetaTextBlockParam | BetaImageBlockParam | BetaSearchResultBlockParam | BetaRequestDocumentBlock | BetaToolReferenceBlockParam>;
1332
1522
  is_error?: boolean;
1333
1523
  }
1524
+ export interface BetaToolSearchToolBm25_20251119 {
1525
+ /**
1526
+ * Name of the tool.
1527
+ *
1528
+ * This is how the tool will be called by the model and in `tool_use` blocks.
1529
+ */
1530
+ name: 'tool_search_tool_bm25';
1531
+ type: 'tool_search_tool_bm25_20251119' | 'tool_search_tool_bm25';
1532
+ allowed_callers?: Array<'direct' | 'code_execution_20250825'>;
1533
+ /**
1534
+ * Create a cache control breakpoint at this content block.
1535
+ */
1536
+ cache_control?: BetaCacheControlEphemeral | null;
1537
+ /**
1538
+ * If true, tool will not be included in initial system prompt. Only loaded when
1539
+ * returned via tool_reference from tool search.
1540
+ */
1541
+ defer_loading?: boolean;
1542
+ strict?: boolean;
1543
+ }
1544
+ export interface BetaToolSearchToolRegex20251119 {
1545
+ /**
1546
+ * Name of the tool.
1547
+ *
1548
+ * This is how the tool will be called by the model and in `tool_use` blocks.
1549
+ */
1550
+ name: 'tool_search_tool_regex';
1551
+ type: 'tool_search_tool_regex_20251119' | 'tool_search_tool_regex';
1552
+ allowed_callers?: Array<'direct' | 'code_execution_20250825'>;
1553
+ /**
1554
+ * Create a cache control breakpoint at this content block.
1555
+ */
1556
+ cache_control?: BetaCacheControlEphemeral | null;
1557
+ /**
1558
+ * If true, tool will not be included in initial system prompt. Only loaded when
1559
+ * returned via tool_reference from tool search.
1560
+ */
1561
+ defer_loading?: boolean;
1562
+ strict?: boolean;
1563
+ }
1564
+ export interface BetaToolSearchToolResultBlock {
1565
+ content: BetaToolSearchToolResultError | BetaToolSearchToolSearchResultBlock;
1566
+ tool_use_id: string;
1567
+ type: 'tool_search_tool_result';
1568
+ }
1569
+ export interface BetaToolSearchToolResultBlockParam {
1570
+ content: BetaToolSearchToolResultErrorParam | BetaToolSearchToolSearchResultBlockParam;
1571
+ tool_use_id: string;
1572
+ type: 'tool_search_tool_result';
1573
+ /**
1574
+ * Create a cache control breakpoint at this content block.
1575
+ */
1576
+ cache_control?: BetaCacheControlEphemeral | null;
1577
+ }
1578
+ export interface BetaToolSearchToolResultError {
1579
+ error_code: 'invalid_tool_input' | 'unavailable' | 'too_many_requests' | 'execution_time_exceeded';
1580
+ error_message: string | null;
1581
+ type: 'tool_search_tool_result_error';
1582
+ }
1583
+ export interface BetaToolSearchToolResultErrorParam {
1584
+ error_code: 'invalid_tool_input' | 'unavailable' | 'too_many_requests' | 'execution_time_exceeded';
1585
+ type: 'tool_search_tool_result_error';
1586
+ }
1587
+ export interface BetaToolSearchToolSearchResultBlock {
1588
+ tool_references: Array<BetaToolReferenceBlock>;
1589
+ type: 'tool_search_tool_search_result';
1590
+ }
1591
+ export interface BetaToolSearchToolSearchResultBlockParam {
1592
+ tool_references: Array<BetaToolReferenceBlockParam>;
1593
+ type: 'tool_search_tool_search_result';
1594
+ }
1334
1595
  export type BetaToolResultContentBlockParam = Extract<BetaToolResultBlockParam['content'], any[]>[number];
1335
1596
  export interface BetaToolTextEditor20241022 {
1336
1597
  /**
@@ -1340,10 +1601,19 @@ export interface BetaToolTextEditor20241022 {
1340
1601
  */
1341
1602
  name: 'str_replace_editor';
1342
1603
  type: 'text_editor_20241022';
1604
+ allowed_callers?: Array<'direct' | 'code_execution_20250825'>;
1343
1605
  /**
1344
1606
  * Create a cache control breakpoint at this content block.
1345
1607
  */
1346
1608
  cache_control?: BetaCacheControlEphemeral | null;
1609
+ /**
1610
+ * If true, tool will not be included in initial system prompt. Only loaded when
1611
+ * returned via tool_reference from tool search.
1612
+ */
1613
+ defer_loading?: boolean;
1614
+ input_examples?: Array<{
1615
+ [key: string]: unknown;
1616
+ }>;
1347
1617
  strict?: boolean;
1348
1618
  }
1349
1619
  export interface BetaToolTextEditor20250124 {
@@ -1354,10 +1624,19 @@ export interface BetaToolTextEditor20250124 {
1354
1624
  */
1355
1625
  name: 'str_replace_editor';
1356
1626
  type: 'text_editor_20250124';
1627
+ allowed_callers?: Array<'direct' | 'code_execution_20250825'>;
1357
1628
  /**
1358
1629
  * Create a cache control breakpoint at this content block.
1359
1630
  */
1360
1631
  cache_control?: BetaCacheControlEphemeral | null;
1632
+ /**
1633
+ * If true, tool will not be included in initial system prompt. Only loaded when
1634
+ * returned via tool_reference from tool search.
1635
+ */
1636
+ defer_loading?: boolean;
1637
+ input_examples?: Array<{
1638
+ [key: string]: unknown;
1639
+ }>;
1361
1640
  strict?: boolean;
1362
1641
  }
1363
1642
  export interface BetaToolTextEditor20250429 {
@@ -1368,10 +1647,19 @@ export interface BetaToolTextEditor20250429 {
1368
1647
  */
1369
1648
  name: 'str_replace_based_edit_tool';
1370
1649
  type: 'text_editor_20250429';
1650
+ allowed_callers?: Array<'direct' | 'code_execution_20250825'>;
1371
1651
  /**
1372
1652
  * Create a cache control breakpoint at this content block.
1373
1653
  */
1374
1654
  cache_control?: BetaCacheControlEphemeral | null;
1655
+ /**
1656
+ * If true, tool will not be included in initial system prompt. Only loaded when
1657
+ * returned via tool_reference from tool search.
1658
+ */
1659
+ defer_loading?: boolean;
1660
+ input_examples?: Array<{
1661
+ [key: string]: unknown;
1662
+ }>;
1375
1663
  strict?: boolean;
1376
1664
  }
1377
1665
  export interface BetaToolTextEditor20250728 {
@@ -1382,10 +1670,19 @@ export interface BetaToolTextEditor20250728 {
1382
1670
  */
1383
1671
  name: 'str_replace_based_edit_tool';
1384
1672
  type: 'text_editor_20250728';
1673
+ allowed_callers?: Array<'direct' | 'code_execution_20250825'>;
1385
1674
  /**
1386
1675
  * Create a cache control breakpoint at this content block.
1387
1676
  */
1388
1677
  cache_control?: BetaCacheControlEphemeral | null;
1678
+ /**
1679
+ * If true, tool will not be included in initial system prompt. Only loaded when
1680
+ * returned via tool_reference from tool search.
1681
+ */
1682
+ defer_loading?: boolean;
1683
+ input_examples?: Array<{
1684
+ [key: string]: unknown;
1685
+ }>;
1389
1686
  /**
1390
1687
  * Maximum number of characters to display when viewing a file. If not specified,
1391
1688
  * defaults to displaying the full file.
@@ -1393,12 +1690,22 @@ export interface BetaToolTextEditor20250728 {
1393
1690
  max_characters?: number | null;
1394
1691
  strict?: boolean;
1395
1692
  }
1396
- export type BetaToolUnion = BetaTool | BetaToolBash20241022 | BetaToolBash20250124 | BetaCodeExecutionTool20250522 | BetaCodeExecutionTool20250825 | BetaToolComputerUse20241022 | BetaMemoryTool20250818 | BetaToolComputerUse20250124 | BetaToolTextEditor20241022 | BetaToolTextEditor20250124 | BetaToolTextEditor20250429 | BetaToolTextEditor20250728 | BetaWebSearchTool20250305 | BetaWebFetchTool20250910;
1693
+ /**
1694
+ * Configuration for a group of tools from an MCP server.
1695
+ *
1696
+ * Allows configuring enabled status and defer_loading for all tools from an MCP
1697
+ * server, with optional per-tool overrides.
1698
+ */
1699
+ export type BetaToolUnion = BetaTool | BetaToolBash20241022 | BetaToolBash20250124 | BetaCodeExecutionTool20250522 | BetaCodeExecutionTool20250825 | BetaToolComputerUse20241022 | BetaMemoryTool20250818 | BetaToolComputerUse20250124 | BetaToolTextEditor20241022 | BetaToolComputerUse20251124 | BetaToolTextEditor20250124 | BetaToolTextEditor20250429 | BetaToolTextEditor20250728 | BetaWebSearchTool20250305 | BetaWebFetchTool20250910 | BetaToolSearchToolBm25_20251119 | BetaToolSearchToolRegex20251119 | BetaMCPToolset;
1397
1700
  export interface BetaToolUseBlock {
1398
1701
  id: string;
1399
1702
  input: unknown;
1400
1703
  name: string;
1401
1704
  type: 'tool_use';
1705
+ /**
1706
+ * Tool invocation directly from the model.
1707
+ */
1708
+ caller?: BetaDirectCaller | BetaServerToolCaller;
1402
1709
  }
1403
1710
  export interface BetaToolUseBlockParam {
1404
1711
  id: string;
@@ -1409,6 +1716,10 @@ export interface BetaToolUseBlockParam {
1409
1716
  * Create a cache control breakpoint at this content block.
1410
1717
  */
1411
1718
  cache_control?: BetaCacheControlEphemeral | null;
1719
+ /**
1720
+ * Tool invocation directly from the model.
1721
+ */
1722
+ caller?: BetaDirectCaller | BetaServerToolCaller;
1412
1723
  }
1413
1724
  export interface BetaToolUsesKeep {
1414
1725
  type: 'tool_uses';
@@ -1488,6 +1799,7 @@ export interface BetaWebFetchTool20250910 {
1488
1799
  */
1489
1800
  name: 'web_fetch';
1490
1801
  type: 'web_fetch_20250910';
1802
+ allowed_callers?: Array<'direct' | 'code_execution_20250825'>;
1491
1803
  /**
1492
1804
  * List of domains to allow fetching from
1493
1805
  */
@@ -1505,6 +1817,11 @@ export interface BetaWebFetchTool20250910 {
1505
1817
  * default.
1506
1818
  */
1507
1819
  citations?: BetaCitationsConfigParam | null;
1820
+ /**
1821
+ * If true, tool will not be included in initial system prompt. Only loaded when
1822
+ * returned via tool_reference from tool search.
1823
+ */
1824
+ defer_loading?: boolean;
1508
1825
  /**
1509
1826
  * Maximum number of tokens used by including web page text content in the context.
1510
1827
  * The limit is approximate and does not apply to binary content such as PDFs.
@@ -1561,6 +1878,7 @@ export interface BetaWebSearchTool20250305 {
1561
1878
  */
1562
1879
  name: 'web_search';
1563
1880
  type: 'web_search_20250305';
1881
+ allowed_callers?: Array<'direct' | 'code_execution_20250825'>;
1564
1882
  /**
1565
1883
  * If provided, only these domains will be included in results. Cannot be used
1566
1884
  * alongside `blocked_domains`.
@@ -1575,6 +1893,11 @@ export interface BetaWebSearchTool20250305 {
1575
1893
  * Create a cache control breakpoint at this content block.
1576
1894
  */
1577
1895
  cache_control?: BetaCacheControlEphemeral | null;
1896
+ /**
1897
+ * If true, tool will not be included in initial system prompt. Only loaded when
1898
+ * returned via tool_reference from tool search.
1899
+ */
1900
+ defer_loading?: boolean;
1578
1901
  /**
1579
1902
  * Maximum number of times the tool can be used in the API request.
1580
1903
  */
@@ -1747,6 +2070,11 @@ export interface MessageCreateParamsBase {
1747
2070
  * Body param: An object describing metadata about the request.
1748
2071
  */
1749
2072
  metadata?: BetaMetadata;
2073
+ /**
2074
+ * Body param: Configuration options for the model's output. Controls aspects like
2075
+ * how much effort the model puts into its response.
2076
+ */
2077
+ output_config?: BetaOutputConfig;
1750
2078
  /**
1751
2079
  * Body param: A schema to specify Claude's output format in responses.
1752
2080
  */
@@ -2027,6 +2355,11 @@ export interface MessageCountTokensParams {
2027
2355
  * Body param: MCP servers to be utilized in this request
2028
2356
  */
2029
2357
  mcp_servers?: Array<BetaRequestMCPServerURLDefinition>;
2358
+ /**
2359
+ * Body param: Configuration options for the model's output. Controls aspects like
2360
+ * how much effort the model puts into its response.
2361
+ */
2362
+ output_config?: BetaOutputConfig;
2030
2363
  /**
2031
2364
  * Body param: A schema to specify Claude's output format in responses.
2032
2365
  */
@@ -2133,7 +2466,7 @@ export interface MessageCountTokensParams {
2133
2466
  *
2134
2467
  * See our [guide](https://docs.claude.com/en/docs/tool-use) for more details.
2135
2468
  */
2136
- tools?: Array<BetaTool | BetaToolBash20241022 | BetaToolBash20250124 | BetaCodeExecutionTool20250522 | BetaCodeExecutionTool20250825 | BetaToolComputerUse20241022 | BetaMemoryTool20250818 | BetaToolComputerUse20250124 | BetaToolTextEditor20241022 | BetaToolTextEditor20250124 | BetaToolTextEditor20250429 | BetaToolTextEditor20250728 | BetaWebSearchTool20250305 | BetaWebFetchTool20250910>;
2469
+ tools?: Array<BetaTool | BetaToolBash20241022 | BetaToolBash20250124 | BetaCodeExecutionTool20250522 | BetaCodeExecutionTool20250825 | BetaToolComputerUse20241022 | BetaMemoryTool20250818 | BetaToolComputerUse20250124 | BetaToolTextEditor20241022 | BetaToolComputerUse20251124 | BetaToolTextEditor20250124 | BetaToolTextEditor20250429 | BetaToolTextEditor20250728 | BetaWebSearchTool20250305 | BetaWebFetchTool20250910 | BetaToolSearchToolBm25_20251119 | BetaToolSearchToolRegex20251119 | BetaMCPToolset>;
2137
2470
  /**
2138
2471
  * Header param: Optional header to specify the beta version(s) you want to use.
2139
2472
  */
@@ -2141,7 +2474,7 @@ export interface MessageCountTokensParams {
2141
2474
  }
2142
2475
  export { BetaToolRunner, type BetaToolRunnerParams } from "../../../lib/tools/BetaToolRunner.js";
2143
2476
  export declare namespace Messages {
2144
- export { 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 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 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 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 BetaDocumentBlock as BetaDocumentBlock, 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 BetaJSONOutputFormat as BetaJSONOutputFormat, type BetaMCPToolResultBlock as BetaMCPToolResultBlock, type BetaMCPToolUseBlock as BetaMCPToolUseBlock, type BetaMCPToolUseBlockParam as BetaMCPToolUseBlockParam, 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 BetaMessageParam as BetaMessageParam, type BetaMessageTokensCount as BetaMessageTokensCount, type BetaMetadata as BetaMetadata, 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 BetaRequestDocumentBlock as BetaRequestDocumentBlock, type BetaRequestMCPServerToolConfiguration as BetaRequestMCPServerToolConfiguration, type BetaRequestMCPServerURLDefinition as BetaRequestMCPServerURLDefinition, type BetaRequestMCPToolResultBlockParam as BetaRequestMCPToolResultBlockParam, type BetaSearchResultBlockParam as BetaSearchResultBlockParam, 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 BetaThinkingConfigDisabled as BetaThinkingConfigDisabled, type BetaThinkingConfigEnabled as BetaThinkingConfigEnabled, type BetaThinkingConfigParam as BetaThinkingConfigParam, type BetaThinkingDelta as BetaThinkingDelta, type BetaThinkingTurns as BetaThinkingTurns, 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 BetaToolResultBlockParam as BetaToolResultBlockParam, type BetaToolResultContentBlockParam as BetaToolResultContentBlockParam, 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 BetaWebFetchBlock as BetaWebFetchBlock, type BetaWebFetchBlockParam as BetaWebFetchBlockParam, type BetaWebFetchTool20250910 as BetaWebFetchTool20250910, 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 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, };
2477
+ export { 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 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 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 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 BetaDirectCaller as BetaDirectCaller, type BetaDocumentBlock as BetaDocumentBlock, 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 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 BetaMessageParam as BetaMessageParam, type BetaMessageTokensCount as BetaMessageTokensCount, type BetaMetadata as BetaMetadata, type BetaOutputConfig as BetaOutputConfig, 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 BetaRequestDocumentBlock as BetaRequestDocumentBlock, type BetaRequestMCPServerToolConfiguration as BetaRequestMCPServerToolConfiguration, type BetaRequestMCPServerURLDefinition as BetaRequestMCPServerURLDefinition, type BetaRequestMCPToolResultBlockParam as BetaRequestMCPToolResultBlockParam, type BetaSearchResultBlockParam as BetaSearchResultBlockParam, type BetaServerToolCaller as BetaServerToolCaller, 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 BetaThinkingConfigDisabled as BetaThinkingConfigDisabled, type BetaThinkingConfigEnabled as BetaThinkingConfigEnabled, type BetaThinkingConfigParam as BetaThinkingConfigParam, type BetaThinkingDelta as BetaThinkingDelta, type BetaThinkingTurns as BetaThinkingTurns, 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 BetaWebFetchBlock as BetaWebFetchBlock, type BetaWebFetchBlockParam as BetaWebFetchBlockParam, type BetaWebFetchTool20250910 as BetaWebFetchTool20250910, 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 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, };
2145
2478
  export { type BetaToolRunnerParams, BetaToolRunner };
2146
2479
  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, };
2147
2480
  }