braintrust 0.0.206 → 0.0.208

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.
@@ -199,6 +199,8 @@ type StartSpanArgs = {
199
199
  parent?: string;
200
200
  event?: StartSpanEventArgs;
201
201
  propagatedEvent?: StartSpanEventArgs;
202
+ spanId?: string;
203
+ parentSpanIds?: ParentSpanIds | MultiParentSpanIds;
202
204
  };
203
205
  type EndSpanArgs = {
204
206
  endTime?: number;
@@ -487,6 +489,14 @@ interface LogOptions<IsAsyncFlush> {
487
489
  computeMetadataArgs?: Record<string, any>;
488
490
  }
489
491
  type PromiseUnless<B, R> = B extends true ? R : Promise<Awaited<R>>;
492
+ interface ParentSpanIds {
493
+ spanId: string;
494
+ rootSpanId: string;
495
+ }
496
+ interface MultiParentSpanIds {
497
+ parentSpanIds: string[];
498
+ rootSpanId: string;
499
+ }
490
500
  declare class Logger<IsAsyncFlush extends boolean> implements Exportable {
491
501
  private state;
492
502
  private lazyMetadata;
@@ -573,7 +583,7 @@ interface BackgroundLogger {
573
583
  }
574
584
  declare class HTTPBackgroundLogger implements BackgroundLogger {
575
585
  private apiConn;
576
- private items;
586
+ private queue;
577
587
  private activeFlush;
578
588
  private activeFlushResolved;
579
589
  private activeFlushError;
@@ -582,7 +592,7 @@ declare class HTTPBackgroundLogger implements BackgroundLogger {
582
592
  maxRequestSize: number;
583
593
  defaultBatchSize: number;
584
594
  numTries: number;
585
- queueDropExceedingMaxsize: number | undefined;
595
+ queueDropExceedingMaxsize: number;
586
596
  queueDropLoggingPeriod: number;
587
597
  failedPublishPayloadsDir: string | undefined;
588
598
  allPublishPayloadsDir: string | undefined;
@@ -938,6 +948,19 @@ declare class Prompt<HasId extends boolean = true, HasVersion extends boolean =
938
948
  messages?: Message[];
939
949
  strict?: boolean;
940
950
  }): CompiledPrompt<Flavor>;
951
+ /**
952
+ * This is a special build method that first resolves attachment references, and then
953
+ * calls the regular build method. You should use this if you are building prompts from
954
+ * dataset rows that contain attachments.
955
+ *
956
+ * @param buildArgs Args to forward along to the prompt template.
957
+ */
958
+ buildWithAttachments<Flavor extends "chat" | "completion" = "chat">(buildArgs: unknown, options?: {
959
+ flavor?: Flavor;
960
+ messages?: Message[];
961
+ strict?: boolean;
962
+ state?: BraintrustState;
963
+ }): Promise<CompiledPrompt<Flavor>>;
941
964
  private runBuild;
942
965
  static renderPrompt({ prompt, buildArgs, options, }: {
943
966
  prompt: PromptBlockData;
@@ -1173,23 +1196,18 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
1173
1196
  role: z.ZodLiteral<"system">;
1174
1197
  name: z.ZodOptional<z.ZodString>;
1175
1198
  }, "strip", z.ZodTypeAny, {
1176
- content: (string | {
1177
- type: "text";
1178
- text: string;
1179
- cache_control?: {
1180
- type: "ephemeral";
1181
- } | undefined;
1182
- }[]) & (string | {
1199
+ content: string | {
1183
1200
  type: "text";
1184
1201
  text: string;
1185
1202
  cache_control?: {
1186
1203
  type: "ephemeral";
1187
1204
  } | undefined;
1188
- }[] | undefined);
1205
+ }[];
1189
1206
  role: "system";
1190
1207
  name?: string | undefined;
1191
1208
  }, {
1192
1209
  role: "system";
1210
+ name?: string | undefined;
1193
1211
  content?: string | {
1194
1212
  type: "text";
1195
1213
  text?: string | undefined;
@@ -1197,7 +1215,6 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
1197
1215
  type: "ephemeral";
1198
1216
  } | undefined;
1199
1217
  }[] | undefined;
1200
- name?: string | undefined;
1201
1218
  }>, z.ZodObject<{
1202
1219
  content: z.ZodUnion<[z.ZodDefault<z.ZodString>, z.ZodArray<z.ZodUnion<[z.ZodObject<{
1203
1220
  text: z.ZodDefault<z.ZodString>;
@@ -1223,13 +1240,13 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
1223
1240
  } | undefined;
1224
1241
  }>, z.ZodObject<{
1225
1242
  image_url: z.ZodObject<{
1226
- url: z.ZodString;
1243
+ url: z.ZodEffects<z.ZodString, string, unknown>;
1227
1244
  detail: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"low">, z.ZodLiteral<"high">]>>;
1228
1245
  }, "strip", z.ZodTypeAny, {
1229
1246
  url: string;
1230
1247
  detail?: "auto" | "low" | "high" | undefined;
1231
1248
  }, {
1232
- url: string;
1249
+ url?: unknown;
1233
1250
  detail?: "auto" | "low" | "high" | undefined;
1234
1251
  }>;
1235
1252
  type: z.ZodLiteral<"image_url">;
@@ -1242,26 +1259,14 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
1242
1259
  }, {
1243
1260
  type: "image_url";
1244
1261
  image_url: {
1245
- url: string;
1262
+ url?: unknown;
1246
1263
  detail?: "auto" | "low" | "high" | undefined;
1247
1264
  };
1248
1265
  }>]>, "many">]>;
1249
1266
  role: z.ZodLiteral<"user">;
1250
1267
  name: z.ZodOptional<z.ZodString>;
1251
1268
  }, "strip", z.ZodTypeAny, {
1252
- content: (string | ({
1253
- type: "text";
1254
- text: string;
1255
- cache_control?: {
1256
- type: "ephemeral";
1257
- } | undefined;
1258
- } | {
1259
- type: "image_url";
1260
- image_url: {
1261
- url: string;
1262
- detail?: "auto" | "low" | "high" | undefined;
1263
- };
1264
- })[]) & (string | ({
1269
+ content: string | ({
1265
1270
  type: "text";
1266
1271
  text: string;
1267
1272
  cache_control?: {
@@ -1273,11 +1278,12 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
1273
1278
  url: string;
1274
1279
  detail?: "auto" | "low" | "high" | undefined;
1275
1280
  };
1276
- })[] | undefined);
1281
+ })[];
1277
1282
  role: "user";
1278
1283
  name?: string | undefined;
1279
1284
  }, {
1280
1285
  role: "user";
1286
+ name?: string | undefined;
1281
1287
  content?: string | ({
1282
1288
  type: "text";
1283
1289
  text?: string | undefined;
@@ -1287,11 +1293,10 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
1287
1293
  } | {
1288
1294
  type: "image_url";
1289
1295
  image_url: {
1290
- url: string;
1296
+ url?: unknown;
1291
1297
  detail?: "auto" | "low" | "high" | undefined;
1292
1298
  };
1293
1299
  })[] | undefined;
1294
- name?: string | undefined;
1295
1300
  }>, z.ZodObject<{
1296
1301
  role: z.ZodLiteral<"assistant">;
1297
1302
  content: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
@@ -1380,20 +1385,21 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
1380
1385
  id: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
1381
1386
  content: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
1382
1387
  }, "strip", z.ZodTypeAny, {
1383
- id?: string | undefined;
1384
1388
  content?: string | undefined;
1389
+ id?: string | undefined;
1385
1390
  }, {
1386
- id?: string | null | undefined;
1387
1391
  content?: string | null | undefined;
1392
+ id?: string | null | undefined;
1388
1393
  }>, "many">>>, {
1389
- id?: string | undefined;
1390
1394
  content?: string | undefined;
1395
+ id?: string | undefined;
1391
1396
  }[] | undefined, {
1392
- id?: string | null | undefined;
1393
1397
  content?: string | null | undefined;
1398
+ id?: string | null | undefined;
1394
1399
  }[] | null | undefined>;
