@ai-sdk/anthropic 3.0.0-beta.71 → 3.0.0-beta.72

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.
@@ -39,8 +39,6 @@ declare const anthropicTools: {
39
39
  * allowing system operations, script execution, and command-line automation.
40
40
  *
41
41
  * Image results are supported.
42
- *
43
- * Tool name must be `bash`.
44
42
  */
45
43
  bash_20241022: _ai_sdk_provider_utils.ProviderToolFactory<{
46
44
  command: string;
@@ -51,8 +49,6 @@ declare const anthropicTools: {
51
49
  * allowing system operations, script execution, and command-line automation.
52
50
  *
53
51
  * Image results are supported.
54
- *
55
- * Tool name must be `bash`.
56
52
  */
57
53
  bash_20250124: _ai_sdk_provider_utils.ProviderToolFactory<{
58
54
  command: string;
@@ -65,8 +61,6 @@ declare const anthropicTools: {
65
61
  *
66
62
  * The code execution tool allows Claude to run Bash commands and manipulate files,
67
63
  * including writing code, in a secure, sandboxed environment.
68
- *
69
- * Tool name must be `code_execution`.
70
64
  */
71
65
  codeExecution_20250522: (args?: Parameters<_ai_sdk_provider_utils.ProviderToolFactoryWithOutputSchema<{
72
66
  code: string;
@@ -92,8 +86,6 @@ declare const anthropicTools: {
92
86
  * including writing code, in a secure, sandboxed environment.
93
87
  *
94
88
  * This is the latest version with enhanced Bash support and file operations.
95
- *
96
- * Tool name must be `code_execution`.
97
89
  */
98
90
  codeExecution_20250825: (args?: Parameters<_ai_sdk_provider_utils.ProviderToolFactoryWithOutputSchema<{
99
91
  type: "bash_code_execution";
@@ -202,8 +194,6 @@ declare const anthropicTools: {
202
194
  *
203
195
  * Image results are supported.
204
196
  *
205
- * Tool name must be `computer`.
206
- *
207
197
  * @param displayWidthPx - The width of the display being controlled by the model in pixels.
208
198
  * @param displayHeightPx - The height of the display being controlled by the model in pixels.
209
199
  * @param displayNumber - The display number to control (only relevant for X11 environments). If specified, the tool will be provided a display number in the tool definition.
@@ -223,8 +213,6 @@ declare const anthropicTools: {
223
213
  *
224
214
  * Image results are supported.
225
215
  *
226
- * Tool name must be `computer`.
227
- *
228
216
  * @param displayWidthPx - The width of the display being controlled by the model in pixels.
229
217
  * @param displayHeightPx - The height of the display being controlled by the model in pixels.
230
218
  * @param displayNumber - The display number to control (only relevant for X11 environments). If specified, the tool will be provided a display number in the tool definition.
@@ -249,8 +237,6 @@ declare const anthropicTools: {
249
237
  * The memory tool operates client-side—you control where and how the data is stored through your own infrastructure.
250
238
  *
251
239
  * Supported models: Claude Sonnet 4.5, Claude Sonnet 4, Claude Opus 4.1, Claude Opus 4.
252
- *
253
- * Tool name must be `memory`.
254
240
  */
255
241
  memory_20250818: _ai_sdk_provider_utils.ProviderToolFactory<{
256
242
  command: "view";
@@ -284,8 +270,6 @@ declare const anthropicTools: {
284
270
  * to directly interact with your files, providing hands-on assistance rather than just suggesting changes.
285
271
  *
286
272
  * Supported models: Claude Sonnet 3.5
287
- *
288
- * Tool name must be `str_replace_editor`.
289
273
  */
290
274
  textEditor_20241022: _ai_sdk_provider_utils.ProviderToolFactory<{
291
275
  command: "view" | "create" | "str_replace" | "insert" | "undo_edit";
@@ -302,8 +286,6 @@ declare const anthropicTools: {
302
286
  * to directly interact with your files, providing hands-on assistance rather than just suggesting changes.
303
287
  *
304
288
  * Supported models: Claude Sonnet 3.7
305
- *
306
- * Tool name must be `str_replace_editor`.
307
289
  */
308
290
  textEditor_20250124: _ai_sdk_provider_utils.ProviderToolFactory<{
309
291
  command: "view" | "create" | "str_replace" | "insert" | "undo_edit";
@@ -321,8 +303,6 @@ declare const anthropicTools: {
321
303
  *
322
304
  * Note: This version does not support the "undo_edit" command.
323
305
  *
324
- * Tool name must be `str_replace_based_edit_tool`.
325
- *
326
306
  * @deprecated Use textEditor_20250728 instead
327
307
  */
328
308
  textEditor_20250429: _ai_sdk_provider_utils.ProviderToolFactory<{
@@ -343,8 +323,6 @@ declare const anthropicTools: {
343
323
  *
344
324
  * Supported models: Claude Sonnet 4, Opus 4, and Opus 4.1
345
325
  *
346
- * Tool name must be `str_replace_based_edit_tool`.
347
- *
348
326
  * @param maxCharacters - Optional maximum number of characters to view in the file
349
327
  */
350
328
  textEditor_20250728: (args?: Parameters<_ai_sdk_provider_utils.ProviderToolFactory<{
@@ -369,8 +347,6 @@ declare const anthropicTools: {
369
347
  /**
370
348
  * Creates a web fetch tool that gives Claude direct access to real-time web content.
371
349
  *
372
- * Tool name must be `web_fetch`.
373
- *
374
350
  * @param maxUses - The max_uses parameter limits the number of web fetches performed
375
351
  * @param allowedDomains - Only fetch from these domains
376
352
  * @param blockedDomains - Never fetch from these domains
@@ -433,8 +409,6 @@ declare const anthropicTools: {
433
409
  /**
434
410
  * Creates a web search tool that gives Claude direct access to real-time web content.
435
411
  *
436
- * Tool name must be `web_search`.
437
- *
438
412
  * @param maxUses - Maximum number of web searches Claude can perform during the conversation.
439
413
  * @param allowedDomains - Optional list of domains that Claude is allowed to search.
440
414
  * @param blockedDomains - Optional list of domains that Claude should avoid when searching.
@@ -39,8 +39,6 @@ declare const anthropicTools: {
39
39
  * allowing system operations, script execution, and command-line automation.
40
40
  *
41
41
  * Image results are supported.
42
- *
43
- * Tool name must be `bash`.
44
42
  */
45
43
  bash_20241022: _ai_sdk_provider_utils.ProviderToolFactory<{
46
44
  command: string;
@@ -51,8 +49,6 @@ declare const anthropicTools: {
51
49
  * allowing system operations, script execution, and command-line automation.
52
50
  *
53
51
  * Image results are supported.
54
- *
55
- * Tool name must be `bash`.
56
52
  */
57
53
  bash_20250124: _ai_sdk_provider_utils.ProviderToolFactory<{
58
54
  command: string;
@@ -65,8 +61,6 @@ declare const anthropicTools: {
65
61
  *
66
62
  * The code execution tool allows Claude to run Bash commands and manipulate files,
67
63
  * including writing code, in a secure, sandboxed environment.
68
- *
69
- * Tool name must be `code_execution`.
70
64
  */
71
65
  codeExecution_20250522: (args?: Parameters<_ai_sdk_provider_utils.ProviderToolFactoryWithOutputSchema<{
72
66
  code: string;
@@ -92,8 +86,6 @@ declare const anthropicTools: {
92
86
  * including writing code, in a secure, sandboxed environment.
93
87
  *
94
88
  * This is the latest version with enhanced Bash support and file operations.
95
- *
96
- * Tool name must be `code_execution`.
97
89
  */
98
90
  codeExecution_20250825: (args?: Parameters<_ai_sdk_provider_utils.ProviderToolFactoryWithOutputSchema<{
99
91
  type: "bash_code_execution";
@@ -202,8 +194,6 @@ declare const anthropicTools: {
202
194
  *
203
195
  * Image results are supported.
204
196
  *
205
- * Tool name must be `computer`.
206
- *
207
197
  * @param displayWidthPx - The width of the display being controlled by the model in pixels.
208
198
  * @param displayHeightPx - The height of the display being controlled by the model in pixels.
209
199
  * @param displayNumber - The display number to control (only relevant for X11 environments). If specified, the tool will be provided a display number in the tool definition.
@@ -223,8 +213,6 @@ declare const anthropicTools: {
223
213
  *
224
214
  * Image results are supported.
225
215
  *
226
- * Tool name must be `computer`.
227
- *
228
216
  * @param displayWidthPx - The width of the display being controlled by the model in pixels.
229
217
  * @param displayHeightPx - The height of the display being controlled by the model in pixels.
230
218
  * @param displayNumber - The display number to control (only relevant for X11 environments). If specified, the tool will be provided a display number in the tool definition.
@@ -249,8 +237,6 @@ declare const anthropicTools: {
249
237
  * The memory tool operates client-side—you control where and how the data is stored through your own infrastructure.
250
238
  *
251
239
  * Supported models: Claude Sonnet 4.5, Claude Sonnet 4, Claude Opus 4.1, Claude Opus 4.
252
- *
253
- * Tool name must be `memory`.
254
240
  */
255
241
  memory_20250818: _ai_sdk_provider_utils.ProviderToolFactory<{
256
242
  command: "view";
@@ -284,8 +270,6 @@ declare const anthropicTools: {
284
270
  * to directly interact with your files, providing hands-on assistance rather than just suggesting changes.
285
271
  *
286
272
  * Supported models: Claude Sonnet 3.5
287
- *
288
- * Tool name must be `str_replace_editor`.
289
273
  */
290
274
  textEditor_20241022: _ai_sdk_provider_utils.ProviderToolFactory<{
291
275
  command: "view" | "create" | "str_replace" | "insert" | "undo_edit";
@@ -302,8 +286,6 @@ declare const anthropicTools: {
302
286
  * to directly interact with your files, providing hands-on assistance rather than just suggesting changes.
303
287
  *
304
288
  * Supported models: Claude Sonnet 3.7
305
- *
306
- * Tool name must be `str_replace_editor`.
307
289
  */
308
290
  textEditor_20250124: _ai_sdk_provider_utils.ProviderToolFactory<{
309
291
  command: "view" | "create" | "str_replace" | "insert" | "undo_edit";
@@ -321,8 +303,6 @@ declare const anthropicTools: {
321
303
  *
322
304
  * Note: This version does not support the "undo_edit" command.
323
305
  *
324
- * Tool name must be `str_replace_based_edit_tool`.
325
- *
326
306
  * @deprecated Use textEditor_20250728 instead
327
307
  */
328
308
  textEditor_20250429: _ai_sdk_provider_utils.ProviderToolFactory<{
@@ -343,8 +323,6 @@ declare const anthropicTools: {
343
323
  *
344
324
  * Supported models: Claude Sonnet 4, Opus 4, and Opus 4.1
345
325
  *
346
- * Tool name must be `str_replace_based_edit_tool`.
347
- *
348
326
  * @param maxCharacters - Optional maximum number of characters to view in the file
349
327
  */
350
328
  textEditor_20250728: (args?: Parameters<_ai_sdk_provider_utils.ProviderToolFactory<{
@@ -369,8 +347,6 @@ declare const anthropicTools: {
369
347
  /**
370
348
  * Creates a web fetch tool that gives Claude direct access to real-time web content.
371
349
  *
372
- * Tool name must be `web_fetch`.
373
- *
374
350
  * @param maxUses - The max_uses parameter limits the number of web fetches performed
375
351
  * @param allowedDomains - Only fetch from these domains
376
352
  * @param blockedDomains - Never fetch from these domains
@@ -433,8 +409,6 @@ declare const anthropicTools: {
433
409
  /**
434
410
  * Creates a web search tool that gives Claude direct access to real-time web content.
435
411
  *
436
- * Tool name must be `web_search`.
437
- *
438
412
  * @param maxUses - Maximum number of web searches Claude can perform during the conversation.
439
413
  * @param allowedDomains - Optional list of domains that Claude is allowed to search.
440
414
  * @param blockedDomains - Optional list of domains that Claude should avoid when searching.
@@ -3306,8 +3306,6 @@ var anthropicTools = {
3306
3306
  * allowing system operations, script execution, and command-line automation.
3307
3307
  *
3308
3308
  * Image results are supported.
3309
- *
3310
- * Tool name must be `bash`.
3311
3309
  */
3312
3310
  bash_20241022,
3313
3311
  /**
@@ -3315,8 +3313,6 @@ var anthropicTools = {
3315
3313
  * allowing system operations, script execution, and command-line automation.
3316
3314
  *
3317
3315
  * Image results are supported.
3318
- *
3319
- * Tool name must be `bash`.
3320
3316
  */
3321
3317
  bash_20250124,
3322
3318
  /**
@@ -3326,8 +3322,6 @@ var anthropicTools = {
3326
3322
  *
3327
3323
  * The code execution tool allows Claude to run Bash commands and manipulate files,
3328
3324
  * including writing code, in a secure, sandboxed environment.
3329
- *
3330
- * Tool name must be `code_execution`.
3331
3325
  */
3332
3326
  codeExecution_20250522,
3333
3327
  /**
@@ -3339,8 +3333,6 @@ var anthropicTools = {
3339
3333
  * including writing code, in a secure, sandboxed environment.
3340
3334
  *
3341
3335
  * This is the latest version with enhanced Bash support and file operations.
3342
- *
3343
- * Tool name must be `code_execution`.
3344
3336
  */
3345
3337
  codeExecution_20250825,
3346
3338
  /**
@@ -3349,8 +3341,6 @@ var anthropicTools = {
3349
3341
  *
3350
3342
  * Image results are supported.
3351
3343
  *
3352
- * Tool name must be `computer`.
3353
- *
3354
3344
  * @param displayWidthPx - The width of the display being controlled by the model in pixels.
3355
3345
  * @param displayHeightPx - The height of the display being controlled by the model in pixels.
3356
3346
  * @param displayNumber - The display number to control (only relevant for X11 environments). If specified, the tool will be provided a display number in the tool definition.
@@ -3362,8 +3352,6 @@ var anthropicTools = {
3362
3352
  *
3363
3353
  * Image results are supported.
3364
3354
  *
3365
- * Tool name must be `computer`.
3366
- *
3367
3355
  * @param displayWidthPx - The width of the display being controlled by the model in pixels.
3368
3356
  * @param displayHeightPx - The height of the display being controlled by the model in pixels.
3369
3357
  * @param displayNumber - The display number to control (only relevant for X11 environments). If specified, the tool will be provided a display number in the tool definition.
@@ -3376,8 +3364,6 @@ var anthropicTools = {
3376
3364
  * The memory tool operates client-side—you control where and how the data is stored through your own infrastructure.
3377
3365
  *
3378
3366
  * Supported models: Claude Sonnet 4.5, Claude Sonnet 4, Claude Opus 4.1, Claude Opus 4.
3379
- *
3380
- * Tool name must be `memory`.
3381
3367
  */
3382
3368
  memory_20250818,
3383
3369
  /**
@@ -3386,8 +3372,6 @@ var anthropicTools = {
3386
3372
  * to directly interact with your files, providing hands-on assistance rather than just suggesting changes.
3387
3373
  *
3388
3374
  * Supported models: Claude Sonnet 3.5
3389
- *
3390
- * Tool name must be `str_replace_editor`.
3391
3375
  */
3392
3376
  textEditor_20241022,
3393
3377
  /**
@@ -3396,8 +3380,6 @@ var anthropicTools = {
3396
3380
  * to directly interact with your files, providing hands-on assistance rather than just suggesting changes.
3397
3381
  *
3398
3382
  * Supported models: Claude Sonnet 3.7
3399
- *
3400
- * Tool name must be `str_replace_editor`.
3401
3383
  */
3402
3384
  textEditor_20250124,
3403
3385
  /**
@@ -3407,8 +3389,6 @@ var anthropicTools = {
3407
3389
  *
3408
3390
  * Note: This version does not support the "undo_edit" command.
3409
3391
  *
3410
- * Tool name must be `str_replace_based_edit_tool`.
3411
- *
3412
3392
  * @deprecated Use textEditor_20250728 instead
3413
3393
  */
3414
3394
  textEditor_20250429,
@@ -3421,16 +3401,12 @@ var anthropicTools = {
3421
3401
  *
3422
3402
  * Supported models: Claude Sonnet 4, Opus 4, and Opus 4.1
3423
3403
  *
3424
- * Tool name must be `str_replace_based_edit_tool`.
3425
- *
3426
3404
  * @param maxCharacters - Optional maximum number of characters to view in the file
3427
3405
  */
3428
3406
  textEditor_20250728,
3429
3407
  /**
3430
3408
  * Creates a web fetch tool that gives Claude direct access to real-time web content.
3431
3409
  *
3432
- * Tool name must be `web_fetch`.
3433
- *
3434
3410
  * @param maxUses - The max_uses parameter limits the number of web fetches performed
3435
3411
  * @param allowedDomains - Only fetch from these domains
3436
3412
  * @param blockedDomains - Never fetch from these domains
@@ -3441,8 +3417,6 @@ var anthropicTools = {
3441
3417
  /**
3442
3418
  * Creates a web search tool that gives Claude direct access to real-time web content.
3443
3419
  *
3444
- * Tool name must be `web_search`.
3445
- *
3446
3420
  * @param maxUses - Maximum number of web searches Claude can perform during the conversation.
3447
3421
  * @param allowedDomains - Optional list of domains that Claude is allowed to search.
3448
3422
  * @param blockedDomains - Optional list of domains that Claude should avoid when searching.