@ai-sdk/anthropic 4.0.59 → 4.0.60

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.
@@ -265,7 +265,9 @@ var anthropicResponseSchema = lazySchema3(
265
265
  name: z3.string(),
266
266
  input: z3.unknown(),
267
267
  // Programmatic tool calling: caller info when triggered from code execution
268
- caller: anthropicToolCallCallerSchema.optional()
268
+ caller: anthropicToolCallCallerSchema.optional(),
269
+ // Toolsets (e.g. computer toolset): name of the toolset this member call belongs to
270
+ toolset_name: z3.string().nullish()
269
271
  }),
270
272
  z3.object({
271
273
  type: z3.literal("server_tool_use"),
@@ -568,7 +570,8 @@ var anthropicChunkSchema = lazySchema3(
568
570
  id: z3.string(),
569
571
  name: z3.string(),
570
572
  input: z3.unknown(),
571
- caller: anthropicToolCallCallerSchema.optional()
573
+ caller: anthropicToolCallCallerSchema.optional(),
574
+ toolset_name: z3.string().nullish()
572
575
  })
573
576
  ])
574
577
  ).nullish(),
@@ -599,7 +602,9 @@ var anthropicChunkSchema = lazySchema3(
599
602
  // Programmatic tool calling: input may be present directly for deferred tool calls
600
603
  input: z3.record(z3.string(), z3.unknown()).optional(),
601
604
  // Programmatic tool calling: caller info when triggered from code execution
602
- caller: anthropicToolCallCallerSchema.optional()
605
+ caller: anthropicToolCallCallerSchema.optional(),
606
+ // Toolsets (e.g. computer toolset): name of the toolset this member call belongs to
607
+ toolset_name: z3.string().nullish()
603
608
  }),