1395
1400
  }, "strip", z.ZodTypeAny, {
1396
1401
  role: "assistant";
1402
+ name?: string | undefined;
1397
1403
  content?: string | {
1398
1404
  type: "text";
1399
1405
  text: string;
@@ -1405,7 +1411,6 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
1405
1411
  name: string;
1406
1412
  arguments: string;
1407
1413
  } | undefined;
1408
- name?: string | undefined;
1409
1414
  tool_calls?: {
1410
1415
  function: {
1411
1416
  name: string;
@@ -1415,11 +1420,12 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
1415
1420
  id: string;
1416
1421
  }[] | undefined;
1417
1422
  reasoning?: {
1418
- id?: string | undefined;
1419
1423
  content?: string | undefined;
1424
+ id?: string | undefined;
1420
1425
  }[] | undefined;
1421
1426
  }, {
1422
1427
  role: "assistant";
1428
+ name?: string | null | undefined;
1423
1429
  content?: string | {
1424
1430
  type: "text";
1425
1431
  text?: string | undefined;
@@ -1431,7 +1437,6 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
1431
1437
  name: string;
1432
1438
  arguments: string;
1433
1439
  } | null | undefined;
1434
- name?: string | null | undefined;
1435
1440
  tool_calls?: {
1436
1441
  function: {
1437
1442
  name: string;
@@ -1441,8 +1446,8 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
1441
1446
  id: string;
1442
1447
  }[] | null | undefined;
1443
1448
  reasoning?: {
1444
- id?: string | null | undefined;
1445
1449
  content?: string | null | undefined;
1450
+ id?: string | null | undefined;
1446
1451
  }[] | null | undefined;
1447
1452
  }>, z.ZodObject<{
1448
1453
  content: z.ZodUnion<[z.ZodDefault<z.ZodString>, z.ZodArray<z.ZodObject<{
@@ -1471,19 +1476,13 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
1471
1476
  role: z.ZodLiteral<"tool">;
1472
1477
  tool_call_id: z.ZodDefault<z.ZodString>;
1473
1478
  }, "strip", z.ZodTypeAny, {
1474
- content: (string | {
1475
- type: "text";
1476
- text: string;
1477
- cache_control?: {
1478
- type: "ephemeral";
1479
- } | undefined;
1480
- }[]) & (string | {
1479
+ content: string | {
1481
1480
  type: "text";
1482
1481
  text: string;
1483
1482
  cache_control?: {
1484
1483
  type: "ephemeral";
1485
1484
  } | undefined;
1486
- }[] | undefined);
1485
+ }[];
1487
1486
  role: "tool";
1488
1487
  tool_call_id: string;
1489
1488
  }, {
@@ -1520,23 +1519,17 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
1520
1519
  }>]>, "many">;
1521
1520
  }, "strip", z.ZodTypeAny, {
1522
1521
  messages: ({
1523
- content: (string | {
1522
+ content: string | {
1524
1523
  type: "text";
1525
1524
  text: string;
1526
1525
  cache_control?: {
1527
1526
  type: "ephemeral";
1528
1527
  } | undefined;
1529
- }[]) & (string | {
1530
- type: "text";
1531
- text: string;
1532
- cache_control?: {
1533
- type: "ephemeral";
1534
- } | undefined;
1535
- }[] | undefined);
1528
+ }[];
1536
1529
  role: "system";
1537
1530
  name?: string | undefined;
1538
1531
  } | {
1539
- content: (string | ({
1532
+ content: string | ({
1540
1533
  type: "text";
1541
1534
  text: string;
1542
1535
  cache_control?: {
@@ -1548,23 +1541,12 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
1548
1541
  url: string;
1549
1542
  detail?: "auto" | "low" | "high" | undefined;
1550
1543
  };
1551
- })[]) & (string | ({
1552
- type: "text";
1553
- text: string;
1554
- cache_control?: {
1555
- type: "ephemeral";
1556
- } | undefined;
1557
- } | {
1558
- type: "image_url";
1559
- image_url: {
1560
- url: string;
1561
- detail?: "auto" | "low" | "high" | undefined;
1562
- };
1563
- })[] | undefined);
1544
+ })[];
1564
1545
  role: "user";
1565
1546
  name?: string | undefined;
1566
1547
  } | {
1567
1548
  role: "assistant";
1549
+ name?: string | undefined;
1568
1550
  content?: string | {
1569
1551
  type: "text";
1570
1552
  text: string;
@@ -1576,7 +1558,6 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
1576
1558
  name: string;
1577
1559
  arguments: string;
1578
1560
  } | undefined;
1579
- name?: string | undefined;
1580
1561
  tool_calls?: {
1581
1562
  function: {
1582
1563
  name: string;
@@ -1586,23 +1567,17 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
1586
1567
  id: string;
1587
1568
  }[] | undefined;
1588
1569
  reasoning?: {
1589
- id?: string | undefined;
1590
1570
  content?: string | undefined;
1571
+ id?: string | undefined;
1591
1572
  }[] | undefined;
1592
1573
  } | {
1593
- content: (string | {
1594
- type: "text";
1595
- text: string;
1596
- cache_control?: {
1597
- type: "ephemeral";
1598
- } | undefined;
1599
- }[]) & (string | {
1574
+ content: string | {
1600
1575
  type: "text";
1601
1576
  text: string;
1602
1577
  cache_control?: {
1603
1578
  type: "ephemeral";
1604
1579
  } | undefined;
1605
- }[] | undefined);
1580
+ }[];
1606
1581
  role: "tool";
1607
1582
  tool_call_id: string;
1608
1583
  } | {
@@ -1616,6 +1591,7 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
1616
1591
  }, {
1617
1592
  messages: ({
1618
1593
  role: "system";
1594
+ name?: string | undefined;
1619
1595
  content?: string | {
1620
1596
  type: "text";
1621
1597
  text?: string | undefined;
@@ -1623,9 +1599,9 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
1623
1599
  type: "ephemeral";
1624
1600
  } | undefined;
1625
1601
  }[] | undefined;
1626
- name?: string | undefined;
1627
1602
  } | {
1628
1603
  role: "user";
1604
+ name?: string | undefined;
1629
1605
  content?: string | ({
1630
1606
  type: "text";
1631
1607
  text?: string | undefined;
@@ -1635,13 +1611,13 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
1635
1611
  } | {
1636
1612
  type: "image_url";
1637
1613
  image_url: {
1638
- url: string;
1614
+ url?: unknown;
1639
1615
  detail?: "auto" | "low" | "high" | undefined;
1640
1616
  };
1641
1617
  })[] | undefined;
1642
- name?: string | undefined;
1643
1618
  } | {
1644
1619
  role: "assistant";
1620
+ name?: string | null | undefined;
1645
1621
  content?: string | {
1646
1622
  type: "text";
1647
1623
  text?: string | undefined;
@@ -1653,7 +1629,6 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
1653
1629
  name: string;
1654
1630
  arguments: string;
1655
1631
  } | null | undefined;
1656
- name?: string | null | undefined;
1657
1632
  tool_calls?: {
1658
1633
  function: {
1659
1634
  name: string;
@@ -1663,8 +1638,8 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
1663
1638
  id: string;
1664
1639
  }[] | null | undefined;
1665
1640
  reasoning?: {
1666
- id?: string | null | undefined;
1667
1641
  content?: string | null | undefined;
1642
+ id?: string | null | undefined;
1668
1643
  }[] | null | undefined;
1669
1644
  } | {
1670
1645
  role: "tool";
@@ -1710,29 +1685,29 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
1710
1685
  }, "strip", z.ZodTypeAny, {
1711
1686
  name: string;
1712
1687
  description?: string | undefined;
1713
- schema?: string | Record<string, unknown> | undefined;
1714
1688
  strict?: boolean | null | undefined;
1689
+ schema?: string | Record<string, unknown> | undefined;
1715
1690
  }, {
1716
1691
  name: string;
1717
1692
  description?: string | undefined;
1718
- schema?: string | Record<string, unknown> | undefined;
1719
1693
  strict?: boolean | null | undefined;
1694
+ schema?: string | Record<string, unknown> | undefined;
1720
1695
  }>;
1721
1696
  }, "strip", z.ZodTypeAny, {
1722
1697
  type: "json_schema";
1723
1698
  json_schema: {
1724
1699
  name: string;
1725
1700
  description?: string | undefined;
1726
- schema?: string | Record<string, unknown> | undefined;
1727
1701
  strict?: boolean | null | undefined;
1702
+ schema?: string | Record<string, unknown> | undefined;
1728
1703
  };
1729
1704
  }, {
1730
1705
  type: "json_schema";
1731
1706
  json_schema: {
1732
1707
  name: string;
1733
1708
  description?: string | undefined;
1734
- schema?: string | Record<string, unknown> | undefined;
1735
1709
  strict?: boolean | null | undefined;
1710
+ schema?: string | Record<string, unknown> | undefined;
1736
1711
  };
1737
1712
  }>, z.ZodObject<{
1738
1713
  type: z.ZodLiteral<"text">;
@@ -1795,29 +1770,29 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
1795
1770
  }, "strip", z.ZodTypeAny, {
1796
1771
  name: string;
1797
1772
  description?: string | undefined;
1798
- schema?: string | Record<string, unknown> | undefined;
1799
1773
  strict?: boolean | null | undefined;
1774
+ schema?: string | Record<string, unknown> | undefined;
1800
1775
  }, {
1801
1776
  name: string;
1802
1777
  description?: string | undefined;
1803
- schema?: string | Record<string, unknown> | undefined;
1804
1778
  strict?: boolean | null | undefined;
1779
+ schema?: string | Record<string, unknown> | undefined;
1805
1780
  }>;
1806
1781
  }, "strip", z.ZodTypeAny, {
1807
1782
  type: "json_schema";
1808
1783
  json_schema: {
1809
1784
  name: string;
1810
1785
  description?: string | undefined;
1811
- schema?: string | Record<string, unknown> | undefined;
1812
1786
  strict?: boolean | null | undefined;
1787
+ schema?: string | Record<string, unknown> | undefined;
1813
1788
  };
1814
1789
  }, {
1815
1790
  type: "json_schema";
1816
1791
  json_schema: {
1817
1792
  name: string;
1818
1793
  description?: string | undefined;
1819
- schema?: string | Record<string, unknown> | undefined;
1820
1794
  strict?: boolean | null | undefined;
1795
+ schema?: string | Record<string, unknown> | undefined;
1821
1796
  };
1822
1797
  }>, z.ZodObject<{
1823
1798
  type: z.ZodLiteral<"text">;
@@ -1880,29 +1855,29 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
1880
1855
  }, "strip", z.ZodTypeAny, {
1881
1856
  name: string;
1882
1857
  description?: string | undefined;
1883
- schema?: string | Record<string, unknown> | undefined;
1884
1858
  strict?: boolean | null | undefined;
1859
+ schema?: string | Record<string, unknown> | undefined;
1885
1860
  }, {
1886
1861
  name: string;
1887
1862
  description?: string | undefined;
1888
- schema?: string | Record<string, unknown> | undefined;
1889
1863
  strict?: boolean | null | undefined;
1864
+ schema?: string | Record<string, unknown> | undefined;
1890
1865
  }>;
1891
1866
  }, "strip", z.ZodTypeAny, {
1892
1867
  type: "json_schema";
1893
1868
  json_schema: {
1894
1869
  name: string;
1895
1870
  description?: string | undefined;
1896
- schema?: string | Record<string, unknown> | undefined;
1897
1871
  strict?: boolean | null | undefined;
1872
+ schema?: string | Record<string, unknown> | undefined;
1898
1873
  };
1899
1874
  }, {
1900
1875
  type: "json_schema";
1901
1876
  json_schema: {
1902
1877
  name: string;
1903
1878
  description?: string | undefined;
1904
- schema?: string | Record<string, unknown> | undefined;
1905
1879
  strict?: boolean | null | undefined;
1880
+ schema?: string | Record<string, unknown> | undefined;
1906
1881
  };
1907
1882
  }>, z.ZodObject<{
1908
1883
  type: z.ZodLiteral<"text">;
@@ -2028,29 +2003,29 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
2028
2003
  }, "strip", z.ZodTypeAny, {
2029
2004
  name: string;
2030
2005
  description?: string | undefined;
2031
- schema?: string | Record<string, unknown> | undefined;
2032
2006
  strict?: boolean | null | undefined;
2007
+ schema?: string | Record<string, unknown> | undefined;
2033
2008
  }, {
2034
2009
  name: string;
2035
2010
  description?: string | undefined;
2036
- schema?: string | Record<string, unknown> | undefined;
2037
2011
  strict?: boolean | null | undefined;
2012
+ schema?: string | Record<string, unknown> | undefined;
2038
2013
  }>;
2039
2014
  }, "strip", z.ZodTypeAny, {
2040
2015
  type: "json_schema";
2041
2016
  json_schema: {
2042
2017
  name: string;
2043
2018
  description?: string | undefined;
2044
- schema?: string | Record<string, unknown> | undefined;
2045
2019
  strict?: boolean | null | undefined;
2020
+ schema?: string | Record<string, unknown> | undefined;
2046
2021
  };
2047
2022
  }, {
2048
2023
  type: "json_schema";
2049
2024
  json_schema: {
2050
2025
  name: string;
2051
2026
  description?: string | undefined;
2052
- schema?: string | Record<string, unknown> | undefined;
2053
2027
  strict?: boolean | null | undefined;
2028
+ schema?: string | Record<string, unknown> | undefined;
2054
2029
  };
2055
2030
  }>, z.ZodObject<{
2056
2031
  type: z.ZodLiteral<"text">;
@@ -2136,29 +2111,29 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
2136
2111
  }, "strip", z.ZodTypeAny, {
2137
2112
  name: string;
2138
2113
  description?: string | undefined;
2139
- schema?: string | Record<string, unknown> | undefined;
2140
2114
  strict?: boolean | null | undefined;
2115
+ schema?: string | Record<string, unknown> | undefined;
2141
2116
  }, {
2142
2117
  name: string;
2143
2118
  description?: string | undefined;
2144
- schema?: string | Record<string, unknown> | undefined;
2145
2119
  strict?: boolean | null | undefined;
2120
+ schema?: string | Record<string, unknown> | undefined;
2146
2121
  }>;
2147
2122
  }, "strip", z.ZodTypeAny, {
2148
2123
  type: "json_schema";
2149
2124
  json_schema: {
2150
2125
  name: string;
2151
2126
  description?: string | undefined;
2152
- schema?: string | Record<string, unknown> | undefined;
2153
2127
  strict?: boolean | null | undefined;
2128
+ schema?: string | Record<string, unknown> | undefined;
2154
2129
  };
2155
2130
  }, {
2156
2131
  type: "json_schema";
2157
2132
  json_schema: {
2158
2133
  name: string;
2159
2134
  description?: string | undefined;
2160
- schema?: string | Record<string, unknown> | undefined;
2161
2135
  strict?: boolean | null | undefined;
2136
+ schema?: string | Record<string, unknown> | undefined;
2162
2137
  };
2163
2138
  }>, z.ZodObject<{
2164
2139
  type: z.ZodLiteral<"text">;
@@ -2282,23 +2257,18 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
2282
2257
  role: z.ZodLiteral<"system">;
2283
2258
  name: z.ZodOptional<z.ZodString>;
2284
2259
  }, "strip", z.ZodTypeAny, {
2285
- content: (string | {
2286
- type: "text";
2287
- text: string;
2288
- cache_control?: {
2289
- type: "ephemeral";
2290
- } | undefined;
2291
- }[]) & (string | {
2260
+ content: string | {
2292
2261
  type: "text";
2293
2262
  text: string;
2294
2263
  cache_control?: {
2295
2264
  type: "ephemeral";
2296
2265
  } | undefined;
2297
- }[] | undefined);
2266
+ }[];
2298
2267
  role: "system";
2299
2268
  name?: string | undefined;
2300
2269
  }, {
2301
2270
  role: "system";
2271
+ name?: string | undefined;
2302
2272
  content?: string | {
2303
2273
  type: "text";
2304
2274
  text?: string | undefined;
@@ -2306,7 +2276,6 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
2306
2276
  type: "ephemeral";
2307
2277
  } | undefined;
2308
2278
  }[] | undefined;
2309
- name?: string | undefined;
2310
2279
  }>, z.ZodObject<{
2311
2280
  content: z.ZodUnion<[z.ZodDefault<z.ZodString>, z.ZodArray<z.ZodUnion<[z.ZodObject<{
2312
2281
  text: z.ZodDefault<z.ZodString>;
@@ -2332,13 +2301,13 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
2332
2301
  } | undefined;
2333
2302
  }>, z.ZodObject<{
2334
2303
  image_url: z.ZodObject<{
2335
- url: z.ZodString;
2304
+ url: z.ZodEffects<z.ZodString, string, unknown>;
2336
2305
  detail: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"low">, z.ZodLiteral<"high">]>>;
2337
2306
  }, "strip", z.ZodTypeAny, {
2338
2307
  url: string;
2339
2308
  detail?: "auto" | "low" | "high" | undefined;
2340
2309
  }, {
2341
- url: string;
2310
+ url?: unknown;
2342
2311
  detail?: "auto" | "low" | "high" | undefined;
2343
2312
  }>;
2344
2313
  type: z.ZodLiteral<"image_url">;
@@ -2351,14 +2320,14 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
2351
2320
  }, {
2352
2321
  type: "image_url";
2353
2322
  image_url: {
2354
- url: string;
2323
+ url?: unknown;
2355
2324
  detail?: "auto" | "low" | "high" | undefined;
2356
2325
  };
2357
2326
  }>]>, "many">]>;
