@ai-sdk/anthropic 2.0.0-canary.8 → 2.0.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,495 @@
1
1
  # @ai-sdk/anthropic
2
2
 
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - d5f588f: AI SDK 5
8
+
9
+ ### Patch Changes
10
+
11
+ - ad66c0e: feat (provider/anthropic): json response schema support via tool calls
12
+ - 8f2854f: feat (provider/anthropic): send web search tool calls
13
+ - 5d959e7: refactor: updated openai + anthropic tool use server side
14
+ - 8dfcb11: feat(anthropic/citation): text support for citations
15
+ - 9f73965: feat (provider/anthropic): parse websearch tool args
16
+ - e2aceaf: feat: add raw chunk support
17
+ - fdff8a4: fix(provider/anthropic): correct Claude 4 model ID format
18
+ - eb173f1: chore (providers): remove model shorthand deprecation warnings
19
+ - 4f26d59: feat(provider/anthropic): add disable parallel tool use option
20
+ - 25f3454: feat(provider/anthropic): add PDF citation support with document sources for streamText
21
+ - a85c85f: fix (provider/anthropic): streaming json output
22
+ - 5c9eec4: chore(providers/anthropic): switch to providerOptions
23
+ - 2e13791: feat(anthropic): add server-side web search support
24
+ - 66962ed: fix(packages): export node10 compatible types
25
+ - 075711d: fix (provider/anthropic): return stop finish reason for json output with tool
26
+ - 269683f: Add raw Anthropic usage information to provider metadata
27
+ - d601ed9: fix (provider/anthropic): send tool call id in tool-input-start chunk
28
+ - b9ddcdd: feat(anthropic): add text_editor_20250429 tool for Claude 4 models
29
+ - 91715e5: fix (provider/google-vertex): fix anthropic support for image urls in messages
30
+ - ca8aac6: feat (providers/anthropic): add claude v4 models
31
+ - 61ab528: Add support for URL-based PDF documents in the Anthropic provider
32
+ - 84577c8: fix (providers/anthropic): remove fine grained tool streaming beta
33
+ - d1a034f: feature: using Zod 4 for internal stuff
34
+ - 6392f60: fix(anthropic): resolve web search API validation errors with partial location + provider output
35
+ - 205077b: fix: improve Zod compatibility
36
+ - ee5a9c0: feat: streamText onChunk raw chunk support
37
+ - f418dd7: Added anthropic provider defined tool support to amazon bedrock
38
+ - 362b048: add web search tool support
39
+ - 399e056: fix: anthropic computer tool
40
+ - 0b678b2: feat (provider/anthropic): enable streaming tool calls
41
+ - f10304b: feat(tool-calling): don't require the user to have to pass parameters
42
+ - a753b3a: feat (provider/anthropic): cache control for tools
43
+ - Updated dependencies [a571d6e]
44
+ - Updated dependencies [742b7be]
45
+ - Updated dependencies [e7fcc86]
46
+ - Updated dependencies [7cddb72]
47
+ - Updated dependencies [ccce59b]
48
+ - Updated dependencies [e2b9e4b]
49
+ - Updated dependencies [95857aa]
50
+ - Updated dependencies [45c1ea2]
51
+ - Updated dependencies [6f6bb89]
52
+ - Updated dependencies [060370c]
53
+ - Updated dependencies [dc714f3]
54
+ - Updated dependencies [b5da06a]
55
+ - Updated dependencies [d1a1aa1]
56
+ - Updated dependencies [63f9e9b]
57
+ - Updated dependencies [5d142ab]
58
+ - Updated dependencies [d5f588f]
59
+ - Updated dependencies [e025824]
60
+ - Updated dependencies [0571b98]
61
+ - Updated dependencies [b6b43c7]
62
+ - Updated dependencies [4fef487]
63
+ - Updated dependencies [48d257a]
64
+ - Updated dependencies [0c0c0b3]
65
+ - Updated dependencies [0d2c085]
66
+ - Updated dependencies [40acf9b]
67
+ - Updated dependencies [9222aeb]
68
+ - Updated dependencies [e2aceaf]
69
+ - Updated dependencies [411e483]
70
+ - Updated dependencies [8ba77a7]
71
+ - Updated dependencies [7b3ae3f]
72
+ - Updated dependencies [a166433]
73
+ - Updated dependencies [26735b5]
74
+ - Updated dependencies [443d8ec]
75
+ - Updated dependencies [a8c8bd5]
76
+ - Updated dependencies [abf9a79]
77
+ - Updated dependencies [14c9410]
78
+ - Updated dependencies [e86be6f]
79
+ - Updated dependencies [9bf7291]
80
+ - Updated dependencies [2e13791]
81
+ - Updated dependencies [9f95b35]
82
+ - Updated dependencies [66962ed]
83
+ - Updated dependencies [0d06df6]
84
+ - Updated dependencies [472524a]
85
+ - Updated dependencies [dd3ff01]
86
+ - Updated dependencies [d9c98f4]
87
+ - Updated dependencies [05d2819]
88
+ - Updated dependencies [9301f86]
89
+ - Updated dependencies [0a87932]
90
+ - Updated dependencies [c4a2fec]
91
+ - Updated dependencies [957b739]
92
+ - Updated dependencies [79457bd]
93
+ - Updated dependencies [a3f768e]
94
+ - Updated dependencies [7435eb5]
95
+ - Updated dependencies [8aa9e20]
96
+ - Updated dependencies [4617fab]
97
+ - Updated dependencies [ac34802]
98
+ - Updated dependencies [0054544]
99
+ - Updated dependencies [cb68df0]
100
+ - Updated dependencies [ad80501]
101
+ - Updated dependencies [68ecf2f]
102
+ - Updated dependencies [9e9c809]
103
+ - Updated dependencies [32831c6]
104
+ - Updated dependencies [6dc848c]
105
+ - Updated dependencies [6b98118]
106
+ - Updated dependencies [d0f9495]
107
+ - Updated dependencies [63d791d]
108
+ - Updated dependencies [87b828f]
109
+ - Updated dependencies [3f2f00c]
110
+ - Updated dependencies [bfdca8d]
111
+ - Updated dependencies [0ff02bb]
112
+ - Updated dependencies [7979f7f]
113
+ - Updated dependencies [39a4fab]
114
+ - Updated dependencies [44f4aba]
115
+ - Updated dependencies [9bd5ab5]
116
+ - Updated dependencies [57edfcb]
117
+ - Updated dependencies [faf8446]
118
+ - Updated dependencies [7ea4132]
119
+ - Updated dependencies [d1a034f]
120
+ - Updated dependencies [5c56081]
121
+ - Updated dependencies [fd65bc6]
122
+ - Updated dependencies [023ba40]
123
+ - Updated dependencies [ea7a7c9]
124
+ - Updated dependencies [26535e0]
125
+ - Updated dependencies [e030615]
126
+ - Updated dependencies [5e57fae]
127
+ - Updated dependencies [393138b]
128
+ - Updated dependencies [c57e248]
129
+ - Updated dependencies [88a8ee5]
130
+ - Updated dependencies [41fa418]
131
+ - Updated dependencies [205077b]
132
+ - Updated dependencies [71f938d]
133
+ - Updated dependencies [3795467]
134
+ - Updated dependencies [28a5ed5]
135
+ - Updated dependencies [7182d14]
136
+ - Updated dependencies [c1e6647]
137
+ - Updated dependencies [1766ede]
138
+ - Updated dependencies [811dff3]
139
+ - Updated dependencies [f10304b]
140
+ - Updated dependencies [dd5fd43]
141
+ - Updated dependencies [33f4a6a]
142
+ - Updated dependencies [383cbfa]
143
+ - Updated dependencies [27deb4d]
144
+ - Updated dependencies [c4df419]
145
+ - @ai-sdk/provider-utils@3.0.0
146
+ - @ai-sdk/provider@2.0.0
147
+
148
+ ## 2.0.0-beta.13
149
+
150
+ ### Patch Changes
151
+
152
+ - Updated dependencies [88a8ee5]
153
+ - @ai-sdk/provider-utils@3.0.0-beta.10
154
+
155
+ ## 2.0.0-beta.12
156
+
157
+ ### Patch Changes
158
+
159
+ - f418dd7: Added anthropic provider defined tool support to amazon bedrock
160
+ - Updated dependencies [27deb4d]
161
+ - @ai-sdk/provider@2.0.0-beta.2
162
+ - @ai-sdk/provider-utils@3.0.0-beta.9
163
+
164
+ ## 2.0.0-beta.11
165
+
166
+ ### Patch Changes
167
+
168
+ - eb173f1: chore (providers): remove model shorthand deprecation warnings
169
+ - Updated dependencies [dd5fd43]
170
+ - @ai-sdk/provider-utils@3.0.0-beta.8
171
+
172
+ ## 2.0.0-beta.10
173
+
174
+ ### Patch Changes
175
+
176
+ - 269683f: Add raw Anthropic usage information to provider metadata
177
+ - Updated dependencies [e7fcc86]
178
+ - @ai-sdk/provider-utils@3.0.0-beta.7
179
+
180
+ ## 2.0.0-beta.9
181
+
182
+ ### Patch Changes
183
+
184
+ - 4f26d59: feat(provider/anthropic): add disable parallel tool use option
185
+ - a753b3a: feat (provider/anthropic): cache control for tools
186
+ - Updated dependencies [ac34802]
187
+ - @ai-sdk/provider-utils@3.0.0-beta.6
188
+
189
+ ## 2.0.0-beta.8
190
+
191
+ ### Patch Changes
192
+
193
+ - Updated dependencies [57edfcb]
194
+ - Updated dependencies [383cbfa]
195
+ - @ai-sdk/provider-utils@3.0.0-beta.5
196
+
197
+ ## 2.0.0-beta.7
198
+
199
+ ### Patch Changes
200
+
201
+ - 205077b: fix: improve Zod compatibility
202
+ - Updated dependencies [205077b]
203
+ - @ai-sdk/provider-utils@3.0.0-beta.4
204
+
205
+ ## 2.0.0-beta.6
206
+
207
+ ### Patch Changes
208
+
209
+ - Updated dependencies [05d2819]
210
+ - @ai-sdk/provider-utils@3.0.0-beta.3
211
+
212
+ ## 2.0.0-beta.5
213
+
214
+ ### Patch Changes
215
+
216
+ - b9ddcdd: feat(anthropic): add text_editor_20250429 tool for Claude 4 models
217
+
218
+ ## 2.0.0-beta.4
219
+
220
+ ### Patch Changes
221
+
222
+ - fdff8a4: fix(provider/anthropic): correct Claude 4 model ID format
223
+ - 84577c8: fix (providers/anthropic): remove fine grained tool streaming beta
224
+
225
+ ## 2.0.0-beta.3
226
+
227
+ ### Patch Changes
228
+
229
+ - a85c85f: fix (provider/anthropic): streaming json output
230
+ - d1a034f: feature: using Zod 4 for internal stuff
231
+ - 0b678b2: feat (provider/anthropic): enable streaming tool calls
232
+ - Updated dependencies [0571b98]
233
+ - Updated dependencies [39a4fab]
234
+ - Updated dependencies [d1a034f]
235
+ - @ai-sdk/provider-utils@3.0.0-beta.2
236
+
237
+ ## 2.0.0-beta.2
238
+
239
+ ### Patch Changes
240
+
241
+ - d601ed9: fix (provider/anthropic): send tool call id in tool-input-start chunk
242
+
243
+ ## 2.0.0-beta.1
244
+
245
+ ### Patch Changes
246
+
247
+ - 8f2854f: feat (provider/anthropic): send web search tool calls
248
+ - 5d959e7: refactor: updated openai + anthropic tool use server side
249
+ - 9f73965: feat (provider/anthropic): parse websearch tool args
250
+ - 399e056: fix: anthropic computer tool
251
+ - Updated dependencies [742b7be]
252
+ - Updated dependencies [7cddb72]
253
+ - Updated dependencies [ccce59b]
254
+ - Updated dependencies [e2b9e4b]
255
+ - Updated dependencies [45c1ea2]
256
+ - Updated dependencies [e025824]
257
+ - Updated dependencies [0d06df6]
258
+ - Updated dependencies [472524a]
259
+ - Updated dependencies [dd3ff01]
260
+ - Updated dependencies [7435eb5]
261
+ - Updated dependencies [cb68df0]
262
+ - Updated dependencies [bfdca8d]
263
+ - Updated dependencies [44f4aba]
264
+ - Updated dependencies [023ba40]
265
+ - Updated dependencies [5e57fae]
266
+ - Updated dependencies [71f938d]
267
+ - Updated dependencies [28a5ed5]
268
+ - @ai-sdk/provider@2.0.0-beta.1
269
+ - @ai-sdk/provider-utils@3.0.0-beta.1
270
+
271
+ ## 2.0.0-alpha.15
272
+
273
+ ### Patch Changes
274
+
275
+ - Updated dependencies [48d257a]
276
+ - Updated dependencies [8ba77a7]
277
+ - @ai-sdk/provider@2.0.0-alpha.15
278
+ - @ai-sdk/provider-utils@3.0.0-alpha.15
279
+
280
+ ## 2.0.0-alpha.14
281
+
282
+ ### Patch Changes
283
+
284
+ - 2e13791: feat(anthropic): add server-side web search support
285
+ - 6392f60: fix(anthropic): resolve web search API validation errors with partial location + provider output
286
+ - Updated dependencies [b5da06a]
287
+ - Updated dependencies [63f9e9b]
288
+ - Updated dependencies [2e13791]
289
+ - @ai-sdk/provider@2.0.0-alpha.14
290
+ - @ai-sdk/provider-utils@3.0.0-alpha.14
291
+
292
+ ## 2.0.0-alpha.13
293
+
294
+ ### Patch Changes
295
+
296
+ - 8dfcb11: feat(anthropic/citation): text support for citations
297
+ - ee5a9c0: feat: streamText onChunk raw chunk support
298
+ - Updated dependencies [68ecf2f]
299
+ - @ai-sdk/provider@2.0.0-alpha.13
300
+ - @ai-sdk/provider-utils@3.0.0-alpha.13
301
+
302
+ ## 2.0.0-alpha.12
303
+
304
+ ### Patch Changes
305
+
306
+ - e2aceaf: feat: add raw chunk support
307
+ - Updated dependencies [e2aceaf]
308
+ - @ai-sdk/provider@2.0.0-alpha.12
309
+ - @ai-sdk/provider-utils@3.0.0-alpha.12
310
+
311
+ ## 2.0.0-alpha.11
312
+
313
+ ### Patch Changes
314
+
315
+ - 25f3454: feat(provider/anthropic): add PDF citation support with document sources for streamText
316
+ - Updated dependencies [c1e6647]
317
+ - @ai-sdk/provider@2.0.0-alpha.11
318
+ - @ai-sdk/provider-utils@3.0.0-alpha.11
319
+
320
+ ## 2.0.0-alpha.10
321
+
322
+ ### Patch Changes
323
+
324
+ - Updated dependencies [c4df419]
325
+ - @ai-sdk/provider@2.0.0-alpha.10
326
+ - @ai-sdk/provider-utils@3.0.0-alpha.10
327
+
328
+ ## 2.0.0-alpha.9
329
+
330
+ ### Patch Changes
331
+
332
+ - 362b048: add web search tool support
333
+ - Updated dependencies [811dff3]
334
+ - @ai-sdk/provider@2.0.0-alpha.9
335
+ - @ai-sdk/provider-utils@3.0.0-alpha.9
336
+
337
+ ## 2.0.0-alpha.8
338
+
339
+ ### Patch Changes
340
+
341
+ - ad66c0e: feat (provider/anthropic): json response schema support via tool calls
342
+ - 075711d: fix (provider/anthropic): return stop finish reason for json output with tool
343
+ - Updated dependencies [4fef487]
344
+ - Updated dependencies [9222aeb]
345
+ - @ai-sdk/provider-utils@3.0.0-alpha.8
346
+ - @ai-sdk/provider@2.0.0-alpha.8
347
+
348
+ ## 2.0.0-alpha.7
349
+
350
+ ### Patch Changes
351
+
352
+ - Updated dependencies [5c56081]
353
+ - @ai-sdk/provider@2.0.0-alpha.7
354
+ - @ai-sdk/provider-utils@3.0.0-alpha.7
355
+
356
+ ## 2.0.0-alpha.6
357
+
358
+ ### Patch Changes
359
+
360
+ - Updated dependencies [0d2c085]
361
+ - @ai-sdk/provider@2.0.0-alpha.6
362
+ - @ai-sdk/provider-utils@3.0.0-alpha.6
363
+
364
+ ## 2.0.0-alpha.4
365
+
366
+ ### Patch Changes
367
+
368
+ - ca8aac6: feat (providers/anthropic): add claude v4 models
369
+ - Updated dependencies [dc714f3]
370
+ - @ai-sdk/provider@2.0.0-alpha.4
371
+ - @ai-sdk/provider-utils@3.0.0-alpha.4
372
+
373
+ ## 2.0.0-alpha.3
374
+
375
+ ### Patch Changes
376
+
377
+ - Updated dependencies [6b98118]
378
+ - @ai-sdk/provider@2.0.0-alpha.3
379
+ - @ai-sdk/provider-utils@3.0.0-alpha.3
380
+
381
+ ## 2.0.0-alpha.2
382
+
383
+ ### Patch Changes
384
+
385
+ - Updated dependencies [26535e0]
386
+ - @ai-sdk/provider@2.0.0-alpha.2
387
+ - @ai-sdk/provider-utils@3.0.0-alpha.2
388
+
389
+ ## 2.0.0-alpha.1
390
+
391
+ ### Patch Changes
392
+
393
+ - Updated dependencies [3f2f00c]
394
+ - @ai-sdk/provider@2.0.0-alpha.1
395
+ - @ai-sdk/provider-utils@3.0.0-alpha.1
396
+
397
+ ## 2.0.0-canary.19
398
+
399
+ ### Patch Changes
400
+
401
+ - Updated dependencies [faf8446]
402
+ - @ai-sdk/provider-utils@3.0.0-canary.19
403
+
404
+ ## 2.0.0-canary.18
405
+
406
+ ### Patch Changes
407
+
408
+ - Updated dependencies [40acf9b]
409
+ - @ai-sdk/provider-utils@3.0.0-canary.18
410
+
411
+ ## 2.0.0-canary.17
412
+
413
+ ### Patch Changes
414
+
415
+ - Updated dependencies [ea7a7c9]
416
+ - @ai-sdk/provider-utils@3.0.0-canary.17
417
+
418
+ ## 2.0.0-canary.16
419
+
420
+ ### Patch Changes
421
+
422
+ - Updated dependencies [87b828f]
423
+ - @ai-sdk/provider-utils@3.0.0-canary.16
424
+
425
+ ## 2.0.0-canary.15
426
+
427
+ ### Patch Changes
428
+
429
+ - Updated dependencies [a571d6e]
430
+ - Updated dependencies [a8c8bd5]
431
+ - Updated dependencies [7979f7f]
432
+ - Updated dependencies [41fa418]
433
+ - @ai-sdk/provider-utils@3.0.0-canary.15
434
+ - @ai-sdk/provider@2.0.0-canary.14
435
+
436
+ ## 2.0.0-canary.14
437
+
438
+ ### Patch Changes
439
+
440
+ - Updated dependencies [957b739]
441
+ - Updated dependencies [9bd5ab5]
442
+ - @ai-sdk/provider-utils@3.0.0-canary.14
443
+ - @ai-sdk/provider@2.0.0-canary.13
444
+
445
+ ## 2.0.0-canary.13
446
+
447
+ ### Patch Changes
448
+
449
+ - Updated dependencies [7b3ae3f]
450
+ - Updated dependencies [0ff02bb]
451
+ - @ai-sdk/provider@2.0.0-canary.12
452
+ - @ai-sdk/provider-utils@3.0.0-canary.13
453
+
454
+ ## 2.0.0-canary.12
455
+
456
+ ### Patch Changes
457
+
458
+ - 5c9eec4: chore(providers/anthropic): switch to providerOptions
459
+ - Updated dependencies [9bf7291]
460
+ - Updated dependencies [4617fab]
461
+ - Updated dependencies [e030615]
462
+ - @ai-sdk/provider@2.0.0-canary.11
463
+ - @ai-sdk/provider-utils@3.0.0-canary.12
464
+
465
+ ## 2.0.0-canary.11
466
+
467
+ ### Patch Changes
468
+
469
+ - 66962ed: fix(packages): export node10 compatible types
470
+ - Updated dependencies [66962ed]
471
+ - Updated dependencies [9301f86]
472
+ - Updated dependencies [a3f768e]
473
+ - @ai-sdk/provider-utils@3.0.0-canary.11
474
+ - @ai-sdk/provider@2.0.0-canary.10
475
+
476
+ ## 2.0.0-canary.10
477
+
478
+ ### Patch Changes
479
+
480
+ - Updated dependencies [e86be6f]
481
+ - @ai-sdk/provider@2.0.0-canary.9
482
+ - @ai-sdk/provider-utils@3.0.0-canary.10
483
+
484
+ ## 2.0.0-canary.9
485
+
486
+ ### Patch Changes
487
+
488
+ - Updated dependencies [95857aa]
489
+ - Updated dependencies [7ea4132]
490
+ - @ai-sdk/provider@2.0.0-canary.8
491
+ - @ai-sdk/provider-utils@3.0.0-canary.9
492
+
3
493
  ## 2.0.0-canary.8
4
494
 
5
495
  ### Patch Changes
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # AI SDK - Anthropic Provider
2
2
 
3
- The **[Anthropic provider](https://sdk.vercel.ai/providers/ai-sdk-providers/anthropic)** for the [AI SDK](https://sdk.vercel.ai/docs) contains language model support for the [Anthropic Messages API](https://docs.anthropic.com/claude/reference/messages_post).
3
+ The **[Anthropic provider](https://ai-sdk.dev/providers/ai-sdk-providers/anthropic)** for the [AI SDK](https://ai-sdk.dev/docs) contains language model support for the [Anthropic Messages API](https://docs.anthropic.com/claude/reference/messages_post).
4
4
 
5
5
  ## Setup
6
6
 
@@ -32,4 +32,4 @@ const { text } = await generateText({
32
32
 
33
33
  ## Documentation
34
34
 
35
- Please check out the **[Anthropic provider documentation](https://sdk.vercel.ai/providers/ai-sdk-providers/anthropic)** for more information.
35
+ Please check out the **[Anthropic provider documentation](https://ai-sdk.dev/providers/ai-sdk-providers/anthropic)** for more information.