langwatch 0.13.0 → 0.14.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-ZAPD2GBO.mjs → add-36C7337U.mjs} +5 -5
- package/dist/{add-Z5UVUPCK.js → add-HNUQULX7.js} +8 -8
- package/dist/{add-Z5UVUPCK.js.map → add-HNUQULX7.js.map} +1 -1
- package/dist/{chunk-RM2VUAFL.js → chunk-2BALUJ3B.js} +11 -11
- package/dist/{chunk-RM2VUAFL.js.map → chunk-2BALUJ3B.js.map} +1 -1
- package/dist/{chunk-DXBTJGCK.js → chunk-4VAQQB35.js} +10 -10
- package/dist/{chunk-DXBTJGCK.js.map → chunk-4VAQQB35.js.map} +1 -1
- package/dist/{chunk-NPFWFQK6.js → chunk-D3YWZYYD.js} +2 -2
- package/dist/{chunk-NPFWFQK6.js.map → chunk-D3YWZYYD.js.map} +1 -1
- package/dist/{chunk-4BNGSDYW.js → chunk-GNHX3RA6.js} +14 -14
- package/dist/{chunk-4BNGSDYW.js.map → chunk-GNHX3RA6.js.map} +1 -1
- package/dist/{chunk-SZRV7E6P.mjs → chunk-JX2FBF5Z.mjs} +2 -2
- package/dist/{chunk-IIUI2XYW.mjs → chunk-KD5U3MP3.mjs} +11 -2
- package/dist/chunk-KD5U3MP3.mjs.map +1 -0
- package/dist/{chunk-OAKQ7UBU.mjs → chunk-KJQNNRAB.mjs} +3 -3
- package/dist/{chunk-J4HK6XZR.mjs → chunk-QOSICUZE.mjs} +5 -5
- package/dist/{chunk-ONXIZKC6.js → chunk-SHJZRXU7.js} +11 -2
- package/dist/chunk-SHJZRXU7.js.map +1 -0
- package/dist/{chunk-77XIPD42.mjs → chunk-WIB3D4PL.mjs} +2 -2
- package/dist/{chunk-77XIPD42.mjs.map → chunk-WIB3D4PL.mjs.map} +1 -1
- package/dist/cli/index.js +6 -6
- package/dist/cli/index.mjs +6 -6
- package/dist/{implementation-Ck58nRkT.d.mts → implementation-Dl15eRjo.d.mts} +1 -1
- package/dist/{implementation-Bnc8Aymq.d.ts → implementation-gLzM6qpI.d.ts} +1 -1
- package/dist/index.d.mts +31 -3
- package/dist/index.d.ts +31 -3
- package/dist/index.js +72 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +63 -9
- package/dist/index.mjs.map +1 -1
- package/dist/{list-XX4VPNJA.mjs → list-S5UIBHSU.mjs} +5 -5
- package/dist/{list-LASBYRI4.js → list-U5HX65KF.js} +8 -8
- package/dist/{list-LASBYRI4.js.map → list-U5HX65KF.js.map} +1 -1
- package/dist/{login-CZ2257SV.mjs → login-ALPTL4S6.mjs} +2 -2
- package/dist/{login-2VCZDSLE.js → login-IINYTYEF.js} +3 -3
- package/dist/{login-2VCZDSLE.js.map → login-IINYTYEF.js.map} +1 -1
- 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.js.map +1 -1
- package/dist/observability-sdk/index.mjs +8 -8
- 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/{remove-XWN3XTF5.js → remove-4NB23DL3.js} +7 -7
- package/dist/{remove-XWN3XTF5.js.map → remove-4NB23DL3.js.map} +1 -1
- package/dist/{remove-KESD7YHL.mjs → remove-KVFBJ4XE.mjs} +5 -5
- package/dist/{sync-SCVP7CHX.mjs → sync-ITMRHKSW.mjs} +5 -5
- package/dist/{sync-IJ26JHEP.js → sync-UI7HBIDR.js} +7 -7
- package/dist/{sync-IJ26JHEP.js.map → sync-UI7HBIDR.js.map} +1 -1
- package/dist/{types-5h2Im4pl.d.mts → types-ExKeJEM0.d.mts} +1179 -17
- package/dist/{types-fo-Ij9pl.d.ts → types-WRcnQUom.d.ts} +1179 -17
- package/package.json +1 -1
- package/dist/chunk-IIUI2XYW.mjs.map +0 -1
- package/dist/chunk-ONXIZKC6.js.map +0 -1
- /package/dist/{add-ZAPD2GBO.mjs.map → add-36C7337U.mjs.map} +0 -0
- /package/dist/{chunk-SZRV7E6P.mjs.map → chunk-JX2FBF5Z.mjs.map} +0 -0
- /package/dist/{chunk-OAKQ7UBU.mjs.map → chunk-KJQNNRAB.mjs.map} +0 -0
- /package/dist/{chunk-J4HK6XZR.mjs.map → chunk-QOSICUZE.mjs.map} +0 -0
- /package/dist/{list-XX4VPNJA.mjs.map → list-S5UIBHSU.mjs.map} +0 -0
- /package/dist/{login-CZ2257SV.mjs.map → login-ALPTL4S6.mjs.map} +0 -0
- /package/dist/{remove-KESD7YHL.mjs.map → remove-KVFBJ4XE.mjs.map} +0 -0
- /package/dist/{sync-SCVP7CHX.mjs.map → sync-ITMRHKSW.mjs.map} +0 -0
|
@@ -15,14 +15,21 @@ interface ToolCall {
|
|
|
15
15
|
interface ChatMessage {
|
|
16
16
|
role?: ChatRole;
|
|
17
17
|
content?: string | ChatRichContent[] | null;
|
|
18
|
+
/** Vercel AI SDK / pi-ai use `parts` instead of `content` */
|
|
19
|
+
parts?: ChatRichContent[];
|
|
18
20
|
function_call?: FunctionCall | null;
|
|
19
21
|
tool_calls?: ToolCall[] | null;
|
|
20
22
|
tool_call_id?: string | null;
|
|
21
23
|
name?: string | null;
|
|
24
|
+
reasoning_content?: string | null;
|
|
22
25
|
}
|
|
23
26
|
type ChatRichContent = {
|
|
24
27
|
type: "text";
|
|
25
28
|
text?: string;
|
|
29
|
+
} | {
|
|
30
|
+
/** pi-ai uses `content` instead of `text` inside text blocks */
|
|
31
|
+
type: "text";
|
|
32
|
+
content?: string;
|
|
26
33
|
} | {
|
|
27
34
|
text: string;
|
|
28
35
|
} | {
|
|
@@ -886,6 +893,91 @@ interface paths {
|
|
|
886
893
|
patch?: never;
|
|
887
894
|
trace?: never;
|
|
888
895
|
};
|
|
896
|
+
"/api/analytics/timeseries": {
|
|
897
|
+
parameters: {
|
|
898
|
+
query?: never;
|
|
899
|
+
header?: never;
|
|
900
|
+
path?: never;
|
|
901
|
+
cookie?: never;
|
|
902
|
+
};
|
|
903
|
+
get?: never;
|
|
904
|
+
put?: never;
|
|
905
|
+
/** @description Query analytics timeseries data with metrics, aggregations, and filters */
|
|
906
|
+
post: operations["postApiAnalyticsTimeseries"];
|
|
907
|
+
delete?: never;
|
|
908
|
+
options?: never;
|
|
909
|
+
head?: never;
|
|
910
|
+
patch?: never;
|
|
911
|
+
trace?: never;
|
|
912
|
+
};
|
|
913
|
+
"/api/evaluators": {
|
|
914
|
+
parameters: {
|
|
915
|
+
query?: never;
|
|
916
|
+
header?: never;
|
|
917
|
+
path?: never;
|
|
918
|
+
cookie?: never;
|
|
919
|
+
};
|
|
920
|
+
/** @description Get all evaluators for a project */
|
|
921
|
+
get: operations["getApiEvaluators"];
|
|
922
|
+
put?: never;
|
|
923
|
+
post?: never;
|
|
924
|
+
delete?: never;
|
|
925
|
+
options?: never;
|
|
926
|
+
head?: never;
|
|
927
|
+
patch?: never;
|
|
928
|
+
trace?: never;
|
|
929
|
+
};
|
|
930
|
+
"/api/evaluators/{idOrSlug}": {
|
|
931
|
+
parameters: {
|
|
932
|
+
query?: never;
|
|
933
|
+
header?: never;
|
|
934
|
+
path?: never;
|
|
935
|
+
cookie?: never;
|
|
936
|
+
};
|
|
937
|
+
/** @description Get a specific evaluator by ID or slug */
|
|
938
|
+
get: operations["getApiEvaluatorsByIdOrSlug"];
|
|
939
|
+
put?: never;
|
|
940
|
+
post?: never;
|
|
941
|
+
delete?: never;
|
|
942
|
+
options?: never;
|
|
943
|
+
head?: never;
|
|
944
|
+
patch?: never;
|
|
945
|
+
trace?: never;
|
|
946
|
+
};
|
|
947
|
+
"/api/traces/search": {
|
|
948
|
+
parameters: {
|
|
949
|
+
query?: never;
|
|
950
|
+
header?: never;
|
|
951
|
+
path?: never;
|
|
952
|
+
cookie?: never;
|
|
953
|
+
};
|
|
954
|
+
get?: never;
|
|
955
|
+
put?: never;
|
|
956
|
+
/** @description Search traces for a project */
|
|
957
|
+
post: operations["postApiTracesSearch"];
|
|
958
|
+
delete?: never;
|
|
959
|
+
options?: never;
|
|
960
|
+
head?: never;
|
|
961
|
+
patch?: never;
|
|
962
|
+
trace?: never;
|
|
963
|
+
};
|
|
964
|
+
"/api/traces/{traceId}": {
|
|
965
|
+
parameters: {
|
|
966
|
+
query?: never;
|
|
967
|
+
header?: never;
|
|
968
|
+
path?: never;
|
|
969
|
+
cookie?: never;
|
|
970
|
+
};
|
|
971
|
+
/** @description Get a single trace by ID. Defaults to AI-readable digest format. */
|
|
972
|
+
get: operations["getApiTracesByTraceId"];
|
|
973
|
+
put?: never;
|
|
974
|
+
post?: never;
|
|
975
|
+
delete?: never;
|
|
976
|
+
options?: never;
|
|
977
|
+
head?: never;
|
|
978
|
+
patch?: never;
|
|
979
|
+
trace?: never;
|
|
980
|
+
};
|
|
889
981
|
}
|
|
890
982
|
interface components {
|
|
891
983
|
schemas: {
|
|
@@ -1053,6 +1145,7 @@ interface operations {
|
|
|
1053
1145
|
role: "user" | "assistant" | "system";
|
|
1054
1146
|
content: string;
|
|
1055
1147
|
}[];
|
|
1148
|
+
/** @default [] */
|
|
1056
1149
|
inputs: {
|
|
1057
1150
|
identifier: string;
|
|
1058
1151
|
/** @enum {string} */
|
|
@@ -1076,7 +1169,7 @@ interface operations {
|
|
|
1076
1169
|
name?: string;
|
|
1077
1170
|
inline?: {
|
|
1078
1171
|
records: {
|
|
1079
|
-
[key: string]:
|
|
1172
|
+
[key: string]: unknown[];
|
|
1080
1173
|
};
|
|
1081
1174
|
columnTypes: {
|
|
1082
1175
|
id?: string;
|
|
@@ -1093,7 +1186,7 @@ interface operations {
|
|
|
1093
1186
|
name?: string;
|
|
1094
1187
|
inline?: {
|
|
1095
1188
|
records: {
|
|
1096
|
-
[key: string]:
|
|
1189
|
+
[key: string]: unknown[];
|
|
1097
1190
|
};
|
|
1098
1191
|
columnTypes: {
|
|
1099
1192
|
id?: string;
|
|
@@ -1250,6 +1343,7 @@ interface operations {
|
|
|
1250
1343
|
role: "user" | "assistant" | "system";
|
|
1251
1344
|
content: string;
|
|
1252
1345
|
}[];
|
|
1346
|
+
/** @default [] */
|
|
1253
1347
|
inputs: {
|
|
1254
1348
|
identifier: string;
|
|
1255
1349
|
/** @enum {string} */
|
|
@@ -1273,7 +1367,7 @@ interface operations {
|
|
|
1273
1367
|
name?: string;
|
|
1274
1368
|
inline?: {
|
|
1275
1369
|
records: {
|
|
1276
|
-
[key: string]:
|
|
1370
|
+
[key: string]: unknown[];
|
|
1277
1371
|
};
|
|
1278
1372
|
columnTypes: {
|
|
1279
1373
|
id?: string;
|
|
@@ -1290,7 +1384,7 @@ interface operations {
|
|
|
1290
1384
|
name?: string;
|
|
1291
1385
|
inline?: {
|
|
1292
1386
|
records: {
|
|
1293
|
-
[key: string]:
|
|
1387
|
+
[key: string]: unknown[];
|
|
1294
1388
|
};
|
|
1295
1389
|
columnTypes: {
|
|
1296
1390
|
id?: string;
|
|
@@ -1507,6 +1601,7 @@ interface operations {
|
|
|
1507
1601
|
role: "user" | "assistant" | "system";
|
|
1508
1602
|
content: string;
|
|
1509
1603
|
}[];
|
|
1604
|
+
/** @default [] */
|
|
1510
1605
|
inputs: {
|
|
1511
1606
|
identifier: string;
|
|
1512
1607
|
/** @enum {string} */
|
|
@@ -1530,7 +1625,7 @@ interface operations {
|
|
|
1530
1625
|
name?: string;
|
|
1531
1626
|
inline?: {
|
|
1532
1627
|
records: {
|
|
1533
|
-
[key: string]:
|
|
1628
|
+
[key: string]: unknown[];
|
|
1534
1629
|
};
|
|
1535
1630
|
columnTypes: {
|
|
1536
1631
|
id?: string;
|
|
@@ -1547,7 +1642,7 @@ interface operations {
|
|
|
1547
1642
|
name?: string;
|
|
1548
1643
|
inline?: {
|
|
1549
1644
|
records: {
|
|
1550
|
-
[key: string]:
|
|
1645
|
+
[key: string]: unknown[];
|
|
1551
1646
|
};
|
|
1552
1647
|
columnTypes: {
|
|
1553
1648
|
id?: string;
|
|
@@ -1650,7 +1745,8 @@ interface operations {
|
|
|
1650
1745
|
role: "user" | "assistant" | "system";
|
|
1651
1746
|
content: string;
|
|
1652
1747
|
}[];
|
|
1653
|
-
|
|
1748
|
+
/** @default [] */
|
|
1749
|
+
inputs?: {
|
|
1654
1750
|
identifier: string;
|
|
1655
1751
|
/** @enum {string} */
|
|
1656
1752
|
type: "str" | "float" | "bool" | "image" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict";
|
|
@@ -1668,12 +1764,24 @@ interface operations {
|
|
|
1668
1764
|
model: string;
|
|
1669
1765
|
temperature?: number;
|
|
1670
1766
|
max_tokens?: number;
|
|
1767
|
+
top_p?: number;
|
|
1768
|
+
frequency_penalty?: number;
|
|
1769
|
+
presence_penalty?: number;
|
|
1770
|
+
seed?: number;
|
|
1771
|
+
top_k?: number;
|
|
1772
|
+
min_p?: number;
|
|
1773
|
+
repetition_penalty?: number;
|
|
1774
|
+
reasoning?: string;
|
|
1775
|
+
reasoning_effort?: string;
|
|
1776
|
+
thinkingLevel?: string;
|
|
1777
|
+
effort?: string;
|
|
1778
|
+
verbosity?: string;
|
|
1671
1779
|
demonstrations?: {
|
|
1672
1780
|
id?: string;
|
|
1673
1781
|
name?: string;
|
|
1674
1782
|
inline?: {
|
|
1675
1783
|
records: {
|
|
1676
|
-
[key: string]:
|
|
1784
|
+
[key: string]: unknown[];
|
|
1677
1785
|
};
|
|
1678
1786
|
columnTypes: {
|
|
1679
1787
|
id?: string;
|
|
@@ -1690,7 +1798,7 @@ interface operations {
|
|
|
1690
1798
|
name?: string;
|
|
1691
1799
|
inline?: {
|
|
1692
1800
|
records: {
|
|
1693
|
-
[key: string]:
|
|
1801
|
+
[key: string]: unknown[];
|
|
1694
1802
|
};
|
|
1695
1803
|
columnTypes: {
|
|
1696
1804
|
id?: string;
|
|
@@ -1745,6 +1853,7 @@ interface operations {
|
|
|
1745
1853
|
role: "user" | "assistant" | "system";
|
|
1746
1854
|
content: string;
|
|
1747
1855
|
}[];
|
|
1856
|
+
/** @default [] */
|
|
1748
1857
|
inputs: {
|
|
1749
1858
|
identifier: string;
|
|
1750
1859
|
/** @enum {string} */
|
|
@@ -1768,7 +1877,7 @@ interface operations {
|
|
|
1768
1877
|
name?: string;
|
|
1769
1878
|
inline?: {
|
|
1770
1879
|
records: {
|
|
1771
|
-
[key: string]:
|
|
1880
|
+
[key: string]: unknown[];
|
|
1772
1881
|
};
|
|
1773
1882
|
columnTypes: {
|
|
1774
1883
|
id?: string;
|
|
@@ -1785,7 +1894,7 @@ interface operations {
|
|
|
1785
1894
|
name?: string;
|
|
1786
1895
|
inline?: {
|
|
1787
1896
|
records: {
|
|
1788
|
-
[key: string]:
|
|
1897
|
+
[key: string]: unknown[];
|
|
1789
1898
|
};
|
|
1790
1899
|
columnTypes: {
|
|
1791
1900
|
id?: string;
|
|
@@ -1816,6 +1925,7 @@ interface operations {
|
|
|
1816
1925
|
role: "user" | "assistant" | "system";
|
|
1817
1926
|
content: string;
|
|
1818
1927
|
}[];
|
|
1928
|
+
/** @default [] */
|
|
1819
1929
|
inputs: {
|
|
1820
1930
|
identifier: string;
|
|
1821
1931
|
/** @enum {string} */
|
|
@@ -1834,12 +1944,24 @@ interface operations {
|
|
|
1834
1944
|
model: string;
|
|
1835
1945
|
temperature?: number;
|
|
1836
1946
|
max_tokens?: number;
|
|
1947
|
+
top_p?: number;
|
|
1948
|
+
frequency_penalty?: number;
|
|
1949
|
+
presence_penalty?: number;
|
|
1950
|
+
seed?: number;
|
|
1951
|
+
top_k?: number;
|
|
1952
|
+
min_p?: number;
|
|
1953
|
+
repetition_penalty?: number;
|
|
1954
|
+
reasoning?: string;
|
|
1955
|
+
reasoning_effort?: string;
|
|
1956
|
+
thinkingLevel?: string;
|
|
1957
|
+
effort?: string;
|
|
1958
|
+
verbosity?: string;
|
|
1837
1959
|
demonstrations?: {
|
|
1838
1960
|
id?: string;
|
|
1839
1961
|
name?: string;
|
|
1840
1962
|
inline?: {
|
|
1841
1963
|
records: {
|
|
1842
|
-
[key: string]:
|
|
1964
|
+
[key: string]: unknown[];
|
|
1843
1965
|
};
|
|
1844
1966
|
columnTypes: {
|
|
1845
1967
|
id?: string;
|
|
@@ -1856,7 +1978,7 @@ interface operations {
|
|
|
1856
1978
|
name?: string;
|
|
1857
1979
|
inline?: {
|
|
1858
1980
|
records: {
|
|
1859
|
-
[key: string]:
|
|
1981
|
+
[key: string]: unknown[];
|
|
1860
1982
|
};
|
|
1861
1983
|
columnTypes: {
|
|
1862
1984
|
id?: string;
|
|
@@ -2074,6 +2196,7 @@ interface operations {
|
|
|
2074
2196
|
role: "user" | "assistant" | "system";
|
|
2075
2197
|
content: string;
|
|
2076
2198
|
}[];
|
|
2199
|
+
/** @default [] */
|
|
2077
2200
|
inputs: {
|
|
2078
2201
|
identifier: string;
|
|
2079
2202
|
/** @enum {string} */
|
|
@@ -2097,7 +2220,7 @@ interface operations {
|
|
|
2097
2220
|
name?: string;
|
|
2098
2221
|
inline?: {
|
|
2099
2222
|
records: {
|
|
2100
|
-
[key: string]:
|
|
2223
|
+
[key: string]: unknown[];
|
|
2101
2224
|
};
|
|
2102
2225
|
columnTypes: {
|
|
2103
2226
|
id?: string;
|
|
@@ -2114,7 +2237,7 @@ interface operations {
|
|
|
2114
2237
|
name?: string;
|
|
2115
2238
|
inline?: {
|
|
2116
2239
|
records: {
|
|
2117
|
-
[key: string]:
|
|
2240
|
+
[key: string]: unknown[];
|
|
2118
2241
|
};
|
|
2119
2242
|
columnTypes: {
|
|
2120
2243
|
id?: string;
|
|
@@ -2260,6 +2383,7 @@ interface operations {
|
|
|
2260
2383
|
role: "user" | "assistant" | "system";
|
|
2261
2384
|
content: string;
|
|
2262
2385
|
}[];
|
|
2386
|
+
/** @default [] */
|
|
2263
2387
|
inputs: {
|
|
2264
2388
|
identifier: string;
|
|
2265
2389
|
/** @enum {string} */
|
|
@@ -2283,7 +2407,7 @@ interface operations {
|
|
|
2283
2407
|
name?: string;
|
|
2284
2408
|
inline?: {
|
|
2285
2409
|
records: {
|
|
2286
|
-
[key: string]:
|
|
2410
|
+
[key: string]: unknown[];
|
|
2287
2411
|
};
|
|
2288
2412
|
columnTypes: {
|
|
2289
2413
|
id?: string;
|
|
@@ -2300,7 +2424,7 @@ interface operations {
|
|
|
2300
2424
|
name?: string;
|
|
2301
2425
|
inline?: {
|
|
2302
2426
|
records: {
|
|
2303
|
-
[key: string]:
|
|
2427
|
+
[key: string]: unknown[];
|
|
2304
2428
|
};
|
|
2305
2429
|
columnTypes: {
|
|
2306
2430
|
id?: string;
|
|
@@ -2477,6 +2601,10 @@ interface operations {
|
|
|
2477
2601
|
/** @constant */
|
|
2478
2602
|
type: "text";
|
|
2479
2603
|
text?: string;
|
|
2604
|
+
} | {
|
|
2605
|
+
/** @constant */
|
|
2606
|
+
type: "text";
|
|
2607
|
+
content?: string;
|
|
2480
2608
|
} | {
|
|
2481
2609
|
text: string;
|
|
2482
2610
|
} | {
|
|
@@ -2499,6 +2627,36 @@ interface operations {
|
|
|
2499
2627
|
toolCallId?: string;
|
|
2500
2628
|
result?: unknown;
|
|
2501
2629
|
})[] | null;
|
|
2630
|
+
parts?: ({
|
|
2631
|
+
/** @constant */
|
|
2632
|
+
type: "text";
|
|
2633
|
+
text?: string;
|
|
2634
|
+
} | {
|
|
2635
|
+
/** @constant */
|
|
2636
|
+
type: "text";
|
|
2637
|
+
content?: string;
|
|
2638
|
+
} | {
|
|
2639
|
+
text: string;
|
|
2640
|
+
} | {
|
|
2641
|
+
/** @constant */
|
|
2642
|
+
type: "image_url";
|
|
2643
|
+
image_url?: {
|
|
2644
|
+
url: string;
|
|
2645
|
+
detail?: "auto" | "low" | "high";
|
|
2646
|
+
};
|
|
2647
|
+
} | {
|
|
2648
|
+
/** @constant */
|
|
2649
|
+
type: "tool_call";
|
|
2650
|
+
toolName?: string;
|
|
2651
|
+
toolCallId?: string;
|
|
2652
|
+
args?: string;
|
|
2653
|
+
} | {
|
|
2654
|
+
/** @constant */
|
|
2655
|
+
type: "tool_result";
|
|
2656
|
+
toolName?: string;
|
|
2657
|
+
toolCallId?: string;
|
|
2658
|
+
result?: unknown;
|
|
2659
|
+
})[];
|
|
2502
2660
|
function_call?: {
|
|
2503
2661
|
name?: string;
|
|
2504
2662
|
arguments?: string;
|
|
@@ -2513,6 +2671,7 @@ interface operations {
|
|
|
2513
2671
|
}[] | null;
|
|
2514
2672
|
tool_call_id?: string | null;
|
|
2515
2673
|
name?: string | null;
|
|
2674
|
+
reasoning_content?: string | null;
|
|
2516
2675
|
}) & {
|
|
2517
2676
|
id?: string;
|
|
2518
2677
|
trace_id?: string;
|
|
@@ -2979,6 +3138,1009 @@ interface operations {
|
|
|
2979
3138
|
};
|
|
2980
3139
|
};
|
|
2981
3140
|
};
|
|
3141
|
+
postApiAnalyticsTimeseries: {
|
|
3142
|
+
parameters: {
|
|
3143
|
+
query?: never;
|
|
3144
|
+
header?: never;
|
|
3145
|
+
path?: never;
|
|
3146
|
+
cookie?: never;
|
|
3147
|
+
};
|
|
3148
|
+
requestBody?: {
|
|
3149
|
+
content: {
|
|
3150
|
+
"application/json": {
|
|
3151
|
+
startDate: number | string;
|
|
3152
|
+
endDate: number | string;
|
|
3153
|
+
query?: string;
|
|
3154
|
+
/** @default {} */
|
|
3155
|
+
filters?: {
|
|
3156
|
+
"topics.topics"?: string[] | {
|
|
3157
|
+
[key: string]: string[];
|
|
3158
|
+
} | {
|
|
3159
|
+
[key: string]: {
|
|
3160
|
+
[key: string]: string[];
|
|
3161
|
+
};
|
|
3162
|
+
};
|
|
3163
|
+
"topics.subtopics"?: string[] | {
|
|
3164
|
+
[key: string]: string[];
|
|
3165
|
+
} | {
|
|
3166
|
+
[key: string]: {
|
|
3167
|
+
[key: string]: string[];
|
|
3168
|
+
};
|
|
3169
|
+
};
|
|
3170
|
+
"metadata.user_id"?: string[] | {
|
|
3171
|
+
[key: string]: string[];
|
|
3172
|
+
} | {
|
|
3173
|
+
[key: string]: {
|
|
3174
|
+
[key: string]: string[];
|
|
3175
|
+
};
|
|
3176
|
+
};
|
|
3177
|
+
"metadata.thread_id"?: string[] | {
|
|
3178
|
+
[key: string]: string[];
|
|
3179
|
+
} | {
|
|
3180
|
+
[key: string]: {
|
|
3181
|
+
[key: string]: string[];
|
|
3182
|
+
};
|
|
3183
|
+
};
|
|
3184
|
+
"metadata.customer_id"?: string[] | {
|
|
3185
|
+
[key: string]: string[];
|
|
3186
|
+
} | {
|
|
3187
|
+
[key: string]: {
|
|
3188
|
+
[key: string]: string[];
|
|
3189
|
+
};
|
|
3190
|
+
};
|
|
3191
|
+
"metadata.labels"?: string[] | {
|
|
3192
|
+
[key: string]: string[];
|
|
3193
|
+
} | {
|
|
3194
|
+
[key: string]: {
|
|
3195
|
+
[key: string]: string[];
|
|
3196
|
+
};
|
|
3197
|
+
};
|
|
3198
|
+
"metadata.key"?: string[] | {
|
|
3199
|
+
[key: string]: string[];
|
|
3200
|
+
} | {
|
|
3201
|
+
[key: string]: {
|
|
3202
|
+
[key: string]: string[];
|
|
3203
|
+
};
|
|
3204
|
+
};
|
|
3205
|
+
"metadata.value"?: string[] | {
|
|
3206
|
+
[key: string]: string[];
|
|
3207
|
+
} | {
|
|
3208
|
+
[key: string]: {
|
|
3209
|
+
[key: string]: string[];
|
|
3210
|
+
};
|
|
3211
|
+
};
|
|
3212
|
+
"metadata.prompt_ids"?: string[] | {
|
|
3213
|
+
[key: string]: string[];
|
|
3214
|
+
} | {
|
|
3215
|
+
[key: string]: {
|
|
3216
|
+
[key: string]: string[];
|
|
3217
|
+
};
|
|
3218
|
+
};
|
|
3219
|
+
"traces.error"?: string[] | {
|
|
3220
|
+
[key: string]: string[];
|
|
3221
|
+
} | {
|
|
3222
|
+
[key: string]: {
|
|
3223
|
+
[key: string]: string[];
|
|
3224
|
+
};
|
|
3225
|
+
};
|
|
3226
|
+
"spans.type"?: string[] | {
|
|
3227
|
+
[key: string]: string[];
|
|
3228
|
+
} | {
|
|
3229
|
+
[key: string]: {
|
|
3230
|
+
[key: string]: string[];
|
|
3231
|
+
};
|
|
3232
|
+
};
|
|
3233
|
+
"spans.model"?: string[] | {
|
|
3234
|
+
[key: string]: string[];
|
|
3235
|
+
} | {
|
|
3236
|
+
[key: string]: {
|
|
3237
|
+
[key: string]: string[];
|
|
3238
|
+
};
|
|
3239
|
+
};
|
|
3240
|
+
"evaluations.evaluator_id"?: string[] | {
|
|
3241
|
+
[key: string]: string[];
|
|
3242
|
+
} | {
|
|
3243
|
+
[key: string]: {
|
|
3244
|
+
[key: string]: string[];
|
|
3245
|
+
};
|
|
3246
|
+
};
|
|
3247
|
+
"evaluations.evaluator_id.guardrails_only"?: string[] | {
|
|
3248
|
+
[key: string]: string[];
|
|
3249
|
+
} | {
|
|
3250
|
+
[key: string]: {
|
|
3251
|
+
[key: string]: string[];
|
|
3252
|
+
};
|
|
3253
|
+
};
|
|
3254
|
+
"evaluations.passed"?: string[] | {
|
|
3255
|
+
[key: string]: string[];
|
|
3256
|
+
} | {
|
|
3257
|
+
[key: string]: {
|
|
3258
|
+
[key: string]: string[];
|
|
3259
|
+
};
|
|
3260
|
+
};
|
|
3261
|
+
"evaluations.score"?: string[] | {
|
|
3262
|
+
[key: string]: string[];
|
|
3263
|
+
} | {
|
|
3264
|
+
[key: string]: {
|
|
3265
|
+
[key: string]: string[];
|
|
3266
|
+
};
|
|
3267
|
+
};
|
|
3268
|
+
"evaluations.state"?: string[] | {
|
|
3269
|
+
[key: string]: string[];
|
|
3270
|
+
} | {
|
|
3271
|
+
[key: string]: {
|
|
3272
|
+
[key: string]: string[];
|
|
3273
|
+
};
|
|
3274
|
+
};
|
|
3275
|
+
"evaluations.label"?: string[] | {
|
|
3276
|
+
[key: string]: string[];
|
|
3277
|
+
} | {
|
|
3278
|
+
[key: string]: {
|
|
3279
|
+
[key: string]: string[];
|
|
3280
|
+
};
|
|
3281
|
+
};
|
|
3282
|
+
"events.event_type"?: string[] | {
|
|
3283
|
+
[key: string]: string[];
|
|
3284
|
+
} | {
|
|
3285
|
+
[key: string]: {
|
|
3286
|
+
[key: string]: string[];
|
|
3287
|
+
};
|
|
3288
|
+
};
|
|
3289
|
+
"events.metrics.key"?: string[] | {
|
|
3290
|
+
[key: string]: string[];
|
|
3291
|
+
} | {
|
|
3292
|
+
[key: string]: {
|
|
3293
|
+
[key: string]: string[];
|
|
3294
|
+
};
|
|
3295
|
+
};
|
|
3296
|
+
"events.metrics.value"?: string[] | {
|
|
3297
|
+
[key: string]: string[];
|
|
3298
|
+
} | {
|
|
3299
|
+
[key: string]: {
|
|
3300
|
+
[key: string]: string[];
|
|
3301
|
+
};
|
|
3302
|
+
};
|
|
3303
|
+
"events.event_details.key"?: string[] | {
|
|
3304
|
+
[key: string]: string[];
|
|
3305
|
+
} | {
|
|
3306
|
+
[key: string]: {
|
|
3307
|
+
[key: string]: string[];
|
|
3308
|
+
};
|
|
3309
|
+
};
|
|
3310
|
+
"annotations.hasAnnotation"?: string[] | {
|
|
3311
|
+
[key: string]: string[];
|
|
3312
|
+
} | {
|
|
3313
|
+
[key: string]: {
|
|
3314
|
+
[key: string]: string[];
|
|
3315
|
+
};
|
|
3316
|
+
};
|
|
3317
|
+
"sentiment.input_sentiment"?: string[] | {
|
|
3318
|
+
[key: string]: string[];
|
|
3319
|
+
} | {
|
|
3320
|
+
[key: string]: {
|
|
3321
|
+
[key: string]: string[];
|
|
3322
|
+
};
|
|
3323
|
+
};
|
|
3324
|
+
};
|
|
3325
|
+
traceIds?: string[];
|
|
3326
|
+
negateFilters?: boolean;
|
|
3327
|
+
series: {
|
|
3328
|
+
/** @enum {string} */
|
|
3329
|
+
metric: "metadata.trace_id" | "metadata.user_id" | "metadata.thread_id" | "metadata.span_type" | "sentiment.input_sentiment" | "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";
|
|
3330
|
+
key?: string;
|
|
3331
|
+
subkey?: string;
|
|
3332
|
+
/** @enum {string} */
|
|
3333
|
+
aggregation: "terms" | "cardinality" | "avg" | "sum" | "min" | "max" | "median" | "p99" | "p95" | "p90";
|
|
3334
|
+
pipeline?: {
|
|
3335
|
+
/** @enum {string} */
|
|
3336
|
+
field: "trace_id" | "user_id" | "thread_id" | "customer_id";
|
|
3337
|
+
/** @enum {string} */
|
|
3338
|
+
aggregation: "sum" | "avg" | "min" | "max";
|
|
3339
|
+
};
|
|
3340
|
+
filters?: {
|
|
3341
|
+
"topics.topics"?: string[] | {
|
|
3342
|
+
[key: string]: string[];
|
|
3343
|
+
} | {
|
|
3344
|
+
[key: string]: {
|
|
3345
|
+
[key: string]: string[];
|
|
3346
|
+
};
|
|
3347
|
+
};
|
|
3348
|
+
"topics.subtopics"?: string[] | {
|
|
3349
|
+
[key: string]: string[];
|
|
3350
|
+
} | {
|
|
3351
|
+
[key: string]: {
|
|
3352
|
+
[key: string]: string[];
|
|
3353
|
+
};
|
|
3354
|
+
};
|
|
3355
|
+
"metadata.user_id"?: string[] | {
|
|
3356
|
+
[key: string]: string[];
|
|
3357
|
+
} | {
|
|
3358
|
+
[key: string]: {
|
|
3359
|
+
[key: string]: string[];
|
|
3360
|
+
};
|
|
3361
|
+
};
|
|
3362
|
+
"metadata.thread_id"?: string[] | {
|
|
3363
|
+
[key: string]: string[];
|
|
3364
|
+
} | {
|
|
3365
|
+
[key: string]: {
|
|
3366
|
+
[key: string]: string[];
|
|
3367
|
+
};
|
|
3368
|
+
};
|
|
3369
|
+
"metadata.customer_id"?: string[] | {
|
|
3370
|
+
[key: string]: string[];
|
|
3371
|
+
} | {
|
|
3372
|
+
[key: string]: {
|
|
3373
|
+
[key: string]: string[];
|
|
3374
|
+
};
|
|
3375
|
+
};
|
|
3376
|
+
"metadata.labels"?: string[] | {
|
|
3377
|
+
[key: string]: string[];
|
|
3378
|
+
} | {
|
|
3379
|
+
[key: string]: {
|
|
3380
|
+
[key: string]: string[];
|
|
3381
|
+
};
|
|
3382
|
+
};
|
|
3383
|
+
"metadata.key"?: string[] | {
|
|
3384
|
+
[key: string]: string[];
|
|
3385
|
+
} | {
|
|
3386
|
+
[key: string]: {
|
|
3387
|
+
[key: string]: string[];
|
|
3388
|
+
};
|
|
3389
|
+
};
|
|
3390
|
+
"metadata.value"?: string[] | {
|
|
3391
|
+
[key: string]: string[];
|
|
3392
|
+
} | {
|
|
3393
|
+
[key: string]: {
|
|
3394
|
+
[key: string]: string[];
|
|
3395
|
+
};
|
|
3396
|
+
};
|
|
3397
|
+
"metadata.prompt_ids"?: string[] | {
|
|
3398
|
+
[key: string]: string[];
|
|
3399
|
+
} | {
|
|
3400
|
+
[key: string]: {
|
|
3401
|
+
[key: string]: string[];
|
|
3402
|
+
};
|
|
3403
|
+
};
|
|
3404
|
+
"traces.error"?: string[] | {
|
|
3405
|
+
[key: string]: string[];
|
|
3406
|
+
} | {
|
|
3407
|
+
[key: string]: {
|
|
3408
|
+
[key: string]: string[];
|
|
3409
|
+
};
|
|
3410
|
+
};
|
|
3411
|
+
"spans.type"?: string[] | {
|
|
3412
|
+
[key: string]: string[];
|
|
3413
|
+
} | {
|
|
3414
|
+
[key: string]: {
|
|
3415
|
+
[key: string]: string[];
|
|
3416
|
+
};
|
|
3417
|
+
};
|
|
3418
|
+
"spans.model"?: string[] | {
|
|
3419
|
+
[key: string]: string[];
|
|
3420
|
+
} | {
|
|
3421
|
+
[key: string]: {
|
|
3422
|
+
[key: string]: string[];
|
|
3423
|
+
};
|
|
3424
|
+
};
|
|
3425
|
+
"evaluations.evaluator_id"?: string[] | {
|
|
3426
|
+
[key: string]: string[];
|
|
3427
|
+
} | {
|
|
3428
|
+
[key: string]: {
|
|
3429
|
+
[key: string]: string[];
|
|
3430
|
+
};
|
|
3431
|
+
};
|
|
3432
|
+
"evaluations.evaluator_id.guardrails_only"?: string[] | {
|
|
3433
|
+
[key: string]: string[];
|
|
3434
|
+
} | {
|
|
3435
|
+
[key: string]: {
|
|
3436
|
+
[key: string]: string[];
|
|
3437
|
+
};
|
|
3438
|
+
};
|
|
3439
|
+
"evaluations.passed"?: string[] | {
|
|
3440
|
+
[key: string]: string[];
|
|
3441
|
+
} | {
|
|
3442
|
+
[key: string]: {
|
|
3443
|
+
[key: string]: string[];
|
|
3444
|
+
};
|
|
3445
|
+
};
|
|
3446
|
+
"evaluations.score"?: string[] | {
|
|
3447
|
+
[key: string]: string[];
|
|
3448
|
+
} | {
|
|
3449
|
+
[key: string]: {
|
|
3450
|
+
[key: string]: string[];
|
|
3451
|
+
};
|
|
3452
|
+
};
|
|
3453
|
+
"evaluations.state"?: string[] | {
|
|
3454
|
+
[key: string]: string[];
|
|
3455
|
+
} | {
|
|
3456
|
+
[key: string]: {
|
|
3457
|
+
[key: string]: string[];
|
|
3458
|
+
};
|
|
3459
|
+
};
|
|
3460
|
+
"evaluations.label"?: string[] | {
|
|
3461
|
+
[key: string]: string[];
|
|
3462
|
+
} | {
|
|
3463
|
+
[key: string]: {
|
|
3464
|
+
[key: string]: string[];
|
|
3465
|
+
};
|
|
3466
|
+
};
|
|
3467
|
+
"events.event_type"?: string[] | {
|
|
3468
|
+
[key: string]: string[];
|
|
3469
|
+
} | {
|
|
3470
|
+
[key: string]: {
|
|
3471
|
+
[key: string]: string[];
|
|
3472
|
+
};
|
|
3473
|
+
};
|
|
3474
|
+
"events.metrics.key"?: string[] | {
|
|
3475
|
+
[key: string]: string[];
|
|
3476
|
+
} | {
|
|
3477
|
+
[key: string]: {
|
|
3478
|
+
[key: string]: string[];
|
|
3479
|
+
};
|
|
3480
|
+
};
|
|
3481
|
+
"events.metrics.value"?: string[] | {
|
|
3482
|
+
[key: string]: string[];
|
|
3483
|
+
} | {
|
|
3484
|
+
[key: string]: {
|
|
3485
|
+
[key: string]: string[];
|
|
3486
|
+
};
|
|
3487
|
+
};
|
|
3488
|
+
"events.event_details.key"?: string[] | {
|
|
3489
|
+
[key: string]: string[];
|
|
3490
|
+
} | {
|
|
3491
|
+
[key: string]: {
|
|
3492
|
+
[key: string]: string[];
|
|
3493
|
+
};
|
|
3494
|
+
};
|
|
3495
|
+
"annotations.hasAnnotation"?: string[] | {
|
|
3496
|
+
[key: string]: string[];
|
|
3497
|
+
} | {
|
|
3498
|
+
[key: string]: {
|
|
3499
|
+
[key: string]: string[];
|
|
3500
|
+
};
|
|
3501
|
+
};
|
|
3502
|
+
"sentiment.input_sentiment"?: string[] | {
|
|
3503
|
+
[key: string]: string[];
|
|
3504
|
+
} | {
|
|
3505
|
+
[key: string]: {
|
|
3506
|
+
[key: string]: string[];
|
|
3507
|
+
};
|
|
3508
|
+
};
|
|
3509
|
+
};
|
|
3510
|
+
asPercent?: boolean;
|
|
3511
|
+
}[];
|
|
3512
|
+
/** @enum {string} */
|
|
3513
|
+
groupBy?: "topics.topics" | "metadata.user_id" | "metadata.thread_id" | "metadata.customer_id" | "metadata.labels" | "metadata.model" | "metadata.span_type" | "sentiment.input_sentiment" | "sentiment.thumbs_up_down" | "events.event_type" | "evaluations.evaluation_passed" | "evaluations.evaluation_label" | "evaluations.evaluation_processing_state" | "error.has_error";
|
|
3514
|
+
groupByKey?: string;
|
|
3515
|
+
timeScale?: "full" | number;
|
|
3516
|
+
timeZone: string;
|
|
3517
|
+
};
|
|
3518
|
+
};
|
|
3519
|
+
};
|
|
3520
|
+
responses: {
|
|
3521
|
+
/** @description Timeseries analytics data with current and previous periods */
|
|
3522
|
+
200: {
|
|
3523
|
+
headers: {
|
|
3524
|
+
[name: string]: unknown;
|
|
3525
|
+
};
|
|
3526
|
+
content: {
|
|
3527
|
+
"application/json": {
|
|
3528
|
+
currentPeriod: {
|
|
3529
|
+
[key: string]: unknown;
|
|
3530
|
+
}[];
|
|
3531
|
+
previousPeriod: {
|
|
3532
|
+
[key: string]: unknown;
|
|
3533
|
+
}[];
|
|
3534
|
+
};
|
|
3535
|
+
};
|
|
3536
|
+
};
|
|
3537
|
+
/** @description Bad Request */
|
|
3538
|
+
400: {
|
|
3539
|
+
headers: {
|
|
3540
|
+
[name: string]: unknown;
|
|
3541
|
+
};
|
|
3542
|
+
content: {
|
|
3543
|
+
"application/json": {
|
|
3544
|
+
error: string;
|
|
3545
|
+
message?: string;
|
|
3546
|
+
};
|
|
3547
|
+
};
|
|
3548
|
+
};
|
|
3549
|
+
/** @description Unauthorized */
|
|
3550
|
+
401: {
|
|
3551
|
+
headers: {
|
|
3552
|
+
[name: string]: unknown;
|
|
3553
|
+
};
|
|
3554
|
+
content: {
|
|
3555
|
+
"application/json": {
|
|
3556
|
+
error: string;
|
|
3557
|
+
message?: string;
|
|
3558
|
+
};
|
|
3559
|
+
};
|
|
3560
|
+
};
|
|
3561
|
+
/** @description Unprocessable Entity */
|
|
3562
|
+
422: {
|
|
3563
|
+
headers: {
|
|
3564
|
+
[name: string]: unknown;
|
|
3565
|
+
};
|
|
3566
|
+
content: {
|
|
3567
|
+
"application/json": {
|
|
3568
|
+
error: string;
|
|
3569
|
+
message?: string;
|
|
3570
|
+
};
|
|
3571
|
+
};
|
|
3572
|
+
};
|
|
3573
|
+
/** @description Internal Server Error */
|
|
3574
|
+
500: {
|
|
3575
|
+
headers: {
|
|
3576
|
+
[name: string]: unknown;
|
|
3577
|
+
};
|
|
3578
|
+
content: {
|
|
3579
|
+
"application/json": {
|
|
3580
|
+
error: string;
|
|
3581
|
+
message?: string;
|
|
3582
|
+
};
|
|
3583
|
+
};
|
|
3584
|
+
};
|
|
3585
|
+
};
|
|
3586
|
+
};
|
|
3587
|
+
getApiEvaluators: {
|
|
3588
|
+
parameters: {
|
|
3589
|
+
query?: never;
|
|
3590
|
+
header?: never;
|
|
3591
|
+
path?: never;
|
|
3592
|
+
cookie?: never;
|
|
3593
|
+
};
|
|
3594
|
+
requestBody?: never;
|
|
3595
|
+
responses: {
|
|
3596
|
+
/** @description Success */
|
|
3597
|
+
200: {
|
|
3598
|
+
headers: {
|
|
3599
|
+
[name: string]: unknown;
|
|
3600
|
+
};
|
|
3601
|
+
content: {
|
|
3602
|
+
"application/json": {
|
|
3603
|
+
id: string;
|
|
3604
|
+
projectId: string;
|
|
3605
|
+
name: string;
|
|
3606
|
+
slug: string | null;
|
|
3607
|
+
type: string;
|
|
3608
|
+
config: {
|
|
3609
|
+
[key: string]: unknown;
|
|
3610
|
+
} | null;
|
|
3611
|
+
workflowId: string | null;
|
|
3612
|
+
copiedFromEvaluatorId: string | null;
|
|
3613
|
+
createdAt: number | string;
|
|
3614
|
+
updatedAt: number | string;
|
|
3615
|
+
fields: {
|
|
3616
|
+
identifier: string;
|
|
3617
|
+
type: string;
|
|
3618
|
+
optional?: boolean;
|
|
3619
|
+
}[];
|
|
3620
|
+
outputFields: {
|
|
3621
|
+
identifier: string;
|
|
3622
|
+
type: string;
|
|
3623
|
+
optional?: boolean;
|
|
3624
|
+
}[];
|
|
3625
|
+
workflowName?: string;
|
|
3626
|
+
workflowIcon?: string;
|
|
3627
|
+
}[];
|
|
3628
|
+
};
|
|
3629
|
+
};
|
|
3630
|
+
/** @description Bad Request */
|
|
3631
|
+
400: {
|
|
3632
|
+
headers: {
|
|
3633
|
+
[name: string]: unknown;
|
|
3634
|
+
};
|
|
3635
|
+
content: {
|
|
3636
|
+
"application/json": {
|
|
3637
|
+
error: string;
|
|
3638
|
+
message?: string;
|
|
3639
|
+
};
|
|
3640
|
+
};
|
|
3641
|
+
};
|
|
3642
|
+
/** @description Unauthorized */
|
|
3643
|
+
401: {
|
|
3644
|
+
headers: {
|
|
3645
|
+
[name: string]: unknown;
|
|
3646
|
+
};
|
|
3647
|
+
content: {
|
|
3648
|
+
"application/json": {
|
|
3649
|
+
error: string;
|
|
3650
|
+
message?: string;
|
|
3651
|
+
};
|
|
3652
|
+
};
|
|
3653
|
+
};
|
|
3654
|
+
/** @description Unprocessable Entity */
|
|
3655
|
+
422: {
|
|
3656
|
+
headers: {
|
|
3657
|
+
[name: string]: unknown;
|
|
3658
|
+
};
|
|
3659
|
+
content: {
|
|
3660
|
+
"application/json": {
|
|
3661
|
+
error: string;
|
|
3662
|
+
message?: string;
|
|
3663
|
+
};
|
|
3664
|
+
};
|
|
3665
|
+
};
|
|
3666
|
+
/** @description Internal Server Error */
|
|
3667
|
+
500: {
|
|
3668
|
+
headers: {
|
|
3669
|
+
[name: string]: unknown;
|
|
3670
|
+
};
|
|
3671
|
+
content: {
|
|
3672
|
+
"application/json": {
|
|
3673
|
+
error: string;
|
|
3674
|
+
message?: string;
|
|
3675
|
+
};
|
|
3676
|
+
};
|
|
3677
|
+
};
|
|
3678
|
+
};
|
|
3679
|
+
};
|
|
3680
|
+
getApiEvaluatorsByIdOrSlug: {
|
|
3681
|
+
parameters: {
|
|
3682
|
+
query?: never;
|
|
3683
|
+
header?: never;
|
|
3684
|
+
path: {
|
|
3685
|
+
idOrSlug: string;
|
|
3686
|
+
};
|
|
3687
|
+
cookie?: never;
|
|
3688
|
+
};
|
|
3689
|
+
requestBody?: never;
|
|
3690
|
+
responses: {
|
|
3691
|
+
/** @description Success */
|
|
3692
|
+
200: {
|
|
3693
|
+
headers: {
|
|
3694
|
+
[name: string]: unknown;
|
|
3695
|
+
};
|
|
3696
|
+
content: {
|
|
3697
|
+
"application/json": {
|
|
3698
|
+
id: string;
|
|
3699
|
+
projectId: string;
|
|
3700
|
+
name: string;
|
|
3701
|
+
slug: string | null;
|
|
3702
|
+
type: string;
|
|
3703
|
+
config: {
|
|
3704
|
+
[key: string]: unknown;
|
|
3705
|
+
} | null;
|
|
3706
|
+
workflowId: string | null;
|
|
3707
|
+
copiedFromEvaluatorId: string | null;
|
|
3708
|
+
createdAt: number | string;
|
|
3709
|
+
updatedAt: number | string;
|
|
3710
|
+
fields: {
|
|
3711
|
+
identifier: string;
|
|
3712
|
+
type: string;
|
|
3713
|
+
optional?: boolean;
|
|
3714
|
+
}[];
|
|
3715
|
+
outputFields: {
|
|
3716
|
+
identifier: string;
|
|
3717
|
+
type: string;
|
|
3718
|
+
optional?: boolean;
|
|
3719
|
+
}[];
|
|
3720
|
+
workflowName?: string;
|
|
3721
|
+
workflowIcon?: string;
|
|
3722
|
+
};
|
|
3723
|
+
};
|
|
3724
|
+
};
|
|
3725
|
+
/** @description Bad Request */
|
|
3726
|
+
400: {
|
|
3727
|
+
headers: {
|
|
3728
|
+
[name: string]: unknown;
|
|
3729
|
+
};
|
|
3730
|
+
content: {
|
|
3731
|
+
"application/json": {
|
|
3732
|
+
error: string;
|
|
3733
|
+
message?: string;
|
|
3734
|
+
};
|
|
3735
|
+
};
|
|
3736
|
+
};
|
|
3737
|
+
/** @description Unauthorized */
|
|
3738
|
+
401: {
|
|
3739
|
+
headers: {
|
|
3740
|
+
[name: string]: unknown;
|
|
3741
|
+
};
|
|
3742
|
+
content: {
|
|
3743
|
+
"application/json": {
|
|
3744
|
+
error: string;
|
|
3745
|
+
message?: string;
|
|
3746
|
+
};
|
|
3747
|
+
};
|
|
3748
|
+
};
|
|
3749
|
+
/** @description Evaluator not found */
|
|
3750
|
+
404: {
|
|
3751
|
+
headers: {
|
|
3752
|
+
[name: string]: unknown;
|
|
3753
|
+
};
|
|
3754
|
+
content: {
|
|
3755
|
+
"application/json": {
|
|
3756
|
+
error: string;
|
|
3757
|
+
message?: string;
|
|
3758
|
+
};
|
|
3759
|
+
};
|
|
3760
|
+
};
|
|
3761
|
+
/** @description Unprocessable Entity */
|
|
3762
|
+
422: {
|
|
3763
|
+
headers: {
|
|
3764
|
+
[name: string]: unknown;
|
|
3765
|
+
};
|
|
3766
|
+
content: {
|
|
3767
|
+
"application/json": {
|
|
3768
|
+
error: string;
|
|
3769
|
+
message?: string;
|
|
3770
|
+
};
|
|
3771
|
+
};
|
|
3772
|
+
};
|
|
3773
|
+
/** @description Internal Server Error */
|
|
3774
|
+
500: {
|
|
3775
|
+
headers: {
|
|
3776
|
+
[name: string]: unknown;
|
|
3777
|
+
};
|
|
3778
|
+
content: {
|
|
3779
|
+
"application/json": {
|
|
3780
|
+
error: string;
|
|
3781
|
+
message?: string;
|
|
3782
|
+
};
|
|
3783
|
+
};
|
|
3784
|
+
};
|
|
3785
|
+
};
|
|
3786
|
+
};
|
|
3787
|
+
postApiTracesSearch: {
|
|
3788
|
+
parameters: {
|
|
3789
|
+
query?: never;
|
|
3790
|
+
header?: never;
|
|
3791
|
+
path?: never;
|
|
3792
|
+
cookie?: never;
|
|
3793
|
+
};
|
|
3794
|
+
requestBody?: {
|
|
3795
|
+
content: {
|
|
3796
|
+
"application/json": {
|
|
3797
|
+
query?: string;
|
|
3798
|
+
/** @default {} */
|
|
3799
|
+
filters?: {
|
|
3800
|
+
"topics.topics"?: string[] | {
|
|
3801
|
+
[key: string]: string[];
|
|
3802
|
+
} | {
|
|
3803
|
+
[key: string]: {
|
|
3804
|
+
[key: string]: string[];
|
|
3805
|
+
};
|
|
3806
|
+
};
|
|
3807
|
+
"topics.subtopics"?: string[] | {
|
|
3808
|
+
[key: string]: string[];
|
|
3809
|
+
} | {
|
|
3810
|
+
[key: string]: {
|
|
3811
|
+
[key: string]: string[];
|
|
3812
|
+
};
|
|
3813
|
+
};
|
|
3814
|
+
"metadata.user_id"?: string[] | {
|
|
3815
|
+
[key: string]: string[];
|
|
3816
|
+
} | {
|
|
3817
|
+
[key: string]: {
|
|
3818
|
+
[key: string]: string[];
|
|
3819
|
+
};
|
|
3820
|
+
};
|
|
3821
|
+
"metadata.thread_id"?: string[] | {
|
|
3822
|
+
[key: string]: string[];
|
|
3823
|
+
} | {
|
|
3824
|
+
[key: string]: {
|
|
3825
|
+
[key: string]: string[];
|
|
3826
|
+
};
|
|
3827
|
+
};
|
|
3828
|
+
"metadata.customer_id"?: string[] | {
|
|
3829
|
+
[key: string]: string[];
|
|
3830
|
+
} | {
|
|
3831
|
+
[key: string]: {
|
|
3832
|
+
[key: string]: string[];
|
|
3833
|
+
};
|
|
3834
|
+
};
|
|
3835
|
+
"metadata.labels"?: string[] | {
|
|
3836
|
+
[key: string]: string[];
|
|
3837
|
+
} | {
|
|
3838
|
+
[key: string]: {
|
|
3839
|
+
[key: string]: string[];
|
|
3840
|
+
};
|
|
3841
|
+
};
|
|
3842
|
+
"metadata.key"?: string[] | {
|
|
3843
|
+
[key: string]: string[];
|
|
3844
|
+
} | {
|
|
3845
|
+
[key: string]: {
|
|
3846
|
+
[key: string]: string[];
|
|
3847
|
+
};
|
|
3848
|
+
};
|
|
3849
|
+
"metadata.value"?: string[] | {
|
|
3850
|
+
[key: string]: string[];
|
|
3851
|
+
} | {
|
|
3852
|
+
[key: string]: {
|
|
3853
|
+
[key: string]: string[];
|
|
3854
|
+
};
|
|
3855
|
+
};
|
|
3856
|
+
"metadata.prompt_ids"?: string[] | {
|
|
3857
|
+
[key: string]: string[];
|
|
3858
|
+
} | {
|
|
3859
|
+
[key: string]: {
|
|
3860
|
+
[key: string]: string[];
|
|
3861
|
+
};
|
|
3862
|
+
};
|
|
3863
|
+
"traces.error"?: string[] | {
|
|
3864
|
+
[key: string]: string[];
|
|
3865
|
+
} | {
|
|
3866
|
+
[key: string]: {
|
|
3867
|
+
[key: string]: string[];
|
|
3868
|
+
};
|
|
3869
|
+
};
|
|
3870
|
+
"spans.type"?: string[] | {
|
|
3871
|
+
[key: string]: string[];
|
|
3872
|
+
} | {
|
|
3873
|
+
[key: string]: {
|
|
3874
|
+
[key: string]: string[];
|
|
3875
|
+
};
|
|
3876
|
+
};
|
|
3877
|
+
"spans.model"?: string[] | {
|
|
3878
|
+
[key: string]: string[];
|
|
3879
|
+
} | {
|
|
3880
|
+
[key: string]: {
|
|
3881
|
+
[key: string]: string[];
|
|
3882
|
+
};
|
|
3883
|
+
};
|
|
3884
|
+
"evaluations.evaluator_id"?: string[] | {
|
|
3885
|
+
[key: string]: string[];
|
|
3886
|
+
} | {
|
|
3887
|
+
[key: string]: {
|
|
3888
|
+
[key: string]: string[];
|
|
3889
|
+
};
|
|
3890
|
+
};
|
|
3891
|
+
"evaluations.evaluator_id.guardrails_only"?: string[] | {
|
|
3892
|
+
[key: string]: string[];
|
|
3893
|
+
} | {
|
|
3894
|
+
[key: string]: {
|
|
3895
|
+
[key: string]: string[];
|
|
3896
|
+
};
|
|
3897
|
+
};
|
|
3898
|
+
"evaluations.passed"?: string[] | {
|
|
3899
|
+
[key: string]: string[];
|
|
3900
|
+
} | {
|
|
3901
|
+
[key: string]: {
|
|
3902
|
+
[key: string]: string[];
|
|
3903
|
+
};
|
|
3904
|
+
};
|
|
3905
|
+
"evaluations.score"?: string[] | {
|
|
3906
|
+
[key: string]: string[];
|
|
3907
|
+
} | {
|
|
3908
|
+
[key: string]: {
|
|
3909
|
+
[key: string]: string[];
|
|
3910
|
+
};
|
|
3911
|
+
};
|
|
3912
|
+
"evaluations.state"?: string[] | {
|
|
3913
|
+
[key: string]: string[];
|
|
3914
|
+
} | {
|
|
3915
|
+
[key: string]: {
|
|
3916
|
+
[key: string]: string[];
|
|
3917
|
+
};
|
|
3918
|
+
};
|
|
3919
|
+
"evaluations.label"?: string[] | {
|
|
3920
|
+
[key: string]: string[];
|
|
3921
|
+
} | {
|
|
3922
|
+
[key: string]: {
|
|
3923
|
+
[key: string]: string[];
|
|
3924
|
+
};
|
|
3925
|
+
};
|
|
3926
|
+
"events.event_type"?: string[] | {
|
|
3927
|
+
[key: string]: string[];
|
|
3928
|
+
} | {
|
|
3929
|
+
[key: string]: {
|
|
3930
|
+
[key: string]: string[];
|
|
3931
|
+
};
|
|
3932
|
+
};
|
|
3933
|
+
"events.metrics.key"?: string[] | {
|
|
3934
|
+
[key: string]: string[];
|
|
3935
|
+
} | {
|
|
3936
|
+
[key: string]: {
|
|
3937
|
+
[key: string]: string[];
|
|
3938
|
+
};
|
|
3939
|
+
};
|
|
3940
|
+
"events.metrics.value"?: string[] | {
|
|
3941
|
+
[key: string]: string[];
|
|
3942
|
+
} | {
|
|
3943
|
+
[key: string]: {
|
|
3944
|
+
[key: string]: string[];
|
|
3945
|
+
};
|
|
3946
|
+
};
|
|
3947
|
+
"events.event_details.key"?: string[] | {
|
|
3948
|
+
[key: string]: string[];
|
|
3949
|
+
} | {
|
|
3950
|
+
[key: string]: {
|
|
3951
|
+
[key: string]: string[];
|
|
3952
|
+
};
|
|
3953
|
+
};
|
|
3954
|
+
"annotations.hasAnnotation"?: string[] | {
|
|
3955
|
+
[key: string]: string[];
|
|
3956
|
+
} | {
|
|
3957
|
+
[key: string]: {
|
|
3958
|
+
[key: string]: string[];
|
|
3959
|
+
};
|
|
3960
|
+
};
|
|
3961
|
+
"sentiment.input_sentiment"?: string[] | {
|
|
3962
|
+
[key: string]: string[];
|
|
3963
|
+
} | {
|
|
3964
|
+
[key: string]: {
|
|
3965
|
+
[key: string]: string[];
|
|
3966
|
+
};
|
|
3967
|
+
};
|
|
3968
|
+
};
|
|
3969
|
+
traceIds?: string[];
|
|
3970
|
+
negateFilters?: boolean;
|
|
3971
|
+
pageOffset?: number;
|
|
3972
|
+
pageSize?: number;
|
|
3973
|
+
groupBy?: string;
|
|
3974
|
+
sortBy?: string;
|
|
3975
|
+
sortDirection?: string;
|
|
3976
|
+
updatedAt?: number;
|
|
3977
|
+
scrollId?: string | null;
|
|
3978
|
+
startDate: number | string;
|
|
3979
|
+
endDate: number | string;
|
|
3980
|
+
/**
|
|
3981
|
+
* @description Output format: 'digest' (AI-readable trace digest) or 'json' (full raw data)
|
|
3982
|
+
* @enum {string}
|
|
3983
|
+
*/
|
|
3984
|
+
format?: "digest" | "json";
|
|
3985
|
+
llmMode?: boolean;
|
|
3986
|
+
};
|
|
3987
|
+
};
|
|
3988
|
+
};
|
|
3989
|
+
responses: {
|
|
3990
|
+
/** @description Matching traces with pagination */
|
|
3991
|
+
200: {
|
|
3992
|
+
headers: {
|
|
3993
|
+
[name: string]: unknown;
|
|
3994
|
+
};
|
|
3995
|
+
content: {
|
|
3996
|
+
"application/json": {
|
|
3997
|
+
traces: unknown[];
|
|
3998
|
+
pagination: {
|
|
3999
|
+
totalHits: number;
|
|
4000
|
+
scrollId?: string;
|
|
4001
|
+
};
|
|
4002
|
+
};
|
|
4003
|
+
};
|
|
4004
|
+
};
|
|
4005
|
+
/** @description Bad Request */
|
|
4006
|
+
400: {
|
|
4007
|
+
headers: {
|
|
4008
|
+
[name: string]: unknown;
|
|
4009
|
+
};
|
|
4010
|
+
content: {
|
|
4011
|
+
"application/json": {
|
|
4012
|
+
error: string;
|
|
4013
|
+
message?: string;
|
|
4014
|
+
};
|
|
4015
|
+
};
|
|
4016
|
+
};
|
|
4017
|
+
/** @description Unauthorized */
|
|
4018
|
+
401: {
|
|
4019
|
+
headers: {
|
|
4020
|
+
[name: string]: unknown;
|
|
4021
|
+
};
|
|
4022
|
+
content: {
|
|
4023
|
+
"application/json": {
|
|
4024
|
+
error: string;
|
|
4025
|
+
message?: string;
|
|
4026
|
+
};
|
|
4027
|
+
};
|
|
4028
|
+
};
|
|
4029
|
+
/** @description Unprocessable Entity */
|
|
4030
|
+
422: {
|
|
4031
|
+
headers: {
|
|
4032
|
+
[name: string]: unknown;
|
|
4033
|
+
};
|
|
4034
|
+
content: {
|
|
4035
|
+
"application/json": {
|
|
4036
|
+
error: string;
|
|
4037
|
+
message?: string;
|
|
4038
|
+
};
|
|
4039
|
+
};
|
|
4040
|
+
};
|
|
4041
|
+
/** @description Internal Server Error */
|
|
4042
|
+
500: {
|
|
4043
|
+
headers: {
|
|
4044
|
+
[name: string]: unknown;
|
|
4045
|
+
};
|
|
4046
|
+
content: {
|
|
4047
|
+
"application/json": {
|
|
4048
|
+
error: string;
|
|
4049
|
+
message?: string;
|
|
4050
|
+
};
|
|
4051
|
+
};
|
|
4052
|
+
};
|
|
4053
|
+
};
|
|
4054
|
+
};
|
|
4055
|
+
getApiTracesByTraceId: {
|
|
4056
|
+
parameters: {
|
|
4057
|
+
query?: {
|
|
4058
|
+
/** @description Output format: 'digest' (default, AI-readable) or 'json' (full raw data) */
|
|
4059
|
+
format?: "digest" | "json";
|
|
4060
|
+
/** @description Deprecated: use format=digest instead */
|
|
4061
|
+
llmMode?: "true" | "false" | "1" | "0";
|
|
4062
|
+
};
|
|
4063
|
+
header?: never;
|
|
4064
|
+
path: {
|
|
4065
|
+
/** @description The trace ID */
|
|
4066
|
+
traceId: string;
|
|
4067
|
+
};
|
|
4068
|
+
cookie?: never;
|
|
4069
|
+
};
|
|
4070
|
+
requestBody?: never;
|
|
4071
|
+
responses: {
|
|
4072
|
+
/** @description Trace detail with spans, evaluations, and ASCII tree */
|
|
4073
|
+
200: {
|
|
4074
|
+
headers: {
|
|
4075
|
+
[name: string]: unknown;
|
|
4076
|
+
};
|
|
4077
|
+
content: {
|
|
4078
|
+
"application/json": {
|
|
4079
|
+
[key: string]: unknown;
|
|
4080
|
+
};
|
|
4081
|
+
};
|
|
4082
|
+
};
|
|
4083
|
+
/** @description Bad Request */
|
|
4084
|
+
400: {
|
|
4085
|
+
headers: {
|
|
4086
|
+
[name: string]: unknown;
|
|
4087
|
+
};
|
|
4088
|
+
content: {
|
|
4089
|
+
"application/json": {
|
|
4090
|
+
error: string;
|
|
4091
|
+
message?: string;
|
|
4092
|
+
};
|
|
4093
|
+
};
|
|
4094
|
+
};
|
|
4095
|
+
/** @description Unauthorized */
|
|
4096
|
+
401: {
|
|
4097
|
+
headers: {
|
|
4098
|
+
[name: string]: unknown;
|
|
4099
|
+
};
|
|
4100
|
+
content: {
|
|
4101
|
+
"application/json": {
|
|
4102
|
+
error: string;
|
|
4103
|
+
message?: string;
|
|
4104
|
+
};
|
|
4105
|
+
};
|
|
4106
|
+
};
|
|
4107
|
+
/** @description Trace not found */
|
|
4108
|
+
404: {
|
|
4109
|
+
headers: {
|
|
4110
|
+
[name: string]: unknown;
|
|
4111
|
+
};
|
|
4112
|
+
content: {
|
|
4113
|
+
"application/json": {
|
|
4114
|
+
message: string;
|
|
4115
|
+
};
|
|
4116
|
+
};
|
|
4117
|
+
};
|
|
4118
|
+
/** @description Unprocessable Entity */
|
|
4119
|
+
422: {
|
|
4120
|
+
headers: {
|
|
4121
|
+
[name: string]: unknown;
|
|
4122
|
+
};
|
|
4123
|
+
content: {
|
|
4124
|
+
"application/json": {
|
|
4125
|
+
error: string;
|
|
4126
|
+
message?: string;
|
|
4127
|
+
};
|
|
4128
|
+
};
|
|
4129
|
+
};
|
|
4130
|
+
/** @description Internal Server Error */
|
|
4131
|
+
500: {
|
|
4132
|
+
headers: {
|
|
4133
|
+
[name: string]: unknown;
|
|
4134
|
+
};
|
|
4135
|
+
content: {
|
|
4136
|
+
"application/json": {
|
|
4137
|
+
error: string;
|
|
4138
|
+
message?: string;
|
|
4139
|
+
};
|
|
4140
|
+
};
|
|
4141
|
+
};
|
|
4142
|
+
};
|
|
4143
|
+
};
|
|
2982
4144
|
}
|
|
2983
4145
|
|
|
2984
4146
|
/**
|