2358
2327
  role: z.ZodLiteral<"user">;
2359
2328
  name: z.ZodOptional<z.ZodString>;
2360
2329
  }, "strip", z.ZodTypeAny, {
2361
- content: (string | ({
2330
+ content: string | ({
2362
2331
  type: "text";
2363
2332
  text: string;
2364
2333
  cache_control?: {
@@ -2370,23 +2339,12 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
2370
2339
  url: string;
2371
2340
  detail?: "auto" | "low" | "high" | undefined;
2372
2341
  };
2373
- })[]) & (string | ({
2374
- type: "text";
2375
- text: string;
2376
- cache_control?: {
2377
- type: "ephemeral";
2378
- } | undefined;
2379
- } | {
2380
- type: "image_url";
2381
- image_url: {
2382
- url: string;
2383
- detail?: "auto" | "low" | "high" | undefined;
2384
- };
2385
- })[] | undefined);
2342
+ })[];
2386
2343
  role: "user";
2387
2344
  name?: string | undefined;
2388
2345
  }, {
2389
2346
  role: "user";
2347
+ name?: string | undefined;
2390
2348
  content?: string | ({
2391
2349
  type: "text";
2392
2350
  text?: string | undefined;
@@ -2396,11 +2354,10 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
2396
2354
  } | {
2397
2355
  type: "image_url";
2398
2356
  image_url: {
2399
- url: string;
2357
+ url?: unknown;
2400
2358
  detail?: "auto" | "low" | "high" | undefined;
2401
2359
  };
2402
2360
  })[] | undefined;
2403
- name?: string | undefined;
2404
2361
  }>, z.ZodObject<{
2405
2362
  role: z.ZodLiteral<"assistant">;
2406
2363
  content: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
@@ -2489,20 +2446,21 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
2489
2446
  id: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
2490
2447
  content: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
2491
2448
  }, "strip", z.ZodTypeAny, {
2492
- id?: string | undefined;
2493
2449
  content?: string | undefined;
2450
+ id?: string | undefined;
2494
2451
  }, {
2495
- id?: string | null | undefined;
2496
2452
  content?: string | null | undefined;
2453
+ id?: string | null | undefined;
2497
2454
  }>, "many">>>, {
2498
- id?: string | undefined;
2499
2455
  content?: string | undefined;
2456
+ id?: string | undefined;
2500
2457
  }[] | undefined, {
2501
- id?: string | null | undefined;
2502
2458
  content?: string | null | undefined;
2459
+ id?: string | null | undefined;
2503
2460
  }[] | null | undefined>;