604
609
  z3.object({
605
610
  type: z3.literal("redacted_thinking"),
@@ -992,8 +997,8 @@ var anthropicSystemMessageProviderOptions = z4.object({
992
997
  clearAt: z4.literal("next_user_message").optional(),
993
998
  /**
994
999
  * Sets the model effort for the turn that follows this mid-conversation
995
- * system message. The required `mid-conversation-effort-2026-08-01` beta
996
- * is added automatically.
1000
+ * system message. The required `mid-conversation-output-config-2026-07-01`
1001
+ * beta is added automatically.
997
1002
  */
998
1003
  effort: z4.enum(["low", "medium", "high", "xhigh", "max"]).optional(),
999
1004
  /**
@@ -1043,6 +1048,11 @@ var anthropicLanguageModelOptions = z4.object({
1043
1048
  *
1044
1049
  * When enabled, responses include thinking content blocks showing Claude's thinking process before the final answer.
1045
1050
  * Requires a minimum budget of 1,024 tokens and counts towards the `max_tokens` limit.
1051
+ *
1052
+ * Models that always use adaptive thinking (e.g. `claude-opus-5-5`,
1053
+ * `claude-fable-5-1`) reject `enabled` and `disabled`. For those models the
1054
+ * provider drops the unsupported setting, emits a warning, and sends an
1055
+ * adaptive thinking request. Use `effort` to control how much they think.
1046
1056
  */
1047
1057
  thinking: z4.union([
1048
1058
  z4.discriminatedUnion("type", [
@@ -1155,7 +1165,11 @@ var anthropicLanguageModelOptions = z4.object({
1155
1165
  */
1156
1166
  toolStreaming: z4.boolean().optional(),
1157
1167
  /**
1158
- * @default 'high'
1168
+ * Controls how much effort the model spends on thinking, text responses,
1169
+ * and tool calls. On models that always use adaptive thinking
1170
+ * (e.g. `claude-opus-5-5`), effort is the main lever for latency and cost.
1171
+ *
1172
+ * The API default is `high` for most models and `medium` for `claude-opus-5-5`.
1159
1173
  */
1160
1174
  effort: z4.enum(["low", "medium", "high", "xhigh", "max"]).optional(),
1161
1175
  /**
@@ -1387,104 +1401,114 @@ var advisor_20260301 = (args) => {
1387
1401
  return factory(args);
1388
1402
  };
1389
1403
 
1390
- // src/tool/text-editor_20250728.ts
1404
+ // src/tool/computer-toolset_20260801.ts
1391
1405
  import {
1392
1406
  createProviderDefinedToolFactory,
1393
1407
  lazySchema as lazySchema5,
1394
1408
  zodSchema as zodSchema5
1395
1409
  } from "@ai-sdk/provider-utils";
1396
1410
  import { z as z6 } from "zod/v4";
1397
- var textEditor_20250728ArgsSchema = lazySchema5(
1411
+ var computerToolset_20260801Members = [
1412
+ "screenshot",
1413
+ "zoom",
1414
+ "left_click",
1415
+ "right_click",
1416
+ "middle_click",
1417
+ "double_click",
1418
+ "triple_click",
1419
+ "left_click_drag",
1420
+ "mouse_move",
1421
+ "left_mouse_down",
1422
+ "left_mouse_up",
1423
+ "cursor_position",
1424
+ "scroll",
1425
+ "type",
1426
+ "key",
1427
+ "hold_key",
1428
+ "wait"
1429
+ ];
1430
+ var computerToolset_20260801InputSchema = lazySchema5(
1398
1431
  () => zodSchema5(
1399
1432
  z6.object({
1400
- maxCharacters: z6.number().optional()
1433
+ action: z6.enum(computerToolset_20260801Members),
1434
+ coordinate: z6.tuple([z6.number().int(), z6.number().int()]).optional(),
1435
+ duration: z6.number().optional(),
1436
+ region: z6.tuple([
1437
+ z6.number().int(),
1438
+ z6.number().int(),
1439
+ z6.number().int(),
1440
+ z6.number().int()
1441
+ ]).optional(),
1442
+ repeat: z6.number().int().optional(),
1443
+ scroll_amount: z6.number().optional(),
1444
+ scroll_direction: z6.enum(["up", "down", "left", "right"]).optional(),
1445
+ start_coordinate: z6.tuple([z6.number().int(), z6.number().int()]).optional(),
1446
+ text: z6.string().optional()
1401
1447
  })
1402
1448
  )
1403
1449
  );
1404
- var textEditor_20250728InputSchema = lazySchema5(
1450
+ var computerToolset_20260801ArgsSchema = lazySchema5(
1405
1451
  () => zodSchema5(
1406
1452
  z6.object({
1407
- command: z6.enum(["view", "create", "str_replace", "insert"]),
1408
- path: z6.string(),
1409
- file_text: z6.string().optional(),
1410
- insert_line: z6.number().int().optional(),
1411
- new_str: z6.string().optional(),
1412
- insert_text: z6.string().optional(),
1413
- old_str: z6.string().optional(),
1414
- view_range: z6.array(z6.number().int()).optional()
1453
+ configs: z6.partialRecord(
1454
+ z6.enum(computerToolset_20260801Members),
1455
+ z6.object({
1456
+ enabled: z6.boolean().optional(),
1457
+ deferLoading: z6.boolean().optional()
1458
+ })
1459
+ ).optional()
1415
1460
  })
1416
1461
  )
1417
1462
  );
1418
- var factory2 = createProviderDefinedToolFactory({
1419
- id: "anthropic.text_editor_20250728",
1420
- inputSchema: textEditor_20250728InputSchema
1463
+ var computerToolset_20260801 = createProviderDefinedToolFactory({
1464
+ id: "anthropic.computer_toolset_20260801",
1465
+ inputSchema: computerToolset_20260801InputSchema
1421
1466
  });
1422
- var textEditor_20250728 = (args = {}) => {
1423
- return factory2(args);
1424
- };
1425
1467
 
1426
- // src/tool/web-search_20260318.ts
1468
+ // src/tool/text-editor_20250728.ts
1427
1469
  import {
1428
- createProviderExecutedToolFactory as createProviderExecutedToolFactory2,
1470
+ createProviderDefinedToolFactory as createProviderDefinedToolFactory2,
1429
1471
  lazySchema as lazySchema6,
1430
1472
  zodSchema as zodSchema6
1431
1473
  } from "@ai-sdk/provider-utils";
1432
1474
  import { z as z7 } from "zod/v4";
1433
- var webSearch_20260318ArgsSchema = lazySchema6(
1475
+ var textEditor_20250728ArgsSchema = lazySchema6(
1434
1476
  () => zodSchema6(
1435
1477
  z7.object({
1436
- maxUses: z7.number().optional(),
1437
- allowedDomains: z7.array(z7.string()).optional(),
1438
- blockedDomains: z7.array(z7.string()).optional(),
1439
- userLocation: z7.object({
1440
- type: z7.literal("approximate"),
1441
- city: z7.string().optional(),
1442
- region: z7.string().optional(),
1443
- country: z7.string().optional(),
1444
- timezone: z7.string().optional()
1445
- }).optional(),
1446
- responseInclusion: z7.enum(["full", "excluded"]).optional()
1478
+ maxCharacters: z7.number().optional()
1447
1479
  })
1448
1480
  )
1449
1481
  );
1450
- var webSearch_20260318OutputSchema = lazySchema6(
1451
- () => zodSchema6(
1452
- z7.array(
1453
- z7.object({
1454
- url: z7.string(),
1455
- title: z7.string().nullable(),
1456
- pageAge: z7.string().nullable(),
1457
- encryptedContent: z7.string(),
1458
- type: z7.literal("web_search_result")
1459
- })
1460
- )
1461
- )
1462
- );
1463
- var webSearch_20260318InputSchema = lazySchema6(
1482
+ var textEditor_20250728InputSchema = lazySchema6(
1464
1483
  () => zodSchema6(
1465
1484
  z7.object({
1466
- query: z7.string()
1485
+ command: z7.enum(["view", "create", "str_replace", "insert"]),
1486
+ path: z7.string(),
1487
+ file_text: z7.string().optional(),
1488
+ insert_line: z7.number().int().optional(),
1489
+ new_str: z7.string().optional(),
1490
+ insert_text: z7.string().optional(),
1491
+ old_str: z7.string().optional(),
1492
+ view_range: z7.array(z7.number().int()).optional()
1467
1493
  })
1468
1494
  )
1469
1495
  );
1470
- var factory3 = createProviderExecutedToolFactory2({
1471
- id: "anthropic.web_search_20260318",
1472
- inputSchema: webSearch_20260318InputSchema,
1473
- outputSchema: webSearch_20260318OutputSchema,
1474
- supportsDeferredResults: true
1496
+ var factory2 = createProviderDefinedToolFactory2({
1497
+ id: "anthropic.text_editor_20250728",
1498
+ inputSchema: textEditor_20250728InputSchema
1475
1499
  });
1476
- var webSearch_20260318 = (args = {}) => {
1477
- return factory3(args);
1500
+ var textEditor_20250728 = (args = {}) => {
1501
+ return factory2(args);
1478
1502
  };
1479
1503
 
1480
- // src/tool/web-search_20260209.ts
1504
+ // src/tool/web-search_20260318.ts
1481
1505
  import {
1482
- createProviderExecutedToolFactory as createProviderExecutedToolFactory3,
1506
+ createProviderExecutedToolFactory as createProviderExecutedToolFactory2,
1483
1507
  lazySchema as lazySchema7,
1484
1508
  zodSchema as zodSchema7
1485
1509
  } from "@ai-sdk/provider-utils";
1486
1510
  import { z as z8 } from "zod/v4";
1487
- var webSearch_20260209ArgsSchema = lazySchema7(
1511
+ var webSearch_20260318ArgsSchema = lazySchema7(
1488
1512
  () => zodSchema7(
1489
1513
  z8.object({
1490
1514
  maxUses: z8.number().optional(),
@@ -1496,11 +1520,12 @@ var webSearch_20260209ArgsSchema = lazySchema7(
1496
1520
  region: z8.string().optional(),
1497
1521
  country: z8.string().optional(),
1498
1522
  timezone: z8.string().optional()
1499
- }).optional()
1523
+ }).optional(),
1524
+ responseInclusion: z8.enum(["full", "excluded"]).optional()
1500
1525
  })
1501
1526
  )
1502
1527
  );
1503
- var webSearch_20260209OutputSchema = lazySchema7(
1528
+ var webSearch_20260318OutputSchema = lazySchema7(
1504
1529
  () => zodSchema7(
1505
1530
  z8.array(
1506
1531
  z8.object({
@@ -1513,31 +1538,31 @@ var webSearch_20260209OutputSchema = lazySchema7(
1513
1538
  )
1514
1539
  )
1515
1540
  );
1516
- var webSearch_20260209InputSchema = lazySchema7(
1541
+ var webSearch_20260318InputSchema = lazySchema7(
1517
1542
  () => zodSchema7(
1518
1543
  z8.object({
1519
1544
  query: z8.string()
1520
1545
  })
1521
1546
  )
1522
1547
  );
1523
- var factory4 = createProviderExecutedToolFactory3({
1524
- id: "anthropic.web_search_20260209",
1525
- inputSchema: webSearch_20260209InputSchema,
1526
- outputSchema: webSearch_20260209OutputSchema,
1548
+ var factory3 = createProviderExecutedToolFactory2({
1549
+ id: "anthropic.web_search_20260318",
1550
+ inputSchema: webSearch_20260318InputSchema,
1551
+ outputSchema: webSearch_20260318OutputSchema,
1527
1552
  supportsDeferredResults: true
1528
1553
  });
1529
- var webSearch_20260209 = (args = {}) => {
1530
- return factory4(args);
1554
+ var webSearch_20260318 = (args = {}) => {
1555
+ return factory3(args);
1531
1556
  };
1532
1557
 
1533
- // src/tool/web-search_20250305.ts
1558
+ // src/tool/web-search_20260209.ts
1534
1559
  import {
1535
- createProviderExecutedToolFactory as createProviderExecutedToolFactory4,
1560
+ createProviderExecutedToolFactory as createProviderExecutedToolFactory3,
1536
1561
  lazySchema as lazySchema8,
1537
1562
  zodSchema as zodSchema8
1538
1563
  } from "@ai-sdk/provider-utils";
1539
1564
  import { z as z9 } from "zod/v4";
1540
- var webSearch_20250305ArgsSchema = lazySchema8(
1565
+ var webSearch_20260209ArgsSchema = lazySchema8(
1541
1566
  () => zodSchema8(
1542
1567
  z9.object({
1543
1568
  maxUses: z9.number().optional(),
@@ -1553,7 +1578,7 @@ var webSearch_20250305ArgsSchema = lazySchema8(
1553
1578
  })
1554
1579
  )
1555
1580
  );
1556
- var webSearch_20250305OutputSchema = lazySchema8(
1581
+ var webSearch_20260209OutputSchema = lazySchema8(
1557
1582
  () => zodSchema8(
1558
1583
  z9.array(
1559
1584
  z9.object({
@@ -1566,105 +1591,97 @@ var webSearch_20250305OutputSchema = lazySchema8(
1566
1591
  )
1567
1592
  )
1568
1593
  );
1569
- var webSearch_20250305InputSchema = lazySchema8(
1594
+ var webSearch_20260209InputSchema = lazySchema8(
1570
1595
  () => zodSchema8(
1571
1596
  z9.object({
1572
1597
  query: z9.string()
1573
1598
  })
1574
1599
  )
1575
1600
  );
1576
- var factory5 = createProviderExecutedToolFactory4({
1577
- id: "anthropic.web_search_20250305",
1578
- inputSchema: webSearch_20250305InputSchema,
1579
- outputSchema: webSearch_20250305OutputSchema,
1601
+ var factory4 = createProviderExecutedToolFactory3({
1602
+ id: "anthropic.web_search_20260209",
1603
+ inputSchema: webSearch_20260209InputSchema,
1604
+ outputSchema: webSearch_20260209OutputSchema,
1580
1605
  supportsDeferredResults: true
1581
1606
  });
1582
- var webSearch_20250305 = (args = {}) => {
1583
- return factory5(args);
1607
+ var webSearch_20260209 = (args = {}) => {
1608
+ return factory4(args);
1584
1609
  };
1585
1610
 
1586
- // src/tool/web-fetch-20260318.ts
1611
+ // src/tool/web-search_20250305.ts
1587
1612
  import {
1588
- createProviderExecutedToolFactory as createProviderExecutedToolFactory5,
1613
+ createProviderExecutedToolFactory as createProviderExecutedToolFactory4,
1589
1614
  lazySchema as lazySchema9,
1590
1615
  zodSchema as zodSchema9
1591
1616
  } from "@ai-sdk/provider-utils";
1592
1617
  import { z as z10 } from "zod/v4";
1593
- var webFetch_20260318ArgsSchema = lazySchema9(
1618
+ var webSearch_20250305ArgsSchema = lazySchema9(
1594
1619
  () => zodSchema9(
1595
1620
  z10.object({
1596
1621
  maxUses: z10.number().optional(),
1597
1622
  allowedDomains: z10.array(z10.string()).optional(),
1598
1623
  blockedDomains: z10.array(z10.string()).optional(),
1599
- citations: z10.object({ enabled: z10.boolean() }).optional(),
1600
- maxContentTokens: z10.number().optional(),
1601
- useCache: z10.boolean().optional(),
1602
- responseInclusion: z10.enum(["full", "excluded"]).optional()
1624
+ userLocation: z10.object({
1625
+ type: z10.literal("approximate"),
1626
+ city: z10.string().optional(),
1627
+ region: z10.string().optional(),
1628
+ country: z10.string().optional(),
1629
+ timezone: z10.string().optional()
1630
+ }).optional()
1603
1631
  })
1604
1632
  )
1605
1633
  );
1606
- var webFetch_20260318OutputSchema = lazySchema9(
1634
+ var webSearch_20250305OutputSchema = lazySchema9(
1607
1635
  () => zodSchema9(
1608
- z10.object({
1609
- type: z10.literal("web_fetch_result"),
1610
- url: z10.string(),
1611
- content: z10.object({
1612
- type: z10.literal("document"),
1636
+ z10.array(
1637
+ z10.object({
1638
+ url: z10.string(),
1613
1639
  title: z10.string().nullable(),
1614
- citations: z10.object({ enabled: z10.boolean() }).optional(),
1615
- source: z10.union([
1616
- z10.object({
1617
- type: z10.literal("base64"),
1618
- mediaType: z10.literal("application/pdf"),
1619
- data: z10.string()
1620
- }),
1621
- z10.object({
1622
- type: z10.literal("text"),
1623
- mediaType: z10.literal("text/plain"),
1624
- data: z10.string()
1625
- })
1626
- ])
1627
- }),
1628
- retrievedAt: z10.string().nullable()
1629
- })
1640
+ pageAge: z10.string().nullable(),
1641
+ encryptedContent: z10.string(),
1642
+ type: z10.literal("web_search_result")
1643
+ })
1644
+ )
1630
1645
  )
1631
1646
  );
1632
- var webFetch_20260318InputSchema = lazySchema9(
1647
+ var webSearch_20250305InputSchema = lazySchema9(
1633
1648
  () => zodSchema9(
1634
1649
  z10.object({
1635
- url: z10.string()
1650
+ query: z10.string()
1636
1651
  })
1637
1652
  )
1638
1653
  );
1639
- var factory6 = createProviderExecutedToolFactory5({
1640
- id: "anthropic.web_fetch_20260318",
1641
- inputSchema: webFetch_20260318InputSchema,
1642
- outputSchema: webFetch_20260318OutputSchema,
1654
+ var factory5 = createProviderExecutedToolFactory4({
1655
+ id: "anthropic.web_search_20250305",
1656
+ inputSchema: webSearch_20250305InputSchema,
1657
+ outputSchema: webSearch_20250305OutputSchema,
1643
1658
  supportsDeferredResults: true
1644
1659
  });
1645
- var webFetch_20260318 = (args = {}) => {
1646
- return factory6(args);
1660
+ var webSearch_20250305 = (args = {}) => {
1661
+ return factory5(args);
1647
1662
  };
1648
1663
 
1649
- // src/tool/web-fetch-20260209.ts
1664
+ // src/tool/web-fetch-20260318.ts
1650
1665
  import {
1651
- createProviderExecutedToolFactory as createProviderExecutedToolFactory6,
1666
+ createProviderExecutedToolFactory as createProviderExecutedToolFactory5,
1652
1667
  lazySchema as lazySchema10,
1653
1668
  zodSchema as zodSchema10
1654
1669
  } from "@ai-sdk/provider-utils";
1655
1670
  import { z as z11 } from "zod/v4";
1656
- var webFetch_20260209ArgsSchema = lazySchema10(
1671
+ var webFetch_20260318ArgsSchema = lazySchema10(
1657
1672
  () => zodSchema10(
1658
1673
  z11.object({
1659
1674
  maxUses: z11.number().optional(),
1660
1675
  allowedDomains: z11.array(z11.string()).optional(),
1661
1676
  blockedDomains: z11.array(z11.string()).optional(),
1662
1677
  citations: z11.object({ enabled: z11.boolean() }).optional(),
1663
- maxContentTokens: z11.number().optional()
1678
+ maxContentTokens: z11.number().optional(),
1679
+ useCache: z11.boolean().optional(),
1680
+ responseInclusion: z11.enum(["full", "excluded"]).optional()
1664
1681
  })
1665
1682
  )
1666
1683
  );
1667
- var webFetch_20260209OutputSchema = lazySchema10(
1684
+ var webFetch_20260318OutputSchema = lazySchema10(
1668
1685
  () => zodSchema10(
1669
1686
  z11.object({
1670
1687
  type: z11.literal("web_fetch_result"),
@@ -1690,31 +1707,31 @@ var webFetch_20260209OutputSchema = lazySchema10(
1690
1707
  })
1691
1708
  )
1692
1709
  );
1693
- var webFetch_20260209InputSchema = lazySchema10(
1710
+ var webFetch_20260318InputSchema = lazySchema10(
1694
1711
  () => zodSchema10(
1695
1712
  z11.object({
1696
1713
  url: z11.string()
1697
1714
  })
1698
1715
  )
1699
1716
  );
1700
- var factory7 = createProviderExecutedToolFactory6({
1701
- id: "anthropic.web_fetch_20260209",
1702
- inputSchema: webFetch_20260209InputSchema,
1703
- outputSchema: webFetch_20260209OutputSchema,
1717
+ var factory6 = createProviderExecutedToolFactory5({
1718
+ id: "anthropic.web_fetch_20260318",
1719
+ inputSchema: webFetch_20260318InputSchema,
1720
+ outputSchema: webFetch_20260318OutputSchema,
1704
1721
  supportsDeferredResults: true
1705
1722
  });
1706
- var webFetch_20260209 = (args = {}) => {
1707
- return factory7(args);
1723
+ var webFetch_20260318 = (args = {}) => {
1724
+ return factory6(args);
1708
1725
  };
1709
1726
 
1710
- // src/tool/web-fetch-20250910.ts
1727
+ // src/tool/web-fetch-20260209.ts
1711
1728
  import {
1712
- createProviderExecutedToolFactory as createProviderExecutedToolFactory7,
1729
+ createProviderExecutedToolFactory as createProviderExecutedToolFactory6,
1713
1730
  lazySchema as lazySchema11,
1714
1731
  zodSchema as zodSchema11
1715
1732
  } from "@ai-sdk/provider-utils";
1716
1733
  import { z as z12 } from "zod/v4";
1717
- var webFetch_20250910ArgsSchema = lazySchema11(
1734
+ var webFetch_20260209ArgsSchema = lazySchema11(
1718
1735
  () => zodSchema11(
1719
1736
  z12.object({
1720
1737
  maxUses: z12.number().optional(),
@@ -1725,7 +1742,7 @@ var webFetch_20250910ArgsSchema = lazySchema11(
1725
1742
  })
1726
1743
  )
1727
1744
  );
1728
- var webFetch_20250910OutputSchema = lazySchema11(
1745
+ var webFetch_20260209OutputSchema = lazySchema11(
1729
1746
  () => zodSchema11(
1730
1747
  z12.object({
1731
1748
  type: z12.literal("web_fetch_result"),
@@ -1751,13 +1768,74 @@ var webFetch_20250910OutputSchema = lazySchema11(
1751
1768
  })
1752
1769
  )
1753
1770
  );
1754
- var webFetch_20250910InputSchema = lazySchema11(
1771
+ var webFetch_20260209InputSchema = lazySchema11(
1755
1772
  () => zodSchema11(
1756
1773
  z12.object({
1757
1774
  url: z12.string()
1758
1775
  })
1759
1776
  )
1760
1777
  );
1778
+ var factory7 = createProviderExecutedToolFactory6({
1779
+ id: "anthropic.web_fetch_20260209",
1780
+ inputSchema: webFetch_20260209InputSchema,
1781
+ outputSchema: webFetch_20260209OutputSchema,
1782
+ supportsDeferredResults: true
1783
+ });
1784
+ var webFetch_20260209 = (args = {}) => {
1785
+ return factory7(args);
1786
+ };
1787
+
1788
+ // src/tool/web-fetch-20250910.ts
1789
+ import {
1790
+ createProviderExecutedToolFactory as createProviderExecutedToolFactory7,
1791
+ lazySchema as lazySchema12,
1792
+ zodSchema as zodSchema12
1793
+ } from "@ai-sdk/provider-utils";
1794
+ import { z as z13 } from "zod/v4";
1795
+ var webFetch_20250910ArgsSchema = lazySchema12(
1796
+ () => zodSchema12(
1797
+ z13.object({
1798
+ maxUses: z13.number().optional(),
1799
+ allowedDomains: z13.array(z13.string()).optional(),
1800
+ blockedDomains: z13.array(z13.string()).optional(),
1801
+ citations: z13.object({ enabled: z13.boolean() }).optional(),
1802
+ maxContentTokens: z13.number().optional()
1803
+ })
1804
+ )
1805
+ );
1806
+ var webFetch_20250910OutputSchema = lazySchema12(
1807
+ () => zodSchema12(
1808
+ z13.object({
1809
+ type: z13.literal("web_fetch_result"),
1810
+ url: z13.string(),
1811
+ content: z13.object({
1812
+ type: z13.literal("document"),
1813
+ title: z13.string().nullable(),
1814
+ citations: z13.object({ enabled: z13.boolean() }).optional(),
1815
+ source: z13.union([
1816
+ z13.object({
1817
+ type: z13.literal("base64"),
1818
+ mediaType: z13.literal("application/pdf"),
1819
+ data: z13.string()
1820
+ }),
1821
+ z13.object({
1822
+ type: z13.literal("text"),
1823
+ mediaType: z13.literal("text/plain"),
1824
+ data: z13.string()
1825
+ })
1826
+ ])
1827
+ }),
1828
+ retrievedAt: z13.string().nullable()
1829
+ })
1830
+ )
1831
+ );
1832
+ var webFetch_20250910InputSchema = lazySchema12(
1833
+ () => zodSchema12(
1834
+ z13.object({
1835
+ url: z13.string()
1836
+ })
1837
+ )
1838
+ );
1761
1839
  var factory8 = createProviderExecutedToolFactory7({
1762
1840
  id: "anthropic.web_fetch_20250910",
1763
1841
  inputSchema: webFetch_20250910InputSchema,
@@ -1777,7 +1855,8 @@ async function prepareTools({
1777
1855
  cacheControlValidator,
1778
1856
  supportsStructuredOutput,
1779
1857
  supportsStrictTools,
1780
- defaultEagerInputStreaming = false
1858
+ defaultEagerInputStreaming = false,
1859
+ rejectsForcedToolUse = false
1781
1860
  }) {
1782
1861
  var _a, _b;
1783
1862
  tools = (tools == null ? void 0 : tools.length) ? tools : void 0;
@@ -1880,6 +1959,31 @@ async function prepareTools({
1880
1959
  });
1881
1960
  break;
1882
1961
  }
1962
+ case "anthropic.computer_toolset_20260801": {
1963
+ const args = await validateTypes({
1964
+ value: tool.args,
1965
+ schema: computerToolset_20260801ArgsSchema
1966
+ });
1967
+ const configs = args.configs != null ? Object.fromEntries(
1968
+ Object.entries(args.configs).map(([member, config]) => [
1969
+ member,
1970
+ {
1971
+ ...(config == null ? void 0 : config.enabled) != null && {
1972
+ enabled: config.enabled
1973
+ },
1974
+ ...(config == null ? void 0 : config.deferLoading) != null && {
1975
+ defer_loading: config.deferLoading
1976
+ }
1977
+ }
1978
+ ])
1979
+ ) : void 0;
1980
+ anthropicTools2.push({
1981
+ type: "computer_toolset_20260801",
1982
+ ...configs != null && { configs },
1983
+ cache_control: void 0
1984
+ });
1985
+ break;
1986
+ }
1883
1987
  case "anthropic.computer_20241022": {
1884
1988
  betas.add("computer-use-2024-10-22");
1885
1989
  anthropicTools2.push({
@@ -2135,6 +2239,22 @@ async function prepareTools({
2135
2239
  betas
2136
2240
  };
2137
2241
  case "required":
2242
+ if (rejectsForcedToolUse) {
2243
+ toolWarnings.push({
2244
+ type: "unsupported",
2245
+ feature: "toolChoice",
2246
+ details: `toolChoice 'required' is not supported by this model because it rejects forced tool use. Using 'auto' instead. Instruct the model to use a tool in the prompt and verify that a tool call was made.`
2247
+ });
2248
+ return {
2249
+ tools: anthropicTools2,
2250
+ toolChoice: {
2251
+ type: "auto",
2252
+ disable_parallel_tool_use: disableParallelToolUse
2253
+ },
2254
+ toolWarnings,
2255
+ betas
2256
+ };
2257
+ }
2138
2258
  return {
2139
2259
  tools: anthropicTools2,
2140
2260
  toolChoice: {
@@ -2147,6 +2267,24 @@ async function prepareTools({
2147
2267
  case "none":
2148
2268
  return { tools: void 0, toolChoice: void 0, toolWarnings, betas };
2149
2269
  case "tool":
2270
+ if (rejectsForcedToolUse) {
2271
+ toolWarnings.push({
2272
+ type: "unsupported",
2273
+ feature: "toolChoice",
2274
+ details: `toolChoice 'tool' is not supported by this model because it rejects forced tool use. Only the '${toolChoice.toolName}' tool is sent with 'auto' tool choice. Instruct the model to use the tool in the prompt and verify that a tool call was made.`
2275
+ });
2276
+ return {
2277
+ tools: anthropicTools2.filter(
2278
+ (tool) => "name" in tool && tool.name === toolChoice.toolName
2279
+ ),
2280
+ toolChoice: {
2281
+ type: "auto",
2282
+ disable_parallel_tool_use: disableParallelToolUse
2283
+ },
2284
+ toolWarnings,
2285
+ betas
2286
+ };
2287
+ }
2150
2288
  return {
2151
2289
  tools: anthropicTools2,
2152
2290
  toolChoice: {
@@ -2237,30 +2375,30 @@ import {
2237
2375
  // src/tool/code-execution_20250522.ts
2238
2376
  import {
2239
2377
  createProviderExecutedToolFactory as createProviderExecutedToolFactory8,
2240
- lazySchema as lazySchema12,
2241
- zodSchema as zodSchema12
2378
+ lazySchema as lazySchema13,
2379
+ zodSchema as zodSchema13
2242
2380
  } from "@ai-sdk/provider-utils";
2243
- import { z as z13 } from "zod/v4";
2244
- var codeExecution_20250522OutputSchema = lazySchema12(
2245
- () => zodSchema12(
2246
- z13.object({
2247
- type: z13.literal("code_execution_result"),
2248
- stdout: z13.string(),
2249
- stderr: z13.string(),
2250
- return_code: z13.number(),
2251
- content: z13.array(
2252
- z13.object({
2253
- type: z13.literal("code_execution_output"),
2254
- file_id: z13.string()
2381
+ import { z as z14 } from "zod/v4";
2382
+ var codeExecution_20250522OutputSchema = lazySchema13(
2383
+ () => zodSchema13(
2384
+ z14.object({
2385
+ type: z14.literal("code_execution_result"),
2386
+ stdout: z14.string(),
2387
+ stderr: z14.string(),
2388
+ return_code: z14.number(),
2389
+ content: z14.array(
2390
+ z14.object({
2391
+ type: z14.literal("code_execution_output"),
2392
+ file_id: z14.string()
2255
2393
  })
2256
2394
  ).optional().default([])
2257
2395
  })
2258
2396
  )
2259
2397
  );
2260
- var codeExecution_20250522InputSchema = lazySchema12(
2261
- () => zodSchema12(
2262
- z13.object({
2263
- code: z13.string()
2398
+ var codeExecution_20250522InputSchema = lazySchema13(
2399
+ () => zodSchema13(
2400
+ z14.object({
2401
+ code: z14.string()
2264
2402
  })
2265
2403
  )
2266
2404
  );
@@ -2277,143 +2415,11 @@ var codeExecution_20250522 = (args = {}) => {
2277
2415
  import {
2278
2416
  createProviderExecutedToolFactory as createProviderExecutedToolFactory9,
2279
2417
  experimental_toolCaller,
2280
- lazySchema as lazySchema13,
2281
- zodSchema as zodSchema13
2282
- } from "@ai-sdk/provider-utils";
2283
- import { z as z14 } from "zod/v4";
2284
- var codeExecution_20250825OutputSchema = lazySchema13(
2285
- () => zodSchema13(
2286
- z14.discriminatedUnion("type", [
2287
- z14.object({
2288
- type: z14.literal("code_execution_result"),
2289
- stdout: z14.string(),
2290
- stderr: z14.string(),
2291
- return_code: z14.number(),
2292
- content: z14.array(
2293
- z14.object({
2294
- type: z14.literal("code_execution_output"),
2295
- file_id: z14.string()
2296
- })
2297
- ).optional().default([])
2298
- }),
2299
- z14.object({
2300
- type: z14.literal("bash_code_execution_result"),
2301
- content: z14.array(
2302
- z14.object({
2303
- type: z14.literal("bash_code_execution_output"),
2304
- file_id: z14.string()
2305
- })
2306
- ),
2307
- stdout: z14.string(),
2308
- stderr: z14.string(),
2309
- return_code: z14.number()
2310
- }),
2311
- z14.object({
2312
- type: z14.literal("bash_code_execution_tool_result_error"),
2313
- error_code: z14.string()
2314
- }),
2315
- z14.object({
2316
- type: z14.literal("text_editor_code_execution_tool_result_error"),
2317
- error_code: z14.string()
2318
- }),
2319
- z14.object({
2320
- type: z14.literal("text_editor_code_execution_view_result"),
2321
- content: z14.string(),
2322
- file_type: z14.string(),
2323
- num_lines: z14.number().nullable(),
2324
- start_line: z14.number().nullable(),
2325
- total_lines: z14.number().nullable()
2326
- }),
2327
- z14.object({
2328
- type: z14.literal("text_editor_code_execution_create_result"),
2329
- is_file_update: z14.boolean()
2330
- }),
2331
- z14.object({
2332
- type: z14.literal("text_editor_code_execution_str_replace_result"),
2333
- lines: z14.array(z14.string()).nullable(),
2334
- new_lines: z14.number().nullable(),
2335
- new_start: z14.number().nullable(),
2336
- old_lines: z14.number().nullable(),
2337
- old_start: z14.number().nullable()
2338
- })
2339
- ])
2340
- )
2341
- );
2342
- var codeExecution_20250825InputSchema = lazySchema13(
2343
- () => zodSchema13(
2344
- z14.discriminatedUnion("type", [
2345
- // Programmatic tool calling format (mapped from { code } by AI SDK)
2346
- z14.object({
2347
- type: z14.literal("programmatic-tool-call"),
2348
- code: z14.string()
2349
- }),
2350
- z14.object({
2351
- type: z14.literal("bash_code_execution"),
2352
- command: z14.string()
2353
- }),
2354
- z14.discriminatedUnion("command", [
2355
- z14.object({
2356
- type: z14.literal("text_editor_code_execution"),
2357
- command: z14.literal("view"),
2358
- path: z14.string()
2359
- }),
2360
- z14.object({
2361
- type: z14.literal("text_editor_code_execution"),
2362
- command: z14.literal("create"),
2363
- path: z14.string(),
2364
- file_text: z14.string().nullish()
2365
- }),
2366
- z14.object({
2367
- type: z14.literal("text_editor_code_execution"),
2368
- command: z14.literal("str_replace"),
2369
- path: z14.string(),
2370
- old_str: z14.string(),
2371
- new_str: z14.string()
2372
- })
2373
- ])
2374
- ])
2375
- )
2376
- );
2377
- var factory10 = createProviderExecutedToolFactory9({
2378
- id: "anthropic.code_execution_20250825",
2379
- inputSchema: codeExecution_20250825InputSchema,
2380
- outputSchema: codeExecution_20250825OutputSchema,
2381
- // Programmatic tool calling: tool results may be deferred to a later turn
2382
- // when code execution triggers a client-executed tool that needs to be
2383
- // resolved before the code execution result can be returned.
2384
- supportsDeferredResults: true
2385
- });
2386
- var codeExecution_20250825 = (args = {}) => {
2387
- return experimental_toolCaller(factory10(args), {
2388
- type: "provider",
2389
- prepareProviderOptions: (providerOptions) => {
2390
- var _a;
2391
- const anthropicOptions = providerOptions == null ? void 0 : providerOptions.anthropic;
2392
- return {
2393
- ...providerOptions,
2394
- anthropic: {
2395
- ...anthropicOptions,
2396
- allowedCallers: [
2397
- .../* @__PURE__ */ new Set([
2398
- ...(_a = anthropicOptions == null ? void 0 : anthropicOptions.allowedCallers) != null ? _a : [],
2399
- "code_execution_20250825"
2400
- ])
2401
- ]
2402
- }
2403
- };
2404
- }
2405
- });
2406
- };
2407
-
2408
- // src/tool/code-execution_20260120.ts
2409
- import {
2410
- createProviderExecutedToolFactory as createProviderExecutedToolFactory10,
2411
- experimental_toolCaller as experimental_toolCaller2,
2412
2418
  lazySchema as lazySchema14,
2413
2419
  zodSchema as zodSchema14
2414
2420
  } from "@ai-sdk/provider-utils";
2415
2421
  import { z as z15 } from "zod/v4";
2416
- var codeExecution_20260120OutputSchema = lazySchema14(
2422
+ var codeExecution_20250825OutputSchema = lazySchema14(
2417
2423
  () => zodSchema14(
2418
2424
  z15.discriminatedUnion("type", [
2419
2425
  z15.object({
@@ -2428,18 +2434,6 @@ var codeExecution_20260120OutputSchema = lazySchema14(
2428
2434
  })
2429
2435
  ).optional().default([])
2430
2436
  }),
2431
- z15.object({
2432
- type: z15.literal("encrypted_code_execution_result"),
2433
- encrypted_stdout: z15.string(),
2434
- stderr: z15.string(),
2435
- return_code: z15.number(),
2436
- content: z15.array(
2437
- z15.object({
2438
- type: z15.literal("code_execution_output"),
2439
- file_id: z15.string()
2440
- })
2441
- ).optional().default([])
2442
- }),
2443
2437
  z15.object({
2444
2438
  type: z15.literal("bash_code_execution_result"),
2445
2439
  content: z15.array(
@@ -2483,9 +2477,10 @@ var codeExecution_20260120OutputSchema = lazySchema14(
2483
2477
  ])
2484
2478
  )
2485
2479
  );
2486
- var codeExecution_20260120InputSchema = lazySchema14(
2480
+ var codeExecution_20250825InputSchema = lazySchema14(
2487
2481
  () => zodSchema14(
2488
2482
  z15.discriminatedUnion("type", [
2483
+ // Programmatic tool calling format (mapped from { code } by AI SDK)
2489
2484
  z15.object({
2490
2485
  type: z15.literal("programmatic-tool-call"),
2491
2486
  code: z15.string()
@@ -2517,6 +2512,149 @@ var codeExecution_20260120InputSchema = lazySchema14(
2517
2512
  ])
2518
2513
  )
2519
2514
  );
2515
+ var factory10 = createProviderExecutedToolFactory9({
2516
+ id: "anthropic.code_execution_20250825",
2517
+ inputSchema: codeExecution_20250825InputSchema,
2518
+ outputSchema: codeExecution_20250825OutputSchema,
2519
+ // Programmatic tool calling: tool results may be deferred to a later turn
2520
+ // when code execution triggers a client-executed tool that needs to be
2521
+ // resolved before the code execution result can be returned.
2522
+ supportsDeferredResults: true
2523
+ });
2524
+ var codeExecution_20250825 = (args = {}) => {
2525
+ return experimental_toolCaller(factory10(args), {
2526
+ type: "provider",
2527
+ prepareProviderOptions: (providerOptions) => {
2528
+ var _a;
2529
+ const anthropicOptions = providerOptions == null ? void 0 : providerOptions.anthropic;
2530
+ return {
2531
+ ...providerOptions,
2532
+ anthropic: {
2533
+ ...anthropicOptions,
2534
+ allowedCallers: [
2535
+ .../* @__PURE__ */ new Set([
2536
+ ...(_a = anthropicOptions == null ? void 0 : anthropicOptions.allowedCallers) != null ? _a : [],
2537
+ "code_execution_20250825"
2538
+ ])
2539
+ ]
2540
+ }
2541
+ };
2542
+ }
2543
+ });
2544
+ };
2545
+
2546
+ // src/tool/code-execution_20260120.ts
2547
+ import {
2548
+ createProviderExecutedToolFactory as createProviderExecutedToolFactory10,
2549
+ experimental_toolCaller as experimental_toolCaller2,
2550
+ lazySchema as lazySchema15,
2551
+ zodSchema as zodSchema15
2552
+ } from "@ai-sdk/provider-utils";
2553
+ import { z as z16 } from "zod/v4";
2554
+ var codeExecution_20260120OutputSchema = lazySchema15(
2555
+ () => zodSchema15(
2556
+ z16.discriminatedUnion("type", [
2557
+ z16.object({
2558
+ type: z16.literal("code_execution_result"),
2559
+ stdout: z16.string(),
2560
+ stderr: z16.string(),
2561
+ return_code: z16.number(),
2562
+ content: z16.array(
2563
+ z16.object({
2564
+ type: z16.literal("code_execution_output"),
2565
+ file_id: z16.string()
2566
+ })
2567
+ ).optional().default([])
2568
+ }),
2569
+ z16.object({
2570
+ type: z16.literal("encrypted_code_execution_result"),
2571
+ encrypted_stdout: z16.string(),
2572
+ stderr: z16.string(),
2573
+ return_code: z16.number(),
2574
+ content: z16.array(
2575
+ z16.object({
2576
+ type: z16.literal("code_execution_output"),
2577
+ file_id: z16.string()
2578
+ })
2579
+ ).optional().default([])
2580
+ }),
2581
+ z16.object({
2582
+ type: z16.literal("bash_code_execution_result"),
2583
+ content: z16.array(
2584
+ z16.object({
2585
+ type: z16.literal("bash_code_execution_output"),
2586
+ file_id: z16.string()
2587
+ })
2588
+ ),
2589
+ stdout: z16.string(),
2590
+ stderr: z16.string(),
2591
+ return_code: z16.number()
2592
+ }),
2593
+ z16.object({
2594
+ type: z16.literal("bash_code_execution_tool_result_error"),
2595
+ error_code: z16.string()
2596
+ }),
2597
+ z16.object({
2598
+ type: z16.literal("text_editor_code_execution_tool_result_error"),
2599
+ error_code: z16.string()
2600
+ }),
2601
+ z16.object({
2602
+ type: z16.literal("text_editor_code_execution_view_result"),
2603
+ content: z16.string(),
2604
+ file_type: z16.string(),
2605
+ num_lines: z16.number().nullable(),
2606
+ start_line: z16.number().nullable(),
2607
+ total_lines: z16.number().nullable()
2608
+ }),
2609
+ z16.object({
2610
+ type: z16.literal("text_editor_code_execution_create_result"),
2611
+ is_file_update: z16.boolean()
2612
+ }),
2613
+ z16.object({
2614
+ type: z16.literal("text_editor_code_execution_str_replace_result"),
2615
+ lines: z16.array(z16.string()).nullable(),
2616
+ new_lines: z16.number().nullable(),
2617
+ new_start: z16.number().nullable(),
2618
+ old_lines: z16.number().nullable(),
2619
+ old_start: z16.number().nullable()
2620
+ })
2621
+ ])
2622
+ )
2623
+ );
2624
+ var codeExecution_20260120InputSchema = lazySchema15(
2625
+ () => zodSchema15(
2626
+ z16.discriminatedUnion("type", [
2627
+ z16.object({
2628
+ type: z16.literal("programmatic-tool-call"),
2629
+ code: z16.string()
2630
+ }),
2631
+ z16.object({
2632
+ type: z16.literal("bash_code_execution"),
2633
+ command: z16.string()
2634
+ }),
2635
+ z16.discriminatedUnion("command", [
2636
+ z16.object({
2637
+ type: z16.literal("text_editor_code_execution"),
2638
+ command: z16.literal("view"),
2639
+ path: z16.string()
2640
+ }),
2641
+ z16.object({
2642
+ type: z16.literal("text_editor_code_execution"),
2643
+ command: z16.literal("create"),
2644
+ path: z16.string(),
2645
+ file_text: z16.string().nullish()
2646
+ }),
2647
+ z16.object({
2648
+ type: z16.literal("text_editor_code_execution"),
2649
+ command: z16.literal("str_replace"),
2650
+ path: z16.string(),
2651
+ old_str: z16.string(),
2652
+ new_str: z16.string()
2653
+ })
2654
+ ])
2655
+ ])
2656
+ )
2657
+ );
2520
2658
  var factory11 = createProviderExecutedToolFactory10({
2521
2659
  id: "anthropic.code_execution_20260120",
2522
2660
  inputSchema: codeExecution_20260120InputSchema,
@@ -2548,23 +2686,23 @@ var codeExecution_20260120 = (args = {}) => {
2548
2686
  // src/tool/tool-search-regex_20251119.ts
2549
2687
  import {
2550
2688
  createProviderExecutedToolFactory as createProviderExecutedToolFactory11,
2551
- lazySchema as lazySchema15,
2552
- zodSchema as zodSchema15
2689
+ lazySchema as lazySchema16,
2690
+ zodSchema as zodSchema16
2553
2691
  } from "@ai-sdk/provider-utils";
2554
- import { z as z16 } from "zod/v4";
2555
- var toolSearchRegex_20251119OutputSchema = lazySchema15(
2556
- () => zodSchema15(
2557
- z16.array(
2558
- z16.object({
2559
- type: z16.literal("tool_reference"),
2560
- toolName: z16.string()
2692
+ import { z as z17 } from "zod/v4";
2693
+ var toolSearchRegex_20251119OutputSchema = lazySchema16(
2694
+ () => zodSchema16(
2695
+ z17.array(
2696
+ z17.object({
2697
+ type: z17.literal("tool_reference"),
2698
+ toolName: z17.string()
2561
2699
  })
2562
2700
  )
2563
2701
  )
2564
2702
  );
2565
- var toolSearchRegex_20251119InputSchema = lazySchema15(
2566
- () => zodSchema15(
2567
- z16.object({
2703
+ var toolSearchRegex_20251119InputSchema = lazySchema16(
2704
+ () => zodSchema16(
2705
+ z17.object({
2568
2706
  /**
2569
2707
  * A regex pattern to search for tools.
2570
2708
  * Uses Python re.search() syntax. Maximum 200 characters.
@@ -2575,11 +2713,11 @@ var toolSearchRegex_20251119InputSchema = lazySchema15(
2575
2713
  * - "database.*query|query.*database" - OR patterns for flexibility
2576
2714
  * - "(?i)slack" - case-insensitive search
2577
2715
  */
2578
- pattern: z16.string(),
2716
+ pattern: z17.string(),
2579
2717
  /**
2580
2718
  * Maximum number of tools to return. Optional.
2581
2719
  */
2582
- limit: z16.number().optional()
2720
+ limit: z17.number().optional()
2583
2721
  })
2584
2722
  )
2585
2723
  );
@@ -2620,7 +2758,8 @@ async function convertToAnthropicPrompt({
2620
2758
  sendReasoning,
2621
2759
  warnings,
2622
2760
  cacheControlValidator,
2623
- toolNameMapping
2761
+ toolNameMapping,
2762
+ toolsetNames = {}
2624
2763
  }) {
2625
2764
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v;
2626
2765
  const betas = /* @__PURE__ */ new Set();
@@ -2743,7 +2882,7 @@ async function convertToAnthropicPrompt({
2743
2882
  betas.add("mid-conversation-system-clear-at-2026-08-21");
2744
2883
  }
2745
2884
  if (message.effort != null) {
2746
- betas.add("mid-conversation-effort-2026-08-01");
2885
+ betas.add("mid-conversation-output-config-2026-07-01");
2747
2886
  }
2748
2887
  }
2749
2888
  }
@@ -3043,9 +3182,15 @@ async function convertToAnthropicPrompt({
3043
3182
  contentValue = JSON.stringify(output.value);
3044
3183
  break;
3045
3184
  }
3185
+ const toolsetName = getAnthropicToolsetName({
3186
+ toolName: part.toolName,
3187
+ providerOptions: part.providerOptions,
3188
+ toolsetNames
3189
+ });
3046
3190
  anthropicContent.push({
3047
3191
  type: "tool_result",
3048
3192
  tool_use_id: part.toolCallId,
3193
+ ...toolsetName != null && { toolset_name: toolsetName },
3049
3194
  content: contentValue,
3050
3195
  is_error: output.type === "error-text" || output.type === "error-json" ? true : void 0,
3051
3196
  cache_control: cacheControl
@@ -3243,6 +3388,33 @@ async function convertToAnthropicPrompt({
3243
3388
  }
3244
3389
  break;
3245
3390
  }
3391
+ const toolsetName = getAnthropicToolsetName({
3392
+ toolName: part.toolName,
3393
+ providerOptions: part.providerOptions,
3394
+ toolsetNames
3395
+ });
3396
+ if (toolsetName != null) {
3397
+ const { action, ...memberInput } = toAnthropicToolInput(
3398
+ part.input
3399
+ );
3400
+ if (typeof action !== "string") {
3401
+ warnings.push({
3402
+ type: "other",
3403
+ message: `toolset tool call for tool ${part.toolName} is missing the action`
3404
+ });
3405
+ break;
3406
+ }
3407
+ anthropicContent.push({
3408
+ type: "tool_use",
3409
+ id: part.toolCallId,
3410
+ name: action,
3411
+ toolset_name: toolsetName,
3412
+ input: memberInput,
3413
+ ...caller && { caller },
3414
+ cache_control: cacheControl
3415
+ });
3416
+ break;
3417
+ }
3246
3418
  anthropicContent.push({
3247
3419
  type: "tool_use",
3248
3420
  id: part.toolCallId,
@@ -3666,6 +3838,19 @@ function moveToolUseBlocksToEnd(content) {
3666
3838
  flushSegment();
3667
3839
  return result;
3668
3840
  }
3841
+ function getAnthropicToolsetName({
3842
+ toolName,
3843
+ providerOptions,
3844
+ toolsetNames
3845
+ }) {
3846
+ var _a;
3847
+ const fromTools = toolsetNames[toolName];
3848
+ if (fromTools != null) {
3849
+ return fromTools;
3850
+ }
3851
+ const fromMetadata = (_a = providerOptions == null ? void 0 : providerOptions.anthropic) == null ? void 0 : _a.toolsetName;
3852
+ return typeof fromMetadata === "string" ? fromMetadata : void 0;
3853
+ }
3669
3854
  function getAnthropicCaller(providerOptions) {
3670
3855
  var _a;
3671
3856
  const caller = (_a = providerOptions == null ? void 0 : providerOptions.anthropic) == null ? void 0 : _a.caller;
@@ -3939,6 +4124,24 @@ function getAnthropicCallerMetadata(caller) {
3939
4124
  const callerInfo = getAnthropicCallerInfo(caller);
3940
4125
  return callerInfo == null ? {} : { providerMetadata: { anthropic: { caller: callerInfo } } };
3941
4126
  }
4127
+ function getAnthropicToolsetNames(tools) {
4128
+ const toolsetNames = {};
4129
+ for (const tool of tools != null ? tools : []) {
4130
+ if (tool.type === "provider" && tool.id === "anthropic.computer_toolset_20260801") {
4131
+ toolsetNames[tool.name] = "computer";
4132
+ }
4133
+ }
4134
+ return toolsetNames;
4135
+ }
4136
+ function toToolsetMemberInput({
4137
+ memberName,
4138
+ input
4139
+ }) {
4140
+ return {
4141
+ action: memberName,
4142
+ ...typeof input === "object" && input !== null && !Array.isArray(input) ? input : {}
4143
+ };
4144
+ }
3942
4145
  function getProviderOptionsName(provider) {
3943
4146
  const dotIndex = provider.indexOf(".");
3944
4147
  return dotIndex === -1 ? provider : provider.substring(0, dotIndex);
@@ -4051,6 +4254,8 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
4051
4254
  rejectsSamplingParameters,
4052
4255
  supportsXhighEffort,
4053
4256
  rejectsThinkingDisabledAboveHighEffort,
4257
+ rejectsThinkingDisabled,
4258
+ rejectsForcedToolUse,
4054
4259
  isKnownModel
4055
4260
  } = getModelCapabilities(modelId);
4056
4261
  if (!isKnownModel && maxOutputTokens == null) {
@@ -4090,7 +4295,15 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
4090
4295
  const supportsStructuredOutput = ((_a = config.supportsNativeStructuredOutput) != null ? _a : true) && modelSupportsStructuredOutput;
4091
4296
  const supportsStrictTools = ((_b = config.supportsStrictTools) != null ? _b : true) && modelSupportsStructuredOutput;
4092
4297
  const structureOutputMode = (_c = anthropicOptions == null ? void 0 : anthropicOptions.structuredOutputMode) != null ? _c : "auto";
4093
- const useStructuredOutput = structureOutputMode === "outputFormat" || structureOutputMode === "auto" && supportsStructuredOutput;
4298
+ let useStructuredOutput = structureOutputMode === "outputFormat" || structureOutputMode === "auto" && supportsStructuredOutput;
4299
+ if (!useStructuredOutput && rejectsForcedToolUse && supportsStructuredOutput && (responseFormat == null ? void 0 : responseFormat.type) === "json" && responseFormat.schema != null) {
4300
+ warnings.push({
4301
+ type: "unsupported",
4302
+ feature: "providerOptions.anthropic.structuredOutputMode",
4303
+ details: `structuredOutputMode 'jsonTool' is not supported by ${modelId} because it rejects forced tool use. Using 'outputFormat' instead.`
4304
+ });
4305
+ useStructuredOutput = true;
4306
+ }
4094
4307
  const jsonResponseTool = (responseFormat == null ? void 0 : responseFormat.type) === "json" && responseFormat.schema != null && !useStructuredOutput ? {
4095
4308
  type: "function",
4096
4309
  name: "json",
@@ -4114,6 +4327,8 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
4114
4327
  "anthropic.code_execution_20260120": "code_execution",
4115
4328
  "anthropic.computer_20241022": "computer",
4116
4329
  "anthropic.computer_20250124": "computer",
4330
+ "anthropic.computer_20251124": "computer",
4331
+ "anthropic.computer_toolset_20260801": "computer",
4117
4332
  "anthropic.text_editor_20241022": "str_replace_editor",
4118
4333
  "anthropic.text_editor_20250124": "str_replace_editor",
4119
4334
  "anthropic.text_editor_20250429": "str_replace_based_edit_tool",
@@ -4132,18 +4347,22 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
4132
4347
  "anthropic.advisor_20260301": "advisor"
4133
4348
  }
4134
4349
  });
4350
+ const toolsetNames = getAnthropicToolsetNames(tools);
4135
4351
  const { prompt: messagesPrompt, betas } = await convertToAnthropicPrompt({
4136
4352
  prompt,
4137
4353
  sendReasoning: (_d = anthropicOptions == null ? void 0 : anthropicOptions.sendReasoning) != null ? _d : true,
4138
4354
  warnings,
4139
4355
  cacheControlValidator,
4140
- toolNameMapping
4356
+ toolNameMapping,
4357
+ toolsetNames
4141
4358
  });
4142
4359
  if (isCustomReasoning(reasoning) && (anthropicOptions == null ? void 0 : anthropicOptions.effort) == null) {
4143
4360
  const reasoningConfig = resolveAnthropicReasoningConfig({
4144
4361
  reasoning,
4362
+ modelId,
4145
4363
  supportsAdaptiveThinking,
4146
4364
  supportsXhighEffort,
4365
+ rejectsThinkingDisabled,
4147
4366
  maxOutputTokensForModel,
4148
4367
  warnings
4149
4368
  });
@@ -4156,6 +4375,24 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
4156
4375
  }
4157
4376
  }
4158
4377
  }
4378
+ if (rejectsThinkingDisabled && (anthropicOptions == null ? void 0 : anthropicOptions.thinking) != null) {
4379
+ const thinking = anthropicOptions.thinking;
4380
+ if (thinking.type === "disabled") {
4381
+ warnings.push({
4382
+ type: "unsupported",
4383
+ feature: "providerOptions.anthropic.thinking",
4384
+ details: `thinking cannot be disabled for ${modelId}; it always uses adaptive thinking. The thinking setting has been removed. Lower 'effort' to reduce thinking.`
4385
+ });
4386
+ anthropicOptions.thinking = void 0;
4387
+ } else if (thinking.type === "enabled") {
4388
+ warnings.push({
4389
+ type: "unsupported",
4390
+ feature: "providerOptions.anthropic.thinking",
4391
+ details: `budget-based thinking is not supported by ${modelId}; it always uses adaptive thinking. Using adaptive thinking instead. Use 'effort' to control how much the model thinks.`
4392
+ });
4393
+ anthropicOptions.thinking = { type: "adaptive" };
4394
+ }
4395
+ }
4159
4396
  if (rejectsThinkingDisabledAboveHighEffort && ((_f = anthropicOptions == null ? void 0 : anthropicOptions.thinking) == null ? void 0 : _f.type) === "disabled" && (anthropicOptions.effort === "xhigh" || anthropicOptions.effort === "max")) {
4160
4397
  warnings.push({
4161
4398
  type: "unsupported",
@@ -4442,7 +4679,8 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
4442
4679
  cacheControlValidator,
4443
4680
  supportsStructuredOutput: false,
4444
4681
  supportsStrictTools,
4445
- defaultEagerInputStreaming
4682
+ defaultEagerInputStreaming,
4683
+ rejectsForcedToolUse
4446
4684
  } : {
4447
4685
  tools: tools != null ? tools : [],
4448
4686
  toolChoice,
@@ -4450,7 +4688,8 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
4450
4688
  cacheControlValidator,
4451
4689
  supportsStructuredOutput,
4452
4690
  supportsStrictTools,
4453
- defaultEagerInputStreaming
4691
+ defaultEagerInputStreaming,
4692
+ rejectsForcedToolUse
4454
4693
  }
4455
4694
  );
4456
4695
  const cacheWarnings = cacheControlValidator.getWarnings();
@@ -4536,7 +4775,7 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
4536
4775
  });
4537
4776
  }
4538
4777
  async doGenerate(options) {
4539
- var _a, _b, _c, _d, _e, _f, _g, _h;
4778
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
4540
4779
  const {
4541
4780
  args,
4542
4781
  warnings,
@@ -4658,6 +4897,24 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
4658
4897
  type: "text",
4659
4898
  text: JSON.stringify(part.input)
4660
4899
  });
4900
+ } else if (part.toolset_name != null) {
4901
+ content.push({
4902
+ type: "tool-call",
4903
+ toolCallId: part.id,
4904
+ toolName: toolNameMapping.toCustomToolName(part.toolset_name),
4905
+ input: JSON.stringify(
4906
+ toToolsetMemberInput({
4907
+ memberName: part.name,
4908
+ input: part.input
4909
+ })
4910
+ ),
4911
+ providerMetadata: {
4912
+ anthropic: {
4913
+ toolsetName: part.toolset_name,
4914
+ ...(_b = getAnthropicCallerMetadata(part.caller).providerMetadata) == null ? void 0 : _b.anthropic
4915
+ }
4916
+ }
4917
+ });
4661
4918
  } else {
4662
4919
  content.push({
4663
4920
  type: "tool-call",
@@ -4755,7 +5012,7 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
4755
5012
  case "web_fetch_tool_result": {
4756
5013
  if (part.content.type === "web_fetch_result") {
4757
5014
  citationDocuments.push({
4758
- title: (_b = part.content.content.title) != null ? _b : part.content.url,
5015
+ title: (_c = part.content.content.title) != null ? _c : part.content.url,
4759
5016
  mediaType: part.content.content.source.media_type
4760
5017
  });
4761
5018
  content.push({
@@ -4821,7 +5078,7 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
4821
5078
  ...result.title != null ? { title: result.title } : {},
4822
5079
  providerMetadata: {
4823
5080
  anthropic: {
4824
- pageAge: (_c = result.page_age) != null ? _c : null
5081
+ pageAge: (_d = result.page_age) != null ? _d : null
4825
5082
  }
4826
5083
  }
4827
5084
  });
@@ -4853,7 +5110,7 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
4853
5110
  stdout: part.content.stdout,
4854
5111
  stderr: part.content.stderr,
4855
5112
  return_code: part.content.return_code,
4856
- content: (_d = part.content.content) != null ? _d : []
5113
+ content: (_e = part.content.content) != null ? _e : []
4857
5114
  }
4858
5115
  });
4859
5116
  } else if (part.content.type === "encrypted_code_execution_result") {
@@ -4866,7 +5123,7 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
4866
5123
  encrypted_stdout: part.content.encrypted_stdout,
4867
5124
  stderr: part.content.stderr,
4868
5125
  return_code: part.content.return_code,
4869
- content: (_e = part.content.content) != null ? _e : []
5126
+ content: (_f = part.content.content) != null ? _f : []
4870
5127
  }
4871
5128
  });
4872
5129
  } else if (part.content.type === "code_execution_tool_result_error") {
@@ -4994,13 +5251,13 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
4994
5251
  finishReason: response.stop_reason,
4995
5252
  isJsonResponseFromTool
4996
5253
  }),
4997
- raw: (_f = response.stop_reason) != null ? _f : void 0
5254
+ raw: (_g = response.stop_reason) != null ? _g : void 0
4998
5255
  },
4999
5256
  usage: convertAnthropicUsage({ usage: response.usage }),
5000
5257
  request: { body: args },
5001
5258
  response: {
5002
- id: (_g = response.id) != null ? _g : void 0,
5003
- modelId: (_h = response.model) != null ? _h : void 0,
5259
+ id: (_h = response.id) != null ? _h : void 0,
5260
+ modelId: (_i = response.model) != null ? _i : void 0,
5004
5261
  headers: responseHeaders,
5005
5262
  body: rawResponse
5006
5263
  },
@@ -5201,6 +5458,29 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
5201
5458
  type: "text-start",
5202
5459
  id: String(value.index)
5203
5460
  });
5461
+ } else if (part.toolset_name != null) {
5462
+ const callerInfo = getAnthropicCallerInfo(part.caller);
5463
+ const customToolName = toolNameMapping.toCustomToolName(
5464
+ part.toolset_name
5465
+ );
5466
+ const hasNonEmptyInput = part.input && Object.keys(part.input).length > 0;
5467
+ contentBlocks[value.index] = {
5468
+ type: "tool-call",
5469
+ toolCallId: part.id,
5470
+ toolName: customToolName,
5471
+ input: hasNonEmptyInput ? JSON.stringify(part.input) : "",
5472
+ firstDelta: true,
5473
+ toolset: {
5474
+ name: part.toolset_name,
5475
+ memberName: part.name
5476
+ },
5477
+ ...callerInfo && { caller: callerInfo }
5478
+ };
5479
+ controller.enqueue({
5480
+ type: "tool-input-start",
5481
+ id: part.id,
5482
+ toolName: customToolName
5483
+ });
5204
5484
  } else {
5205
5485
  const callerInfo = getAnthropicCallerInfo(part.caller);
5206
5486
  const hasNonEmptyInput = part.input && Object.keys(part.input).length > 0;
@@ -5600,6 +5880,25 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
5600
5880
  case "tool-call":
5601
5881
  const isJsonResponseTool = usesJsonResponseTool && contentBlock.toolName === "json";
5602
5882
  if (!isJsonResponseTool) {
5883
+ if (contentBlock.toolset != null) {
5884
+ let memberInput = {};
5885
+ try {
5886
+ memberInput = contentBlock.input === "" ? {} : secureJsonParse2(contentBlock.input);
5887
+ } catch (e) {
5888
+ memberInput = void 0;
5889
+ }
5890
+ contentBlock.input = memberInput === void 0 ? contentBlock.input : JSON.stringify(
5891
+ toToolsetMemberInput({
5892
+ memberName: contentBlock.toolset.memberName,
5893
+ input: memberInput
5894
+ })
5895
+ );
5896
+ controller.enqueue({
5897
+ type: "tool-input-delta",
5898
+ id: contentBlock.toolCallId,
5899
+ delta: contentBlock.input
5900
+ });
5901
+ }
5603
5902
  controller.enqueue({
5604
5903
  type: "tool-input-end",
5605
5904
  id: contentBlock.toolCallId
@@ -5628,10 +5927,15 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
5628
5927
  // tool was not explicitly provided. We therefore bypass the general validation by marking the
5629
5928
  // tool as dynamic.
5630
5929
  ...markCodeExecutionDynamic && contentBlock.providerToolName === "code_execution" ? { dynamic: true } : {},
5631
- ...contentBlock.caller && {
5930
+ ...(contentBlock.caller || contentBlock.toolset) && {
5632
5931
  providerMetadata: {
5633
5932
  anthropic: {
5634
- caller: contentBlock.caller
5933
+ ...contentBlock.toolset && {
5934
+ toolsetName: contentBlock.toolset.name
5935
+ },
5936
+ ...contentBlock.caller && {
5937
+ caller: contentBlock.caller
5938
+ }
5635
5939
  }
5636
5940
  }
5637
5941
  }
@@ -5710,6 +6014,10 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
5710
6014
  if ((contentBlock == null ? void 0 : contentBlock.type) !== "tool-call") {
5711
6015
  return;
5712
6016
  }
6017
+ if (contentBlock.toolset != null) {
6018
+ contentBlock.input += delta;
6019
+ return;
6020
+ }
5713
6021
  if (contentBlock.firstDelta && contentBlock.providerToolInputType != null) {
5714
6022
  delta = `{"type": "${contentBlock.providerToolInputType}",${delta.substring(1)}`;
5715
6023
  }
@@ -5975,7 +6283,19 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
5975
6283
  }
5976
6284
  };
5977
6285
  function getModelCapabilities(modelId) {
5978
- if (modelId.includes("claude-opus-5")) {
6286
+ if (modelId.includes("claude-opus-5-5")) {
6287
+ return {
6288
+ maxOutputTokens: 128e3,
6289
+ supportsStructuredOutput: true,
6290
+ supportsAdaptiveThinking: true,
6291
+ rejectsSamplingParameters: true,
6292
+ supportsXhighEffort: true,
6293
+ rejectsThinkingDisabledAboveHighEffort: true,
6294
+ rejectsThinkingDisabled: true,
6295
+ rejectsForcedToolUse: true,
6296
+ isKnownModel: true
6297
+ };
6298
+ } else if (modelId.includes("claude-opus-5")) {
5979
6299
  return {
5980
6300
  maxOutputTokens: 128e3,
5981
6301
  supportsStructuredOutput: true,
@@ -5983,9 +6303,35 @@ function getModelCapabilities(modelId) {
5983
6303
  rejectsSamplingParameters: true,
5984
6304
  supportsXhighEffort: true,
5985
6305
  rejectsThinkingDisabledAboveHighEffort: true,
6306
+ rejectsThinkingDisabled: false,
6307
+ rejectsForcedToolUse: false,
6308
+ isKnownModel: true
6309
+ };
6310
+ } else if (modelId.includes("claude-fable-5-1")) {
6311
+ return {
6312
+ maxOutputTokens: 128e3,
6313
+ supportsStructuredOutput: true,
6314
+ supportsAdaptiveThinking: true,
6315
+ rejectsSamplingParameters: true,
6316
+ supportsXhighEffort: true,
6317
+ rejectsThinkingDisabledAboveHighEffort: false,
6318
+ rejectsThinkingDisabled: true,
6319
+ rejectsForcedToolUse: true,
6320
+ isKnownModel: true
6321
+ };
6322
+ } else if (modelId.includes("claude-fable-5")) {
6323
+ return {
6324
+ maxOutputTokens: 128e3,
6325
+ supportsStructuredOutput: true,
6326
+ supportsAdaptiveThinking: true,
6327
+ rejectsSamplingParameters: true,
6328
+ supportsXhighEffort: true,
6329
+ rejectsThinkingDisabledAboveHighEffort: false,
6330
+ rejectsThinkingDisabled: true,
6331
+ rejectsForcedToolUse: false,
5986
6332
  isKnownModel: true
5987
6333
  };
5988
- } else if (modelId.includes("claude-opus-4-8") || modelId.includes("claude-opus-4-7") || modelId.includes("claude-fable-5") || modelId.includes("claude-sonnet-5")) {
6334
+ } else if (modelId.includes("claude-opus-4-8") || modelId.includes("claude-opus-4-7") || modelId.includes("claude-sonnet-5")) {
5989
6335
  return {
5990
6336
  maxOutputTokens: 128e3,
5991
6337
  supportsStructuredOutput: true,
@@ -5993,6 +6339,8 @@ function getModelCapabilities(modelId) {
5993
6339
  rejectsSamplingParameters: true,
5994
6340
  supportsXhighEffort: true,
5995
6341
  rejectsThinkingDisabledAboveHighEffort: false,
6342
+ rejectsThinkingDisabled: false,
6343
+ rejectsForcedToolUse: false,
5996
6344
  isKnownModel: true
5997
6345
  };
5998
6346
  } else if (modelId.includes("claude-sonnet-4-6") || modelId.includes("claude-opus-4-6")) {
@@ -6003,6 +6351,8 @@ function getModelCapabilities(modelId) {
6003
6351
  rejectsSamplingParameters: false,
6004
6352
  supportsXhighEffort: false,
6005
6353
  rejectsThinkingDisabledAboveHighEffort: false,
6354
+ rejectsThinkingDisabled: false,
6355
+ rejectsForcedToolUse: false,
6006
6356
  isKnownModel: true
6007
6357
  };
6008
6358
  } else if (modelId.includes("claude-sonnet-4-5") || modelId.includes("claude-opus-4-5") || modelId.includes("claude-haiku-4-5")) {
@@ -6013,6 +6363,8 @@ function getModelCapabilities(modelId) {
6013
6363
  rejectsSamplingParameters: false,
6014
6364
  supportsXhighEffort: false,
6015
6365
  rejectsThinkingDisabledAboveHighEffort: false,
6366
+ rejectsThinkingDisabled: false,
6367
+ rejectsForcedToolUse: false,
6016
6368
  isKnownModel: true
6017
6369
  };
6018
6370
  } else if (modelId.includes("claude-opus-4-1")) {
@@ -6023,6 +6375,8 @@ function getModelCapabilities(modelId) {
6023
6375
  rejectsSamplingParameters: false,
6024
6376
  supportsXhighEffort: false,
6025
6377
  rejectsThinkingDisabledAboveHighEffort: false,
6378
+ rejectsThinkingDisabled: false,
6379
+ rejectsForcedToolUse: false,
6026
6380
  isKnownModel: true
6027
6381
  };
6028
6382
  } else if (/claude-sonnet-4(?:-|@)/.test(modelId)) {
@@ -6033,6 +6387,8 @@ function getModelCapabilities(modelId) {
6033
6387
  rejectsSamplingParameters: false,
6034
6388
  supportsXhighEffort: false,
6035
6389
  rejectsThinkingDisabledAboveHighEffort: false,
6390
+ rejectsThinkingDisabled: false,
6391
+ rejectsForcedToolUse: false,
6036
6392
  isKnownModel: true
6037
6393
  };
6038
6394
  } else if (/claude-opus-4(?:-|@)/.test(modelId)) {
@@ -6043,6 +6399,8 @@ function getModelCapabilities(modelId) {
6043
6399
  rejectsSamplingParameters: false,
6044
6400
  supportsXhighEffort: false,
6045
6401
  rejectsThinkingDisabledAboveHighEffort: false,
6402
+ rejectsThinkingDisabled: false,
6403
+ rejectsForcedToolUse: false,
6046
6404
  isKnownModel: true
6047
6405
  };
6048
6406
  } else if (modelId.includes("claude-3-haiku")) {
@@ -6053,6 +6411,8 @@ function getModelCapabilities(modelId) {
6053
6411
  rejectsSamplingParameters: false,
6054
6412
  supportsXhighEffort: false,
6055
6413
  rejectsThinkingDisabledAboveHighEffort: false,
6414
+ rejectsThinkingDisabled: false,
6415
+ rejectsForcedToolUse: false,
6056
6416
  isKnownModel: true
6057
6417
  };
6058
6418
  } else if (/claude-(?:instant(?:-|$)|v?2(?=$|[-.:])|3(?=$|[-.]))/.test(modelId)) {
@@ -6063,6 +6423,8 @@ function getModelCapabilities(modelId) {
6063
6423
  rejectsSamplingParameters: false,
6064
6424
  supportsXhighEffort: false,
6065
6425
  rejectsThinkingDisabledAboveHighEffort: false,
6426
+ rejectsThinkingDisabled: false,
6427
+ rejectsForcedToolUse: false,
6066
6428
  isKnownModel: false
6067
6429
  };
6068
6430
  } else if (modelId.includes("claude-")) {
@@ -6073,6 +6435,8 @@ function getModelCapabilities(modelId) {
6073
6435
  rejectsSamplingParameters: true,
6074
6436
  supportsXhighEffort: true,
6075
6437
  rejectsThinkingDisabledAboveHighEffort: true,
6438
+ rejectsThinkingDisabled: false,
6439
+ rejectsForcedToolUse: false,
6076
6440
  isKnownModel: false
6077
6441
  };
6078
6442
  } else {
@@ -6083,6 +6447,8 @@ function getModelCapabilities(modelId) {
6083
6447
  rejectsSamplingParameters: false,
6084
6448
  supportsXhighEffort: false,
6085
6449
  rejectsThinkingDisabledAboveHighEffort: false,
6450
+ rejectsThinkingDisabled: false,
6451
+ rejectsForcedToolUse: false,
6086
6452
  isKnownModel: false
6087
6453
  };
6088
6454
  }
@@ -6107,8 +6473,10 @@ function hasDynamicFilteringWebToolWithoutCodeExecution(tools) {
6107
6473
  }
6108
6474
  function resolveAnthropicReasoningConfig({
6109
6475
  reasoning,
6476
+ modelId,
6110
6477
  supportsAdaptiveThinking,
6111
6478
  supportsXhighEffort,
6479
+ rejectsThinkingDisabled,
6112
6480
  maxOutputTokensForModel,
6113
6481
  warnings
6114
6482
  }) {
@@ -6116,6 +6484,14 @@ function resolveAnthropicReasoningConfig({
6116
6484
  return void 0;
6117
6485
  }
6118
6486
  if (reasoning === "none") {
6487
+ if (rejectsThinkingDisabled) {
6488
+ warnings.push({
6489
+ type: "compatibility",
6490
+ feature: "reasoning",
6491
+ details: `reasoning 'none' is not supported by ${modelId}; it always uses adaptive thinking. Using effort 'low' to minimize thinking instead.`
6492
+ });
6493
+ return { effort: "low" };
6494
+ }
6119
6495
  return { thinking: { type: "disabled" } };
6120
6496
  }
6121
6497
  if (supportsAdaptiveThinking) {
@@ -6185,20 +6561,20 @@ function mapAnthropicStopDetails(stopDetails) {
6185
6561
 
6186
6562
  // src/tool/bash_20241022.ts
6187
6563
  import {
6188
- createProviderDefinedToolFactory as createProviderDefinedToolFactory2,
6189
- lazySchema as lazySchema16,
6190
- zodSchema as zodSchema16
6564
+ createProviderDefinedToolFactory as createProviderDefinedToolFactory3,
6565
+ lazySchema as lazySchema17,
6566
+ zodSchema as zodSchema17
6191
6567
  } from "@ai-sdk/provider-utils";
6192
- import { z as z17 } from "zod/v4";
6193
- var bash_20241022InputSchema = lazySchema16(
6194
- () => zodSchema16(
6195
- z17.object({
6196
- command: z17.string(),
6197
- restart: z17.boolean().optional()
6568
+ import { z as z18 } from "zod/v4";
6569
+ var bash_20241022InputSchema = lazySchema17(
6570
+ () => zodSchema17(
6571
+ z18.object({
6572
+ command: z18.string(),
6573
+ restart: z18.boolean().optional()
6198
6574
  })
6199
6575
  )
6200
6576
  );
6201
- var bash_20241022_internal = createProviderDefinedToolFactory2({
6577
+ var bash_20241022_internal = createProviderDefinedToolFactory3({
6202
6578
  id: "anthropic.bash_20241022",
6203
6579
  inputSchema: bash_20241022InputSchema
6204
6580
  });
@@ -6226,20 +6602,20 @@ function bash_20241022(options = {}) {
6226
6602
 
6227
6603
  // src/tool/bash_20250124.ts
6228
6604
  import {
6229
- createProviderDefinedToolFactory as createProviderDefinedToolFactory3,
6230
- lazySchema as lazySchema17,
6231
- zodSchema as zodSchema17
6605
+ createProviderDefinedToolFactory as createProviderDefinedToolFactory4,
6606
+ lazySchema as lazySchema18,
6607
+ zodSchema as zodSchema18
6232
6608
  } from "@ai-sdk/provider-utils";
6233
- import { z as z18 } from "zod/v4";
6234
- var bash_20250124InputSchema = lazySchema17(
6235
- () => zodSchema17(
6236
- z18.object({
6237
- command: z18.string(),
6238
- restart: z18.boolean().optional()
6609
+ import { z as z19 } from "zod/v4";
6610
+ var bash_20250124InputSchema = lazySchema18(
6611
+ () => zodSchema18(
6612
+ z19.object({
6613
+ command: z19.string(),
6614
+ restart: z19.boolean().optional()
6239
6615
  })
6240
6616
  )
6241
6617
  );
6242
- var bash_20250124_internal = createProviderDefinedToolFactory3({
6618
+ var bash_20250124_internal = createProviderDefinedToolFactory4({
6243
6619
  id: "anthropic.bash_20250124",
6244
6620
  inputSchema: bash_20250124InputSchema
6245
6621
  });
@@ -6267,15 +6643,15 @@ function bash_20250124(options = {}) {
6267
6643
 
6268
6644
  // src/tool/computer_20241022.ts
6269
6645
  import {
6270
- createProviderDefinedToolFactory as createProviderDefinedToolFactory4,
6271
- lazySchema as lazySchema18,
6272
- zodSchema as zodSchema18
6646
+ createProviderDefinedToolFactory as createProviderDefinedToolFactory5,
6647
+ lazySchema as lazySchema19,
6648
+ zodSchema as zodSchema19
6273
6649
  } from "@ai-sdk/provider-utils";
6274
- import { z as z19 } from "zod/v4";
6275
- var computer_20241022InputSchema = lazySchema18(
6276
- () => zodSchema18(
6277
- z19.object({
6278
- action: z19.enum([
6650
+ import { z as z20 } from "zod/v4";
6651
+ var computer_20241022InputSchema = lazySchema19(
6652
+ () => zodSchema19(
6653
+ z20.object({
6654
+ action: z20.enum([
6279
6655
  "key",
6280
6656
  "type",
6281
6657
  "mouse_move",
@@ -6287,27 +6663,27 @@ var computer_20241022InputSchema = lazySchema18(
6287
6663
  "screenshot",
6288
6664
  "cursor_position"
6289
6665
  ]),
6290
- coordinate: z19.array(z19.number().int()).optional(),
6291
- text: z19.string().optional()
6666
+ coordinate: z20.array(z20.number().int()).optional(),
6667
+ text: z20.string().optional()
6292
6668
  })
6293
6669
  )
6294
6670
  );
6295
- var computer_20241022 = createProviderDefinedToolFactory4({
6671
+ var computer_20241022 = createProviderDefinedToolFactory5({
6296
6672
  id: "anthropic.computer_20241022",
6297
6673
  inputSchema: computer_20241022InputSchema
6298
6674
  });
6299
6675
 
6300
6676
  // src/tool/computer_20250124.ts
6301
6677
  import {
6302
- createProviderDefinedToolFactory as createProviderDefinedToolFactory5,
6303
- lazySchema as lazySchema19,
6304
- zodSchema as zodSchema19
6678
+ createProviderDefinedToolFactory as createProviderDefinedToolFactory6,
6679
+ lazySchema as lazySchema20,
6680
+ zodSchema as zodSchema20
6305
6681
  } from "@ai-sdk/provider-utils";
6306
- import { z as z20 } from "zod/v4";
6307
- var computer_20250124InputSchema = lazySchema19(
6308
- () => zodSchema19(
6309
- z20.object({
6310
- action: z20.enum([
6682
+ import { z as z21 } from "zod/v4";
6683
+ var computer_20250124InputSchema = lazySchema20(
6684
+ () => zodSchema20(
6685
+ z21.object({
6686
+ action: z21.enum([
6311
6687
  "key",
6312
6688
  "hold_key",
6313
6689
  "type",
@@ -6325,31 +6701,31 @@ var computer_20250124InputSchema = lazySchema19(
6325
6701
  "wait",
6326
6702
  "screenshot"
6327
6703
  ]),
6328
- coordinate: z20.tuple([z20.number().int(), z20.number().int()]).optional(),
6329
- duration: z20.number().optional(),
6330
- scroll_amount: z20.number().optional(),
6331
- scroll_direction: z20.enum(["up", "down", "left", "right"]).optional(),
6332
- start_coordinate: z20.tuple([z20.number().int(), z20.number().int()]).optional(),
6333
- text: z20.string().optional()
6704
+ coordinate: z21.tuple([z21.number().int(), z21.number().int()]).optional(),
6705
+ duration: z21.number().optional(),
6706
+ scroll_amount: z21.number().optional(),
6707
+ scroll_direction: z21.enum(["up", "down", "left", "right"]).optional(),
6708
+ start_coordinate: z21.tuple([z21.number().int(), z21.number().int()]).optional(),
6709
+ text: z21.string().optional()
6334
6710
  })
6335
6711
  )
6336
6712
  );
6337
- var computer_20250124 = createProviderDefinedToolFactory5({
6713
+ var computer_20250124 = createProviderDefinedToolFactory6({
6338
6714
  id: "anthropic.computer_20250124",
6339
6715
  inputSchema: computer_20250124InputSchema
6340
6716
  });
6341
6717
 
6342
6718
  // src/tool/computer_20251124.ts
6343
6719
  import {
6344
- createProviderDefinedToolFactory as createProviderDefinedToolFactory6,
6345
- lazySchema as lazySchema20,
6346
- zodSchema as zodSchema20
6720
+ createProviderDefinedToolFactory as createProviderDefinedToolFactory7,
6721
+ lazySchema as lazySchema21,
6722
+ zodSchema as zodSchema21
6347
6723
  } from "@ai-sdk/provider-utils";
6348
- import { z as z21 } from "zod/v4";
6349
- var computer_20251124InputSchema = lazySchema20(
6350
- () => zodSchema20(
6351
- z21.object({
6352
- action: z21.enum([
6724
+ import { z as z22 } from "zod/v4";
6725
+ var computer_20251124InputSchema = lazySchema21(
6726
+ () => zodSchema21(
6727
+ z22.object({
6728
+ action: z22.enum([
6353
6729
  "key",
6354
6730
  "hold_key",
6355
6731
  "type",
@@ -6368,109 +6744,83 @@ var computer_20251124InputSchema = lazySchema20(
6368
6744
  "screenshot",
6369
6745
  "zoom"
6370
6746
  ]),
6371
- coordinate: z21.tuple([z21.number().int(), z21.number().int()]).optional(),
6372
- duration: z21.number().optional(),
6373
- region: z21.tuple([
6374
- z21.number().int(),
6375
- z21.number().int(),
6376
- z21.number().int(),
6377
- z21.number().int()
6747
+ coordinate: z22.tuple([z22.number().int(), z22.number().int()]).optional(),
6748
+ duration: z22.number().optional(),
6749
+ region: z22.tuple([
6750
+ z22.number().int(),
6751
+ z22.number().int(),
6752
+ z22.number().int(),
6753
+ z22.number().int()
6378
6754
  ]).optional(),
6379
- scroll_amount: z21.number().optional(),
6380
- scroll_direction: z21.enum(["up", "down", "left", "right"]).optional(),
6381
- start_coordinate: z21.tuple([z21.number().int(), z21.number().int()]).optional(),
6382
- text: z21.string().optional()
6755
+ scroll_amount: z22.number().optional(),
6756
+ scroll_direction: z22.enum(["up", "down", "left", "right"]).optional(),
6757
+ start_coordinate: z22.tuple([z22.number().int(), z22.number().int()]).optional(),
6758
+ text: z22.string().optional()
6383
6759
  })
6384
6760
  )
6385
6761
  );
6386
- var computer_20251124 = createProviderDefinedToolFactory6({
6762
+ var computer_20251124 = createProviderDefinedToolFactory7({
6387
6763
  id: "anthropic.computer_20251124",
6388
6764
  inputSchema: computer_20251124InputSchema
6389
6765
  });
6390
6766
 
6391
6767
  // src/tool/memory_20250818.ts
6392
6768
  import {
6393
- createProviderDefinedToolFactory as createProviderDefinedToolFactory7,
6394
- lazySchema as lazySchema21,
6395
- zodSchema as zodSchema21
6769
+ createProviderDefinedToolFactory as createProviderDefinedToolFactory8,
6770
+ lazySchema as lazySchema22,
6771
+ zodSchema as zodSchema22
6396
6772
  } from "@ai-sdk/provider-utils";
6397
- import { z as z22 } from "zod/v4";
6398
- var memory_20250818InputSchema = lazySchema21(
6399
- () => zodSchema21(
6400
- z22.discriminatedUnion("command", [
6401
- z22.object({
6402
- command: z22.literal("view"),
6403
- path: z22.string(),
6404
- view_range: z22.tuple([z22.number(), z22.number()]).optional()
6773
+ import { z as z23 } from "zod/v4";
6774
+ var memory_20250818InputSchema = lazySchema22(
6775
+ () => zodSchema22(
6776
+ z23.discriminatedUnion("command", [
6777
+ z23.object({
6778
+ command: z23.literal("view"),
6779
+ path: z23.string(),
6780
+ view_range: z23.tuple([z23.number(), z23.number()]).optional()
6405
6781
  }),
6406
- z22.object({
6407
- command: z22.literal("create"),
6408
- path: z22.string(),
6409
- file_text: z22.string()
6782
+ z23.object({
6783
+ command: z23.literal("create"),
6784
+ path: z23.string(),
6785
+ file_text: z23.string()
6410
6786
  }),
6411
- z22.object({
6412
- command: z22.literal("str_replace"),
6413
- path: z22.string(),
6414
- old_str: z22.string(),
6415
- new_str: z22.string()
6787
+ z23.object({
6788
+ command: z23.literal("str_replace"),
6789
+ path: z23.string(),
6790
+ old_str: z23.string(),
6791
+ new_str: z23.string()
6416
6792
  }),
6417
- z22.object({
6418
- command: z22.literal("insert"),
6419
- path: z22.string(),
6420
- insert_line: z22.number(),
6421
- insert_text: z22.string()
6793
+ z23.object({
6794
+ command: z23.literal("insert"),
6795
+ path: z23.string(),
6796
+ insert_line: z23.number(),
6797
+ insert_text: z23.string()
6422
6798
  }),
6423
- z22.object({
6424
- command: z22.literal("delete"),
6425
- path: z22.string()
6799
+ z23.object({
6800
+ command: z23.literal("delete"),
6801
+ path: z23.string()
6426
6802
  }),
6427
- z22.object({
6428
- command: z22.literal("rename"),
6429
- old_path: z22.string(),
6430
- new_path: z22.string()
6803
+ z23.object({
6804
+ command: z23.literal("rename"),
6805
+ old_path: z23.string(),
6806
+ new_path: z23.string()
6431
6807
  })
6432
6808
  ])
6433
6809
  )
6434
6810
  );
6435
- var memory_20250818 = createProviderDefinedToolFactory7({
6811
+ var memory_20250818 = createProviderDefinedToolFactory8({
6436
6812
  id: "anthropic.memory_20250818",
6437
6813
  inputSchema: memory_20250818InputSchema
6438
6814
  });
6439
6815
 
6440
6816
  // src/tool/text-editor_20241022.ts
6441
- import {
6442
- createProviderDefinedToolFactory as createProviderDefinedToolFactory8,
6443
- lazySchema as lazySchema22,
6444
- zodSchema as zodSchema22
6445
- } from "@ai-sdk/provider-utils";
6446
- import { z as z23 } from "zod/v4";
6447
- var textEditor_20241022InputSchema = lazySchema22(
6448
- () => zodSchema22(
6449
- z23.object({
6450
- command: z23.enum(["view", "create", "str_replace", "insert", "undo_edit"]),
6451
- path: z23.string(),
6452
- file_text: z23.string().optional(),
6453
- insert_line: z23.number().int().optional(),
6454
- new_str: z23.string().optional(),
6455
- insert_text: z23.string().optional(),
6456
- old_str: z23.string().optional(),
6457
- view_range: z23.array(z23.number().int()).optional()
6458
- })
6459
- )
6460
- );
6461
- var textEditor_20241022 = createProviderDefinedToolFactory8({
6462
- id: "anthropic.text_editor_20241022",
6463
- inputSchema: textEditor_20241022InputSchema
6464
- });
6465
-
6466
- // src/tool/text-editor_20250124.ts
6467
6817
  import {
6468
6818
  createProviderDefinedToolFactory as createProviderDefinedToolFactory9,
6469
6819
  lazySchema as lazySchema23,
6470
6820
  zodSchema as zodSchema23
6471
6821
  } from "@ai-sdk/provider-utils";
6472
6822
  import { z as z24 } from "zod/v4";
6473
- var textEditor_20250124InputSchema = lazySchema23(
6823
+ var textEditor_20241022InputSchema = lazySchema23(
6474
6824
  () => zodSchema23(
6475
6825
  z24.object({
6476
6826
  command: z24.enum(["view", "create", "str_replace", "insert", "undo_edit"]),
@@ -6484,22 +6834,22 @@ var textEditor_20250124InputSchema = lazySchema23(
6484
6834
  })
6485
6835
  )
6486
6836
  );
6487
- var textEditor_20250124 = createProviderDefinedToolFactory9({
6488
- id: "anthropic.text_editor_20250124",
6489
- inputSchema: textEditor_20250124InputSchema
6837
+ var textEditor_20241022 = createProviderDefinedToolFactory9({
6838
+ id: "anthropic.text_editor_20241022",
6839
+ inputSchema: textEditor_20241022InputSchema
6490
6840
  });
6491
6841
 
6492
- // src/tool/text-editor_20250429.ts
6842
+ // src/tool/text-editor_20250124.ts
6493
6843
  import {
6494
6844
  createProviderDefinedToolFactory as createProviderDefinedToolFactory10,
6495
6845
  lazySchema as lazySchema24,
6496
6846
  zodSchema as zodSchema24
6497
6847
  } from "@ai-sdk/provider-utils";
6498
6848
  import { z as z25 } from "zod/v4";
6499
- var textEditor_20250429InputSchema = lazySchema24(
6849
+ var textEditor_20250124InputSchema = lazySchema24(
6500
6850
  () => zodSchema24(
6501
6851
  z25.object({
6502
- command: z25.enum(["view", "create", "str_replace", "insert"]),
6852
+ command: z25.enum(["view", "create", "str_replace", "insert", "undo_edit"]),
6503
6853
  path: z25.string(),
6504
6854
  file_text: z25.string().optional(),
6505
6855
  insert_line: z25.number().int().optional(),
@@ -6510,40 +6860,66 @@ var textEditor_20250429InputSchema = lazySchema24(
6510
6860
  })
6511
6861
  )
6512
6862
  );
6513
- var textEditor_20250429 = createProviderDefinedToolFactory10({
6514
- id: "anthropic.text_editor_20250429",
6515
- inputSchema: textEditor_20250429InputSchema
6863
+ var textEditor_20250124 = createProviderDefinedToolFactory10({
6864
+ id: "anthropic.text_editor_20250124",
6865
+ inputSchema: textEditor_20250124InputSchema
6516
6866
  });
6517
6867
 
6518
- // src/tool/tool-search-bm25_20251119.ts
6868
+ // src/tool/text-editor_20250429.ts
6519
6869
  import {
6520
- createProviderExecutedToolFactory as createProviderExecutedToolFactory12,
6870
+ createProviderDefinedToolFactory as createProviderDefinedToolFactory11,
6521
6871
  lazySchema as lazySchema25,
6522
6872
  zodSchema as zodSchema25
6523
6873
  } from "@ai-sdk/provider-utils";
6524
6874
  import { z as z26 } from "zod/v4";
6525
- var toolSearchBm25_20251119OutputSchema = lazySchema25(
6875
+ var textEditor_20250429InputSchema = lazySchema25(
6526
6876
  () => zodSchema25(
6527
- z26.array(
6528
- z26.object({
6529
- type: z26.literal("tool_reference"),
6530
- toolName: z26.string()
6877
+ z26.object({
6878
+ command: z26.enum(["view", "create", "str_replace", "insert"]),
6879
+ path: z26.string(),
6880
+ file_text: z26.string().optional(),
6881
+ insert_line: z26.number().int().optional(),
6882
+ new_str: z26.string().optional(),
6883
+ insert_text: z26.string().optional(),
6884
+ old_str: z26.string().optional(),
6885
+ view_range: z26.array(z26.number().int()).optional()
6886
+ })
6887
+ )
6888
+ );
6889
+ var textEditor_20250429 = createProviderDefinedToolFactory11({
6890
+ id: "anthropic.text_editor_20250429",
6891
+ inputSchema: textEditor_20250429InputSchema
6892
+ });
6893
+
6894
+ // src/tool/tool-search-bm25_20251119.ts
6895
+ import {
6896
+ createProviderExecutedToolFactory as createProviderExecutedToolFactory12,
6897
+ lazySchema as lazySchema26,
6898
+ zodSchema as zodSchema26
6899
+ } from "@ai-sdk/provider-utils";
6900
+ import { z as z27 } from "zod/v4";
6901
+ var toolSearchBm25_20251119OutputSchema = lazySchema26(
6902
+ () => zodSchema26(
6903
+ z27.array(
6904
+ z27.object({
6905
+ type: z27.literal("tool_reference"),
6906
+ toolName: z27.string()
6531
6907
  })
6532
6908
  )
6533
6909
  )
6534
6910
  );
6535
- var toolSearchBm25_20251119InputSchema = lazySchema25(
6536
- () => zodSchema25(
6537
- z26.object({
6911
+ var toolSearchBm25_20251119InputSchema = lazySchema26(
6912
+ () => zodSchema26(
6913
+ z27.object({
6538
6914
  /**
6539
6915
  * A natural language query to search for tools.
6540
6916
  * Claude will use BM25 text search to find relevant tools.
6541
6917
  */
6542
- query: z26.string(),
6918
+ query: z27.string(),
6543
6919
  /**
6544
6920
  * Maximum number of tools to return. Optional.
6545
6921
  */
6546
- limit: z26.number().optional()
6922
+ limit: z27.number().optional()
6547
6923
  })
6548
6924
  )
6549
6925
  );
@@ -6675,6 +7051,29 @@ var anthropicTools = {
6675
7051
  * @param enableZoom - Enable zoom action. Set to true to allow Claude to zoom into specific screen regions. Default: false.
6676
7052
  */
6677
7053
  computer_20251124,
7054
+ /**
7055
+ * The computer toolset lets Claude control a computer through screenshots,
7056
+ * mouse, and keyboard. It replaces the versioned computer tools
7057
+ * (`computer_20251124` and earlier) on newer models.
7058
+ *
7059
+ * The API returns each computer action as its own `tool_use` block with
7060
+ * `toolset_name: 'computer'`. The AI SDK maps every member call to this tool
7061
+ * and exposes the member name as `action`, so `execute` receives the same
7062
+ * input shape as the older computer tools. Claude may return several actions
7063
+ * in one turn.
7064
+ *
7065
+ * Coordinates are always in the pixel space of the screenshots you return;
7066
+ * there are no display size parameters. Zoom is enabled by default.
7067
+ *
7068
+ * Does not require a beta header.
7069
+ *
7070
+ * Supported models: Claude Opus 5.5 (required; older computer tool types
7071
+ * are rejected), Opus 5, Sonnet 5, Fable 5, Fable 5.1, Opus 4.8.
7072
+ *
7073
+ * @param configs - Per-member settings keyed by member name, e.g.
7074
+ * `{ zoom: { enabled: false } }`. Omitted members keep their defaults.
7075
+ */
7076
+ computerToolset_20260801,
6678
7077
  /**
6679
7078
  * The memory tool enables Claude to store and retrieve information across conversations through a memory file directory.
6680
7079
  * Claude can create, read, update, and delete files that persist between sessions,
@@ -6823,40 +7222,40 @@ import {
6823
7222
  } from "@ai-sdk/provider-utils";
6824
7223
 
6825
7224
  // src/skills/anthropic-skills-api.ts
6826
- import { lazySchema as lazySchema26, zodSchema as zodSchema26 } from "@ai-sdk/provider-utils";
6827
- import { z as z27 } from "zod/v4";
6828
- var anthropicSkillResponseSchema = lazySchema26(
6829
- () => zodSchema26(
6830
- z27.object({
6831
- id: z27.string(),
6832
- display_title: z27.string().nullish(),
6833
- name: z27.string().nullish(),
6834
- description: z27.string().nullish(),
6835
- latest_version: z27.string().nullish(),
6836
- source: z27.string(),
6837
- created_at: z27.string(),
6838
- updated_at: z27.string()
7225
+ import { lazySchema as lazySchema27, zodSchema as zodSchema27 } from "@ai-sdk/provider-utils";
7226
+ import { z as z28 } from "zod/v4";
7227
+ var anthropicSkillResponseSchema = lazySchema27(
7228
+ () => zodSchema27(
7229
+ z28.object({
7230
+ id: z28.string(),
7231
+ display_title: z28.string().nullish(),
7232
+ name: z28.string().nullish(),
7233
+ description: z28.string().nullish(),
7234
+ latest_version: z28.string().nullish(),
7235
+ source: z28.string(),
7236
+ created_at: z28.string(),
7237
+ updated_at: z28.string()
6839
7238
  })
6840
7239
  )
6841
7240
  );
6842
- var anthropicSkillVersionListResponseSchema = lazySchema26(
6843
- () => zodSchema26(
6844
- z27.object({
6845
- data: z27.array(
6846
- z27.object({
6847
- version: z27.string()
7241
+ var anthropicSkillVersionListResponseSchema = lazySchema27(
7242
+ () => zodSchema27(
7243
+ z28.object({
7244
+ data: z28.array(
7245
+ z28.object({
7246
+ version: z28.string()
6848
7247
  })
6849
7248
  )
6850
7249
  })
6851
7250
  )
6852
7251
  );
6853
- var anthropicSkillVersionResponseSchema = lazySchema26(
6854
- () => zodSchema26(
6855
- z27.object({
6856
- type: z27.string(),
6857
- skill_id: z27.string(),
6858
- name: z27.string().nullish(),
6859
- description: z27.string().nullish()
7252
+ var anthropicSkillVersionResponseSchema = lazySchema27(
7253
+ () => zodSchema27(
7254
+ z28.object({
7255
+ type: z28.string(),
7256
+ skill_id: z28.string(),
7257
+ name: z28.string().nullish(),
7258
+ description: z28.string().nullish()
6860
7259
  })
6861
7260
  )
6862
7261
  );