@ai-sdk/anthropic 2.0.53 → 2.0.55
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 +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +4 -4
- package/dist/internal/index.d.ts +4 -4
- package/dist/internal/index.js +2 -2
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +2 -2
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @ai-sdk/anthropic
|
|
2
2
|
|
|
3
|
+
## 2.0.55
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [ef6d784]
|
|
8
|
+
- @ai-sdk/provider-utils@3.0.19
|
|
9
|
+
|
|
10
|
+
## 2.0.54
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- ccf34f3: fix(anthropic): make title field nullable in web_fetch and web_search tool output schemas
|
|
15
|
+
|
|
3
16
|
## 2.0.53
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -426,7 +426,7 @@ declare const anthropicTools: {
|
|
|
426
426
|
url: string;
|
|
427
427
|
content: {
|
|
428
428
|
type: "document";
|
|
429
|
-
title: string;
|
|
429
|
+
title: string | null;
|
|
430
430
|
citations?: {
|
|
431
431
|
enabled: boolean;
|
|
432
432
|
};
|
|
@@ -456,7 +456,7 @@ declare const anthropicTools: {
|
|
|
456
456
|
url: string;
|
|
457
457
|
content: {
|
|
458
458
|
type: "document";
|
|
459
|
-
title: string;
|
|
459
|
+
title: string | null;
|
|
460
460
|
citations?: {
|
|
461
461
|
enabled: boolean;
|
|
462
462
|
};
|
|
@@ -487,7 +487,7 @@ declare const anthropicTools: {
|
|
|
487
487
|
}, {
|
|
488
488
|
type: "web_search_result";
|
|
489
489
|
url: string;
|
|
490
|
-
title: string;
|
|
490
|
+
title: string | null;
|
|
491
491
|
pageAge: string | null;
|
|
492
492
|
encryptedContent: string;
|
|
493
493
|
}[], {
|
|
@@ -506,7 +506,7 @@ declare const anthropicTools: {
|
|
|
506
506
|
}, {
|
|
507
507
|
type: "web_search_result";
|
|
508
508
|
url: string;
|
|
509
|
-
title: string;
|
|
509
|
+
title: string | null;
|
|
510
510
|
pageAge: string | null;
|
|
511
511
|
encryptedContent: string;
|
|
512
512
|
}[]>;
|
package/dist/index.d.ts
CHANGED
|
@@ -426,7 +426,7 @@ declare const anthropicTools: {
|
|
|
426
426
|
url: string;
|
|
427
427
|
content: {
|
|
428
428
|
type: "document";
|
|
429
|
-
title: string;
|
|
429
|
+
title: string | null;
|
|
430
430
|
citations?: {
|
|
431
431
|
enabled: boolean;
|
|
432
432
|
};
|
|
@@ -456,7 +456,7 @@ declare const anthropicTools: {
|
|
|
456
456
|
url: string;
|
|
457
457
|
content: {
|
|
458
458
|
type: "document";
|
|
459
|
-
title: string;
|
|
459
|
+
title: string | null;
|
|
460
460
|
citations?: {
|
|
461
461
|
enabled: boolean;
|
|
462
462
|
};
|
|
@@ -487,7 +487,7 @@ declare const anthropicTools: {
|
|
|
487
487
|
}, {
|
|
488
488
|
type: "web_search_result";
|
|
489
489
|
url: string;
|
|
490
|
-
title: string;
|
|
490
|
+
title: string | null;
|
|
491
491
|
pageAge: string | null;
|
|
492
492
|
encryptedContent: string;
|
|
493
493
|
}[], {
|
|
@@ -506,7 +506,7 @@ declare const anthropicTools: {
|
|
|
506
506
|
}, {
|
|
507
507
|
type: "web_search_result";
|
|
508
508
|
url: string;
|
|
509
|
-
title: string;
|
|
509
|
+
title: string | null;
|
|
510
510
|
pageAge: string | null;
|
|
511
511
|
encryptedContent: string;
|
|
512
512
|
}[]>;
|
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 ? "2.0.
|
|
34
|
+
var VERSION = true ? "2.0.55" : "0.0.0-test";
|
|
35
35
|
|
|
36
36
|
// src/anthropic-messages-language-model.ts
|
|
37
37
|
var import_provider3 = require("@ai-sdk/provider");
|
|
@@ -706,7 +706,7 @@ var webSearch_20250305OutputSchema = (0, import_provider_utils5.lazySchema)(
|
|
|
706
706
|
import_v45.z.array(
|
|
707
707
|
import_v45.z.object({
|
|
708
708
|
url: import_v45.z.string(),
|
|
709
|
-
title: import_v45.z.string(),
|
|
709
|
+
title: import_v45.z.string().nullable(),
|
|
710
710
|
pageAge: import_v45.z.string().nullable(),
|
|
711
711
|
encryptedContent: import_v45.z.string(),
|
|
712
712
|
type: import_v45.z.literal("web_search_result")
|
|
@@ -752,7 +752,7 @@ var webFetch_20250910OutputSchema = (0, import_provider_utils6.lazySchema)(
|
|
|
752
752
|
url: import_v46.z.string(),
|
|
753
753
|
content: import_v46.z.object({
|
|
754
754
|
type: import_v46.z.literal("document"),
|
|
755
|
-
title: import_v46.z.string(),
|
|
755
|
+
title: import_v46.z.string().nullable(),
|
|
756
756
|
citations: import_v46.z.object({ enabled: import_v46.z.boolean() }).optional(),
|
|
757
757
|
source: import_v46.z.union([
|
|
758
758
|
import_v46.z.object({
|