@fairyhunter13/ai-anthropic 3.0.58-fork.15 → 3.0.58-fork.16
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/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +9 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -6
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +2 -0
- package/dist/internal/index.d.ts +2 -0
- package/dist/internal/index.js +9 -6
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +9 -6
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/anthropic-messages-api.ts +3 -0
- package/src/anthropic-messages-language-model.ts +1 -1
- package/src/anthropic-prepare-tools.ts +5 -4
- package/src/tool/web-search_20260209.ts +17 -0
package/dist/index.d.mts
CHANGED
|
@@ -1031,6 +1031,7 @@ declare const anthropicTools: {
|
|
|
1031
1031
|
country?: string;
|
|
1032
1032
|
timezone?: string;
|
|
1033
1033
|
};
|
|
1034
|
+
allowedCallers?: Array<"direct" | "code_execution_20250825" | "code_execution_20260120">;
|
|
1034
1035
|
}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
1035
1036
|
query: string;
|
|
1036
1037
|
}, {
|
package/dist/index.d.ts
CHANGED
|
@@ -1031,6 +1031,7 @@ declare const anthropicTools: {
|
|
|
1031
1031
|
country?: string;
|
|
1032
1032
|
timezone?: string;
|
|
1033
1033
|
};
|
|
1034
|
+
allowedCallers?: Array<"direct" | "code_execution_20250825" | "code_execution_20260120">;
|
|
1034
1035
|
}>>[0]) => _ai_sdk_provider_utils.Tool<{
|
|
1035
1036
|
query: string;
|
|
1036
1037
|
}, {
|
package/dist/index.js
CHANGED
|
@@ -1099,7 +1099,14 @@ var webSearch_20260209ArgsSchema = (0, import_provider_utils5.lazySchema)(
|
|
|
1099
1099
|
region: import_v45.z.string().optional(),
|
|
1100
1100
|
country: import_v45.z.string().optional(),
|
|
1101
1101
|
timezone: import_v45.z.string().optional()
|
|
1102
|
-
}).optional()
|
|
1102
|
+
}).optional(),
|
|
1103
|
+
allowedCallers: import_v45.z.array(
|
|
1104
|
+
import_v45.z.enum([
|
|
1105
|
+
"direct",
|
|
1106
|
+
"code_execution_20250825",
|
|
1107
|
+
"code_execution_20260120"
|
|
1108
|
+
])
|
|
1109
|
+
).optional()
|
|
1103
1110
|
})
|
|
1104
1111
|
)
|
|
1105
1112
|
);
|
|
@@ -1435,7 +1442,6 @@ async function prepareTools({
|
|
|
1435
1442
|
break;
|
|
1436
1443
|
}
|
|
1437
1444
|
case "anthropic.code_execution_20250825": {
|
|
1438
|
-
betas.add("code-execution-2025-08-25");
|
|
1439
1445
|
anthropicTools2.push({
|
|
1440
1446
|
type: "code_execution_20250825",
|
|
1441
1447
|
name: "code_execution"
|
|
@@ -1553,7 +1559,6 @@ async function prepareTools({
|
|
|
1553
1559
|
break;
|
|
1554
1560
|
}
|
|
1555
1561
|
case "anthropic.web_fetch_20250910": {
|
|
1556
|
-
betas.add("web-fetch-2025-09-10");
|
|
1557
1562
|
const args = await (0, import_provider_utils10.validateTypes)({
|
|
1558
1563
|
value: tool.args,
|
|
1559
1564
|
schema: webFetch_20250910ArgsSchema
|
|
@@ -1571,7 +1576,6 @@ async function prepareTools({
|
|
|
1571
1576
|
break;
|
|
1572
1577
|
}
|
|
1573
1578
|
case "anthropic.web_fetch_20260209": {
|
|
1574
|
-
betas.add("code-execution-web-tools-2026-02-09");
|
|
1575
1579
|
const args = await (0, import_provider_utils10.validateTypes)({
|
|
1576
1580
|
value: tool.args,
|
|
1577
1581
|
schema: webFetch_20260209ArgsSchema
|
|
@@ -1626,7 +1630,6 @@ async function prepareTools({
|
|
|
1626
1630
|
break;
|
|
1627
1631
|
}
|
|
1628
1632
|
case "anthropic.web_search_20260209": {
|
|
1629
|
-
betas.add("code-execution-web-tools-2026-02-09");
|
|
1630
1633
|
const args = await (0, import_provider_utils10.validateTypes)({
|
|
1631
1634
|
value: tool.args,
|
|
1632
1635
|
schema: webSearch_20260209ArgsSchema
|
|
@@ -1638,6 +1641,7 @@ async function prepareTools({
|
|
|
1638
1641
|
allowed_domains: args.allowedDomains,
|
|
1639
1642
|
blocked_domains: args.blockedDomains,
|
|
1640
1643
|
user_location: args.userLocation,
|
|
1644
|
+
allowed_callers: args.allowedCallers,
|
|
1641
1645
|
cache_control: void 0
|
|
1642
1646
|
});
|
|
1643
1647
|
break;
|
|
@@ -3417,7 +3421,6 @@ var AnthropicMessagesLanguageModel = class {
|
|
|
3417
3421
|
}
|
|
3418
3422
|
}
|
|
3419
3423
|
if ((anthropicOptions == null ? void 0 : anthropicOptions.container) && anthropicOptions.container.skills && anthropicOptions.container.skills.length > 0) {
|
|
3420
|
-
betas.add("code-execution-2025-08-25");
|
|
3421
3424
|
betas.add("skills-2025-10-02");
|
|
3422
3425
|
betas.add("files-api-2025-04-14");
|
|
3423
3426
|
if (!(tools == null ? void 0 : tools.some(
|