langwatch 0.18.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-MJE7G2BM.js → add-OYRTMKQO.js} +8 -8
- package/dist/{add-MJE7G2BM.js.map → add-OYRTMKQO.js.map} +1 -1
- package/dist/{add-5RVW7RGD.mjs → add-WLIE6XEG.mjs} +5 -5
- package/dist/{chunk-EHWKVO46.js → chunk-22J3GPSB.js} +10 -10
- package/dist/{chunk-EHWKVO46.js.map → chunk-22J3GPSB.js.map} +1 -1
- package/dist/{chunk-RPCEDRSR.js → chunk-44V235QR.js} +2 -2
- package/dist/{chunk-RPCEDRSR.js.map → chunk-44V235QR.js.map} +1 -1
- package/dist/{chunk-3NPLA2MU.mjs → chunk-CCDYGS72.mjs} +2 -2
- package/dist/{chunk-AXCVJYSK.mjs → chunk-CIMNUH6E.mjs} +2 -2
- package/dist/{chunk-WQ7AKXY7.mjs → chunk-DCKVBP6R.mjs} +2 -2
- package/dist/{chunk-WQ7AKXY7.mjs.map → chunk-DCKVBP6R.mjs.map} +1 -1
- package/dist/{chunk-NKGYK3B7.mjs → chunk-HYPS247A.mjs} +3 -3
- package/dist/{chunk-DKEWJFMO.js → chunk-HZAW7WTJ.js} +14 -14
- package/dist/{chunk-DKEWJFMO.js.map → chunk-HZAW7WTJ.js.map} +1 -1
- package/dist/{chunk-XEYCRZ64.js → chunk-IJWZY7FY.js} +4 -4
- package/dist/{chunk-XEYCRZ64.js.map → chunk-IJWZY7FY.js.map} +1 -1
- package/dist/{chunk-KIFN3ONO.js → chunk-JSD3JAHK.js} +11 -11
- package/dist/{chunk-KIFN3ONO.js.map → chunk-JSD3JAHK.js.map} +1 -1
- package/dist/{chunk-WAHZXF7I.mjs → chunk-L5Z7F7MG.mjs} +23 -12
- package/dist/chunk-L5Z7F7MG.mjs.map +1 -0
- package/dist/{chunk-WSSWTQIB.mjs → chunk-MPOVGCVD.mjs} +2 -2
- package/dist/{chunk-MRQNP55T.mjs → chunk-QD7BOTQC.mjs} +3 -3
- package/dist/{chunk-SAEA37H5.js → chunk-SPEPSXKI.js} +4 -4
- package/dist/{chunk-SAEA37H5.js.map → chunk-SPEPSXKI.js.map} +1 -1
- package/dist/{chunk-ODBP2KFB.js → chunk-VCC7F6B7.js} +23 -12
- package/dist/chunk-VCC7F6B7.js.map +1 -0
- package/dist/cli/index.js +8 -8
- package/dist/cli/index.mjs +8 -8
- package/dist/{implementation--OaaaMLb.d.ts → implementation-8fGNr_Mq.d.ts} +1 -1
- package/dist/{implementation-CoqzgwCU.d.mts → implementation-DPQ9ez-J.d.mts} +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +18 -18
- package/dist/index.mjs +5 -5
- package/dist/{list-IGP275AO.mjs → list-LZTSDYZO.mjs} +5 -5
- package/dist/{list-QMPURSWH.js → list-TVCERIYC.js} +8 -8
- package/dist/{list-QMPURSWH.js.map → list-TVCERIYC.js.map} +1 -1
- package/dist/{login-ZKVIVJC6.js → login-2SBOQ62B.js} +3 -3
- package/dist/{login-ZKVIVJC6.js.map → login-2SBOQ62B.js.map} +1 -1
- package/dist/{login-EBPGM5GC.mjs → login-IC7I2IMY.mjs} +2 -2
- package/dist/observability-sdk/index.d.mts +3 -3
- package/dist/observability-sdk/index.d.ts +3 -3
- package/dist/observability-sdk/index.js +4 -4
- package/dist/observability-sdk/index.mjs +3 -3
- package/dist/observability-sdk/instrumentation/langchain/index.d.mts +1 -1
- package/dist/observability-sdk/instrumentation/langchain/index.d.ts +1 -1
- package/dist/observability-sdk/instrumentation/langchain/index.js +3 -3
- package/dist/observability-sdk/instrumentation/langchain/index.mjs +1 -1
- package/dist/observability-sdk/setup/node/index.js +4 -4
- package/dist/observability-sdk/setup/node/index.mjs +3 -3
- package/dist/{pull-3NWDN7CX.mjs → pull-KXRSK5HG.mjs} +6 -6
- package/dist/pull-UFR3NBC7.js +20 -0
- package/dist/{pull-22TPEMFM.js.map → pull-UFR3NBC7.js.map} +1 -1
- package/dist/push-73ABYK6C.js +20 -0
- package/dist/{push-7WZUQYC3.js.map → push-73ABYK6C.js.map} +1 -1
- package/dist/{push-3CMG3MTX.mjs → push-KFRI5YNG.mjs} +6 -6
- package/dist/{remove-HPZGTSOK.js → remove-AIXQHYLS.js} +7 -7
- package/dist/{remove-HPZGTSOK.js.map → remove-AIXQHYLS.js.map} +1 -1
- package/dist/{remove-QJJWZ2ZA.mjs → remove-P3V4V2YO.mjs} +5 -5
- package/dist/{sync-BNPR6W4G.mjs → sync-53MALFUS.mjs} +7 -7
- package/dist/{sync-67UMHLSY.js → sync-KQW7FUGI.js} +11 -11
- package/dist/{sync-67UMHLSY.js.map → sync-KQW7FUGI.js.map} +1 -1
- package/dist/{types-DWVQcIaM.d.mts → types-CoHIwxng.d.mts} +360 -43
- package/dist/{types-AByjs5T0.d.ts → types-DQiByKdr.d.ts} +360 -43
- package/package.json +1 -1
- package/dist/chunk-ODBP2KFB.js.map +0 -1
- package/dist/chunk-WAHZXF7I.mjs.map +0 -1
- package/dist/pull-22TPEMFM.js +0 -20
- package/dist/push-7WZUQYC3.js +0 -20
- /package/dist/{add-5RVW7RGD.mjs.map → add-WLIE6XEG.mjs.map} +0 -0
- /package/dist/{chunk-3NPLA2MU.mjs.map → chunk-CCDYGS72.mjs.map} +0 -0
- /package/dist/{chunk-AXCVJYSK.mjs.map → chunk-CIMNUH6E.mjs.map} +0 -0
- /package/dist/{chunk-NKGYK3B7.mjs.map → chunk-HYPS247A.mjs.map} +0 -0
- /package/dist/{chunk-WSSWTQIB.mjs.map → chunk-MPOVGCVD.mjs.map} +0 -0
- /package/dist/{chunk-MRQNP55T.mjs.map → chunk-QD7BOTQC.mjs.map} +0 -0
- /package/dist/{list-IGP275AO.mjs.map → list-LZTSDYZO.mjs.map} +0 -0
- /package/dist/{login-EBPGM5GC.mjs.map → login-IC7I2IMY.mjs.map} +0 -0
- /package/dist/{pull-3NWDN7CX.mjs.map → pull-KXRSK5HG.mjs.map} +0 -0
- /package/dist/{push-3CMG3MTX.mjs.map → push-KFRI5YNG.mjs.map} +0 -0
- /package/dist/{remove-QJJWZ2ZA.mjs.map → remove-P3V4V2YO.mjs.map} +0 -0
- /package/dist/{sync-BNPR6W4G.mjs.map → sync-53MALFUS.mjs.map} +0 -0
|
@@ -979,6 +979,56 @@ interface paths {
|
|
|
979
979
|
patch?: never;
|
|
980
980
|
trace?: never;
|
|
981
981
|
};
|
|
982
|
+
"/api/evaluators/{id}": {
|
|
983
|
+
parameters: {
|
|
984
|
+
query?: never;
|
|
985
|
+
header?: never;
|
|
986
|
+
path?: never;
|
|
987
|
+
cookie?: never;
|
|
988
|
+
};
|
|
989
|
+
get?: never;
|
|
990
|
+
/** @description Update an existing evaluator */
|
|
991
|
+
put: operations["putApiEvaluatorsById"];
|
|
992
|
+
post?: never;
|
|
993
|
+
/** @description Archive (soft-delete) an evaluator */
|
|
994
|
+
delete: operations["deleteApiEvaluatorsById"];
|
|
995
|
+
options?: never;
|
|
996
|
+
head?: never;
|
|
997
|
+
patch?: never;
|
|
998
|
+
trace?: never;
|
|
999
|
+
};
|
|
1000
|
+
"/api/scenarios": {
|
|
1001
|
+
parameters: {
|
|
1002
|
+
query?: never;
|
|
1003
|
+
header?: never;
|
|
1004
|
+
path?: never;
|
|
1005
|
+
cookie?: never;
|
|
1006
|
+
};
|
|
1007
|
+
get?: never;
|
|
1008
|
+
put?: never;
|
|
1009
|
+
post: operations["postApiScenarios"];
|
|
1010
|
+
delete?: never;
|
|
1011
|
+
options?: never;
|
|
1012
|
+
head?: never;
|
|
1013
|
+
patch?: never;
|
|
1014
|
+
trace?: never;
|
|
1015
|
+
};
|
|
1016
|
+
"/api/scenarios/{id}": {
|
|
1017
|
+
parameters: {
|
|
1018
|
+
query?: never;
|
|
1019
|
+
header?: never;
|
|
1020
|
+
path?: never;
|
|
1021
|
+
cookie?: never;
|
|
1022
|
+
};
|
|
1023
|
+
get?: never;
|
|
1024
|
+
put: operations["putApiScenariosById"];
|
|
1025
|
+
post?: never;
|
|
1026
|
+
delete?: never;
|
|
1027
|
+
options?: never;
|
|
1028
|
+
head?: never;
|
|
1029
|
+
patch?: never;
|
|
1030
|
+
trace?: never;
|
|
1031
|
+
};
|
|
982
1032
|
}
|
|
983
1033
|
interface components {
|
|
984
1034
|
schemas: {
|
|
@@ -1045,7 +1095,6 @@ interface components {
|
|
|
1045
1095
|
};
|
|
1046
1096
|
Input: {
|
|
1047
1097
|
value?: string;
|
|
1048
|
-
satisfaction_score?: number;
|
|
1049
1098
|
};
|
|
1050
1099
|
Output: {
|
|
1051
1100
|
value?: string;
|
|
@@ -1150,7 +1199,7 @@ interface operations {
|
|
|
1150
1199
|
inputs: {
|
|
1151
1200
|
identifier: string;
|
|
1152
1201
|
/** @enum {string} */
|
|
1153
|
-
type: "str" | "float" | "bool" | "image" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict";
|
|
1202
|
+
type: "str" | "float" | "bool" | "image" | "list" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict" | "chat_messages";
|
|
1154
1203
|
}[];
|
|
1155
1204
|
outputs: {
|
|
1156
1205
|
identifier: string;
|
|
@@ -1202,7 +1251,9 @@ interface operations {
|
|
|
1202
1251
|
type: "json_schema";
|
|
1203
1252
|
json_schema: {
|
|
1204
1253
|
name: string;
|
|
1205
|
-
schema:
|
|
1254
|
+
schema: {
|
|
1255
|
+
[key: string]: unknown;
|
|
1256
|
+
};
|
|
1206
1257
|
} | null;
|
|
1207
1258
|
};
|
|
1208
1259
|
};
|
|
@@ -1296,7 +1347,7 @@ interface operations {
|
|
|
1296
1347
|
inputs?: {
|
|
1297
1348
|
identifier: string;
|
|
1298
1349
|
/** @enum {string} */
|
|
1299
|
-
type: "str" | "float" | "bool" | "image" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict";
|
|
1350
|
+
type: "str" | "float" | "bool" | "image" | "list" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict" | "chat_messages";
|
|
1300
1351
|
}[];
|
|
1301
1352
|
outputs?: {
|
|
1302
1353
|
identifier: string;
|
|
@@ -1348,7 +1399,7 @@ interface operations {
|
|
|
1348
1399
|
inputs: {
|
|
1349
1400
|
identifier: string;
|
|
1350
1401
|
/** @enum {string} */
|
|
1351
|
-
type: "str" | "float" | "bool" | "image" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict";
|
|
1402
|
+
type: "str" | "float" | "bool" | "image" | "list" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict" | "chat_messages";
|
|
1352
1403
|
}[];
|
|
1353
1404
|
outputs: {
|
|
1354
1405
|
identifier: string;
|
|
@@ -1400,7 +1451,9 @@ interface operations {
|
|
|
1400
1451
|
type: "json_schema";
|
|
1401
1452
|
json_schema: {
|
|
1402
1453
|
name: string;
|
|
1403
|
-
schema:
|
|
1454
|
+
schema: {
|
|
1455
|
+
[key: string]: unknown;
|
|
1456
|
+
};
|
|
1404
1457
|
} | null;
|
|
1405
1458
|
};
|
|
1406
1459
|
};
|
|
@@ -1606,7 +1659,7 @@ interface operations {
|
|
|
1606
1659
|
inputs: {
|
|
1607
1660
|
identifier: string;
|
|
1608
1661
|
/** @enum {string} */
|
|
1609
|
-
type: "str" | "float" | "bool" | "image" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict";
|
|
1662
|
+
type: "str" | "float" | "bool" | "image" | "list" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict" | "chat_messages";
|
|
1610
1663
|
}[];
|
|
1611
1664
|
outputs: {
|
|
1612
1665
|
identifier: string;
|
|
@@ -1658,7 +1711,9 @@ interface operations {
|
|
|
1658
1711
|
type: "json_schema";
|
|
1659
1712
|
json_schema: {
|
|
1660
1713
|
name: string;
|
|
1661
|
-
schema:
|
|
1714
|
+
schema: {
|
|
1715
|
+
[key: string]: unknown;
|
|
1716
|
+
};
|
|
1662
1717
|
} | null;
|
|
1663
1718
|
};
|
|
1664
1719
|
}[];
|
|
@@ -1750,7 +1805,7 @@ interface operations {
|
|
|
1750
1805
|
inputs?: {
|
|
1751
1806
|
identifier: string;
|
|
1752
1807
|
/** @enum {string} */
|
|
1753
|
-
type: "str" | "float" | "bool" | "image" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict";
|
|
1808
|
+
type: "str" | "float" | "bool" | "image" | "list" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict" | "chat_messages";
|
|
1754
1809
|
}[];
|
|
1755
1810
|
outputs: {
|
|
1756
1811
|
identifier: string;
|
|
@@ -1814,7 +1869,9 @@ interface operations {
|
|
|
1814
1869
|
type: "json_schema";
|
|
1815
1870
|
json_schema: {
|
|
1816
1871
|
name: string;
|
|
1817
|
-
schema:
|
|
1872
|
+
schema: {
|
|
1873
|
+
[key: string]: unknown;
|
|
1874
|
+
};
|
|
1818
1875
|
} | null;
|
|
1819
1876
|
};
|
|
1820
1877
|
};
|
|
@@ -1858,7 +1915,7 @@ interface operations {
|
|
|
1858
1915
|
inputs: {
|
|
1859
1916
|
identifier: string;
|
|
1860
1917
|
/** @enum {string} */
|
|
1861
|
-
type: "str" | "float" | "bool" | "image" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict";
|
|
1918
|
+
type: "str" | "float" | "bool" | "image" | "list" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict" | "chat_messages";
|
|
1862
1919
|
}[];
|
|
1863
1920
|
outputs: {
|
|
1864
1921
|
identifier: string;
|
|
@@ -1910,7 +1967,9 @@ interface operations {
|
|
|
1910
1967
|
type: "json_schema";
|
|
1911
1968
|
json_schema: {
|
|
1912
1969
|
name: string;
|
|
1913
|
-
schema:
|
|
1970
|
+
schema: {
|
|
1971
|
+
[key: string]: unknown;
|
|
1972
|
+
};
|
|
1914
1973
|
} | null;
|
|
1915
1974
|
};
|
|
1916
1975
|
};
|
|
@@ -1930,7 +1989,7 @@ interface operations {
|
|
|
1930
1989
|
inputs: {
|
|
1931
1990
|
identifier: string;
|
|
1932
1991
|
/** @enum {string} */
|
|
1933
|
-
type: "str" | "float" | "bool" | "image" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict";
|
|
1992
|
+
type: "str" | "float" | "bool" | "image" | "list" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict" | "chat_messages";
|
|
1934
1993
|
}[];
|
|
1935
1994
|
outputs: {
|
|
1936
1995
|
identifier: string;
|
|
@@ -1994,7 +2053,9 @@ interface operations {
|
|
|
1994
2053
|
type: "json_schema";
|
|
1995
2054
|
json_schema: {
|
|
1996
2055
|
name: string;
|
|
1997
|
-
schema:
|
|
2056
|
+
schema: {
|
|
2057
|
+
[key: string]: unknown;
|
|
2058
|
+
};
|
|
1998
2059
|
} | null;
|
|
1999
2060
|
};
|
|
2000
2061
|
};
|
|
@@ -2201,7 +2262,7 @@ interface operations {
|
|
|
2201
2262
|
inputs: {
|
|
2202
2263
|
identifier: string;
|
|
2203
2264
|
/** @enum {string} */
|
|
2204
|
-
type: "str" | "float" | "bool" | "image" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict";
|
|
2265
|
+
type: "str" | "float" | "bool" | "image" | "list" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict" | "chat_messages";
|
|
2205
2266
|
}[];
|
|
2206
2267
|
outputs: {
|
|
2207
2268
|
identifier: string;
|
|
@@ -2253,7 +2314,9 @@ interface operations {
|
|
|
2253
2314
|
type: "json_schema";
|
|
2254
2315
|
json_schema: {
|
|
2255
2316
|
name: string;
|
|
2256
|
-
schema:
|
|
2317
|
+
schema: {
|
|
2318
|
+
[key: string]: unknown;
|
|
2319
|
+
};
|
|
2257
2320
|
} | null;
|
|
2258
2321
|
};
|
|
2259
2322
|
}[];
|
|
@@ -2339,7 +2402,7 @@ interface operations {
|
|
|
2339
2402
|
inputs?: {
|
|
2340
2403
|
identifier: string;
|
|
2341
2404
|
/** @enum {string} */
|
|
2342
|
-
type: "str" | "float" | "bool" | "image" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict";
|
|
2405
|
+
type: "str" | "float" | "bool" | "image" | "list" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict" | "chat_messages";
|
|
2343
2406
|
}[];
|
|
2344
2407
|
outputs?: {
|
|
2345
2408
|
identifier: string;
|
|
@@ -2388,7 +2451,7 @@ interface operations {
|
|
|
2388
2451
|
inputs: {
|
|
2389
2452
|
identifier: string;
|
|
2390
2453
|
/** @enum {string} */
|
|
2391
|
-
type: "str" | "float" | "bool" | "image" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict";
|
|
2454
|
+
type: "str" | "float" | "bool" | "image" | "list" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict" | "chat_messages";
|
|
2392
2455
|
}[];
|
|
2393
2456
|
outputs: {
|
|
2394
2457
|
identifier: string;
|
|
@@ -2440,7 +2503,9 @@ interface operations {
|
|
|
2440
2503
|
type: "json_schema";
|
|
2441
2504
|
json_schema: {
|
|
2442
2505
|
name: string;
|
|
2443
|
-
schema:
|
|
2506
|
+
schema: {
|
|
2507
|
+
[key: string]: unknown;
|
|
2508
|
+
};
|
|
2444
2509
|
} | null;
|
|
2445
2510
|
};
|
|
2446
2511
|
};
|
|
@@ -2530,6 +2595,14 @@ interface operations {
|
|
|
2530
2595
|
metadata: {
|
|
2531
2596
|
name?: string;
|
|
2532
2597
|
description?: string;
|
|
2598
|
+
langwatch?: {
|
|
2599
|
+
targetReferenceId: string;
|
|
2600
|
+
/** @enum {string} */
|
|
2601
|
+
targetType: "prompt" | "http" | "code";
|
|
2602
|
+
simulationSuiteId?: string;
|
|
2603
|
+
};
|
|
2604
|
+
} & {
|
|
2605
|
+
[key: string]: unknown;
|
|
2533
2606
|
};
|
|
2534
2607
|
} | {
|
|
2535
2608
|
/** @constant */
|
|
@@ -2542,7 +2615,7 @@ interface operations {
|
|
|
2542
2615
|
/** @default default */
|
|
2543
2616
|
scenarioSetId?: string;
|
|
2544
2617
|
/** @enum {string} */
|
|
2545
|
-
status: "SUCCESS" | "ERROR" | "CANCELLED" | "IN_PROGRESS" | "PENDING" | "FAILED";
|
|
2618
|
+
status: "SUCCESS" | "ERROR" | "CANCELLED" | "IN_PROGRESS" | "PENDING" | "FAILED" | "STALLED" | "QUEUED" | "RUNNING";
|
|
2546
2619
|
results?: {
|
|
2547
2620
|
/** @enum {string} */
|
|
2548
2621
|
verdict: "success" | "failure" | "inconclusive";
|
|
@@ -3217,6 +3290,13 @@ interface operations {
|
|
|
3217
3290
|
[key: string]: string[];
|
|
3218
3291
|
};
|
|
3219
3292
|
};
|
|
3293
|
+
"traces.origin"?: string[] | {
|
|
3294
|
+
[key: string]: string[];
|
|
3295
|
+
} | {
|
|
3296
|
+
[key: string]: {
|
|
3297
|
+
[key: string]: string[];
|
|
3298
|
+
};
|
|
3299
|
+
};
|
|
3220
3300
|
"traces.error"?: string[] | {
|
|
3221
3301
|
[key: string]: string[];
|
|
3222
3302
|
} | {
|
|
@@ -3315,19 +3395,12 @@ interface operations {
|
|
|
3315
3395
|
[key: string]: string[];
|
|
3316
3396
|
};
|
|
3317
3397
|
};
|
|
3318
|
-
"sentiment.input_sentiment"?: string[] | {
|
|
3319
|
-
[key: string]: string[];
|
|
3320
|
-
} | {
|
|
3321
|
-
[key: string]: {
|
|
3322
|
-
[key: string]: string[];
|
|
3323
|
-
};
|
|
3324
|
-
};
|
|
3325
3398
|
};
|
|
3326
3399
|
traceIds?: string[];
|
|
3327
3400
|
negateFilters?: boolean;
|
|
3328
3401
|
series: {
|
|
3329
3402
|
/** @enum {string} */
|
|
3330
|
-
metric: "metadata.trace_id" | "metadata.user_id" | "metadata.thread_id" | "metadata.span_type" | "sentiment.
|
|
3403
|
+
metric: "metadata.trace_id" | "metadata.user_id" | "metadata.thread_id" | "metadata.span_type" | "sentiment.thumbs_up_down" | "performance.completion_time" | "performance.first_token" | "performance.total_cost" | "performance.prompt_tokens" | "performance.completion_tokens" | "performance.total_tokens" | "performance.tokens_per_second" | "events.event_type" | "events.event_score" | "events.event_details" | "evaluations.evaluation_score" | "evaluations.evaluation_pass_rate" | "evaluations.evaluation_runs" | "threads.average_duration_per_thread";
|
|
3331
3404
|
key?: string;
|
|
3332
3405
|
subkey?: string;
|
|
3333
3406
|
/** @enum {string} */
|
|
@@ -3402,6 +3475,13 @@ interface operations {
|
|
|
3402
3475
|
[key: string]: string[];
|
|
3403
3476
|
};
|
|
3404
3477
|
};
|
|
3478
|
+
"traces.origin"?: string[] | {
|
|
3479
|
+
[key: string]: string[];
|
|
3480
|
+
} | {
|
|
3481
|
+
[key: string]: {
|
|
3482
|
+
[key: string]: string[];
|
|
3483
|
+
};
|
|
3484
|
+
};
|
|
3405
3485
|
"traces.error"?: string[] | {
|
|
3406
3486
|
[key: string]: string[];
|
|
3407
3487
|
} | {
|
|
@@ -3500,18 +3580,11 @@ interface operations {
|
|
|
3500
3580
|
[key: string]: string[];
|
|
3501
3581
|
};
|
|
3502
3582
|
};
|
|
3503
|
-
"sentiment.input_sentiment"?: string[] | {
|
|
3504
|
-
[key: string]: string[];
|
|
3505
|
-
} | {
|
|
3506
|
-
[key: string]: {
|
|
3507
|
-
[key: string]: string[];
|
|
3508
|
-
};
|
|
3509
|
-
};
|
|
3510
3583
|
};
|
|
3511
3584
|
asPercent?: boolean;
|
|
3512
3585
|
}[];
|
|
3513
3586
|
/** @enum {string} */
|
|
3514
|
-
groupBy?: "topics.topics" | "metadata.user_id" | "metadata.thread_id" | "metadata.customer_id" | "metadata.labels" | "metadata.model" | "metadata.span_type" | "sentiment.
|
|
3587
|
+
groupBy?: "topics.topics" | "metadata.user_id" | "metadata.thread_id" | "metadata.customer_id" | "metadata.labels" | "metadata.model" | "metadata.span_type" | "sentiment.thumbs_up_down" | "events.event_type" | "evaluations.evaluation_passed" | "evaluations.evaluation_label" | "evaluations.evaluation_processing_state" | "error.has_error";
|
|
3515
3588
|
groupByKey?: string;
|
|
3516
3589
|
timeScale?: "full" | number;
|
|
3517
3590
|
timeZone: string;
|
|
@@ -3963,6 +4036,13 @@ interface operations {
|
|
|
3963
4036
|
[key: string]: string[];
|
|
3964
4037
|
};
|
|
3965
4038
|
};
|
|
4039
|
+
"traces.origin"?: string[] | {
|
|
4040
|
+
[key: string]: string[];
|
|
4041
|
+
} | {
|
|
4042
|
+
[key: string]: {
|
|
4043
|
+
[key: string]: string[];
|
|
4044
|
+
};
|
|
4045
|
+
};
|
|
3966
4046
|
"traces.error"?: string[] | {
|
|
3967
4047
|
[key: string]: string[];
|
|
3968
4048
|
} | {
|
|
@@ -4061,13 +4141,6 @@ interface operations {
|
|
|
4061
4141
|
[key: string]: string[];
|
|
4062
4142
|
};
|
|
4063
4143
|
};
|
|
4064
|
-
"sentiment.input_sentiment"?: string[] | {
|
|
4065
|
-
[key: string]: string[];
|
|
4066
|
-
} | {
|
|
4067
|
-
[key: string]: {
|
|
4068
|
-
[key: string]: string[];
|
|
4069
|
-
};
|
|
4070
|
-
};
|
|
4071
4144
|
};
|
|
4072
4145
|
traceIds?: string[];
|
|
4073
4146
|
negateFilters?: boolean;
|
|
@@ -4085,6 +4158,8 @@ interface operations {
|
|
|
4085
4158
|
* @enum {string}
|
|
4086
4159
|
*/
|
|
4087
4160
|
format?: "digest" | "json";
|
|
4161
|
+
/** @description When true, fetches full span data for each trace. Useful for bulk export. Default false. */
|
|
4162
|
+
includeSpans?: boolean;
|
|
4088
4163
|
llmMode?: boolean;
|
|
4089
4164
|
};
|
|
4090
4165
|
};
|
|
@@ -4244,6 +4319,248 @@ interface operations {
|
|
|
4244
4319
|
};
|
|
4245
4320
|
};
|
|
4246
4321
|
};
|
|
4322
|
+
putApiEvaluatorsById: {
|
|
4323
|
+
parameters: {
|
|
4324
|
+
query?: never;
|
|
4325
|
+
header?: never;
|
|
4326
|
+
path: {
|
|
4327
|
+
id: string;
|
|
4328
|
+
};
|
|
4329
|
+
cookie?: never;
|
|
4330
|
+
};
|
|
4331
|
+
requestBody?: {
|
|
4332
|
+
content: {
|
|
4333
|
+
"application/json": {
|
|
4334
|
+
name?: string;
|
|
4335
|
+
config?: {
|
|
4336
|
+
[key: string]: unknown;
|
|
4337
|
+
};
|
|
4338
|
+
};
|
|
4339
|
+
};
|
|
4340
|
+
};
|
|
4341
|
+
responses: {
|
|
4342
|
+
/** @description Success */
|
|
4343
|
+
200: {
|
|
4344
|
+
headers: {
|
|
4345
|
+
[name: string]: unknown;
|
|
4346
|
+
};
|
|
4347
|
+
content: {
|
|
4348
|
+
"application/json": {
|
|
4349
|
+
id: string;
|
|
4350
|
+
projectId: string;
|
|
4351
|
+
name: string;
|
|
4352
|
+
slug: string | null;
|
|
4353
|
+
type: string;
|
|
4354
|
+
config: {
|
|
4355
|
+
[key: string]: unknown;
|
|
4356
|
+
} | null;
|
|
4357
|
+
workflowId: string | null;
|
|
4358
|
+
copiedFromEvaluatorId: string | null;
|
|
4359
|
+
createdAt: string;
|
|
4360
|
+
updatedAt: string;
|
|
4361
|
+
fields: {
|
|
4362
|
+
identifier: string;
|
|
4363
|
+
type: string;
|
|
4364
|
+
optional?: boolean;
|
|
4365
|
+
}[];
|
|
4366
|
+
outputFields: {
|
|
4367
|
+
identifier: string;
|
|
4368
|
+
type: string;
|
|
4369
|
+
optional?: boolean;
|
|
4370
|
+
}[];
|
|
4371
|
+
workflowName?: string;
|
|
4372
|
+
workflowIcon?: string;
|
|
4373
|
+
};
|
|
4374
|
+
};
|
|
4375
|
+
};
|
|
4376
|
+
/** @description Bad request (e.g. attempting to change evaluatorType) */
|
|
4377
|
+
400: {
|
|
4378
|
+
headers: {
|
|
4379
|
+
[name: string]: unknown;
|
|
4380
|
+
};
|
|
4381
|
+
content: {
|
|
4382
|
+
"application/json": {
|
|
4383
|
+
error: string;
|
|
4384
|
+
message?: string;
|
|
4385
|
+
};
|
|
4386
|
+
};
|
|
4387
|
+
};
|
|
4388
|
+
/** @description Unauthorized */
|
|
4389
|
+
401: {
|
|
4390
|
+
headers: {
|
|
4391
|
+
[name: string]: unknown;
|
|
4392
|
+
};
|
|
4393
|
+
content: {
|
|
4394
|
+
"application/json": {
|
|
4395
|
+
error: string;
|
|
4396
|
+
message?: string;
|
|
4397
|
+
};
|
|
4398
|
+
};
|
|
4399
|
+
};
|
|
4400
|
+
/** @description Evaluator not found */
|
|
4401
|
+
404: {
|
|
4402
|
+
headers: {
|
|
4403
|
+
[name: string]: unknown;
|
|
4404
|
+
};
|
|
4405
|
+
content: {
|
|
4406
|
+
"application/json": {
|
|
4407
|
+
error: string;
|
|
4408
|
+
message?: string;
|
|
4409
|
+
};
|
|
4410
|
+
};
|
|
4411
|
+
};
|
|
4412
|
+
/** @description Unprocessable Entity */
|
|
4413
|
+
422: {
|
|
4414
|
+
headers: {
|
|
4415
|
+
[name: string]: unknown;
|
|
4416
|
+
};
|
|
4417
|
+
content: {
|
|
4418
|
+
"application/json": {
|
|
4419
|
+
error: string;
|
|
4420
|
+
message?: string;
|
|
4421
|
+
};
|
|
4422
|
+
};
|
|
4423
|
+
};
|
|
4424
|
+
/** @description Internal Server Error */
|
|
4425
|
+
500: {
|
|
4426
|
+
headers: {
|
|
4427
|
+
[name: string]: unknown;
|
|
4428
|
+
};
|
|
4429
|
+
content: {
|
|
4430
|
+
"application/json": {
|
|
4431
|
+
error: string;
|
|
4432
|
+
message?: string;
|
|
4433
|
+
};
|
|
4434
|
+
};
|
|
4435
|
+
};
|
|
4436
|
+
};
|
|
4437
|
+
};
|
|
4438
|
+
deleteApiEvaluatorsById: {
|
|
4439
|
+
parameters: {
|
|
4440
|
+
query?: never;
|
|
4441
|
+
header?: never;
|
|
4442
|
+
path: {
|
|
4443
|
+
id: string;
|
|
4444
|
+
};
|
|
4445
|
+
cookie?: never;
|
|
4446
|
+
};
|
|
4447
|
+
requestBody?: never;
|
|
4448
|
+
responses: {
|
|
4449
|
+
/** @description Success */
|
|
4450
|
+
200: {
|
|
4451
|
+
headers: {
|
|
4452
|
+
[name: string]: unknown;
|
|
4453
|
+
};
|
|
4454
|
+
content: {
|
|
4455
|
+
"application/json": {
|
|
4456
|
+
success: boolean;
|
|
4457
|
+
};
|
|
4458
|
+
};
|
|
4459
|
+
};
|
|
4460
|
+
/** @description Bad Request */
|
|
4461
|
+
400: {
|
|
4462
|
+
headers: {
|
|
4463
|
+
[name: string]: unknown;
|
|
4464
|
+
};
|
|
4465
|
+
content: {
|
|
4466
|
+
"application/json": {
|
|
4467
|
+
error: string;
|
|
4468
|
+
message?: string;
|
|
4469
|
+
};
|
|
4470
|
+
};
|
|
4471
|
+
};
|
|
4472
|
+
/** @description Unauthorized */
|
|
4473
|
+
401: {
|
|
4474
|
+
headers: {
|
|
4475
|
+
[name: string]: unknown;
|
|
4476
|
+
};
|
|
4477
|
+
content: {
|
|
4478
|
+
"application/json": {
|
|
4479
|
+
error: string;
|
|
4480
|
+
message?: string;
|
|
4481
|
+
};
|
|
4482
|
+
};
|
|
4483
|
+
};
|
|
4484
|
+
/** @description Evaluator not found */
|
|
4485
|
+
404: {
|
|
4486
|
+
headers: {
|
|
4487
|
+
[name: string]: unknown;
|
|
4488
|
+
};
|
|
4489
|
+
content: {
|
|
4490
|
+
"application/json": {
|
|
4491
|
+
error: string;
|
|
4492
|
+
message?: string;
|
|
4493
|
+
};
|
|
4494
|
+
};
|
|
4495
|
+
};
|
|
4496
|
+
/** @description Unprocessable Entity */
|
|
4497
|
+
422: {
|
|
4498
|
+
headers: {
|
|
4499
|
+
[name: string]: unknown;
|
|
4500
|
+
};
|
|
4501
|
+
content: {
|
|
4502
|
+
"application/json": {
|
|
4503
|
+
error: string;
|
|
4504
|
+
message?: string;
|
|
4505
|
+
};
|
|
4506
|
+
};
|
|
4507
|
+
};
|
|
4508
|
+
/** @description Internal Server Error */
|
|
4509
|
+
500: {
|
|
4510
|
+
headers: {
|
|
4511
|
+
[name: string]: unknown;
|
|
4512
|
+
};
|
|
4513
|
+
content: {
|
|
4514
|
+
"application/json": {
|
|
4515
|
+
error: string;
|
|
4516
|
+
message?: string;
|
|
4517
|
+
};
|
|
4518
|
+
};
|
|
4519
|
+
};
|
|
4520
|
+
};
|
|
4521
|
+
};
|
|
4522
|
+
postApiScenarios: {
|
|
4523
|
+
parameters: {
|
|
4524
|
+
query?: never;
|
|
4525
|
+
header?: never;
|
|
4526
|
+
path?: never;
|
|
4527
|
+
cookie?: never;
|
|
4528
|
+
};
|
|
4529
|
+
requestBody?: {
|
|
4530
|
+
content: {
|
|
4531
|
+
"application/json": {
|
|
4532
|
+
name: string;
|
|
4533
|
+
situation: string;
|
|
4534
|
+
/** @default [] */
|
|
4535
|
+
criteria?: string[];
|
|
4536
|
+
/** @default [] */
|
|
4537
|
+
labels?: string[];
|
|
4538
|
+
};
|
|
4539
|
+
};
|
|
4540
|
+
};
|
|
4541
|
+
responses: never;
|
|
4542
|
+
};
|
|
4543
|
+
putApiScenariosById: {
|
|
4544
|
+
parameters: {
|
|
4545
|
+
query?: never;
|
|
4546
|
+
header?: never;
|
|
4547
|
+
path: {
|
|
4548
|
+
id: string;
|
|
4549
|
+
};
|
|
4550
|
+
cookie?: never;
|
|
4551
|
+
};
|
|
4552
|
+
requestBody?: {
|
|
4553
|
+
content: {
|
|
4554
|
+
"application/json": {
|
|
4555
|
+
name?: string;
|
|
4556
|
+
situation?: string;
|
|
4557
|
+
criteria?: string[];
|
|
4558
|
+
labels?: string[];
|
|
4559
|
+
};
|
|
4560
|
+
};
|
|
4561
|
+
};
|
|
4562
|
+
responses: never;
|
|
4563
|
+
};
|
|
4247
4564
|
}
|
|
4248
4565
|
|
|
4249
4566
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "langwatch",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "LangWatch TypeScript/JavaScript SDK. Interact with the full LangWatch API and use the LangWatch OpenTelemetry SDK to instrument your application. For more information, see https://docs.langwatch.ai/integration/typescript/guide",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|