@ai-sdk/anthropic 3.0.0-beta.71 → 3.0.0-beta.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/index.d.mts +0 -26
- package/dist/index.d.ts +0 -26
- package/dist/index.js +1 -27
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -27
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +0 -26
- package/dist/internal/index.d.ts +0 -26
- package/dist/internal/index.js +0 -26
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +0 -26
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @ai-sdk/anthropic
|
|
2
2
|
|
|
3
|
+
## 3.0.0-beta.73
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [3ed5519]
|
|
8
|
+
- @ai-sdk/provider-utils@4.0.0-beta.42
|
|
9
|
+
|
|
10
|
+
## 3.0.0-beta.72
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- a5f77a6: fix(anthropic): remove outdated tool name docs
|
|
15
|
+
|
|
3
16
|
## 3.0.0-beta.71
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -92,8 +92,6 @@ declare const anthropicTools: {
|
|
|
92
92
|
* allowing system operations, script execution, and command-line automation.
|
|
93
93
|
*
|
|
94
94
|
* Image results are supported.
|
|
95
|
-
*
|
|
96
|
-
* Tool name must be `bash`.
|
|
97
95
|
*/
|
|
98
96
|
bash_20241022: _ai_sdk_provider_utils.ProviderToolFactory<{
|
|
99
97
|
command: string;
|
|
@@ -104,8 +102,6 @@ declare const anthropicTools: {
|
|
|
104
102
|
* allowing system operations, script execution, and command-line automation.
|
|
105
103
|
*
|
|
106
104
|
* Image results are supported.
|
|
107
|
-
*
|
|
108
|
-
* Tool name must be `bash`.
|
|
109
105
|
*/
|
|
110
106
|
bash_20250124: _ai_sdk_provider_utils.ProviderToolFactory<{
|
|
111
107
|
command: string;
|
|
@@ -118,8 +114,6 @@ declare const anthropicTools: {
|
|
|
118
114
|
*
|
|
119
115
|
* The code execution tool allows Claude to run Bash commands and manipulate files,
|
|
120
116
|
* including writing code, in a secure, sandboxed environment.
|
|
121
|
-
*
|
|
122
|
-
* Tool name must be `code_execution`.
|
|
123
117
|
*/
|
|
124
118
|
codeExecution_20250522: (args?: Parameters<_ai_sdk_provider_utils.ProviderToolFactoryWithOutputSchema<{
|
|
125
119
|
code: string;
|
|
@@ -145,8 +139,6 @@ declare const anthropicTools: {
|
|
|
145
139
|
* including writing code, in a secure, sandboxed environment.
|
|
146
140
|
*
|
|
147
141
|
* This is the latest version with enhanced Bash support and file operations.
|
|
148
|
-
*
|
|
149
|
-
* Tool name must be `code_execution`.
|
|
150
142
|
*/
|
|
151
143
|
codeExecution_20250825: (args?: Parameters<_ai_sdk_provider_utils.ProviderToolFactoryWithOutputSchema<{
|
|
152
144
|
type: "bash_code_execution";
|
|
@@ -255,8 +247,6 @@ declare const anthropicTools: {
|
|
|
255
247
|
*
|
|
256
248
|
* Image results are supported.
|
|
257
249
|
*
|
|
258
|
-
* Tool name must be `computer`.
|
|
259
|
-
*
|
|
260
250
|
* @param displayWidthPx - The width of the display being controlled by the model in pixels.
|
|
261
251
|
* @param displayHeightPx - The height of the display being controlled by the model in pixels.
|
|
262
252
|
* @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.
|
|
@@ -276,8 +266,6 @@ declare const anthropicTools: {
|
|
|
276
266
|
*
|
|
277
267
|
* Image results are supported.
|
|
278
268
|
*
|
|
279
|
-
* Tool name must be `computer`.
|
|
280
|
-
*
|
|
281
269
|
* @param displayWidthPx - The width of the display being controlled by the model in pixels.
|
|
282
270
|
* @param displayHeightPx - The height of the display being controlled by the model in pixels.
|
|
283
271
|
* @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.
|
|
@@ -302,8 +290,6 @@ declare const anthropicTools: {
|
|
|
302
290
|
* The memory tool operates client-side—you control where and how the data is stored through your own infrastructure.
|
|
303
291
|
*
|
|
304
292
|
* Supported models: Claude Sonnet 4.5, Claude Sonnet 4, Claude Opus 4.1, Claude Opus 4.
|
|
305
|
-
*
|
|
306
|
-
* Tool name must be `memory`.
|
|
307
293
|
*/
|
|
308
294
|
memory_20250818: _ai_sdk_provider_utils.ProviderToolFactory<{
|
|
309
295
|
command: "view";
|
|
@@ -337,8 +323,6 @@ declare const anthropicTools: {
|
|
|
337
323
|
* to directly interact with your files, providing hands-on assistance rather than just suggesting changes.
|
|
338
324
|
*
|
|
339
325
|
* Supported models: Claude Sonnet 3.5
|
|
340
|
-
*
|
|
341
|
-
* Tool name must be `str_replace_editor`.
|
|
342
326
|
*/
|
|
343
327
|
textEditor_20241022: _ai_sdk_provider_utils.ProviderToolFactory<{
|
|
344
328
|
command: "view" | "create" | "str_replace" | "insert" | "undo_edit";
|
|
@@ -355,8 +339,6 @@ declare const anthropicTools: {
|
|
|
355
339
|
* to directly interact with your files, providing hands-on assistance rather than just suggesting changes.
|
|
356
340
|
*
|
|
357
341
|
* Supported models: Claude Sonnet 3.7
|
|
358
|
-
*
|
|
359
|
-
* Tool name must be `str_replace_editor`.
|
|
360
342
|
*/
|
|
361
343
|
textEditor_20250124: _ai_sdk_provider_utils.ProviderToolFactory<{
|
|
362
344
|
command: "view" | "create" | "str_replace" | "insert" | "undo_edit";
|
|
@@ -374,8 +356,6 @@ declare const anthropicTools: {
|
|
|
374
356
|
*
|
|
375
357
|
* Note: This version does not support the "undo_edit" command.
|
|
376
358
|
*
|
|
377
|
-
* Tool name must be `str_replace_based_edit_tool`.
|
|
378
|
-
*
|
|
379
359
|
* @deprecated Use textEditor_20250728 instead
|
|
380
360
|
*/
|
|
381
361
|
textEditor_20250429: _ai_sdk_provider_utils.ProviderToolFactory<{
|
|
@@ -396,8 +376,6 @@ declare const anthropicTools: {
|
|
|
396
376
|
*
|
|
397
377
|
* Supported models: Claude Sonnet 4, Opus 4, and Opus 4.1
|
|
398
378
|
*
|
|
399
|
-
* Tool name must be `str_replace_based_edit_tool`.
|
|
400
|
-
*
|
|
401
379
|
* @param maxCharacters - Optional maximum number of characters to view in the file
|
|
402
380
|
*/
|
|
403
381
|
textEditor_20250728: (args?: Parameters<_ai_sdk_provider_utils.ProviderToolFactory<{
|
|
@@ -422,8 +400,6 @@ declare const anthropicTools: {
|
|
|
422
400
|
/**
|
|
423
401
|
* Creates a web fetch tool that gives Claude direct access to real-time web content.
|
|
424
402
|
*
|
|
425
|
-
* Tool name must be `web_fetch`.
|
|
426
|
-
*
|
|
427
403
|
* @param maxUses - The max_uses parameter limits the number of web fetches performed
|
|
428
404
|
* @param allowedDomains - Only fetch from these domains
|
|
429
405
|
* @param blockedDomains - Never fetch from these domains
|
|
@@ -486,8 +462,6 @@ declare const anthropicTools: {
|
|
|
486
462
|
/**
|
|
487
463
|
* Creates a web search tool that gives Claude direct access to real-time web content.
|
|
488
464
|
*
|
|
489
|
-
* Tool name must be `web_search`.
|
|
490
|
-
*
|
|
491
465
|
* @param maxUses - Maximum number of web searches Claude can perform during the conversation.
|
|
492
466
|
* @param allowedDomains - Optional list of domains that Claude is allowed to search.
|
|
493
467
|
* @param blockedDomains - Optional list of domains that Claude should avoid when searching.
|
package/dist/index.d.ts
CHANGED
|
@@ -92,8 +92,6 @@ declare const anthropicTools: {
|
|
|
92
92
|
* allowing system operations, script execution, and command-line automation.
|
|
93
93
|
*
|
|
94
94
|
* Image results are supported.
|
|
95
|
-
*
|
|
96
|
-
* Tool name must be `bash`.
|
|
97
95
|
*/
|
|
98
96
|
bash_20241022: _ai_sdk_provider_utils.ProviderToolFactory<{
|
|
99
97
|
command: string;
|
|
@@ -104,8 +102,6 @@ declare const anthropicTools: {
|
|
|
104
102
|
* allowing system operations, script execution, and command-line automation.
|
|
105
103
|
*
|
|
106
104
|
* Image results are supported.
|
|
107
|
-
*
|
|
108
|
-
* Tool name must be `bash`.
|
|
109
105
|
*/
|
|
110
106
|
bash_20250124: _ai_sdk_provider_utils.ProviderToolFactory<{
|
|
111
107
|
command: string;
|
|
@@ -118,8 +114,6 @@ declare const anthropicTools: {
|
|
|
118
114
|
*
|
|
119
115
|
* The code execution tool allows Claude to run Bash commands and manipulate files,
|
|
120
116
|
* including writing code, in a secure, sandboxed environment.
|
|
121
|
-
*
|
|
122
|
-
* Tool name must be `code_execution`.
|
|
123
117
|
*/
|
|
124
118
|
codeExecution_20250522: (args?: Parameters<_ai_sdk_provider_utils.ProviderToolFactoryWithOutputSchema<{
|
|
125
119
|
code: string;
|
|
@@ -145,8 +139,6 @@ declare const anthropicTools: {
|
|
|
145
139
|
* including writing code, in a secure, sandboxed environment.
|
|
146
140
|
*
|
|
147
141
|
* This is the latest version with enhanced Bash support and file operations.
|
|
148
|
-
*
|
|
149
|
-
* Tool name must be `code_execution`.
|
|
150
142
|
*/
|
|
151
143
|
codeExecution_20250825: (args?: Parameters<_ai_sdk_provider_utils.ProviderToolFactoryWithOutputSchema<{
|
|
152
144
|
type: "bash_code_execution";
|
|
@@ -255,8 +247,6 @@ declare const anthropicTools: {
|
|
|
255
247
|
*
|
|
256
248
|
* Image results are supported.
|
|
257
249
|
*
|
|
258
|
-
* Tool name must be `computer`.
|
|
259
|
-
*
|
|
260
250
|
* @param displayWidthPx - The width of the display being controlled by the model in pixels.
|
|
261
251
|
* @param displayHeightPx - The height of the display being controlled by the model in pixels.
|
|
262
252
|
* @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.
|
|
@@ -276,8 +266,6 @@ declare const anthropicTools: {
|
|
|
276
266
|
*
|
|
277
267
|
* Image results are supported.
|
|
278
268
|
*
|
|
279
|
-
* Tool name must be `computer`.
|
|
280
|
-
*
|
|
281
269
|
* @param displayWidthPx - The width of the display being controlled by the model in pixels.
|
|
282
270
|
* @param displayHeightPx - The height of the display being controlled by the model in pixels.
|
|
283
271
|
* @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.
|
|
@@ -302,8 +290,6 @@ declare const anthropicTools: {
|
|
|
302
290
|
* The memory tool operates client-side—you control where and how the data is stored through your own infrastructure.
|
|
303
291
|
*
|
|
304
292
|
* Supported models: Claude Sonnet 4.5, Claude Sonnet 4, Claude Opus 4.1, Claude Opus 4.
|
|
305
|
-
*
|
|
306
|
-
* Tool name must be `memory`.
|
|
307
293
|
*/
|
|
308
294
|
memory_20250818: _ai_sdk_provider_utils.ProviderToolFactory<{
|
|
309
295
|
command: "view";
|
|
@@ -337,8 +323,6 @@ declare const anthropicTools: {
|
|
|
337
323
|
* to directly interact with your files, providing hands-on assistance rather than just suggesting changes.
|
|
338
324
|
*
|
|
339
325
|
* Supported models: Claude Sonnet 3.5
|
|
340
|
-
*
|
|
341
|
-
* Tool name must be `str_replace_editor`.
|
|
342
326
|
*/
|
|
343
327
|
textEditor_20241022: _ai_sdk_provider_utils.ProviderToolFactory<{
|
|
344
328
|
command: "view" | "create" | "str_replace" | "insert" | "undo_edit";
|
|
@@ -355,8 +339,6 @@ declare const anthropicTools: {
|
|
|
355
339
|
* to directly interact with your files, providing hands-on assistance rather than just suggesting changes.
|
|
356
340
|
*
|
|
357
341
|
* Supported models: Claude Sonnet 3.7
|
|
358
|
-
*
|
|
359
|
-
* Tool name must be `str_replace_editor`.
|
|
360
342
|
*/
|
|
361
343
|
textEditor_20250124: _ai_sdk_provider_utils.ProviderToolFactory<{
|
|
362
344
|
command: "view" | "create" | "str_replace" | "insert" | "undo_edit";
|
|
@@ -374,8 +356,6 @@ declare const anthropicTools: {
|
|
|
374
356
|
*
|
|
375
357
|
* Note: This version does not support the "undo_edit" command.
|
|
376
358
|
*
|
|
377
|
-
* Tool name must be `str_replace_based_edit_tool`.
|
|
378
|
-
*
|
|
379
359
|
* @deprecated Use textEditor_20250728 instead
|
|
380
360
|
*/
|
|
381
361
|
textEditor_20250429: _ai_sdk_provider_utils.ProviderToolFactory<{
|
|
@@ -396,8 +376,6 @@ declare const anthropicTools: {
|
|
|
396
376
|
*
|
|
397
377
|
* Supported models: Claude Sonnet 4, Opus 4, and Opus 4.1
|
|
398
378
|
*
|
|
399
|
-
* Tool name must be `str_replace_based_edit_tool`.
|
|
400
|
-
*
|
|
401
379
|
* @param maxCharacters - Optional maximum number of characters to view in the file
|
|
402
380
|
*/
|
|
403
381
|
textEditor_20250728: (args?: Parameters<_ai_sdk_provider_utils.ProviderToolFactory<{
|
|
@@ -422,8 +400,6 @@ declare const anthropicTools: {
|
|
|
422
400
|
/**
|
|
423
401
|
* Creates a web fetch tool that gives Claude direct access to real-time web content.
|
|
424
402
|
*
|
|
425
|
-
* Tool name must be `web_fetch`.
|
|
426
|
-
*
|
|
427
403
|
* @param maxUses - The max_uses parameter limits the number of web fetches performed
|
|
428
404
|
* @param allowedDomains - Only fetch from these domains
|
|
429
405
|
* @param blockedDomains - Never fetch from these domains
|
|
@@ -486,8 +462,6 @@ declare const anthropicTools: {
|
|
|
486
462
|
/**
|
|
487
463
|
* Creates a web search tool that gives Claude direct access to real-time web content.
|
|
488
464
|
*
|
|
489
|
-
* Tool name must be `web_search`.
|
|
490
|
-
*
|
|
491
465
|
* @param maxUses - Maximum number of web searches Claude can perform during the conversation.
|
|
492
466
|
* @param allowedDomains - Optional list of domains that Claude is allowed to search.
|
|
493
467
|
* @param blockedDomains - Optional list of domains that Claude should avoid when searching.
|
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ var import_provider4 = require("@ai-sdk/provider");
|
|
|
31
31
|
var import_provider_utils20 = require("@ai-sdk/provider-utils");
|
|
32
32
|
|
|
33
33
|
// src/version.ts
|
|
34
|
-
var VERSION = true ? "3.0.0-beta.
|
|
34
|
+
var VERSION = true ? "3.0.0-beta.73" : "0.0.0-test";
|
|
35
35
|
|
|
36
36
|
// src/anthropic-messages-language-model.ts
|
|
37
37
|
var import_provider3 = require("@ai-sdk/provider");
|
|
@@ -3313,8 +3313,6 @@ var anthropicTools = {
|
|
|
3313
3313
|
* allowing system operations, script execution, and command-line automation.
|
|
3314
3314
|
*
|
|
3315
3315
|
* Image results are supported.
|
|
3316
|
-
*
|
|
3317
|
-
* Tool name must be `bash`.
|
|
3318
3316
|
*/
|
|
3319
3317
|
bash_20241022,
|
|
3320
3318
|
/**
|
|
@@ -3322,8 +3320,6 @@ var anthropicTools = {
|
|
|
3322
3320
|
* allowing system operations, script execution, and command-line automation.
|
|
3323
3321
|
*
|
|
3324
3322
|
* Image results are supported.
|
|
3325
|
-
*
|
|
3326
|
-
* Tool name must be `bash`.
|
|
3327
3323
|
*/
|
|
3328
3324
|
bash_20250124,
|
|
3329
3325
|
/**
|
|
@@ -3333,8 +3329,6 @@ var anthropicTools = {
|
|
|
3333
3329
|
*
|
|
3334
3330
|
* The code execution tool allows Claude to run Bash commands and manipulate files,
|
|
3335
3331
|
* including writing code, in a secure, sandboxed environment.
|
|
3336
|
-
*
|
|
3337
|
-
* Tool name must be `code_execution`.
|
|
3338
3332
|
*/
|
|
3339
3333
|
codeExecution_20250522,
|
|
3340
3334
|
/**
|
|
@@ -3346,8 +3340,6 @@ var anthropicTools = {
|
|
|
3346
3340
|
* including writing code, in a secure, sandboxed environment.
|
|
3347
3341
|
*
|
|
3348
3342
|
* This is the latest version with enhanced Bash support and file operations.
|
|
3349
|
-
*
|
|
3350
|
-
* Tool name must be `code_execution`.
|
|
3351
3343
|
*/
|
|
3352
3344
|
codeExecution_20250825,
|
|
3353
3345
|
/**
|
|
@@ -3356,8 +3348,6 @@ var anthropicTools = {
|
|
|
3356
3348
|
*
|
|
3357
3349
|
* Image results are supported.
|
|
3358
3350
|
*
|
|
3359
|
-
* Tool name must be `computer`.
|
|
3360
|
-
*
|
|
3361
3351
|
* @param displayWidthPx - The width of the display being controlled by the model in pixels.
|
|
3362
3352
|
* @param displayHeightPx - The height of the display being controlled by the model in pixels.
|
|
3363
3353
|
* @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.
|
|
@@ -3369,8 +3359,6 @@ var anthropicTools = {
|
|
|
3369
3359
|
*
|
|
3370
3360
|
* Image results are supported.
|
|
3371
3361
|
*
|
|
3372
|
-
* Tool name must be `computer`.
|
|
3373
|
-
*
|
|
3374
3362
|
* @param displayWidthPx - The width of the display being controlled by the model in pixels.
|
|
3375
3363
|
* @param displayHeightPx - The height of the display being controlled by the model in pixels.
|
|
3376
3364
|
* @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.
|
|
@@ -3383,8 +3371,6 @@ var anthropicTools = {
|
|
|
3383
3371
|
* The memory tool operates client-side—you control where and how the data is stored through your own infrastructure.
|
|
3384
3372
|
*
|
|
3385
3373
|
* Supported models: Claude Sonnet 4.5, Claude Sonnet 4, Claude Opus 4.1, Claude Opus 4.
|
|
3386
|
-
*
|
|
3387
|
-
* Tool name must be `memory`.
|
|
3388
3374
|
*/
|
|
3389
3375
|
memory_20250818,
|
|
3390
3376
|
/**
|
|
@@ -3393,8 +3379,6 @@ var anthropicTools = {
|
|
|
3393
3379
|
* to directly interact with your files, providing hands-on assistance rather than just suggesting changes.
|
|
3394
3380
|
*
|
|
3395
3381
|
* Supported models: Claude Sonnet 3.5
|
|
3396
|
-
*
|
|
3397
|
-
* Tool name must be `str_replace_editor`.
|
|
3398
3382
|
*/
|
|
3399
3383
|
textEditor_20241022,
|
|
3400
3384
|
/**
|
|
@@ -3403,8 +3387,6 @@ var anthropicTools = {
|
|
|
3403
3387
|
* to directly interact with your files, providing hands-on assistance rather than just suggesting changes.
|
|
3404
3388
|
*
|
|
3405
3389
|
* Supported models: Claude Sonnet 3.7
|
|
3406
|
-
*
|
|
3407
|
-
* Tool name must be `str_replace_editor`.
|
|
3408
3390
|
*/
|
|
3409
3391
|
textEditor_20250124,
|
|
3410
3392
|
/**
|
|
@@ -3414,8 +3396,6 @@ var anthropicTools = {
|
|
|
3414
3396
|
*
|
|
3415
3397
|
* Note: This version does not support the "undo_edit" command.
|
|
3416
3398
|
*
|
|
3417
|
-
* Tool name must be `str_replace_based_edit_tool`.
|
|
3418
|
-
*
|
|
3419
3399
|
* @deprecated Use textEditor_20250728 instead
|
|
3420
3400
|
*/
|
|
3421
3401
|
textEditor_20250429,
|
|
@@ -3428,16 +3408,12 @@ var anthropicTools = {
|
|
|
3428
3408
|
*
|
|
3429
3409
|
* Supported models: Claude Sonnet 4, Opus 4, and Opus 4.1
|
|
3430
3410
|
*
|
|
3431
|
-
* Tool name must be `str_replace_based_edit_tool`.
|
|
3432
|
-
*
|
|
3433
3411
|
* @param maxCharacters - Optional maximum number of characters to view in the file
|
|
3434
3412
|
*/
|
|
3435
3413
|
textEditor_20250728,
|
|
3436
3414
|
/**
|
|
3437
3415
|
* Creates a web fetch tool that gives Claude direct access to real-time web content.
|
|
3438
3416
|
*
|
|
3439
|
-
* Tool name must be `web_fetch`.
|
|
3440
|
-
*
|
|
3441
3417
|
* @param maxUses - The max_uses parameter limits the number of web fetches performed
|
|
3442
3418
|
* @param allowedDomains - Only fetch from these domains
|
|
3443
3419
|
* @param blockedDomains - Never fetch from these domains
|
|
@@ -3448,8 +3424,6 @@ var anthropicTools = {
|
|
|
3448
3424
|
/**
|
|
3449
3425
|
* Creates a web search tool that gives Claude direct access to real-time web content.
|
|
3450
3426
|
*
|
|
3451
|
-
* Tool name must be `web_search`.
|
|
3452
|
-
*
|
|
3453
3427
|
* @param maxUses - Maximum number of web searches Claude can perform during the conversation.
|
|
3454
3428
|
* @param allowedDomains - Optional list of domains that Claude is allowed to search.
|
|
3455
3429
|
* @param blockedDomains - Optional list of domains that Claude should avoid when searching.
|