@ai-sdk/anthropic 4.0.54 → 4.0.56

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.js CHANGED
@@ -11,6 +11,7 @@ import {
11
11
  withoutTrailingSlash,
12
12
  withUserAgentSuffix
13
13
  } from "@ai-sdk/provider-utils";
14
+ import { Experimental_EvaluationLanguageModel as EvaluationLanguageModel } from "@ai-sdk/provider-utils/experimental-evaluation";
14
15
 
15
16
  // src/anthropic-files.ts
16
17
  import {
@@ -1405,14 +1406,14 @@ var textEditor_20250728 = (args = {}) => {
1405
1406
  return factory2(args);
1406
1407
  };
1407
1408
 
1408
- // src/tool/web-search_20260209.ts
1409
+ // src/tool/web-search_20260318.ts
1409
1410
  import {
1410
1411
  createProviderExecutedToolFactory as createProviderExecutedToolFactory2,
1411
1412
  lazySchema as lazySchema6,
1412
1413
  zodSchema as zodSchema6
1413
1414
  } from "@ai-sdk/provider-utils";
1414
1415
  import { z as z7 } from "zod/v4";
1415
- var webSearch_20260209ArgsSchema = lazySchema6(
1416
+ var webSearch_20260318ArgsSchema = lazySchema6(
1416
1417
  () => zodSchema6(
1417
1418
  z7.object({
1418
1419
  maxUses: z7.number().optional(),
@@ -1424,11 +1425,12 @@ var webSearch_20260209ArgsSchema = lazySchema6(
1424
1425
  region: z7.string().optional(),
1425
1426
  country: z7.string().optional(),
1426
1427
  timezone: z7.string().optional()
1427
- }).optional()
1428
+ }).optional(),
1429
+ responseInclusion: z7.enum(["full", "excluded"]).optional()
1428
1430
  })
1429
1431
  )
1430
1432
  );
