@ai-sdk/anthropic 3.0.0-beta.79 → 3.0.0-beta.80
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 +6 -0
- package/dist/index.d.mts +25 -5
- package/dist/index.d.ts +25 -5
- 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 +25 -5
- package/dist/internal/index.d.ts +25 -5
- 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 +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -497,7 +497,7 @@ declare const anthropicTools: {
|
|
|
497
497
|
url: string;
|
|
498
498
|
content: {
|
|
499
499
|
type: "document";
|
|
500
|
-
title: string;
|
|
500
|
+
title: string | null;
|
|
501
501
|
citations?: {
|
|
502
502
|
enabled: boolean;
|
|
503
503
|
};
|
|
@@ -527,7 +527,7 @@ declare const anthropicTools: {
|
|
|
527
527
|
url: string;
|
|
528
528
|
content: {
|
|
529
529
|
type: "document";
|
|
530
|
-
title: string;
|
|
530
|
+
title: string | null;
|
|
531
531
|
citations?: {
|
|
532
532
|
enabled: boolean;
|
|
533
533
|
};
|
|
@@ -556,7 +556,7 @@ declare const anthropicTools: {
|
|
|
556
556
|
}, {
|
|
557
557
|
type: "web_search_result";
|
|
558
558
|
url: string;
|
|
559
|
-
title: string;
|
|
559
|
+
title: string | null;
|
|
560
560
|
pageAge: string | null;
|
|
561
561
|
encryptedContent: string;
|
|
562
562
|
}[], {
|
|
@@ -566,7 +566,27 @@ declare const anthropicTools: {
|
|
|
566
566
|
userLocation?: {
|
|
567
567
|
type: "approximate";
|
|
568
568
|
city?: string;
|
|
569
|
-
region
|
|
569
|
+
region
|
|
570
|
+
/**
|
|
571
|
+
* Claude can interact with computer environments through the computer use tool, which
|
|
572
|
+
* provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.
|
|
573
|
+
*
|
|
574
|
+
* Image results are supported.
|
|
575
|
+
*
|
|
576
|
+
* @param displayWidthPx - The width of the display being controlled by the model in pixels.
|
|
577
|
+
* @param displayHeightPx - The height of the display being controlled by the model in pixels.
|
|
578
|
+
* @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.
|
|
579
|
+
*/
|
|
580
|
+
? /**
|
|
581
|
+
* Claude can interact with computer environments through the computer use tool, which
|
|
582
|
+
* provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.
|
|
583
|
+
*
|
|
584
|
+
* Image results are supported.
|
|
585
|
+
*
|
|
586
|
+
* @param displayWidthPx - The width of the display being controlled by the model in pixels.
|
|
587
|
+
* @param displayHeightPx - The height of the display being controlled by the model in pixels.
|
|
588
|
+
* @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.
|
|
589
|
+
*/: string;
|
|
570
590
|
country?: string;
|
|
571
591
|
timezone?: string;
|
|
572
592
|
};
|
|
@@ -575,7 +595,7 @@ declare const anthropicTools: {
|
|
|
575
595
|
}, {
|
|
576
596
|
type: "web_search_result";
|
|
577
597
|
url: string;
|
|
578
|
-
title: string;
|
|
598
|
+
title: string | null;
|
|
579
599
|
pageAge: string | null;
|
|
580
600
|
encryptedContent: string;
|
|
581
601
|
}[]>;
|
package/dist/index.d.ts
CHANGED
|
@@ -497,7 +497,7 @@ declare const anthropicTools: {
|
|
|
497
497
|
url: string;
|
|
498
498
|
content: {
|
|
499
499
|
type: "document";
|
|
500
|
-
title: string;
|
|
500
|
+
title: string | null;
|
|
501
501
|
citations?: {
|
|
502
502
|
enabled: boolean;
|
|
503
503
|
};
|
|
@@ -527,7 +527,7 @@ declare const anthropicTools: {
|
|
|
527
527
|
url: string;
|
|
528
528
|
content: {
|
|
529
529
|
type: "document";
|
|
530
|
-
title: string;
|
|
530
|
+
title: string | null;
|
|
531
531
|
citations?: {
|
|
532
532
|
enabled: boolean;
|
|
533
533
|
};
|
|
@@ -556,7 +556,7 @@ declare const anthropicTools: {
|
|
|
556
556
|
}, {
|
|
557
557
|
type: "web_search_result";
|
|
558
558
|
url: string;
|
|
559
|
-
title: string;
|
|
559
|
+
title: string | null;
|
|
560
560
|
pageAge: string | null;
|
|
561
561
|
encryptedContent: string;
|
|
562
562
|
}[], {
|
|
@@ -566,7 +566,27 @@ declare const anthropicTools: {
|
|
|
566
566
|
userLocation?: {
|
|
567
567
|
type: "approximate";
|
|
568
568
|
city?: string;
|
|
569
|
-
region
|
|
569
|
+
region
|
|
570
|
+
/**
|
|
571
|
+
* Claude can interact with computer environments through the computer use tool, which
|
|
572
|
+
* provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.
|
|
573
|
+
*
|
|
574
|
+
* Image results are supported.
|
|
575
|
+
*
|
|
576
|
+
* @param displayWidthPx - The width of the display being controlled by the model in pixels.
|
|
577
|
+
* @param displayHeightPx - The height of the display being controlled by the model in pixels.
|
|
578
|
+
* @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.
|
|
579
|
+
*/
|
|
580
|
+
? /**
|
|
581
|
+
* Claude can interact with computer environments through the computer use tool, which
|
|
582
|
+
* provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.
|
|
583
|
+
*
|
|
584
|
+
* Image results are supported.
|
|
585
|
+
*
|
|
586
|
+
* @param displayWidthPx - The width of the display being controlled by the model in pixels.
|
|
587
|
+
* @param displayHeightPx - The height of the display being controlled by the model in pixels.
|
|
588
|
+
* @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.
|
|
589
|
+
*/: string;
|
|
570
590
|
country?: string;
|
|
571
591
|
timezone?: string;
|
|
572
592
|
};
|
|
@@ -575,7 +595,7 @@ declare const anthropicTools: {
|
|
|
575
595
|
}, {
|
|
576
596
|
type: "web_search_result";
|
|
577
597
|
url: string;
|
|
578
|
-
title: string;
|
|
598
|
+
title: string | null;
|
|
579
599
|
pageAge: string | null;
|
|
580
600
|
encryptedContent: string;
|
|
581
601
|
}[]>;
|
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ var import_provider4 = require("@ai-sdk/provider");
|
|
|
31
31
|
var import_provider_utils22 = 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.80" : "0.0.0-test";
|
|
35
35
|
|
|
36
36
|
// src/anthropic-messages-language-model.ts
|
|
37
37
|
var import_provider3 = require("@ai-sdk/provider");
|
|
@@ -904,7 +904,7 @@ var webSearch_20250305OutputSchema = (0, import_provider_utils5.lazySchema)(
|
|
|
904
904
|
import_v45.z.array(
|
|
905
905
|
import_v45.z.object({
|
|
906
906
|
url: import_v45.z.string(),
|
|
907
|
-
title: import_v45.z.string(),
|
|
907
|
+
title: import_v45.z.string().nullable(),
|
|
908
908
|
pageAge: import_v45.z.string().nullable(),
|
|
909
909
|
encryptedContent: import_v45.z.string(),
|
|
910
910
|
type: import_v45.z.literal("web_search_result")
|
|
@@ -949,7 +949,7 @@ var webFetch_20250910OutputSchema = (0, import_provider_utils6.lazySchema)(
|
|
|
949
949
|
url: import_v46.z.string(),
|
|
950
950
|
content: import_v46.z.object({
|
|
951
951
|
type: import_v46.z.literal("document"),
|
|
952
|
-
title: import_v46.z.string(),
|
|
952
|
+
title: import_v46.z.string().nullable(),
|
|
953
953
|
citations: import_v46.z.object({ enabled: import_v46.z.boolean() }).optional(),
|
|
954
954
|
source: import_v46.z.union([
|
|
955
955
|
import_v46.z.object({
|