2504
2461
  }, "strip", z.ZodTypeAny, {
2505
2462
  role: "assistant";
2463
+ name?: string | undefined;
2506
2464
  content?: string | {
2507
2465
  type: "text";
2508
2466
  text: string;
@@ -2514,7 +2472,6 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
2514
2472
  name: string;
2515
2473
  arguments: string;
2516
2474
  } | undefined;
2517
- name?: string | undefined;
2518
2475
  tool_calls?: {
2519
2476
  function: {
2520
2477
  name: string;
@@ -2524,11 +2481,12 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
2524
2481
  id: string;
2525
2482
  }[] | undefined;
2526
2483
  reasoning?: {
2527
- id?: string | undefined;
2528
2484
  content?: string | undefined;
2485
+ id?: string | undefined;
2529
2486
  }[] | undefined;
2530
2487
  }, {
2531
2488
  role: "assistant";
2489
+ name?: string | null | undefined;
2532
2490
  content?: string | {
2533
2491
  type: "text";
2534
2492
  text?: string | undefined;
@@ -2540,7 +2498,6 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
2540
2498
  name: string;
2541
2499
  arguments: string;
2542
2500
  } | null | undefined;
2543
- name?: string | null | undefined;
2544
2501
  tool_calls?: {
2545
2502
  function: {
2546
2503
  name: string;
@@ -2550,8 +2507,8 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
2550
2507
  id: string;
2551
2508
  }[] | null | undefined;
2552
2509
  reasoning?: {
2553
- id?: string | null | undefined;
2554
2510
  content?: string | null | undefined;
2511
+ id?: string | null | undefined;
2555
2512
  }[] | null | undefined;
2556
2513
  }>, z.ZodObject<{
2557
2514
  content: z.ZodUnion<[z.ZodDefault<z.ZodString>, z.ZodArray<z.ZodObject<{
@@ -2580,19 +2537,13 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
2580
2537
  role: z.ZodLiteral<"tool">;
2581
2538
  tool_call_id: z.ZodDefault<z.ZodString>;
2582
2539
  }, "strip", z.ZodTypeAny, {
2583
- content: (string | {
2584
- type: "text";
2585
- text: string;
2586
- cache_control?: {
2587
- type: "ephemeral";
2588
- } | undefined;
2589
- }[]) & (string | {
2540
+ content: string | {
2590
2541
  type: "text";
2591
2542
  text: string;
2592
2543
  cache_control?: {
2593
2544
  type: "ephemeral";
2594
2545
  } | undefined;
2595
- }[] | undefined);
2546
+ }[];
2596
2547
  role: "tool";
2597
2548
  tool_call_id: string;
2598
2549
  }, {
@@ -2629,35 +2580,17 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
2629
2580
  }>]>, "many">;
2630
2581
  }, "strip", z.ZodTypeAny, {
2631
2582
  messages: ({
2632
- content: (string | {
2633
- type: "text";
2634
- text: string;
2635
- cache_control?: {
2636
- type: "ephemeral";
2637
- } | undefined;
2638
- }[]) & (string | {
2583
+ content: string | {
2639
2584
  type: "text";
2640
2585
  text: string;
2641
2586
  cache_control?: {
2642
2587
  type: "ephemeral";
2643
2588
  } | undefined;
2644
- }[] | undefined);
2589
+ }[];
2645
2590
  role: "system";
2646
2591
  name?: string | undefined;
2647
2592
  } | {
2648
- content: (string | ({
2649
- type: "text";
2650
- text: string;
2651
- cache_control?: {
2652
- type: "ephemeral";
2653
- } | undefined;
2654
- } | {
2655
- type: "image_url";
2656
- image_url: {
2657
- url: string;
2658
- detail?: "auto" | "low" | "high" | undefined;
2659
- };
2660
- })[]) & (string | ({
2593
+ content: string | ({
2661
2594
  type: "text";
2662
2595
  text: string;
2663
2596
  cache_control?: {
@@ -2669,11 +2602,12 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
2669
2602
  url: string;
2670
2603
  detail?: "auto" | "low" | "high" | undefined;
2671
2604
  };
2672
- })[] | undefined);
2605
+ })[];
2673
2606
  role: "user";
2674
2607
  name?: string | undefined;
2675
2608
  } | {
2676
2609
  role: "assistant";
2610
+ name?: string | undefined;
2677
2611
  content?: string | {
2678
2612
  type: "text";
2679
2613
  text: string;
@@ -2685,7 +2619,6 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
2685
2619
  name: string;
2686
2620
  arguments: string;
2687
2621
  } | undefined;
2688
- name?: string | undefined;
2689
2622
  tool_calls?: {
2690
2623
  function: {
2691
2624
  name: string;
@@ -2695,23 +2628,17 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
2695
2628
  id: string;
2696
2629
  }[] | undefined;
2697
2630
  reasoning?: {
2698
- id?: string | undefined;
2699
2631
  content?: string | undefined;
2632
+ id?: string | undefined;
2700
2633
  }[] | undefined;
2701
2634
  } | {
2702
- content: (string | {
2635
+ content: string | {
2703
2636
  type: "text";
2704
2637
  text: string;
2705
2638
  cache_control?: {
2706
2639
  type: "ephemeral";
2707
2640
  } | undefined;
2708
- }[]) & (string | {
2709
- type: "text";
2710
- text: string;
2711
- cache_control?: {
2712
- type: "ephemeral";
2713
- } | undefined;
2714
- }[] | undefined);
2641
+ }[];
2715
2642
  role: "tool";
2716
2643
  tool_call_id: string;
2717
2644
  } | {
@@ -2725,6 +2652,7 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
2725
2652
  }, {
2726
2653
  messages: ({
2727
2654
  role: "system";
2655
+ name?: string | undefined;
2728
2656
  content?: string | {
2729
2657
  type: "text";
2730
2658
  text?: string | undefined;
@@ -2732,9 +2660,9 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
2732
2660
  type: "ephemeral";
2733
2661
  } | undefined;
2734
2662
  }[] | undefined;
2735
- name?: string | undefined;
2736
2663
  } | {
2737
2664
  role: "user";
2665
+ name?: string | undefined;
2738
2666
  content?: string | ({
2739
2667
  type: "text";
2740
2668
  text?: string | undefined;
@@ -2744,13 +2672,13 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
2744
2672
  } | {
2745
2673
  type: "image_url";
2746
2674
  image_url: {
2747
- url: string;
2675
+ url?: unknown;
2748
2676
  detail?: "auto" | "low" | "high" | undefined;
2749
2677
  };
2750
2678
  })[] | undefined;
2751
- name?: string | undefined;
2752
2679
  } | {
2753
2680
  role: "assistant";
2681
+ name?: string | null | undefined;
2754
2682
  content?: string | {
2755
2683
  type: "text";
2756
2684
  text?: string | undefined;
@@ -2762,7 +2690,6 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
2762
2690
  name: string;
2763
2691
  arguments: string;
2764
2692
  } | null | undefined;
2765
- name?: string | null | undefined;
2766
2693
  tool_calls?: {
2767
2694
  function: {
2768
2695
  name: string;
@@ -2772,8 +2699,8 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
2772
2699
  id: string;
2773
2700
  }[] | null | undefined;
2774
2701
  reasoning?: {
2775
- id?: string | null | undefined;
2776
2702
  content?: string | null | undefined;
2703
+ id?: string | null | undefined;
2777
2704
  }[] | null | undefined;
2778
2705
  } | {
2779
2706
  role: "tool";
@@ -2819,29 +2746,29 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
2819
2746
  }, "strip", z.ZodTypeAny, {
2820
2747
  name: string;
2821
2748
  description?: string | undefined;
2822
- schema?: string | Record<string, unknown> | undefined;
2823
2749
  strict?: boolean | null | undefined;
2750
+ schema?: string | Record<string, unknown> | undefined;
2824
2751
  }, {
2825
2752
  name: string;
2826
2753
  description?: string | undefined;
2827
- schema?: string | Record<string, unknown> | undefined;
2828
2754
  strict?: boolean | null | undefined;
2755
+ schema?: string | Record<string, unknown> | undefined;
2829
2756
  }>;
2830
2757
  }, "strip", z.ZodTypeAny, {
2831
2758
  type: "json_schema";
2832
2759
  json_schema: {
2833
2760
  name: string;
2834
2761
  description?: string | undefined;
2835
- schema?: string | Record<string, unknown> | undefined;
2836
2762
  strict?: boolean | null | undefined;
2763
+ schema?: string | Record<string, unknown> | undefined;
2837
2764
  };
2838
2765
  }, {
2839
2766
  type: "json_schema";
2840
2767
  json_schema: {
2841
2768
  name: string;
2842
2769
  description?: string | undefined;
2843
- schema?: string | Record<string, unknown> | undefined;
2844
2770
  strict?: boolean | null | undefined;
2771
+ schema?: string | Record<string, unknown> | undefined;
2845
2772
  };
2846
2773
  }>, z.ZodObject<{
2847
2774
  type: z.ZodLiteral<"text">;
@@ -2904,29 +2831,29 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
2904
2831
  }, "strip", z.ZodTypeAny, {
2905
2832
  name: string;
2906
2833
  description?: string | undefined;
2907
- schema?: string | Record<string, unknown> | undefined;
2908
2834
  strict?: boolean | null | undefined;
2835
+ schema?: string | Record<string, unknown> | undefined;
2909
2836
  }, {
2910
2837
  name: string;
2911
2838
  description?: string | undefined;
2912
- schema?: string | Record<string, unknown> | undefined;
2913
2839
  strict?: boolean | null | undefined;
2840
+ schema?: string | Record<string, unknown> | undefined;
2914
2841
  }>;
2915
2842
  }, "strip", z.ZodTypeAny, {
2916
2843
  type: "json_schema";
2917
2844
  json_schema: {
2918
2845
  name: string;
2919
2846
  description?: string | undefined;
2920
- schema?: string | Record<string, unknown> | undefined;
2921
2847
  strict?: boolean | null | undefined;
2848
+ schema?: string | Record<string, unknown> | undefined;
2922
2849
  };
2923
2850
  }, {
2924
2851
  type: "json_schema";
2925
2852
  json_schema: {
2926
2853
  name: string;
2927
2854
  description?: string | undefined;
2928
- schema?: string | Record<string, unknown> | undefined;
2929
2855
  strict?: boolean | null | undefined;
2856
+ schema?: string | Record<string, unknown> | undefined;
2930
2857
  };
2931
2858
  }>, z.ZodObject<{
2932
2859
  type: z.ZodLiteral<"text">;
@@ -2989,29 +2916,29 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
2989
2916
  }, "strip", z.ZodTypeAny, {
2990
2917
  name: string;
2991
2918
  description?: string | undefined;
2992
- schema?: string | Record<string, unknown> | undefined;
2993
2919
  strict?: boolean | null | undefined;
2920
+ schema?: string | Record<string, unknown> | undefined;
2994
2921
  }, {
2995
2922
  name: string;
2996
2923
  description?: string | undefined;
2997
- schema?: string | Record<string, unknown> | undefined;
2998
2924
  strict?: boolean | null | undefined;
2925
+ schema?: string | Record<string, unknown> | undefined;
2999
2926
  }>;
3000
2927
  }, "strip", z.ZodTypeAny, {
3001
2928
  type: "json_schema";
3002
2929
  json_schema: {
3003
2930
  name: string;
3004
2931
  description?: string | undefined;
3005
- schema?: string | Record<string, unknown> | undefined;
3006
2932
  strict?: boolean | null | undefined;
2933
+ schema?: string | Record<string, unknown> | undefined;
3007
2934
  };
3008
2935
  }, {
3009
2936
  type: "json_schema";
3010
2937
  json_schema: {
3011
2938
  name: string;
3012
2939
  description?: string | undefined;
3013
- schema?: string | Record<string, unknown> | undefined;
3014
2940
  strict?: boolean | null | undefined;
2941
+ schema?: string | Record<string, unknown> | undefined;
3015
2942
  };
3016
2943
  }>, z.ZodObject<{
3017
2944
  type: z.ZodLiteral<"text">;
@@ -3137,29 +3064,29 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
3137
3064
  }, "strip", z.ZodTypeAny, {
3138
3065
  name: string;
3139
3066
  description?: string | undefined;
3140
- schema?: string | Record<string, unknown> | undefined;
3141
3067
  strict?: boolean | null | undefined;
3068
+ schema?: string | Record<string, unknown> | undefined;
3142
3069
  }, {
3143
3070
  name: string;
3144
3071
  description?: string | undefined;
3145
- schema?: string | Record<string, unknown> | undefined;
3146
3072
  strict?: boolean | null | undefined;
3073
+ schema?: string | Record<string, unknown> | undefined;
3147
3074
  }>;
3148
3075
  }, "strip", z.ZodTypeAny, {
3149
3076
  type: "json_schema";
3150
3077
  json_schema: {
3151
3078
  name: string;
3152
3079
  description?: string | undefined;
3153
- schema?: string | Record<string, unknown> | undefined;
3154
3080
  strict?: boolean | null | undefined;
3081
+ schema?: string | Record<string, unknown> | undefined;
3155
3082
  };
3156
3083
  }, {
3157
3084
  type: "json_schema";
3158
3085
  json_schema: {
3159
3086
  name: string;
3160
3087
  description?: string | undefined;
3161
- schema?: string | Record<string, unknown> | undefined;
3162
3088
  strict?: boolean | null | undefined;
3089
+ schema?: string | Record<string, unknown> | undefined;
3163
3090
  };
3164
3091
  }>, z.ZodObject<{
3165
3092
  type: z.ZodLiteral<"text">;
@@ -3245,29 +3172,29 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
3245
3172
  }, "strip", z.ZodTypeAny, {
3246
3173
  name: string;
3247
3174
  description?: string | undefined;
3248
- schema?: string | Record<string, unknown> | undefined;
3249
3175
  strict?: boolean | null | undefined;
3176
+ schema?: string | Record<string, unknown> | undefined;
3250
3177
  }, {
3251
3178
  name: string;
3252
3179
  description?: string | undefined;
3253
- schema?: string | Record<string, unknown> | undefined;
3254
3180
  strict?: boolean | null | undefined;
3181
+ schema?: string | Record<string, unknown> | undefined;
3255
3182
  }>;
3256
3183
  }, "strip", z.ZodTypeAny, {
3257
3184
  type: "json_schema";
3258
3185
  json_schema: {
3259
3186
  name: string;
3260
3187
  description?: string | undefined;
3261
- schema?: string | Record<string, unknown> | undefined;
3262
3188
  strict?: boolean | null | undefined;
3189
+ schema?: string | Record<string, unknown> | undefined;
3263
3190
  };
3264
3191
  }, {
3265
3192
  type: "json_schema";
3266
3193
  json_schema: {
3267
3194
  name: string;
3268
3195
  description?: string | undefined;
3269
- schema?: string | Record<string, unknown> | undefined;
3270
3196
  strict?: boolean | null | undefined;
3197
+ schema?: string | Record<string, unknown> | undefined;
3271
3198
  };
3272
3199
  }>, z.ZodObject<{
3273
3200
  type: z.ZodLiteral<"text">;
@@ -3338,28 +3265,28 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
3338
3265
  }, "strip", z.ZodTypeAny, {
3339
3266
  name: string;
3340
3267
  description?: string | undefined;
3341
- parameters?: Record<string, unknown> | undefined;
3342
3268
  strict?: boolean | null | undefined;
3269
+ parameters?: Record<string, unknown> | undefined;
3343
3270
  }, {
3344
3271
  name: string;
3345
3272
  description?: string | undefined;
3346
- parameters?: Record<string, unknown> | undefined;
3347
3273
  strict?: boolean | null | undefined;
3274
+ parameters?: Record<string, unknown> | undefined;
3348
3275
  }>;
3349
3276
  }, "strip", z.ZodTypeAny, {
3350
3277
  function: {
3351
3278
  name: string;
3352
3279
  description?: string | undefined;
3353
- parameters?: Record<string, unknown> | undefined;
3354
3280
  strict?: boolean | null | undefined;
3281
+ parameters?: Record<string, unknown> | undefined;
3355
3282
  };
3356
3283
  type: "function";
3357
3284
  }, {
3358
3285
  function: {
3359
3286
  name: string;
3360
3287
  description?: string | undefined;
3361
- parameters?: Record<string, unknown> | undefined;
3362
3288
  strict?: boolean | null | undefined;
3289
+ parameters?: Record<string, unknown> | undefined;
3363
3290
  };
3364
3291
  type: "function";
3365
3292
  }>, "many">>;
@@ -3368,8 +3295,8 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
3368
3295
  function: {
3369
3296
  name: string;
3370
3297
  description?: string | undefined;
3371
- parameters?: Record<string, unknown> | undefined;
3372
3298
  strict?: boolean | null | undefined;
3299
+ parameters?: Record<string, unknown> | undefined;
3373
3300
  };
3374
3301
  type: "function";
3375
3302
  }[] | undefined;