1431
- var webSearch_20260209OutputSchema = lazySchema6(
1433
+ var webSearch_20260318OutputSchema = lazySchema6(
1432
1434
  () => zodSchema6(
1433
1435
  z7.array(
1434
1436
  z7.object({
@@ -1441,7 +1443,7 @@ var webSearch_20260209OutputSchema = lazySchema6(
1441
1443
  )
1442
1444
  )
1443
1445
  );
1444
- var webSearch_20260209InputSchema = lazySchema6(
1446
+ var webSearch_20260318InputSchema = lazySchema6(
1445
1447
  () => zodSchema6(
1446
1448
  z7.object({
1447
1449
  query: z7.string()
@@ -1449,23 +1451,23 @@ var webSearch_20260209InputSchema = lazySchema6(
1449
1451
  )
1450
1452
  );
1451
1453
  var factory3 = createProviderExecutedToolFactory2({
1452
- id: "anthropic.web_search_20260209",
1453
- inputSchema: webSearch_20260209InputSchema,
1454
- outputSchema: webSearch_20260209OutputSchema,
1454
+ id: "anthropic.web_search_20260318",
1455
+ inputSchema: webSearch_20260318InputSchema,
1456
+ outputSchema: webSearch_20260318OutputSchema,
1455
1457
  supportsDeferredResults: true
1456
1458
  });
1457
- var webSearch_20260209 = (args = {}) => {
1459
+ var webSearch_20260318 = (args = {}) => {
1458
1460
  return factory3(args);
1459
1461
  };
1460
1462
 
1461
- // src/tool/web-search_20250305.ts
1463
+ // src/tool/web-search_20260209.ts
1462
1464
  import {
1463
1465
  createProviderExecutedToolFactory as createProviderExecutedToolFactory3,
1464
1466
  lazySchema as lazySchema7,
1465
1467
  zodSchema as zodSchema7
1466
1468
  } from "@ai-sdk/provider-utils";
1467
1469
  import { z as z8 } from "zod/v4";
1468
- var webSearch_20250305ArgsSchema = lazySchema7(
1470
+ var webSearch_20260209ArgsSchema = lazySchema7(
1469
1471
  () => zodSchema7(
1470
1472
  z8.object({
1471
1473
  maxUses: z8.number().optional(),
@@ -1481,7 +1483,7 @@ var webSearch_20250305ArgsSchema = lazySchema7(
1481
1483
  })
1482
1484
  )
1483
1485
  );
1484
- var webSearch_20250305OutputSchema = lazySchema7(
1486
+ var webSearch_20260209OutputSchema = lazySchema7(
1485
1487
  () => zodSchema7(
1486
1488
  z8.array(
1487
1489
  z8.object({
@@ -1494,7 +1496,7 @@ var webSearch_20250305OutputSchema = lazySchema7(
1494
1496
  )
1495
1497
  )
1496
1498
  );
1497
- var webSearch_20250305InputSchema = lazySchema7(
1499
+ var webSearch_20260209InputSchema = lazySchema7(
1498
1500
  () => zodSchema7(
1499
1501
  z8.object({
1500
1502
  query: z8.string()
@@ -1502,95 +1504,89 @@ var webSearch_20250305InputSchema = lazySchema7(
1502
1504
  )
1503
1505
  );
1504
1506
  var factory4 = createProviderExecutedToolFactory3({
1505
- id: "anthropic.web_search_20250305",
1506
- inputSchema: webSearch_20250305InputSchema,
1507
- outputSchema: webSearch_20250305OutputSchema,
1507
+ id: "anthropic.web_search_20260209",
1508
+ inputSchema: webSearch_20260209InputSchema,
1509
+ outputSchema: webSearch_20260209OutputSchema,
1508
1510
  supportsDeferredResults: true
1509
1511
  });
1510
- var webSearch_20250305 = (args = {}) => {
1512
+ var webSearch_20260209 = (args = {}) => {
1511
1513
  return factory4(args);
1512
1514
  };
1513
1515
 
1514
- // src/tool/web-fetch-20260209.ts
1516
+ // src/tool/web-search_20250305.ts
1515
1517
  import {
1516
1518
  createProviderExecutedToolFactory as createProviderExecutedToolFactory4,
1517
1519
  lazySchema as lazySchema8,
1518
1520
  zodSchema as zodSchema8
1519
1521
  } from "@ai-sdk/provider-utils";
1520
1522
  import { z as z9 } from "zod/v4";
1521
- var webFetch_20260209ArgsSchema = lazySchema8(
1523
+ var webSearch_20250305ArgsSchema = lazySchema8(
1522
1524
  () => zodSchema8(
1523
1525
  z9.object({
1524
1526
  maxUses: z9.number().optional(),
1525
1527
  allowedDomains: z9.array(z9.string()).optional(),
1526
1528
  blockedDomains: z9.array(z9.string()).optional(),
1527
- citations: z9.object({ enabled: z9.boolean() }).optional(),
1528
- maxContentTokens: z9.number().optional()
1529
+ userLocation: z9.object({
1530
+ type: z9.literal("approximate"),
1531
+ city: z9.string().optional(),
1532
+ region: z9.string().optional(),
1533
+ country: z9.string().optional(),
1534
+ timezone: z9.string().optional()
1535
+ }).optional()
1529
1536
  })
1530
1537
  )
1531
1538
  );
1532
- var webFetch_20260209OutputSchema = lazySchema8(
1539
+ var webSearch_20250305OutputSchema = lazySchema8(
1533
1540
  () => zodSchema8(
1534
- z9.object({
1535
- type: z9.literal("web_fetch_result"),
1536
- url: z9.string(),
1537
- content: z9.object({
1538
- type: z9.literal("document"),
1541
+ z9.array(
1542
+ z9.object({
1543
+ url: z9.string(),
1539
1544
  title: z9.string().nullable(),
1540
- citations: z9.object({ enabled: z9.boolean() }).optional(),
1541
- source: z9.union([
1542
- z9.object({
1543
- type: z9.literal("base64"),
1544
- mediaType: z9.literal("application/pdf"),
1545
- data: z9.string()
1546
- }),
1547
- z9.object({
1548
- type: z9.literal("text"),
1549
- mediaType: z9.literal("text/plain"),
1550
- data: z9.string()
1551
- })
1552
- ])
1553
- }),
1554
- retrievedAt: z9.string().nullable()
1555
- })
1545
+ pageAge: z9.string().nullable(),
1546
+ encryptedContent: z9.string(),
1547
+ type: z9.literal("web_search_result")
1548
+ })
1549
+ )
1556
1550
  )
1557
1551
  );
1558
- var webFetch_20260209InputSchema = lazySchema8(
1552
+ var webSearch_20250305InputSchema = lazySchema8(
1559
1553
  () => zodSchema8(
1560
1554
  z9.object({
1561
- url: z9.string()
1555
+ query: z9.string()
1562
1556
  })
1563
1557
  )
1564
1558
  );
1565
1559
  var factory5 = createProviderExecutedToolFactory4({
1566
- id: "anthropic.web_fetch_20260209",
1567
- inputSchema: webFetch_20260209InputSchema,
1568
- outputSchema: webFetch_20260209OutputSchema,
1560
+ id: "anthropic.web_search_20250305",
1561
+ inputSchema: webSearch_20250305InputSchema,
1562
+ outputSchema: webSearch_20250305OutputSchema,
1569
1563
  supportsDeferredResults: true
1570
1564
  });
1571
- var webFetch_20260209 = (args = {}) => {
1565
+ var webSearch_20250305 = (args = {}) => {
1572
1566
  return factory5(args);
1573
1567
  };
1574
1568
 
1575
- // src/tool/web-fetch-20250910.ts
1569
+ // src/tool/web-fetch-20260318.ts
1576
1570
  import {
1577
1571
  createProviderExecutedToolFactory as createProviderExecutedToolFactory5,
1578
1572
  lazySchema as lazySchema9,
1579
1573
  zodSchema as zodSchema9
1580
1574
  } from "@ai-sdk/provider-utils";
1581
1575
  import { z as z10 } from "zod/v4";
1582
- var webFetch_20250910ArgsSchema = lazySchema9(
1576
+ var webFetch_20260318ArgsSchema = lazySchema9(
1583
1577
  () => zodSchema9(
1584
1578
  z10.object({
1585
1579
  maxUses: z10.number().optional(),
1586
1580
  allowedDomains: z10.array(z10.string()).optional(),
1587
1581
  blockedDomains: z10.array(z10.string()).optional(),
1588
1582
  citations: z10.object({ enabled: z10.boolean() }).optional(),
1589
- maxContentTokens: z10.number().optional()
1583
+ maxContentTokens: z10.number().optional(),
1584
+ useCache: z10.boolean().optional(),
1585
+ responseInclusion: z10.enum(["full", "excluded"]).optional()
1590
1586
  })
1591
1587
  )
1592
1588
  );
1593
- var webFetch_20250910OutputSchema = lazySchema9(
1589
+ var webFetch_20260318OutputSchema = lazySchema9(
1594
1590
  () => zodSchema9(
1595
1591
  z10.object({
1596
1592
  type: z10.literal("web_fetch_result"),
@@ -1616,7 +1612,7 @@ var webFetch_20250910OutputSchema = lazySchema9(
1616
1612
  })
1617
1613
  )
1618
1614
  );
1619
- var webFetch_20250910InputSchema = lazySchema9(
1615
+ var webFetch_20260318InputSchema = lazySchema9(
1620
1616
  () => zodSchema9(
1621
1617
  z10.object({
1622
1618
  url: z10.string()
@@ -1624,13 +1620,135 @@ var webFetch_20250910InputSchema = lazySchema9(
1624
1620
  )
1625
1621
  );
1626
1622
  var factory6 = createProviderExecutedToolFactory5({
1623
+ id: "anthropic.web_fetch_20260318",
1624
+ inputSchema: webFetch_20260318InputSchema,
1625
+ outputSchema: webFetch_20260318OutputSchema,
1626
+ supportsDeferredResults: true
1627
+ });
1628
+ var webFetch_20260318 = (args = {}) => {
1629
+ return factory6(args);
1630
+ };
1631
+
1632
+ // src/tool/web-fetch-20260209.ts
1633
+ import {
1634
+ createProviderExecutedToolFactory as createProviderExecutedToolFactory6,
1635
+ lazySchema as lazySchema10,
1636
+ zodSchema as zodSchema10
1637
+ } from "@ai-sdk/provider-utils";
1638
+ import { z as z11 } from "zod/v4";
1639
+ var webFetch_20260209ArgsSchema = lazySchema10(
1640
+ () => zodSchema10(
1641
+ z11.object({
1642
+ maxUses: z11.number().optional(),
1643
+ allowedDomains: z11.array(z11.string()).optional(),
1644
+ blockedDomains: z11.array(z11.string()).optional(),
1645
+ citations: z11.object({ enabled: z11.boolean() }).optional(),
1646
+ maxContentTokens: z11.number().optional()
1647
+ })
1648
+ )
1649
+ );
1650
+ var webFetch_20260209OutputSchema = lazySchema10(
1651
+ () => zodSchema10(
1652
+ z11.object({
1653
+ type: z11.literal("web_fetch_result"),
1654
+ url: z11.string(),
1655
+ content: z11.object({
1656
+ type: z11.literal("document"),
1657
+ title: z11.string().nullable(),
1658
+ citations: z11.object({ enabled: z11.boolean() }).optional(),
1659
+ source: z11.union([
1660
+ z11.object({
1661
+ type: z11.literal("base64"),
1662
+ mediaType: z11.literal("application/pdf"),
1663
+ data: z11.string()
1664
+ }),
1665
+ z11.object({
1666
+ type: z11.literal("text"),
1667
+ mediaType: z11.literal("text/plain"),
1668
+ data: z11.string()
1669
+ })
1670
+ ])
1671
+ }),
1672
+ retrievedAt: z11.string().nullable()
1673
+ })
1674
+ )
1675
+ );
1676
+ var webFetch_20260209InputSchema = lazySchema10(
1677
+ () => zodSchema10(
1678
+ z11.object({
1679
+ url: z11.string()
1680
+ })
1681
+ )
1682
+ );
1683
+ var factory7 = createProviderExecutedToolFactory6({
1684
+ id: "anthropic.web_fetch_20260209",
1685
+ inputSchema: webFetch_20260209InputSchema,
1686
+ outputSchema: webFetch_20260209OutputSchema,
1687
+ supportsDeferredResults: true
1688
+ });
1689
+ var webFetch_20260209 = (args = {}) => {
1690
+ return factory7(args);
1691
+ };
1692
+
1693
+ // src/tool/web-fetch-20250910.ts
1694
+ import {
1695
+ createProviderExecutedToolFactory as createProviderExecutedToolFactory7,
1696
+ lazySchema as lazySchema11,
1697
+ zodSchema as zodSchema11
1698
+ } from "@ai-sdk/provider-utils";
1699
+ import { z as z12 } from "zod/v4";
1700
+ var webFetch_20250910ArgsSchema = lazySchema11(
1701
+ () => zodSchema11(
1702
+ z12.object({
1703
+ maxUses: z12.number().optional(),
1704
+ allowedDomains: z12.array(z12.string()).optional(),
1705
+ blockedDomains: z12.array(z12.string()).optional(),
1706
+ citations: z12.object({ enabled: z12.boolean() }).optional(),
1707
+ maxContentTokens: z12.number().optional()
1708
+ })
1709
+ )
1710
+ );
1711
+ var webFetch_20250910OutputSchema = lazySchema11(
1712
+ () => zodSchema11(
1713
+ z12.object({
1714
+ type: z12.literal("web_fetch_result"),
1715
+ url: z12.string(),
1716
+ content: z12.object({
1717
+ type: z12.literal("document"),
1718
+ title: z12.string().nullable(),
1719
+ citations: z12.object({ enabled: z12.boolean() }).optional(),
1720
+ source: z12.union([
1721
+ z12.object({
1722
+ type: z12.literal("base64"),
1723
+ mediaType: z12.literal("application/pdf"),
1724
+ data: z12.string()
1725
+ }),
1726
+ z12.object({
1727
+ type: z12.literal("text"),
1728
+ mediaType: z12.literal("text/plain"),
1729
+ data: z12.string()
1730
+ })
1731
+ ])
1732
+ }),
1733
+ retrievedAt: z12.string().nullable()
1734
+ })
1735
+ )
1736
+ );
1737
+ var webFetch_20250910InputSchema = lazySchema11(
1738
+ () => zodSchema11(
1739
+ z12.object({
1740
+ url: z12.string()
1741
+ })
1742
+ )
1743
+ );
1744
+ var factory8 = createProviderExecutedToolFactory7({
1627
1745
  id: "anthropic.web_fetch_20250910",
1628
1746
  inputSchema: webFetch_20250910InputSchema,
1629
1747
  outputSchema: webFetch_20250910OutputSchema,
1630
1748
  supportsDeferredResults: true
1631
1749
  });
1632
1750
  var webFetch_20250910 = (args = {}) => {
1633
- return factory6(args);
1751
+ return factory8(args);
1634
1752
  };
1635
1753
 
1636
1754
  // src/anthropic-prepare-tools.ts
@@ -1859,6 +1977,25 @@ async function prepareTools({
1859
1977
  });
1860
1978
  break;
1861
1979
  }
1980
+ case "anthropic.web_fetch_20260318": {
1981
+ const args = await validateTypes({
1982
+ value: tool.args,
1983
+ schema: webFetch_20260318ArgsSchema
1984
+ });
1985
+ anthropicTools2.push({
1986
+ type: "web_fetch_20260318",
1987
+ name: "web_fetch",
1988
+ max_uses: args.maxUses,
1989
+ allowed_domains: args.allowedDomains,
1990
+ blocked_domains: args.blockedDomains,
1991
+ citations: args.citations,
1992
+ max_content_tokens: args.maxContentTokens,
1993
+ use_cache: args.useCache,
1994
+ response_inclusion: args.responseInclusion,
1995
+ cache_control: void 0
1996
+ });
1997
+ break;
1998
+ }
1862
1999
  case "anthropic.web_search_20250305": {
1863
2000
  const args = await validateTypes({
1864
2001
  value: tool.args,
@@ -1892,6 +2029,23 @@ async function prepareTools({
1892
2029
  });
1893
2030
  break;
1894
2031
  }
2032
+ case "anthropic.web_search_20260318": {
2033
+ const args = await validateTypes({
2034
+ value: tool.args,
2035
+ schema: webSearch_20260318ArgsSchema
2036
+ });
2037
+ anthropicTools2.push({
2038
+ type: "web_search_20260318",
2039
+ name: "web_search",
2040
+ max_uses: args.maxUses,
2041
+ allowed_domains: args.allowedDomains,
2042
+ blocked_domains: args.blockedDomains,
2043
+ user_location: args.userLocation,
2044
+ response_inclusion: args.responseInclusion,
2045
+ cache_control: void 0
2046
+ });
2047
+ break;
2048
+ }
1895
2049
  case "anthropic.tool_search_regex_20251119": {
1896
2050
  anthropicTools2.push({
1897
2051
  type: "tool_search_tool_regex_20251119",
@@ -2065,145 +2219,145 @@ import {
2065
2219
 
2066
2220
  // src/tool/code-execution_20250522.ts
2067
2221
  import {
2068
- createProviderExecutedToolFactory as createProviderExecutedToolFactory6,
2069
- lazySchema as lazySchema10,
2070
- zodSchema as zodSchema10
2222
+ createProviderExecutedToolFactory as createProviderExecutedToolFactory8,
2223
+ lazySchema as lazySchema12,
2224
+ zodSchema as zodSchema12
2071
2225
  } from "@ai-sdk/provider-utils";
2072
- import { z as z11 } from "zod/v4";
2073
- var codeExecution_20250522OutputSchema = lazySchema10(
2074
- () => zodSchema10(
2075
- z11.object({
2076
- type: z11.literal("code_execution_result"),
2077
- stdout: z11.string(),
2078
- stderr: z11.string(),
2079
- return_code: z11.number(),
2080
- content: z11.array(
2081
- z11.object({
2082
- type: z11.literal("code_execution_output"),
2083
- file_id: z11.string()
2226
+ import { z as z13 } from "zod/v4";
2227
+ var codeExecution_20250522OutputSchema = lazySchema12(
2228
+ () => zodSchema12(
2229
+ z13.object({
2230
+ type: z13.literal("code_execution_result"),
2231
+ stdout: z13.string(),
2232
+ stderr: z13.string(),
2233
+ return_code: z13.number(),
2234
+ content: z13.array(
2235
+ z13.object({
2236
+ type: z13.literal("code_execution_output"),
2237
+ file_id: z13.string()
2084
2238
  })
2085
2239
  ).optional().default([])
2086
2240
  })
2087
2241
  )
2088
2242
  );
2089
- var codeExecution_20250522InputSchema = lazySchema10(
2090
- () => zodSchema10(
2091
- z11.object({
2092
- code: z11.string()
2243
+ var codeExecution_20250522InputSchema = lazySchema12(
2244
+ () => zodSchema12(
2245
+ z13.object({
2246
+ code: z13.string()
2093
2247
  })
2094
2248
  )
2095
2249
  );
2096
- var factory7 = createProviderExecutedToolFactory6({
2250
+ var factory9 = createProviderExecutedToolFactory8({
2097
2251
  id: "anthropic.code_execution_20250522",
2098
2252
  inputSchema: codeExecution_20250522InputSchema,
2099
2253
  outputSchema: codeExecution_20250522OutputSchema
2100
2254
  });
2101
2255
  var codeExecution_20250522 = (args = {}) => {
2102
- return factory7(args);
2256
+ return factory9(args);
2103
2257
  };
2104
2258
 
2105
2259
  // src/tool/code-execution_20250825.ts
2106
2260
  import {
2107
- createProviderExecutedToolFactory as createProviderExecutedToolFactory7,
2261
+ createProviderExecutedToolFactory as createProviderExecutedToolFactory9,
2108
2262
  experimental_toolCaller,
2109
- lazySchema as lazySchema11,
2110
- zodSchema as zodSchema11
2263
+ lazySchema as lazySchema13,
2264
+ zodSchema as zodSchema13
2111
2265
  } from "@ai-sdk/provider-utils";
2112
- import { z as z12 } from "zod/v4";
2113
- var codeExecution_20250825OutputSchema = lazySchema11(
2114
- () => zodSchema11(
2115
- z12.discriminatedUnion("type", [
2116
- z12.object({
2117
- type: z12.literal("code_execution_result"),
2118
- stdout: z12.string(),
2119
- stderr: z12.string(),
2120
- return_code: z12.number(),
2121
- content: z12.array(
2122
- z12.object({
2123
- type: z12.literal("code_execution_output"),
2124
- file_id: z12.string()
2266
+ import { z as z14 } from "zod/v4";
2267
+ var codeExecution_20250825OutputSchema = lazySchema13(
2268
+ () => zodSchema13(
2269
+ z14.discriminatedUnion("type", [
2270
+ z14.object({
2271
+ type: z14.literal("code_execution_result"),
2272
+ stdout: z14.string(),
2273
+ stderr: z14.string(),
2274
+ return_code: z14.number(),
2275
+ content: z14.array(
2276
+ z14.object({
2277
+ type: z14.literal("code_execution_output"),
2278
+ file_id: z14.string()
2125
2279
  })
2126
2280
  ).optional().default([])
2127
2281
  }),
2128
- z12.object({
2129
- type: z12.literal("bash_code_execution_result"),
2130
- content: z12.array(
2131
- z12.object({
2132
- type: z12.literal("bash_code_execution_output"),
2133
- file_id: z12.string()
2282
+ z14.object({
2283
+ type: z14.literal("bash_code_execution_result"),
2284
+ content: z14.array(
2285
+ z14.object({
2286
+ type: z14.literal("bash_code_execution_output"),
2287
+ file_id: z14.string()
2134
2288
  })
2135
2289
  ),
2136
- stdout: z12.string(),
2137
- stderr: z12.string(),
2138
- return_code: z12.number()
2290
+ stdout: z14.string(),
2291
+ stderr: z14.string(),
2292
+ return_code: z14.number()
2139
2293
  }),
2140
- z12.object({
2141
- type: z12.literal("bash_code_execution_tool_result_error"),
2142
- error_code: z12.string()
2294
+ z14.object({
2295
+ type: z14.literal("bash_code_execution_tool_result_error"),
2296
+ error_code: z14.string()
2143
2297
  }),
2144
- z12.object({
2145
- type: z12.literal("text_editor_code_execution_tool_result_error"),
2146
- error_code: z12.string()
2298
+ z14.object({
2299
+ type: z14.literal("text_editor_code_execution_tool_result_error"),
2300
+ error_code: z14.string()
2147
2301
  }),
2148
- z12.object({
2149
- type: z12.literal("text_editor_code_execution_view_result"),
2150
- content: z12.string(),
2151
- file_type: z12.string(),
2152
- num_lines: z12.number().nullable(),
2153
- start_line: z12.number().nullable(),
2154
- total_lines: z12.number().nullable()
2302
+ z14.object({
2303
+ type: z14.literal("text_editor_code_execution_view_result"),
2304
+ content: z14.string(),
2305
+ file_type: z14.string(),
2306
+ num_lines: z14.number().nullable(),
2307
+ start_line: z14.number().nullable(),
2308
+ total_lines: z14.number().nullable()
2155
2309
  }),
2156
- z12.object({
2157
- type: z12.literal("text_editor_code_execution_create_result"),
2158
- is_file_update: z12.boolean()
2310
+ z14.object({
2311
+ type: z14.literal("text_editor_code_execution_create_result"),
2312
+ is_file_update: z14.boolean()
2159
2313
  }),
2160
- z12.object({
2161
- type: z12.literal("text_editor_code_execution_str_replace_result"),
2162
- lines: z12.array(z12.string()).nullable(),
2163
- new_lines: z12.number().nullable(),
2164
- new_start: z12.number().nullable(),
2165
- old_lines: z12.number().nullable(),
2166
- old_start: z12.number().nullable()
2314
+ z14.object({
2315
+ type: z14.literal("text_editor_code_execution_str_replace_result"),
2316
+ lines: z14.array(z14.string()).nullable(),
2317
+ new_lines: z14.number().nullable(),
2318
+ new_start: z14.number().nullable(),
2319
+ old_lines: z14.number().nullable(),
2320
+ old_start: z14.number().nullable()
2167
2321
  })
2168
2322
  ])
2169
2323
  )
2170
2324
  );
2171
- var codeExecution_20250825InputSchema = lazySchema11(
2172
- () => zodSchema11(
2173
- z12.discriminatedUnion("type", [
2325
+ var codeExecution_20250825InputSchema = lazySchema13(
2326
+ () => zodSchema13(
2327
+ z14.discriminatedUnion("type", [
2174
2328
  // Programmatic tool calling format (mapped from { code } by AI SDK)
2175
- z12.object({
2176
- type: z12.literal("programmatic-tool-call"),
2177
- code: z12.string()
2329
+ z14.object({
2330
+ type: z14.literal("programmatic-tool-call"),
2331
+ code: z14.string()
2178
2332
  }),
2179
- z12.object({
2180
- type: z12.literal("bash_code_execution"),
2181
- command: z12.string()
2333
+ z14.object({
2334
+ type: z14.literal("bash_code_execution"),
2335
+ command: z14.string()
2182
2336
  }),
2183
- z12.discriminatedUnion("command", [
2184
- z12.object({
2185
- type: z12.literal("text_editor_code_execution"),
2186
- command: z12.literal("view"),
2187
- path: z12.string()
2337
+ z14.discriminatedUnion("command", [
2338
+ z14.object({
2339
+ type: z14.literal("text_editor_code_execution"),
2340
+ command: z14.literal("view"),
2341
+ path: z14.string()
2188
2342
  }),
2189
- z12.object({
2190
- type: z12.literal("text_editor_code_execution"),
2191
- command: z12.literal("create"),
2192
- path: z12.string(),
2193
- file_text: z12.string().nullish()
2343
+ z14.object({
2344
+ type: z14.literal("text_editor_code_execution"),
2345
+ command: z14.literal("create"),
2346
+ path: z14.string(),
2347
+ file_text: z14.string().nullish()
2194
2348
  }),
2195
- z12.object({
2196
- type: z12.literal("text_editor_code_execution"),
2197
- command: z12.literal("str_replace"),
2198
- path: z12.string(),
2199
- old_str: z12.string(),
2200
- new_str: z12.string()
2349
+ z14.object({
2350
+ type: z14.literal("text_editor_code_execution"),
2351
+ command: z14.literal("str_replace"),
2352
+ path: z14.string(),
2353
+ old_str: z14.string(),
2354
+ new_str: z14.string()
2201
2355
  })
2202
2356
  ])
2203
2357
  ])
2204
2358
  )
2205
2359
  );
2206
- var factory8 = createProviderExecutedToolFactory7({
2360
+ var factory10 = createProviderExecutedToolFactory9({
2207
2361
  id: "anthropic.code_execution_20250825",
2208
2362
  inputSchema: codeExecution_20250825InputSchema,
2209
2363
  outputSchema: codeExecution_20250825OutputSchema,
@@ -2213,7 +2367,7 @@ var factory8 = createProviderExecutedToolFactory7({
2213
2367
  supportsDeferredResults: true
2214
2368
  });
2215
2369
  var codeExecution_20250825 = (args = {}) => {
2216
- return experimental_toolCaller(factory8(args), {
2370
+ return experimental_toolCaller(factory10(args), {
2217
2371
  type: "provider",
2218
2372
  prepareProviderOptions: (providerOptions) => {
2219
2373
  var _a;
@@ -2236,124 +2390,124 @@ var codeExecution_20250825 = (args = {}) => {
2236
2390
 
2237
2391
  // src/tool/code-execution_20260120.ts
2238
2392
  import {
2239
- createProviderExecutedToolFactory as createProviderExecutedToolFactory8,
2393
+ createProviderExecutedToolFactory as createProviderExecutedToolFactory10,
2240
2394
  experimental_toolCaller as experimental_toolCaller2,
2241
- lazySchema as lazySchema12,
2242
- zodSchema as zodSchema12
2395
+ lazySchema as lazySchema14,
2396
+ zodSchema as zodSchema14
2243
2397
  } from "@ai-sdk/provider-utils";
2244
- import { z as z13 } from "zod/v4";
2245
- var codeExecution_20260120OutputSchema = lazySchema12(
2246
- () => zodSchema12(
2247
- z13.discriminatedUnion("type", [
2248
- z13.object({
2249
- type: z13.literal("code_execution_result"),
2250
- stdout: z13.string(),
2251
- stderr: z13.string(),
2252
- return_code: z13.number(),
2253
- content: z13.array(
2254
- z13.object({
2255
- type: z13.literal("code_execution_output"),
2256
- file_id: z13.string()
2398
+ import { z as z15 } from "zod/v4";
2399
+ var codeExecution_20260120OutputSchema = lazySchema14(
2400
+ () => zodSchema14(
2401
+ z15.discriminatedUnion("type", [
2402
+ z15.object({
2403
+ type: z15.literal("code_execution_result"),
2404
+ stdout: z15.string(),
2405
+ stderr: z15.string(),
2406
+ return_code: z15.number(),
2407
+ content: z15.array(
2408
+ z15.object({
2409
+ type: z15.literal("code_execution_output"),
2410
+ file_id: z15.string()
2257
2411
  })
2258
2412
  ).optional().default([])
2259
2413
  }),
2260
- z13.object({
2261
- type: z13.literal("encrypted_code_execution_result"),
2262
- encrypted_stdout: z13.string(),
2263
- stderr: z13.string(),
2264
- return_code: z13.number(),
2265
- content: z13.array(
2266
- z13.object({
2267
- type: z13.literal("code_execution_output"),
2268
- file_id: z13.string()
2414
+ z15.object({
2415
+ type: z15.literal("encrypted_code_execution_result"),
2416
+ encrypted_stdout: z15.string(),
2417
+ stderr: z15.string(),
2418
+ return_code: z15.number(),
2419
+ content: z15.array(
2420
+ z15.object({
2421
+ type: z15.literal("code_execution_output"),
2422
+ file_id: z15.string()
2269
2423
  })
2270
2424
  ).optional().default([])
2271
2425
  }),
2272
- z13.object({
2273
- type: z13.literal("bash_code_execution_result"),
2274
- content: z13.array(
2275
- z13.object({
2276
- type: z13.literal("bash_code_execution_output"),
2277
- file_id: z13.string()
2426
+ z15.object({
2427
+ type: z15.literal("bash_code_execution_result"),
2428
+ content: z15.array(
2429
+ z15.object({
2430
+ type: z15.literal("bash_code_execution_output"),
2431
+ file_id: z15.string()
2278
2432
  })
2279
2433
  ),
2280
- stdout: z13.string(),
2281
- stderr: z13.string(),
2282
- return_code: z13.number()
2434
+ stdout: z15.string(),
2435
+ stderr: z15.string(),
2436
+ return_code: z15.number()
2283
2437
  }),
2284
- z13.object({
2285
- type: z13.literal("bash_code_execution_tool_result_error"),
2286
- error_code: z13.string()
2438
+ z15.object({
2439
+ type: z15.literal("bash_code_execution_tool_result_error"),
2440
+ error_code: z15.string()
2287
2441
  }),
2288
- z13.object({
2289
- type: z13.literal("text_editor_code_execution_tool_result_error"),
2290
- error_code: z13.string()
2442
+ z15.object({
2443
+ type: z15.literal("text_editor_code_execution_tool_result_error"),
2444
+ error_code: z15.string()
2291
2445
  }),
2292
- z13.object({
2293
- type: z13.literal("text_editor_code_execution_view_result"),
2294
- content: z13.string(),
2295
- file_type: z13.string(),
2296
- num_lines: z13.number().nullable(),
2297
- start_line: z13.number().nullable(),
2298
- total_lines: z13.number().nullable()
2446
+ z15.object({
2447
+ type: z15.literal("text_editor_code_execution_view_result"),
2448
+ content: z15.string(),
2449
+ file_type: z15.string(),
2450
+ num_lines: z15.number().nullable(),
2451
+ start_line: z15.number().nullable(),
2452
+ total_lines: z15.number().nullable()
2299
2453
  }),
2300
- z13.object({
2301
- type: z13.literal("text_editor_code_execution_create_result"),
2302
- is_file_update: z13.boolean()
2454
+ z15.object({
2455
+ type: z15.literal("text_editor_code_execution_create_result"),
2456
+ is_file_update: z15.boolean()
2303
2457
  }),
2304
- z13.object({
2305
- type: z13.literal("text_editor_code_execution_str_replace_result"),
2306
- lines: z13.array(z13.string()).nullable(),
2307
- new_lines: z13.number().nullable(),
2308
- new_start: z13.number().nullable(),
2309
- old_lines: z13.number().nullable(),
2310
- old_start: z13.number().nullable()
2458
+ z15.object({
2459
+ type: z15.literal("text_editor_code_execution_str_replace_result"),
2460
+ lines: z15.array(z15.string()).nullable(),
2461
+ new_lines: z15.number().nullable(),
2462
+ new_start: z15.number().nullable(),
2463
+ old_lines: z15.number().nullable(),
2464
+ old_start: z15.number().nullable()
2311
2465
  })
2312
2466
  ])
2313
2467
  )
2314
2468
  );
2315
- var codeExecution_20260120InputSchema = lazySchema12(
2316
- () => zodSchema12(
2317
- z13.discriminatedUnion("type", [
2318
- z13.object({
2319
- type: z13.literal("programmatic-tool-call"),
2320
- code: z13.string()
2469
+ var codeExecution_20260120InputSchema = lazySchema14(
2470
+ () => zodSchema14(
2471
+ z15.discriminatedUnion("type", [
2472
+ z15.object({
2473
+ type: z15.literal("programmatic-tool-call"),
2474
+ code: z15.string()
2321
2475
  }),
2322
- z13.object({
2323
- type: z13.literal("bash_code_execution"),
2324
- command: z13.string()
2476
+ z15.object({
2477
+ type: z15.literal("bash_code_execution"),
2478
+ command: z15.string()
2325
2479
  }),
2326
- z13.discriminatedUnion("command", [
2327
- z13.object({
2328
- type: z13.literal("text_editor_code_execution"),
2329
- command: z13.literal("view"),
2330
- path: z13.string()
2480
+ z15.discriminatedUnion("command", [
2481
+ z15.object({
2482
+ type: z15.literal("text_editor_code_execution"),
2483
+ command: z15.literal("view"),
2484
+ path: z15.string()
2331
2485
  }),
2332
- z13.object({
2333
- type: z13.literal("text_editor_code_execution"),
2334
- command: z13.literal("create"),
2335
- path: z13.string(),
2336
- file_text: z13.string().nullish()
2486
+ z15.object({
2487
+ type: z15.literal("text_editor_code_execution"),
2488
+ command: z15.literal("create"),
2489
+ path: z15.string(),
2490
+ file_text: z15.string().nullish()
2337
2491
  }),
2338
- z13.object({
2339
- type: z13.literal("text_editor_code_execution"),
2340
- command: z13.literal("str_replace"),
2341
- path: z13.string(),
2342
- old_str: z13.string(),
2343
- new_str: z13.string()
2492
+ z15.object({
2493
+ type: z15.literal("text_editor_code_execution"),
2494
+ command: z15.literal("str_replace"),
2495
+ path: z15.string(),
2496
+ old_str: z15.string(),
2497
+ new_str: z15.string()
2344
2498
  })
2345
2499
  ])
2346
2500
  ])
2347
2501
  )
2348
2502
  );
2349
- var factory9 = createProviderExecutedToolFactory8({
2503
+ var factory11 = createProviderExecutedToolFactory10({
2350
2504
  id: "anthropic.code_execution_20260120",
2351
2505
  inputSchema: codeExecution_20260120InputSchema,
2352
2506
  outputSchema: codeExecution_20260120OutputSchema,
2353
2507
  supportsDeferredResults: true
2354
2508
  });
2355
2509
  var codeExecution_20260120 = (args = {}) => {
2356
- return experimental_toolCaller2(factory9(args), {
2510
+ return experimental_toolCaller2(factory11(args), {
2357
2511
  type: "provider",
2358
2512
  prepareProviderOptions: (providerOptions) => {
2359
2513
  var _a;
@@ -2376,24 +2530,24 @@ var codeExecution_20260120 = (args = {}) => {
2376
2530
 
2377
2531
  // src/tool/tool-search-regex_20251119.ts
2378
2532
  import {
2379
- createProviderExecutedToolFactory as createProviderExecutedToolFactory9,
2380
- lazySchema as lazySchema13,
2381
- zodSchema as zodSchema13
2533
+ createProviderExecutedToolFactory as createProviderExecutedToolFactory11,
2534
+ lazySchema as lazySchema15,
2535
+ zodSchema as zodSchema15
2382
2536
  } from "@ai-sdk/provider-utils";
2383
- import { z as z14 } from "zod/v4";
2384
- var toolSearchRegex_20251119OutputSchema = lazySchema13(
2385
- () => zodSchema13(
2386
- z14.array(
2387
- z14.object({
2388
- type: z14.literal("tool_reference"),
2389
- toolName: z14.string()
2537
+ import { z as z16 } from "zod/v4";
2538
+ var toolSearchRegex_20251119OutputSchema = lazySchema15(
2539
+ () => zodSchema15(
2540
+ z16.array(
2541
+ z16.object({
2542
+ type: z16.literal("tool_reference"),
2543
+ toolName: z16.string()
2390
2544
  })
2391
2545
  )
2392
2546
  )
2393
2547
  );
2394
- var toolSearchRegex_20251119InputSchema = lazySchema13(
2395
- () => zodSchema13(
2396
- z14.object({
2548
+ var toolSearchRegex_20251119InputSchema = lazySchema15(
2549
+ () => zodSchema15(
2550
+ z16.object({
2397
2551
  /**
2398
2552
  * A regex pattern to search for tools.
2399
2553
  * Uses Python re.search() syntax. Maximum 200 characters.
@@ -2404,22 +2558,22 @@ var toolSearchRegex_20251119InputSchema = lazySchema13(
2404
2558
  * - "database.*query|query.*database" - OR patterns for flexibility
2405
2559
  * - "(?i)slack" - case-insensitive search
2406
2560
  */
2407
- pattern: z14.string(),
2561
+ pattern: z16.string(),
2408
2562
  /**
2409
2563
  * Maximum number of tools to return. Optional.
2410
2564
  */
2411
- limit: z14.number().optional()
2565
+ limit: z16.number().optional()
2412
2566
  })
2413
2567
  )
2414
2568
  );
2415
- var factory10 = createProviderExecutedToolFactory9({
2569
+ var factory12 = createProviderExecutedToolFactory11({
2416
2570
  id: "anthropic.tool_search_regex_20251119",
2417
2571
  inputSchema: toolSearchRegex_20251119InputSchema,
2418
2572
  outputSchema: toolSearchRegex_20251119OutputSchema,
2419
2573
  supportsDeferredResults: true
2420
2574
  });
2421
2575
  var toolSearchRegex_20251119 = (args = {}) => {
2422
- return factory10(args);
2576
+ return factory12(args);
2423
2577
  };
2424
2578
 
2425
2579
  // src/convert-to-anthropic-prompt.ts
@@ -3952,8 +4106,10 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
3952
4106
  "anthropic.memory_20250818": "memory",
3953
4107
  "anthropic.web_search_20250305": "web_search",
3954
4108
  "anthropic.web_search_20260209": "web_search",
4109
+ "anthropic.web_search_20260318": "web_search",
3955
4110
  "anthropic.web_fetch_20250910": "web_fetch",
3956
4111
  "anthropic.web_fetch_20260209": "web_fetch",
4112
+ "anthropic.web_fetch_20260318": "web_fetch",
3957
4113
  "anthropic.tool_search_regex_20251119": "tool_search_tool_regex",
3958
4114
  "anthropic.tool_search_bm25_20251119": "tool_search_tool_bm25",
3959
4115
  "anthropic.advisor_20260301": "advisor"
@@ -4369,9 +4525,7 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
4369
4525
  const citationDocuments = [
4370
4526
  ...this.extractCitationDocuments(options.prompt)
4371
4527
  ];
4372
- const markCodeExecutionDynamic = hasWebTool20260209WithoutCodeExecution(
4373
- args.tools
4374
- );
4528
+ const markCodeExecutionDynamic = hasDynamicFilteringWebToolWithoutCodeExecution(args.tools);
4375
4529
  const {
4376
4530
  responseHeaders,
4377
4531
  value: response,
@@ -4887,9 +5041,7 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
4887
5041
  const citationDocuments = [
4888
5042
  ...this.extractCitationDocuments(options.prompt)
4889
5043
  ];
4890
- const markCodeExecutionDynamic = hasWebTool20260209WithoutCodeExecution(
4891
- body.tools
4892
- );
5044
+ const markCodeExecutionDynamic = hasDynamicFilteringWebToolWithoutCodeExecution(body.tools);
4893
5045
  const url = this.buildRequestUrl(true);
4894
5046
  const { responseHeaders, value: response } = await postJsonToApi({
4895
5047
  url,
@@ -5901,15 +6053,15 @@ function getModelCapabilities(modelId) {
5901
6053
  };
5902
6054
  }
5903
6055
  }
5904
- function hasWebTool20260209WithoutCodeExecution(tools) {
6056
+ function hasDynamicFilteringWebToolWithoutCodeExecution(tools) {
5905
6057
  if (!tools) {
5906
6058
  return false;
5907
6059
  }
5908
- let hasWebTool20260209 = false;
6060
+ let hasDynamicFilteringWebTool = false;
5909
6061
  let hasCodeExecutionTool = false;
5910
6062
  for (const tool of tools) {
5911
- if ("type" in tool && (tool.type === "web_fetch_20260209" || tool.type === "web_search_20260209")) {
5912
- hasWebTool20260209 = true;
6063
+ if ("type" in tool && (tool.type === "web_fetch_20260209" || tool.type === "web_fetch_20260318" || tool.type === "web_search_20260209" || tool.type === "web_search_20260318")) {
6064
+ hasDynamicFilteringWebTool = true;
5913
6065
  continue;
5914
6066
  }
5915
6067
  if ("type" in tool && (tool.type === "code_execution_20250522" || tool.type === "code_execution_20250825" || tool.type === "code_execution_20260120")) {
@@ -5917,7 +6069,7 @@ function hasWebTool20260209WithoutCodeExecution(tools) {
5917
6069
  break;
5918
6070
  }
5919
6071
  }
5920
- return hasWebTool20260209 && !hasCodeExecutionTool;
6072
+ return hasDynamicFilteringWebTool && !hasCodeExecutionTool;
5921
6073
  }
5922
6074
  function resolveAnthropicReasoningConfig({
5923
6075
  reasoning,
@@ -6011,47 +6163,47 @@ import {
6011
6163
  generateId as generateId2,
6012
6164
  getFromApi,
6013
6165
  isRecord as isRecord2,
6014
- lazySchema as lazySchema14,
6166
+ lazySchema as lazySchema16,
6015
6167
  normalizeBatchRequestCounts,
6016
6168
  normalizeHeaders,
6017
6169
  parseProviderOptions as parseProviderOptions3,
6018
6170
  postJsonToApi as postJsonToApi2,
6019
6171
  resolve as resolve2,
6020
6172
  safeValidateTypes,
6021
- zodSchema as zodSchema14
6173
+ zodSchema as zodSchema16
6022
6174
  } from "@ai-sdk/provider-utils";
6023
- import { z as z15 } from "zod/v4";
6175
+ import { z as z17 } from "zod/v4";
6024
6176
  var anthropicBatchRequestIdPattern = /^[A-Za-z0-9_-]{1,64}$/;
6025
6177
  var anthropicBatchProviderOptionsSchema = anthropicLanguageModelOptions.pick({
6026
6178
  anthropicBeta: true
6027
6179
  });
6028
- var anthropicBatchResponseZodSchema = () => z15.object({
6029
- id: z15.string(),
6030
- type: z15.literal("message_batch"),
6031
- processing_status: z15.string(),
6032
- request_counts: z15.object({
6033
- processing: z15.number(),
6034
- succeeded: z15.number(),
6035
- errored: z15.number(),
6036
- canceled: z15.number(),
6037
- expired: z15.number()
6180
+ var anthropicBatchResponseZodSchema = () => z17.object({
6181
+ id: z17.string(),
6182
+ type: z17.literal("message_batch"),
6183
+ processing_status: z17.string(),
6184
+ request_counts: z17.object({
6185
+ processing: z17.number(),
6186
+ succeeded: z17.number(),
6187
+ errored: z17.number(),
6188
+ canceled: z17.number(),
6189
+ expired: z17.number()
6038
6190
  }),
6039
- created_at: z15.string(),
6040
- expires_at: z15.string(),
6041
- archived_at: z15.string().nullish(),
6042
- cancel_initiated_at: z15.string().nullish(),
6043
- ended_at: z15.string().nullish(),
6044
- results_url: z15.string().nullish()
6191
+ created_at: z17.string(),
6192
+ expires_at: z17.string(),
6193
+ archived_at: z17.string().nullish(),
6194
+ cancel_initiated_at: z17.string().nullish(),
6195
+ ended_at: z17.string().nullish(),
6196
+ results_url: z17.string().nullish()
6045
6197
  });
6046
- var anthropicBatchResponseSchema = lazySchema14(
6047
- () => zodSchema14(anthropicBatchResponseZodSchema())
6198
+ var anthropicBatchResponseSchema = lazySchema16(
6199
+ () => zodSchema16(anthropicBatchResponseZodSchema())
6048
6200
  );
6049
- var anthropicBatchListResponseSchema = lazySchema14(
6050
- () => zodSchema14(
6051
- z15.object({
6052
- data: z15.array(anthropicBatchResponseZodSchema()),
6053
- has_more: z15.boolean(),
6054
- last_id: z15.string().nullish()
6201
+ var anthropicBatchListResponseSchema = lazySchema16(
6202
+ () => zodSchema16(
6203
+ z17.object({
6204
+ data: z17.array(anthropicBatchResponseZodSchema()),
6205
+ has_more: z17.boolean(),
6206
+ last_id: z17.string().nullish()
6055
6207
  })
6056
6208
  )
6057
6209
  );
@@ -6074,34 +6226,34 @@ var knownAnthropicBatchContentTypes = /* @__PURE__ */ new Set([
6074
6226
  "web_fetch_tool_result",
6075
6227
  "web_search_tool_result"
6076
6228
  ]);
6077
- var anthropicBatchResultSchema = lazySchema14(
6078
- () => zodSchema14(
6079
- z15.discriminatedUnion("type", [
6080
- z15.object({
6081
- type: z15.literal("succeeded"),
6082
- message: z15.unknown()
6229
+ var anthropicBatchResultSchema = lazySchema16(
6230
+ () => zodSchema16(
6231
+ z17.discriminatedUnion("type", [
6232
+ z17.object({
6233
+ type: z17.literal("succeeded"),
6234
+ message: z17.unknown()
6083
6235
  }),
6084
- z15.object({
6085
- type: z15.literal("errored"),
6086
- error: z15.object({
6087
- type: z15.literal("error"),
6088
- error: z15.object({
6089
- type: z15.string(),
6090
- message: z15.string()
6236
+ z17.object({
6237
+ type: z17.literal("errored"),
6238
+ error: z17.object({
6239
+ type: z17.literal("error"),
6240
+ error: z17.object({
6241
+ type: z17.string(),
6242
+ message: z17.string()
6091
6243
  }),
6092
- request_id: z15.string().nullish()
6244
+ request_id: z17.string().nullish()
6093
6245
  })
6094
6246
  }),
6095
- z15.object({ type: z15.literal("canceled") }),
6096
- z15.object({ type: z15.literal("expired") })
6247
+ z17.object({ type: z17.literal("canceled") }),
6248
+ z17.object({ type: z17.literal("expired") })
6097
6249
  ])
6098
6250
  )
6099
6251
  );
6100
- var anthropicBatchResultLineSchema = lazySchema14(
6101
- () => zodSchema14(
6102
- z15.object({
6103
- custom_id: z15.string(),
6104
- result: z15.unknown()
6252
+ var anthropicBatchResultLineSchema = lazySchema16(
6253
+ () => zodSchema16(
6254
+ z17.object({
6255
+ custom_id: z17.string(),
6256
+ result: z17.unknown()
6105
6257
  })
6106
6258
  )
6107
6259
  );
@@ -6913,15 +7065,15 @@ function mapAnthropicStopDetails2(stopDetails) {
6913
7065
  // src/tool/bash_20241022.ts
6914
7066
  import {
6915
7067
  createProviderDefinedToolFactory as createProviderDefinedToolFactory2,
6916
- lazySchema as lazySchema15,
6917
- zodSchema as zodSchema15
7068
+ lazySchema as lazySchema17,
7069
+ zodSchema as zodSchema17
6918
7070
  } from "@ai-sdk/provider-utils";
6919
- import { z as z16 } from "zod/v4";
6920
- var bash_20241022InputSchema = lazySchema15(
6921
- () => zodSchema15(
6922
- z16.object({
6923
- command: z16.string(),
6924
- restart: z16.boolean().optional()
7071
+ import { z as z18 } from "zod/v4";
7072
+ var bash_20241022InputSchema = lazySchema17(
7073
+ () => zodSchema17(
7074
+ z18.object({
7075
+ command: z18.string(),
7076
+ restart: z18.boolean().optional()
6925
7077
  })
6926
7078
  )
6927
7079
  );
@@ -6954,15 +7106,15 @@ function bash_20241022(options = {}) {
6954
7106
  // src/tool/bash_20250124.ts
6955
7107
  import {
6956
7108
  createProviderDefinedToolFactory as createProviderDefinedToolFactory3,
6957
- lazySchema as lazySchema16,
6958
- zodSchema as zodSchema16
7109
+ lazySchema as lazySchema18,
7110
+ zodSchema as zodSchema18
6959
7111
  } from "@ai-sdk/provider-utils";
6960
- import { z as z17 } from "zod/v4";
6961
- var bash_20250124InputSchema = lazySchema16(
6962
- () => zodSchema16(
6963
- z17.object({
6964
- command: z17.string(),
6965
- restart: z17.boolean().optional()
7112
+ import { z as z19 } from "zod/v4";
7113
+ var bash_20250124InputSchema = lazySchema18(
7114
+ () => zodSchema18(
7115
+ z19.object({
7116
+ command: z19.string(),
7117
+ restart: z19.boolean().optional()
6966
7118
  })
6967
7119
  )
6968
7120
  );
@@ -6995,14 +7147,14 @@ function bash_20250124(options = {}) {
6995
7147
  // src/tool/computer_20241022.ts
6996
7148
  import {
6997
7149
  createProviderDefinedToolFactory as createProviderDefinedToolFactory4,
6998
- lazySchema as lazySchema17,
6999
- zodSchema as zodSchema17
7150
+ lazySchema as lazySchema19,
7151
+ zodSchema as zodSchema19
7000
7152
  } from "@ai-sdk/provider-utils";
7001
- import { z as z18 } from "zod/v4";
7002
- var computer_20241022InputSchema = lazySchema17(
7003
- () => zodSchema17(
7004
- z18.object({
7005
- action: z18.enum([
7153
+ import { z as z20 } from "zod/v4";
7154
+ var computer_20241022InputSchema = lazySchema19(
7155
+ () => zodSchema19(
7156
+ z20.object({
7157
+ action: z20.enum([
7006
7158
  "key",
7007
7159
  "type",
7008
7160
  "mouse_move",
@@ -7014,8 +7166,8 @@ var computer_20241022InputSchema = lazySchema17(
7014
7166
  "screenshot",
7015
7167
  "cursor_position"
7016
7168
  ]),
7017
- coordinate: z18.array(z18.number().int()).optional(),
7018
- text: z18.string().optional()
7169
+ coordinate: z20.array(z20.number().int()).optional(),
7170
+ text: z20.string().optional()
7019
7171
  })
7020
7172
  )
7021
7173
  );
@@ -7027,14 +7179,14 @@ var computer_20241022 = createProviderDefinedToolFactory4({
7027
7179
  // src/tool/computer_20250124.ts
7028
7180
  import {
7029
7181
  createProviderDefinedToolFactory as createProviderDefinedToolFactory5,
7030
- lazySchema as lazySchema18,
7031
- zodSchema as zodSchema18
7182
+ lazySchema as lazySchema20,
7183
+ zodSchema as zodSchema20
7032
7184
  } from "@ai-sdk/provider-utils";
7033
- import { z as z19 } from "zod/v4";
7034
- var computer_20250124InputSchema = lazySchema18(
7035
- () => zodSchema18(
7036
- z19.object({
7037
- action: z19.enum([
7185
+ import { z as z21 } from "zod/v4";
7186
+ var computer_20250124InputSchema = lazySchema20(
7187
+ () => zodSchema20(
7188
+ z21.object({
7189
+ action: z21.enum([
7038
7190
  "key",
7039
7191
  "hold_key",
7040
7192
  "type",
@@ -7052,12 +7204,12 @@ var computer_20250124InputSchema = lazySchema18(
7052
7204
  "wait",
7053
7205
  "screenshot"
7054
7206
  ]),
7055
- coordinate: z19.tuple([z19.number().int(), z19.number().int()]).optional(),
7056
- duration: z19.number().optional(),
7057
- scroll_amount: z19.number().optional(),
7058
- scroll_direction: z19.enum(["up", "down", "left", "right"]).optional(),
7059
- start_coordinate: z19.tuple([z19.number().int(), z19.number().int()]).optional(),
7060
- text: z19.string().optional()
7207
+ coordinate: z21.tuple([z21.number().int(), z21.number().int()]).optional(),
7208
+ duration: z21.number().optional(),
7209
+ scroll_amount: z21.number().optional(),
7210
+ scroll_direction: z21.enum(["up", "down", "left", "right"]).optional(),
7211
+ start_coordinate: z21.tuple([z21.number().int(), z21.number().int()]).optional(),
7212
+ text: z21.string().optional()
7061
7213
  })
7062
7214
  )
7063
7215
  );
@@ -7069,14 +7221,14 @@ var computer_20250124 = createProviderDefinedToolFactory5({
7069
7221
  // src/tool/computer_20251124.ts
7070
7222
  import {
7071
7223
  createProviderDefinedToolFactory as createProviderDefinedToolFactory6,
7072
- lazySchema as lazySchema19,
7073
- zodSchema as zodSchema19
7224
+ lazySchema as lazySchema21,
7225
+ zodSchema as zodSchema21
7074
7226
  } from "@ai-sdk/provider-utils";
7075
- import { z as z20 } from "zod/v4";
7076
- var computer_20251124InputSchema = lazySchema19(
7077
- () => zodSchema19(
7078
- z20.object({
7079
- action: z20.enum([
7227
+ import { z as z22 } from "zod/v4";
7228
+ var computer_20251124InputSchema = lazySchema21(
7229
+ () => zodSchema21(
7230
+ z22.object({
7231
+ action: z22.enum([
7080
7232
  "key",
7081
7233
  "hold_key",
7082
7234
  "type",
@@ -7095,18 +7247,18 @@ var computer_20251124InputSchema = lazySchema19(
7095
7247
  "screenshot",
7096
7248
  "zoom"
7097
7249
  ]),
7098
- coordinate: z20.tuple([z20.number().int(), z20.number().int()]).optional(),
7099
- duration: z20.number().optional(),
7100
- region: z20.tuple([
7101
- z20.number().int(),
7102
- z20.number().int(),
7103
- z20.number().int(),
7104
- z20.number().int()
7250
+ coordinate: z22.tuple([z22.number().int(), z22.number().int()]).optional(),
7251
+ duration: z22.number().optional(),
7252
+ region: z22.tuple([
7253
+ z22.number().int(),
7254
+ z22.number().int(),
7255
+ z22.number().int(),
7256
+ z22.number().int()
7105
7257
  ]).optional(),
7106
- scroll_amount: z20.number().optional(),
7107
- scroll_direction: z20.enum(["up", "down", "left", "right"]).optional(),
7108
- start_coordinate: z20.tuple([z20.number().int(), z20.number().int()]).optional(),
7109
- text: z20.string().optional()
7258
+ scroll_amount: z22.number().optional(),
7259
+ scroll_direction: z22.enum(["up", "down", "left", "right"]).optional(),
7260
+ start_coordinate: z22.tuple([z22.number().int(), z22.number().int()]).optional(),
7261
+ text: z22.string().optional()
7110
7262
  })
7111
7263
  )
7112
7264
  );
@@ -7118,43 +7270,43 @@ var computer_20251124 = createProviderDefinedToolFactory6({
7118
7270
  // src/tool/memory_20250818.ts
7119
7271
  import {
7120
7272
  createProviderDefinedToolFactory as createProviderDefinedToolFactory7,
7121
- lazySchema as lazySchema20,
7122
- zodSchema as zodSchema20
7273
+ lazySchema as lazySchema22,
7274
+ zodSchema as zodSchema22
7123
7275
  } from "@ai-sdk/provider-utils";
7124
- import { z as z21 } from "zod/v4";
7125
- var memory_20250818InputSchema = lazySchema20(
7126
- () => zodSchema20(
7127
- z21.discriminatedUnion("command", [
7128
- z21.object({
7129
- command: z21.literal("view"),
7130
- path: z21.string(),
7131
- view_range: z21.tuple([z21.number(), z21.number()]).optional()
7276
+ import { z as z23 } from "zod/v4";
7277
+ var memory_20250818InputSchema = lazySchema22(
7278
+ () => zodSchema22(
7279
+ z23.discriminatedUnion("command", [
7280
+ z23.object({
7281
+ command: z23.literal("view"),
7282
+ path: z23.string(),
7283
+ view_range: z23.tuple([z23.number(), z23.number()]).optional()
7132
7284
  }),
7133
- z21.object({
7134
- command: z21.literal("create"),
7135
- path: z21.string(),
7136
- file_text: z21.string()
7285
+ z23.object({
7286
+ command: z23.literal("create"),
7287
+ path: z23.string(),
7288
+ file_text: z23.string()
7137
7289
  }),
7138
- z21.object({
7139
- command: z21.literal("str_replace"),
7140
- path: z21.string(),
7141
- old_str: z21.string(),
7142
- new_str: z21.string()
7290
+ z23.object({
7291
+ command: z23.literal("str_replace"),
7292
+ path: z23.string(),
7293
+ old_str: z23.string(),
7294
+ new_str: z23.string()
7143
7295
  }),
7144
- z21.object({
7145
- command: z21.literal("insert"),
7146
- path: z21.string(),
7147
- insert_line: z21.number(),
7148
- insert_text: z21.string()
7296
+ z23.object({
7297
+ command: z23.literal("insert"),
7298
+ path: z23.string(),
7299
+ insert_line: z23.number(),
7300
+ insert_text: z23.string()
7149
7301
  }),
7150
- z21.object({
7151
- command: z21.literal("delete"),
7152
- path: z21.string()
7302
+ z23.object({
7303
+ command: z23.literal("delete"),
7304
+ path: z23.string()
7153
7305
  }),
7154
- z21.object({
7155
- command: z21.literal("rename"),
7156
- old_path: z21.string(),
7157
- new_path: z21.string()
7306
+ z23.object({
7307
+ command: z23.literal("rename"),
7308
+ old_path: z23.string(),
7309
+ new_path: z23.string()
7158
7310
  })
7159
7311
  ])
7160
7312
  )
@@ -7167,21 +7319,21 @@ var memory_20250818 = createProviderDefinedToolFactory7({
7167
7319
  // src/tool/text-editor_20241022.ts
7168
7320
  import {
7169
7321
  createProviderDefinedToolFactory as createProviderDefinedToolFactory8,
7170
- lazySchema as lazySchema21,
7171
- zodSchema as zodSchema21
7322
+ lazySchema as lazySchema23,
7323
+ zodSchema as zodSchema23
7172
7324
  } from "@ai-sdk/provider-utils";
7173
- import { z as z22 } from "zod/v4";
7174
- var textEditor_20241022InputSchema = lazySchema21(
7175
- () => zodSchema21(
7176
- z22.object({
7177
- command: z22.enum(["view", "create", "str_replace", "insert", "undo_edit"]),
7178
- path: z22.string(),
7179
- file_text: z22.string().optional(),
7180
- insert_line: z22.number().int().optional(),
7181
- new_str: z22.string().optional(),
7182
- insert_text: z22.string().optional(),
7183
- old_str: z22.string().optional(),
7184
- view_range: z22.array(z22.number().int()).optional()
7325
+ import { z as z24 } from "zod/v4";
7326
+ var textEditor_20241022InputSchema = lazySchema23(
7327
+ () => zodSchema23(
7328
+ z24.object({
7329
+ command: z24.enum(["view", "create", "str_replace", "insert", "undo_edit"]),
7330
+ path: z24.string(),
7331
+ file_text: z24.string().optional(),
7332
+ insert_line: z24.number().int().optional(),
7333
+ new_str: z24.string().optional(),
7334
+ insert_text: z24.string().optional(),
7335
+ old_str: z24.string().optional(),
7336
+ view_range: z24.array(z24.number().int()).optional()
7185
7337
  })
7186
7338
  )
7187
7339
  );
@@ -7193,21 +7345,21 @@ var textEditor_20241022 = createProviderDefinedToolFactory8({
7193
7345
  // src/tool/text-editor_20250124.ts
7194
7346
  import {
7195
7347
  createProviderDefinedToolFactory as createProviderDefinedToolFactory9,
7196
- lazySchema as lazySchema22,
7197
- zodSchema as zodSchema22
7348
+ lazySchema as lazySchema24,
7349
+ zodSchema as zodSchema24
7198
7350
  } from "@ai-sdk/provider-utils";
7199
- import { z as z23 } from "zod/v4";
7200
- var textEditor_20250124InputSchema = lazySchema22(
7201
- () => zodSchema22(
7202
- z23.object({
7203
- command: z23.enum(["view", "create", "str_replace", "insert", "undo_edit"]),
7204
- path: z23.string(),
7205
- file_text: z23.string().optional(),
7206
- insert_line: z23.number().int().optional(),
7207
- new_str: z23.string().optional(),
7208
- insert_text: z23.string().optional(),
7209
- old_str: z23.string().optional(),
7210
- view_range: z23.array(z23.number().int()).optional()
7351
+ import { z as z25 } from "zod/v4";
7352
+ var textEditor_20250124InputSchema = lazySchema24(
7353
+ () => zodSchema24(
7354
+ z25.object({
7355
+ command: z25.enum(["view", "create", "str_replace", "insert", "undo_edit"]),
7356
+ path: z25.string(),
7357
+ file_text: z25.string().optional(),
7358
+ insert_line: z25.number().int().optional(),
7359
+ new_str: z25.string().optional(),
7360
+ insert_text: z25.string().optional(),
7361
+ old_str: z25.string().optional(),
7362
+ view_range: z25.array(z25.number().int()).optional()
7211
7363
  })
7212
7364
  )
7213
7365
  );
@@ -7219,21 +7371,21 @@ var textEditor_20250124 = createProviderDefinedToolFactory9({
7219
7371
  // src/tool/text-editor_20250429.ts
7220
7372
  import {
7221
7373
  createProviderDefinedToolFactory as createProviderDefinedToolFactory10,
7222
- lazySchema as lazySchema23,
7223
- zodSchema as zodSchema23
7374
+ lazySchema as lazySchema25,
7375
+ zodSchema as zodSchema25
7224
7376
  } from "@ai-sdk/provider-utils";
7225
- import { z as z24 } from "zod/v4";
7226
- var textEditor_20250429InputSchema = lazySchema23(
7227
- () => zodSchema23(
7228
- z24.object({
7229
- command: z24.enum(["view", "create", "str_replace", "insert"]),
7230
- path: z24.string(),
7231
- file_text: z24.string().optional(),
7232
- insert_line: z24.number().int().optional(),
7233
- new_str: z24.string().optional(),
7234
- insert_text: z24.string().optional(),
7235
- old_str: z24.string().optional(),
7236
- view_range: z24.array(z24.number().int()).optional()
7377
+ import { z as z26 } from "zod/v4";
7378
+ var textEditor_20250429InputSchema = lazySchema25(
7379
+ () => zodSchema25(
7380
+ z26.object({
7381
+ command: z26.enum(["view", "create", "str_replace", "insert"]),
7382
+ path: z26.string(),
7383
+ file_text: z26.string().optional(),
7384
+ insert_line: z26.number().int().optional(),
7385
+ new_str: z26.string().optional(),
7386
+ insert_text: z26.string().optional(),
7387
+ old_str: z26.string().optional(),
7388
+ view_range: z26.array(z26.number().int()).optional()
7237
7389
  })
7238
7390
  )
7239
7391
  );
@@ -7244,44 +7396,44 @@ var textEditor_20250429 = createProviderDefinedToolFactory10({
7244
7396
 
7245
7397
  // src/tool/tool-search-bm25_20251119.ts
7246
7398
  import {
7247
- createProviderExecutedToolFactory as createProviderExecutedToolFactory10,
7248
- lazySchema as lazySchema24,
7249
- zodSchema as zodSchema24
7399
+ createProviderExecutedToolFactory as createProviderExecutedToolFactory12,
7400
+ lazySchema as lazySchema26,
7401
+ zodSchema as zodSchema26
7250
7402
  } from "@ai-sdk/provider-utils";
7251
- import { z as z25 } from "zod/v4";
7252
- var toolSearchBm25_20251119OutputSchema = lazySchema24(
7253
- () => zodSchema24(
7254
- z25.array(
7255
- z25.object({
7256
- type: z25.literal("tool_reference"),
7257
- toolName: z25.string()
7403
+ import { z as z27 } from "zod/v4";
7404
+ var toolSearchBm25_20251119OutputSchema = lazySchema26(
7405
+ () => zodSchema26(
7406
+ z27.array(
7407
+ z27.object({
7408
+ type: z27.literal("tool_reference"),
7409
+ toolName: z27.string()
7258
7410
  })
7259
7411
  )
7260
7412
  )
7261
7413
  );
7262
- var toolSearchBm25_20251119InputSchema = lazySchema24(
7263
- () => zodSchema24(
7264
- z25.object({
7414
+ var toolSearchBm25_20251119InputSchema = lazySchema26(
7415
+ () => zodSchema26(
7416
+ z27.object({
7265
7417
  /**
7266
7418
  * A natural language query to search for tools.
7267
7419
  * Claude will use BM25 text search to find relevant tools.
7268
7420
  */
7269
- query: z25.string(),
7421
+ query: z27.string(),
7270
7422
  /**
7271
7423
  * Maximum number of tools to return. Optional.
7272
7424
  */
7273
- limit: z25.number().optional()
7425
+ limit: z27.number().optional()
7274
7426
  })
7275
7427
  )
7276
7428
  );
7277
- var factory11 = createProviderExecutedToolFactory10({
7429
+ var factory13 = createProviderExecutedToolFactory12({
7278
7430
  id: "anthropic.tool_search_bm25_20251119",
7279
7431
  inputSchema: toolSearchBm25_20251119InputSchema,
7280
7432
  outputSchema: toolSearchBm25_20251119OutputSchema,
7281
7433
  supportsDeferredResults: true
7282
7434
  });
7283
7435
  var toolSearchBm25_20251119 = (args = {}) => {
7284
- return factory11(args);
7436
+ return factory13(args);
7285
7437
  };
7286
7438
 
7287
7439
  // src/anthropic-tools.ts
@@ -7469,6 +7621,18 @@ var anthropicTools = {
7469
7621
  * @param maxContentTokens - The max_content_tokens parameter limits the amount of content that will be included in the context.
7470
7622
  */
7471
7623
  webFetch_20260209,
7624
+ /**
7625
+ * Creates a web fetch tool that gives Claude direct access to real-time web content.
7626
+ *
7627
+ * @param maxUses - The max_uses parameter limits the number of web fetches performed
7628
+ * @param allowedDomains - Only fetch from these domains
7629
+ * @param blockedDomains - Never fetch from these domains
7630
+ * @param citations - Unlike web search where citations are always enabled, citations are optional for web fetch. Set "citations": {"enabled": true} to enable Claude to cite specific passages from fetched documents.
7631
+ * @param maxContentTokens - The max_content_tokens parameter limits the amount of content that will be included in the context.
7632
+ * @param useCache - Whether cached content may be returned. Set to false to fetch fresh content.
7633
+ * @param responseInclusion - Whether result blocks consumed by completed code execution calls are returned. Defaults to "full".
7634
+ */
7635
+ webFetch_20260318,
7472
7636
  /**
7473
7637
  * Creates a web search tool that gives Claude direct access to real-time web content.
7474
7638
  *
@@ -7487,6 +7651,16 @@ var anthropicTools = {
7487
7651
  * @param userLocation - Optional user location information to provide geographically relevant search results.
7488
7652
  */
7489
7653
  webSearch_20260209,
7654
+ /**
7655
+ * Creates a web search tool that gives Claude direct access to real-time web content.
7656
+ *
7657
+ * @param maxUses - Maximum number of web searches Claude can perform during the conversation.
7658
+ * @param allowedDomains - Optional list of domains that Claude is allowed to search.
7659
+ * @param blockedDomains - Optional list of domains that Claude should avoid when searching.
7660
+ * @param userLocation - Optional user location information to provide geographically relevant search results.
7661
+ * @param responseInclusion - Whether result blocks consumed by completed code execution calls are returned. Defaults to "full".
7662
+ */
7663
+ webSearch_20260318,
7490
7664
  /**
7491
7665
  * Creates a tool search tool that uses regex patterns to find tools.
7492
7666
  *
@@ -7528,40 +7702,40 @@ import {
7528
7702
  } from "@ai-sdk/provider-utils";
7529
7703
 
7530
7704
  // src/skills/anthropic-skills-api.ts
7531
- import { lazySchema as lazySchema25, zodSchema as zodSchema25 } from "@ai-sdk/provider-utils";
7532
- import { z as z26 } from "zod/v4";
7533
- var anthropicSkillResponseSchema = lazySchema25(
7534
- () => zodSchema25(
7535
- z26.object({
7536
- id: z26.string(),
7537
- display_title: z26.string().nullish(),
7538
- name: z26.string().nullish(),
7539
- description: z26.string().nullish(),
7540
- latest_version: z26.string().nullish(),
7541
- source: z26.string(),
7542
- created_at: z26.string(),
7543
- updated_at: z26.string()
7705
+ import { lazySchema as lazySchema27, zodSchema as zodSchema27 } from "@ai-sdk/provider-utils";
7706
+ import { z as z28 } from "zod/v4";
7707
+ var anthropicSkillResponseSchema = lazySchema27(
7708
+ () => zodSchema27(
7709
+ z28.object({
7710
+ id: z28.string(),
7711
+ display_title: z28.string().nullish(),
7712
+ name: z28.string().nullish(),
7713
+ description: z28.string().nullish(),
7714
+ latest_version: z28.string().nullish(),
7715
+ source: z28.string(),
7716
+ created_at: z28.string(),
7717
+ updated_at: z28.string()
7544
7718
  })
7545
7719
  )
7546
7720
  );
7547
- var anthropicSkillVersionListResponseSchema = lazySchema25(
7548
- () => zodSchema25(
7549
- z26.object({
7550
- data: z26.array(
7551
- z26.object({
7552
- version: z26.string()
7721
+ var anthropicSkillVersionListResponseSchema = lazySchema27(
7722
+ () => zodSchema27(
7723
+ z28.object({
7724
+ data: z28.array(
7725
+ z28.object({
7726
+ version: z28.string()
7553
7727
  })
7554
7728
  )
7555
7729
  })
7556
7730
  )
7557
7731
  );
7558
- var anthropicSkillVersionResponseSchema = lazySchema25(
7559
- () => zodSchema25(
7560
- z26.object({
7561
- type: z26.string(),
7562
- skill_id: z26.string(),
7563
- name: z26.string().nullish(),
7564
- description: z26.string().nullish()
7732
+ var anthropicSkillVersionResponseSchema = lazySchema27(
7733
+ () => zodSchema27(
7734
+ z28.object({
7735
+ type: z28.string(),
7736
+ skill_id: z28.string(),
7737
+ name: z28.string().nullish(),
7738
+ description: z28.string().nullish()
7565
7739
  })
7566
7740
  )
7567
7741
  );
@@ -7652,7 +7826,7 @@ var AnthropicSkills = class {
7652
7826
  };
7653
7827
 
7654
7828
  // src/version.ts
7655
- var VERSION = true ? "4.0.54" : "0.0.0-test";
7829
+ var VERSION = true ? "4.0.56" : "0.0.0-test";
7656
7830
 
7657
7831
  // src/anthropic-provider.ts
7658
7832
  var ANTHROPIC_API_URL = "https://api.anthropic.com";
@@ -7731,6 +7905,10 @@ function createAnthropic(options = {}) {
7731
7905
  provider.languageModel = createChatModel;
7732
7906
  provider.chat = createChatModel;
7733
7907
  provider.messages = createChatModel;
7908
+ provider.evaluationModel = (modelId) => new EvaluationLanguageModel({
7909
+ model: createChatModel(modelId),
7910
+ provider: `${providerName.replace(/\.messages$/, "")}.evaluation`
7911
+ });
7734
7912
  provider.experimental_batch = createBatch;
7735
7913
  provider.embeddingModel = (modelId) => {
7736
7914
  throw new NoSuchModelError({ modelId, modelType: "embeddingModel" });