@@ -3378,8 +3305,8 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
3378
3305
  function: {
3379
3306
  name: string;
3380
3307
  description?: string | undefined;
3381
- parameters?: Record<string, unknown> | undefined;
3382
3308
  strict?: boolean | null | undefined;
3309
+ parameters?: Record<string, unknown> | undefined;
3383
3310
  };
3384
3311
  type: "function";
3385
3312
  }[] | undefined;
@@ -3391,23 +3318,17 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
3391
3318
  prompt: string;
3392
3319
  } | {
3393
3320
  messages: ({
3394
- content: (string | {
3395
- type: "text";
3396
- text: string;
3397
- cache_control?: {
3398
- type: "ephemeral";
3399
- } | undefined;
3400
- }[]) & (string | {
3321
+ content: string | {
3401
3322
  type: "text";
3402
3323
  text: string;
3403
3324
  cache_control?: {
3404
3325
  type: "ephemeral";
3405
3326
  } | undefined;
3406
- }[] | undefined);
3327
+ }[];
3407
3328
  role: "system";
3408
3329
  name?: string | undefined;
3409
3330
  } | {
3410
- content: (string | ({
3331
+ content: string | ({
3411
3332
  type: "text";
3412
3333
  text: string;
3413
3334
  cache_control?: {
@@ -3419,23 +3340,12 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
3419
3340
  url: string;
3420
3341
  detail?: "auto" | "low" | "high" | undefined;
3421
3342
  };
3422
- })[]) & (string | ({
3423
- type: "text";
3424
- text: string;
3425
- cache_control?: {
3426
- type: "ephemeral";
3427
- } | undefined;
3428
- } | {
3429
- type: "image_url";
3430
- image_url: {
3431
- url: string;
3432
- detail?: "auto" | "low" | "high" | undefined;
3433
- };
3434
- })[] | undefined);
3343
+ })[];
3435
3344
  role: "user";
3436
3345
  name?: string | undefined;
3437
3346
  } | {
3438
3347
  role: "assistant";
3348
+ name?: string | undefined;
3439
3349
  content?: string | {
3440
3350
  type: "text";
3441
3351
  text: string;
@@ -3447,7 +3357,6 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
3447
3357
  name: string;
3448
3358
  arguments: string;
3449
3359
  } | undefined;
3450
- name?: string | undefined;
3451
3360
  tool_calls?: {
3452
3361
  function: {
3453
3362
  name: string;
@@ -3457,23 +3366,17 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
3457
3366
  id: string;
3458
3367
  }[] | undefined;
3459
3368
  reasoning?: {
3460
- id?: string | undefined;
3461
3369
  content?: string | undefined;
3370
+ id?: string | undefined;
3462
3371
  }[] | undefined;
3463
3372
  } | {
3464
- content: (string | {
3465
- type: "text";
3466
- text: string;
3467
- cache_control?: {
3468
- type: "ephemeral";
3469
- } | undefined;
3470
- }[]) & (string | {
3373
+ content: string | {
3471
3374
  type: "text";
3472
3375
  text: string;
3473
3376
  cache_control?: {
3474
3377
  type: "ephemeral";
3475
3378
  } | undefined;
3476
- }[] | undefined);
3379
+ }[];
3477
3380
  role: "tool";
3478
3381
  tool_call_id: string;
3479
3382
  } | {
@@ -3510,29 +3413,29 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
3510
3413
  }, "strip", z.ZodTypeAny, {
3511
3414
  name: string;
3512
3415
  description?: string | undefined;
3513
- schema?: string | Record<string, unknown> | undefined;
3514
3416
  strict?: boolean | null | undefined;
3417
+ schema?: string | Record<string, unknown> | undefined;
3515
3418
  }, {
3516
3419
  name: string;
3517
3420
  description?: string | undefined;
3518
- schema?: string | Record<string, unknown> | undefined;
3519
3421
  strict?: boolean | null | undefined;
3422
+ schema?: string | Record<string, unknown> | undefined;
3520
3423
  }>;
3521
3424
  }, "strip", z.ZodTypeAny, {
3522
3425
  type: "json_schema";
3523
3426
  json_schema: {
3524
3427
  name: string;
3525
3428
  description?: string | undefined;
3526
- schema?: string | Record<string, unknown> | undefined;
3527
3429
  strict?: boolean | null | undefined;
3430
+ schema?: string | Record<string, unknown> | undefined;
3528
3431
  };
3529
3432
  }, {
3530
3433
  type: "json_schema";
3531
3434
  json_schema: {
3532
3435
  name: string;
3533
3436
  description?: string | undefined;
3534
- schema?: string | Record<string, unknown> | undefined;
3535
3437
  strict?: boolean | null | undefined;
3438
+ schema?: string | Record<string, unknown> | undefined;
3536
3439
  };
3537
3440
  }>, z.ZodObject<{
3538
3441
  type: z.ZodLiteral<"text">;
@@ -3597,8 +3500,8 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
3597
3500
  function: {
3598
3501
  name: string;
3599
3502
  description?: string | undefined;
3600
- parameters?: Record<string, unknown> | undefined;
3601
3503
  strict?: boolean | null | undefined;
3504
+ parameters?: Record<string, unknown> | undefined;
3602
3505
  };
3603
3506
  type: "function";
3604
3507
  }[] | undefined;
@@ -3611,6 +3514,7 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
3611
3514
  } | {
3612
3515
  messages: ({
3613
3516
  role: "system";
3517
+ name?: string | undefined;
3614
3518
  content?: string | {
3615
3519
  type: "text";
3616
3520
  text?: string | undefined;
@@ -3618,9 +3522,9 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
3618
3522
  type: "ephemeral";
3619
3523
  } | undefined;
3620
3524
  }[] | undefined;
3621
- name?: string | undefined;
3622
3525
  } | {
3623
3526
  role: "user";
3527
+ name?: string | undefined;
3624
3528
  content?: string | ({
3625
3529
  type: "text";
3626
3530
  text?: string | undefined;
@@ -3630,13 +3534,13 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
3630
3534
  } | {
3631
3535
  type: "image_url";
3632
3536
  image_url: {
3633
- url: string;
3537
+ url?: unknown;
3634
3538
  detail?: "auto" | "low" | "high" | undefined;
3635
3539
  };
3636
3540
  })[] | undefined;
3637
- name?: string | undefined;
3638
3541
  } | {
3639
3542
  role: "assistant";
3543
+ name?: string | null | undefined;
3640
3544
  content?: string | {
3641
3545
  type: "text";
3642
3546
  text?: string | undefined;
@@ -3648,7 +3552,6 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
3648
3552
  name: string;
3649
3553
  arguments: string;
3650
3554
  } | null | undefined;
3651
- name?: string | null | undefined;
3652
3555
  tool_calls?: {
3653
3556
  function: {
3654
3557
  name: string;
@@ -3658,8 +3561,8 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
3658
3561
  id: string;
3659
3562
  }[] | null | undefined;
3660
3563
  reasoning?: {
3661
- id?: string | null | undefined;
3662
3564
  content?: string | null | undefined;
3565
+ id?: string | null | undefined;
3663
3566
  }[] | null | undefined;
3664
3567
  } | {
3665
3568
  role: "tool";
@@ -3705,29 +3608,29 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
3705
3608
  }, "strip", z.ZodTypeAny, {
3706
3609
  name: string;
3707
3610
  description?: string | undefined;
3708
- schema?: string | Record<string, unknown> | undefined;
3709
3611
  strict?: boolean | null | undefined;
3612
+ schema?: string | Record<string, unknown> | undefined;
3710
3613
  }, {
3711
3614
  name: string;
3712
3615
  description?: string | undefined;
3713
- schema?: string | Record<string, unknown> | undefined;
3714
3616
  strict?: boolean | null | undefined;
3617
+ schema?: string | Record<string, unknown> | undefined;
3715
3618
  }>;
3716
3619
  }, "strip", z.ZodTypeAny, {
3717
3620
  type: "json_schema";
3718
3621
  json_schema: {
3719
3622
  name: string;
3720
3623
  description?: string | undefined;
3721
- schema?: string | Record<string, unknown> | undefined;
3722
3624
  strict?: boolean | null | undefined;
3625
+ schema?: string | Record<string, unknown> | undefined;
3723
3626
  };
3724
3627
  }, {
3725
3628
  type: "json_schema";
3726
3629
  json_schema: {
3727
3630
  name: string;
3728
3631
  description?: string | undefined;
3729
- schema?: string | Record<string, unknown> | undefined;
3730
3632
  strict?: boolean | null | undefined;
3633
+ schema?: string | Record<string, unknown> | undefined;
3731
3634
  };
3732
3635
  }>, z.ZodObject<{
3733
3636
  type: z.ZodLiteral<"text">;
@@ -3792,8 +3695,8 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
3792
3695
  function: {
3793
3696
  name: string;
3794
3697
  description?: string | undefined;
3795
- parameters?: Record<string, unknown> | undefined;
3796
3698
  strict?: boolean | null | undefined;
3699
+ parameters?: Record<string, unknown> | undefined;
3797
3700
  };
3798
3701
  type: "function";
3799
3702
  }[] | undefined;