opik 1.9.21 → 1.9.24-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/{Node18UniversalStreamWrapper-CXRGJAYU.js → Node18UniversalStreamWrapper-B4QPIQXU.js} +1 -1
- package/dist/{NodePre18StreamWrapper-FI2YUAZQ.js → NodePre18StreamWrapper-ZXNXS6Y3.js} +1 -1
- package/dist/{UndiciStreamWrapper-MS3CLU6Y.js → UndiciStreamWrapper-U3LH5M6P.js} +1 -1
- package/dist/chunk-LAR62UGW.js +1 -0
- package/dist/form_data-PYZPT4AA.js +20 -0
- package/dist/index.cjs +65 -47
- package/dist/index.d.cts +327 -140
- package/dist/index.d.ts +327 -140
- package/dist/index.js +25 -25
- package/package.json +3 -1
- package/dist/chunk-VL2AKASE.js +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -183,6 +183,25 @@ declare const DatasetUpdateVisibility: {
|
|
|
183
183
|
readonly Public: "public";
|
|
184
184
|
};
|
|
185
185
|
|
|
186
|
+
/**
|
|
187
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
188
|
+
*/
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* @example
|
|
192
|
+
* {
|
|
193
|
+
* ids: ["ids"],
|
|
194
|
+
* update: {}
|
|
195
|
+
* }
|
|
196
|
+
*/
|
|
197
|
+
interface DatasetItemBatchUpdate {
|
|
198
|
+
/** List of dataset item IDs to update (max 1000) */
|
|
199
|
+
ids: string[];
|
|
200
|
+
update: DatasetItemUpdate;
|
|
201
|
+
/** If true, merge tags with existing tags instead of replacing them. Default: false */
|
|
202
|
+
mergeTags?: boolean;
|
|
203
|
+
}
|
|
204
|
+
|
|
186
205
|
/**
|
|
187
206
|
* This file was auto-generated by Fern from our API Definition.
|
|
188
207
|
*/
|
|
@@ -242,6 +261,23 @@ interface DatasetItemBatchWrite {
|
|
|
242
261
|
items: DatasetItemWrite[];
|
|
243
262
|
}
|
|
244
263
|
|
|
264
|
+
/**
|
|
265
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
266
|
+
*/
|
|
267
|
+
/**
|
|
268
|
+
* @example
|
|
269
|
+
* {
|
|
270
|
+
* file: {
|
|
271
|
+
* "key": "value"
|
|
272
|
+
* },
|
|
273
|
+
* datasetId: "dataset_id"
|
|
274
|
+
* }
|
|
275
|
+
*/
|
|
276
|
+
interface CreateDatasetItemsFromCsvRequest {
|
|
277
|
+
file: Record<string, unknown>;
|
|
278
|
+
datasetId: string;
|
|
279
|
+
}
|
|
280
|
+
|
|
245
281
|
/**
|
|
246
282
|
* This file was auto-generated by Fern from our API Definition.
|
|
247
283
|
*/
|
|
@@ -1006,17 +1042,6 @@ declare const GetSpansByProjectRequestType: {
|
|
|
1006
1042
|
readonly Guardrail: "guardrail";
|
|
1007
1043
|
};
|
|
1008
1044
|
|
|
1009
|
-
/**
|
|
1010
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
1011
|
-
*/
|
|
1012
|
-
type SpanUpdateType = "general" | "tool" | "llm" | "guardrail";
|
|
1013
|
-
declare const SpanUpdateType: {
|
|
1014
|
-
readonly General: "general";
|
|
1015
|
-
readonly Tool: "tool";
|
|
1016
|
-
readonly Llm: "llm";
|
|
1017
|
-
readonly Guardrail: "guardrail";
|
|
1018
|
-
};
|
|
1019
|
-
|
|
1020
1045
|
/**
|
|
1021
1046
|
* This file was auto-generated by Fern from our API Definition.
|
|
1022
1047
|
*/
|
|
@@ -1056,22 +1081,14 @@ declare const SpanSearchStreamRequestPublicType: {
|
|
|
1056
1081
|
|
|
1057
1082
|
/**
|
|
1058
1083
|
* @example
|
|
1059
|
-
* {
|
|
1084
|
+
* {
|
|
1085
|
+
* spans: [{
|
|
1086
|
+
* startTime: "2024-01-15T09:30:00Z"
|
|
1087
|
+
* }]
|
|
1088
|
+
* }
|
|
1060
1089
|
*/
|
|
1061
|
-
interface
|
|
1062
|
-
|
|
1063
|
-
size?: number;
|
|
1064
|
-
projectName?: string;
|
|
1065
|
-
projectId?: string;
|
|
1066
|
-
traceId?: string;
|
|
1067
|
-
type?: GetSpansByProjectRequestType;
|
|
1068
|
-
filters?: string;
|
|
1069
|
-
truncate?: boolean;
|
|
1070
|
-
stripAttachments?: boolean;
|
|
1071
|
-
sorting?: string;
|
|
1072
|
-
exclude?: string;
|
|
1073
|
-
fromTime?: Date;
|
|
1074
|
-
toTime?: Date;
|
|
1090
|
+
interface SpanBatchWrite {
|
|
1091
|
+
spans: SpanWrite[];
|
|
1075
1092
|
}
|
|
1076
1093
|
|
|
1077
1094
|
/**
|
|
@@ -1081,55 +1098,53 @@ interface GetSpansByProjectRequest {
|
|
|
1081
1098
|
/**
|
|
1082
1099
|
* @example
|
|
1083
1100
|
* {
|
|
1084
|
-
*
|
|
1085
|
-
*
|
|
1086
|
-
*
|
|
1101
|
+
* ids: ["ids"],
|
|
1102
|
+
* update: {
|
|
1103
|
+
* traceId: "trace_id"
|
|
1104
|
+
* }
|
|
1087
1105
|
* }
|
|
1088
1106
|
*/
|
|
1089
|
-
interface
|
|
1090
|
-
|
|
1107
|
+
interface SpanBatchUpdate {
|
|
1108
|
+
/** List of span IDs to update (max 1000) */
|
|
1109
|
+
ids: string[];
|
|
1110
|
+
update: SpanUpdate$1;
|
|
1111
|
+
/** If true, merge tags with existing tags instead of replacing them. Default: false */
|
|
1112
|
+
mergeTags?: boolean;
|
|
1091
1113
|
}
|
|
1092
1114
|
|
|
1093
1115
|
/**
|
|
1094
1116
|
* This file was auto-generated by Fern from our API Definition.
|
|
1095
1117
|
*/
|
|
1118
|
+
|
|
1096
1119
|
/**
|
|
1097
1120
|
* @example
|
|
1098
1121
|
* {}
|
|
1099
1122
|
*/
|
|
1100
|
-
interface
|
|
1123
|
+
interface GetSpansByProjectRequest {
|
|
1124
|
+
page?: number;
|
|
1125
|
+
size?: number;
|
|
1126
|
+
projectName?: string;
|
|
1127
|
+
projectId?: string;
|
|
1128
|
+
traceId?: string;
|
|
1129
|
+
type?: GetSpansByProjectRequestType;
|
|
1130
|
+
filters?: string;
|
|
1131
|
+
truncate?: boolean;
|
|
1101
1132
|
stripAttachments?: boolean;
|
|
1133
|
+
sorting?: string;
|
|
1134
|
+
exclude?: string;
|
|
1135
|
+
fromTime?: Date;
|
|
1136
|
+
toTime?: Date;
|
|
1102
1137
|
}
|
|
1103
1138
|
|
|
1104
1139
|
/**
|
|
1105
1140
|
* This file was auto-generated by Fern from our API Definition.
|
|
1106
1141
|
*/
|
|
1107
|
-
|
|
1108
1142
|
/**
|
|
1109
1143
|
* @example
|
|
1110
|
-
* {
|
|
1111
|
-
* traceId: "trace_id"
|
|
1112
|
-
* }
|
|
1144
|
+
* {}
|
|
1113
1145
|
*/
|
|
1114
|
-
interface
|
|
1115
|
-
|
|
1116
|
-
projectName?: string;
|
|
1117
|
-
/** If null and project_name not specified, Default Project is assumed */
|
|
1118
|
-
projectId?: string;
|
|
1119
|
-
traceId: string;
|
|
1120
|
-
parentSpanId?: string;
|
|
1121
|
-
name?: string;
|
|
1122
|
-
type?: SpanUpdateType;
|
|
1123
|
-
endTime?: Date;
|
|
1124
|
-
input?: JsonListString;
|
|
1125
|
-
output?: JsonListString;
|
|
1126
|
-
metadata?: JsonListString;
|
|
1127
|
-
model?: string;
|
|
1128
|
-
provider?: string;
|
|
1129
|
-
tags?: string[];
|
|
1130
|
-
usage?: Record<string, number>;
|
|
1131
|
-
totalEstimatedCost?: number;
|
|
1132
|
-
errorInfo?: ErrorInfo;
|
|
1146
|
+
interface GetSpanByIdRequest {
|
|
1147
|
+
stripAttachments?: boolean;
|
|
1133
1148
|
}
|
|
1134
1149
|
|
|
1135
1150
|
/**
|
|
@@ -1399,36 +1414,36 @@ interface GuardrailBatchWrite {
|
|
|
1399
1414
|
/**
|
|
1400
1415
|
* This file was auto-generated by Fern from our API Definition.
|
|
1401
1416
|
*/
|
|
1417
|
+
|
|
1402
1418
|
/**
|
|
1403
1419
|
* @example
|
|
1404
|
-
* {
|
|
1420
|
+
* {
|
|
1421
|
+
* traces: [{
|
|
1422
|
+
* startTime: "2024-01-15T09:30:00Z"
|
|
1423
|
+
* }]
|
|
1424
|
+
* }
|
|
1405
1425
|
*/
|
|
1406
|
-
interface
|
|
1407
|
-
|
|
1408
|
-
projectId?: string;
|
|
1409
|
-
threadId?: string;
|
|
1410
|
-
threadIds?: string[];
|
|
1426
|
+
interface TraceBatchWrite {
|
|
1427
|
+
traces: TraceWrite[];
|
|
1411
1428
|
}
|
|
1412
1429
|
|
|
1413
1430
|
/**
|
|
1414
1431
|
* This file was auto-generated by Fern from our API Definition.
|
|
1415
1432
|
*/
|
|
1433
|
+
|
|
1416
1434
|
/**
|
|
1417
1435
|
* @example
|
|
1418
|
-
* {
|
|
1436
|
+
* {
|
|
1437
|
+
* ids: ["ids"],
|
|
1438
|
+
* update: {}
|
|
1439
|
+
* }
|
|
1419
1440
|
*/
|
|
1420
|
-
interface
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
truncate?: boolean;
|
|
1427
|
-
stripAttachments?: boolean;
|
|
1428
|
-
sorting?: string;
|
|
1429
|
-
exclude?: string;
|
|
1430
|
-
fromTime?: Date;
|
|
1431
|
-
toTime?: Date;
|
|
1441
|
+
interface TraceBatchUpdate {
|
|
1442
|
+
/** List of trace IDs to update (max 1000) */
|
|
1443
|
+
ids: string[];
|
|
1444
|
+
update: TraceUpdate;
|
|
1445
|
+
/** If true, merge tags with existing tags instead of replacing them. Default: false */
|
|
1446
|
+
mergeTags?: boolean;
|
|
1432
1447
|
}
|
|
1433
1448
|
|
|
1434
1449
|
/**
|
|
@@ -1438,13 +1453,16 @@ interface GetTracesByProjectRequest {
|
|
|
1438
1453
|
/**
|
|
1439
1454
|
* @example
|
|
1440
1455
|
* {
|
|
1441
|
-
*
|
|
1442
|
-
*
|
|
1443
|
-
* }]
|
|
1456
|
+
* ids: ["ids"],
|
|
1457
|
+
* update: {}
|
|
1444
1458
|
* }
|
|
1445
1459
|
*/
|
|
1446
|
-
interface
|
|
1447
|
-
|
|
1460
|
+
interface TraceThreadBatchUpdate {
|
|
1461
|
+
/** List of thread model IDs to update (max 1000) */
|
|
1462
|
+
ids: string[];
|
|
1463
|
+
update: TraceThreadUpdate;
|
|
1464
|
+
/** If true, merge tags with existing tags instead of replacing them. Default: false */
|
|
1465
|
+
mergeTags?: boolean;
|
|
1448
1466
|
}
|
|
1449
1467
|
|
|
1450
1468
|
/**
|
|
@@ -1454,31 +1472,43 @@ interface TraceBatchWrite {
|
|
|
1454
1472
|
* @example
|
|
1455
1473
|
* {}
|
|
1456
1474
|
*/
|
|
1457
|
-
interface
|
|
1458
|
-
|
|
1475
|
+
interface TraceThreadBatchIdentifier {
|
|
1476
|
+
projectName?: string;
|
|
1477
|
+
projectId?: string;
|
|
1478
|
+
threadId?: string;
|
|
1479
|
+
threadIds?: string[];
|
|
1459
1480
|
}
|
|
1460
1481
|
|
|
1461
1482
|
/**
|
|
1462
1483
|
* This file was auto-generated by Fern from our API Definition.
|
|
1463
1484
|
*/
|
|
1464
|
-
|
|
1465
1485
|
/**
|
|
1466
1486
|
* @example
|
|
1467
1487
|
* {}
|
|
1468
1488
|
*/
|
|
1469
|
-
interface
|
|
1470
|
-
|
|
1489
|
+
interface GetTracesByProjectRequest {
|
|
1490
|
+
page?: number;
|
|
1491
|
+
size?: number;
|
|
1471
1492
|
projectName?: string;
|
|
1472
|
-
/** If null and project_name not specified, Default Project is assumed */
|
|
1473
1493
|
projectId?: string;
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1494
|
+
filters?: string;
|
|
1495
|
+
truncate?: boolean;
|
|
1496
|
+
stripAttachments?: boolean;
|
|
1497
|
+
sorting?: string;
|
|
1498
|
+
exclude?: string;
|
|
1499
|
+
fromTime?: Date;
|
|
1500
|
+
toTime?: Date;
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
/**
|
|
1504
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1505
|
+
*/
|
|
1506
|
+
/**
|
|
1507
|
+
* @example
|
|
1508
|
+
* {}
|
|
1509
|
+
*/
|
|
1510
|
+
interface GetTraceByIdRequest {
|
|
1511
|
+
stripAttachments?: boolean;
|
|
1482
1512
|
}
|
|
1483
1513
|
|
|
1484
1514
|
/**
|
|
@@ -1636,17 +1666,6 @@ interface TraceSearchStreamRequestPublic {
|
|
|
1636
1666
|
toTime?: Date;
|
|
1637
1667
|
}
|
|
1638
1668
|
|
|
1639
|
-
/**
|
|
1640
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
1641
|
-
*/
|
|
1642
|
-
/**
|
|
1643
|
-
* @example
|
|
1644
|
-
* {}
|
|
1645
|
-
*/
|
|
1646
|
-
interface TraceThreadUpdate {
|
|
1647
|
-
tags?: string[];
|
|
1648
|
-
}
|
|
1649
|
-
|
|
1650
1669
|
/**
|
|
1651
1670
|
* This file was auto-generated by Fern from our API Definition.
|
|
1652
1671
|
*/
|
|
@@ -1785,12 +1804,13 @@ interface WorkspaceTraceCount {
|
|
|
1785
1804
|
/**
|
|
1786
1805
|
* This file was auto-generated by Fern from our API Definition.
|
|
1787
1806
|
*/
|
|
1788
|
-
type AlertTriggerConfigWriteType = "scope:project" | "threshold:feedback_score" | "threshold:cost" | "threshold:latency";
|
|
1807
|
+
type AlertTriggerConfigWriteType = "scope:project" | "threshold:feedback_score" | "threshold:cost" | "threshold:latency" | "threshold:errors";
|
|
1789
1808
|
declare const AlertTriggerConfigWriteType: {
|
|
1790
1809
|
readonly ScopeProject: "scope:project";
|
|
1791
1810
|
readonly ThresholdFeedbackScore: "threshold:feedback_score";
|
|
1792
1811
|
readonly ThresholdCost: "threshold:cost";
|
|
1793
1812
|
readonly ThresholdLatency: "threshold:latency";
|
|
1813
|
+
readonly ThresholdErrors: "threshold:errors";
|
|
1794
1814
|
};
|
|
1795
1815
|
|
|
1796
1816
|
/**
|
|
@@ -1887,12 +1907,13 @@ interface AlertPagePublic {
|
|
|
1887
1907
|
/**
|
|
1888
1908
|
* This file was auto-generated by Fern from our API Definition.
|
|
1889
1909
|
*/
|
|
1890
|
-
type AlertTriggerConfigPublicType = "scope:project" | "threshold:feedback_score" | "threshold:cost" | "threshold:latency";
|
|
1910
|
+
type AlertTriggerConfigPublicType = "scope:project" | "threshold:feedback_score" | "threshold:cost" | "threshold:latency" | "threshold:errors";
|
|
1891
1911
|
declare const AlertTriggerConfigPublicType: {
|
|
1892
1912
|
readonly ScopeProject: "scope:project";
|
|
1893
1913
|
readonly ThresholdFeedbackScore: "threshold:feedback_score";
|
|
1894
1914
|
readonly ThresholdCost: "threshold:cost";
|
|
1895
1915
|
readonly ThresholdLatency: "threshold:latency";
|
|
1916
|
+
readonly ThresholdErrors: "threshold:errors";
|
|
1896
1917
|
};
|
|
1897
1918
|
|
|
1898
1919
|
/**
|
|
@@ -3106,6 +3127,24 @@ interface DashboardPagePublic {
|
|
|
3106
3127
|
total?: number;
|
|
3107
3128
|
}
|
|
3108
3129
|
|
|
3130
|
+
/**
|
|
3131
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3132
|
+
*/
|
|
3133
|
+
|
|
3134
|
+
/**
|
|
3135
|
+
* Dataset item update request
|
|
3136
|
+
*/
|
|
3137
|
+
interface DatasetItemUpdate {
|
|
3138
|
+
/** Dataset item input */
|
|
3139
|
+
input?: string;
|
|
3140
|
+
/** Dataset item expected output */
|
|
3141
|
+
expectedOutput?: string;
|
|
3142
|
+
metadata?: JsonNode;
|
|
3143
|
+
data?: JsonNode;
|
|
3144
|
+
/** Tags */
|
|
3145
|
+
tags?: string[];
|
|
3146
|
+
}
|
|
3147
|
+
|
|
3109
3148
|
/**
|
|
3110
3149
|
* This file was auto-generated by Fern from our API Definition.
|
|
3111
3150
|
*/
|
|
@@ -4955,6 +4994,43 @@ interface ServiceTogglesConfig {
|
|
|
4955
4994
|
opikAiEnabled: boolean;
|
|
4956
4995
|
alertsEnabled: boolean;
|
|
4957
4996
|
welcomeWizardEnabled: boolean;
|
|
4997
|
+
csvUploadEnabled: boolean;
|
|
4998
|
+
}
|
|
4999
|
+
|
|
5000
|
+
/**
|
|
5001
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
5002
|
+
*/
|
|
5003
|
+
type SpanUpdateType = "general" | "tool" | "llm" | "guardrail";
|
|
5004
|
+
declare const SpanUpdateType: {
|
|
5005
|
+
readonly General: "general";
|
|
5006
|
+
readonly Tool: "tool";
|
|
5007
|
+
readonly Llm: "llm";
|
|
5008
|
+
readonly Guardrail: "guardrail";
|
|
5009
|
+
};
|
|
5010
|
+
|
|
5011
|
+
/**
|
|
5012
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
5013
|
+
*/
|
|
5014
|
+
|
|
5015
|
+
interface SpanUpdate$1 {
|
|
5016
|
+
/** If null and project_id not specified, Default Project is assumed */
|
|
5017
|
+
projectName?: string;
|
|
5018
|
+
/** If null and project_name not specified, Default Project is assumed */
|
|
5019
|
+
projectId?: string;
|
|
5020
|
+
traceId: string;
|
|
5021
|
+
parentSpanId?: string;
|
|
5022
|
+
name?: string;
|
|
5023
|
+
type?: SpanUpdateType;
|
|
5024
|
+
endTime?: Date;
|
|
5025
|
+
input?: JsonListString;
|
|
5026
|
+
output?: JsonListString;
|
|
5027
|
+
metadata?: JsonListString;
|
|
5028
|
+
model?: string;
|
|
5029
|
+
provider?: string;
|
|
5030
|
+
tags?: string[];
|
|
5031
|
+
usage?: Record<string, number>;
|
|
5032
|
+
totalEstimatedCost?: number;
|
|
5033
|
+
errorInfo?: ErrorInfo;
|
|
4958
5034
|
}
|
|
4959
5035
|
|
|
4960
5036
|
/**
|
|
@@ -5193,6 +5269,32 @@ interface SpanFilterPublic {
|
|
|
5193
5269
|
value?: string;
|
|
5194
5270
|
}
|
|
5195
5271
|
|
|
5272
|
+
/**
|
|
5273
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
5274
|
+
*/
|
|
5275
|
+
|
|
5276
|
+
interface TraceUpdate {
|
|
5277
|
+
/** If null and project_id not specified, Default Project is assumed */
|
|
5278
|
+
projectName?: string;
|
|
5279
|
+
/** If null and project_name not specified, Default Project is assumed */
|
|
5280
|
+
projectId?: string;
|
|
5281
|
+
name?: string;
|
|
5282
|
+
endTime?: Date;
|
|
5283
|
+
input?: JsonListString;
|
|
5284
|
+
output?: JsonListString;
|
|
5285
|
+
metadata?: JsonListString;
|
|
5286
|
+
tags?: string[];
|
|
5287
|
+
errorInfo?: ErrorInfo;
|
|
5288
|
+
threadId?: string;
|
|
5289
|
+
}
|
|
5290
|
+
|
|
5291
|
+
/**
|
|
5292
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
5293
|
+
*/
|
|
5294
|
+
interface TraceThreadUpdate {
|
|
5295
|
+
tags?: string[];
|
|
5296
|
+
}
|
|
5297
|
+
|
|
5196
5298
|
/**
|
|
5197
5299
|
* This file was auto-generated by Fern from our API Definition.
|
|
5198
5300
|
*/
|
|
@@ -6499,6 +6601,22 @@ declare namespace Datasets {
|
|
|
6499
6601
|
declare class Datasets {
|
|
6500
6602
|
protected readonly _options: Datasets.Options;
|
|
6501
6603
|
constructor(_options?: Datasets.Options);
|
|
6604
|
+
/**
|
|
6605
|
+
* Update multiple dataset items
|
|
6606
|
+
*
|
|
6607
|
+
* @param {OpikApi.DatasetItemBatchUpdate} request
|
|
6608
|
+
* @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
|
|
6609
|
+
*
|
|
6610
|
+
* @throws {@link OpikApi.BadRequestError}
|
|
6611
|
+
*
|
|
6612
|
+
* @example
|
|
6613
|
+
* await client.datasets.batchUpdateDatasetItems({
|
|
6614
|
+
* ids: ["ids"],
|
|
6615
|
+
* update: {}
|
|
6616
|
+
* })
|
|
6617
|
+
*/
|
|
6618
|
+
batchUpdateDatasetItems(request: DatasetItemBatchUpdate, requestOptions?: Datasets.RequestOptions): HttpResponsePromise<void>;
|
|
6619
|
+
private __batchUpdateDatasetItems;
|
|
6502
6620
|
/**
|
|
6503
6621
|
* Find datasets
|
|
6504
6622
|
*
|
|
@@ -6541,6 +6659,25 @@ declare class Datasets {
|
|
|
6541
6659
|
*/
|
|
6542
6660
|
createOrUpdateDatasetItems(request: DatasetItemBatchWrite, requestOptions?: Datasets.RequestOptions): HttpResponsePromise<void>;
|
|
6543
6661
|
private __createOrUpdateDatasetItems;
|
|
6662
|
+
/**
|
|
6663
|
+
* Create dataset items from uploaded CSV file. CSV should have headers in the first row. Processing happens asynchronously in batches.
|
|
6664
|
+
*
|
|
6665
|
+
* @param {OpikApi.CreateDatasetItemsFromCsvRequest} request
|
|
6666
|
+
* @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
|
|
6667
|
+
*
|
|
6668
|
+
* @throws {@link OpikApi.BadRequestError}
|
|
6669
|
+
* @throws {@link OpikApi.NotFoundError}
|
|
6670
|
+
*
|
|
6671
|
+
* @example
|
|
6672
|
+
* await client.datasets.createDatasetItemsFromCsv({
|
|
6673
|
+
* file: {
|
|
6674
|
+
* "key": "value"
|
|
6675
|
+
* },
|
|
6676
|
+
* datasetId: "dataset_id"
|
|
6677
|
+
* })
|
|
6678
|
+
*/
|
|
6679
|
+
createDatasetItemsFromCsv(request: CreateDatasetItemsFromCsvRequest, requestOptions?: Datasets.RequestOptions): HttpResponsePromise<void>;
|
|
6680
|
+
private __createDatasetItemsFromCsv;
|
|
6544
6681
|
/**
|
|
6545
6682
|
* Create dataset items from spans with enriched metadata
|
|
6546
6683
|
*
|
|
@@ -8023,6 +8160,39 @@ declare class Spans {
|
|
|
8023
8160
|
*/
|
|
8024
8161
|
addSpanFeedbackScore(id: string, request: FeedbackScore, requestOptions?: Spans.RequestOptions): HttpResponsePromise<void>;
|
|
8025
8162
|
private __addSpanFeedbackScore;
|
|
8163
|
+
/**
|
|
8164
|
+
* Create spans
|
|
8165
|
+
*
|
|
8166
|
+
* @param {OpikApi.SpanBatchWrite} request
|
|
8167
|
+
* @param {Spans.RequestOptions} requestOptions - Request-specific configuration.
|
|
8168
|
+
*
|
|
8169
|
+
* @example
|
|
8170
|
+
* await client.spans.createSpans({
|
|
8171
|
+
* spans: [{
|
|
8172
|
+
* startTime: "2024-01-15T09:30:00Z"
|
|
8173
|
+
* }]
|
|
8174
|
+
* })
|
|
8175
|
+
*/
|
|
8176
|
+
createSpans(request: SpanBatchWrite, requestOptions?: Spans.RequestOptions): HttpResponsePromise<void>;
|
|
8177
|
+
private __createSpans;
|
|
8178
|
+
/**
|
|
8179
|
+
* Update multiple spans
|
|
8180
|
+
*
|
|
8181
|
+
* @param {OpikApi.SpanBatchUpdate} request
|
|
8182
|
+
* @param {Spans.RequestOptions} requestOptions - Request-specific configuration.
|
|
8183
|
+
*
|
|
8184
|
+
* @throws {@link OpikApi.BadRequestError}
|
|
8185
|
+
*
|
|
8186
|
+
* @example
|
|
8187
|
+
* await client.spans.batchUpdateSpans({
|
|
8188
|
+
* ids: ["ids"],
|
|
8189
|
+
* update: {
|
|
8190
|
+
* traceId: "trace_id"
|
|
8191
|
+
* }
|
|
8192
|
+
* })
|
|
8193
|
+
*/
|
|
8194
|
+
batchUpdateSpans(request: SpanBatchUpdate, requestOptions?: Spans.RequestOptions): HttpResponsePromise<void>;
|
|
8195
|
+
private __batchUpdateSpans;
|
|
8026
8196
|
/**
|
|
8027
8197
|
* Get spans by project_name or project_id and optionally by trace_id and/or type
|
|
8028
8198
|
*
|
|
@@ -8049,21 +8219,6 @@ declare class Spans {
|
|
|
8049
8219
|
*/
|
|
8050
8220
|
createSpan(request: SpanWrite, requestOptions?: Spans.RequestOptions): HttpResponsePromise<void>;
|
|
8051
8221
|
private __createSpan;
|
|
8052
|
-
/**
|
|
8053
|
-
* Create spans
|
|
8054
|
-
*
|
|
8055
|
-
* @param {OpikApi.SpanBatchWrite} request
|
|
8056
|
-
* @param {Spans.RequestOptions} requestOptions - Request-specific configuration.
|
|
8057
|
-
*
|
|
8058
|
-
* @example
|
|
8059
|
-
* await client.spans.createSpans({
|
|
8060
|
-
* spans: [{
|
|
8061
|
-
* startTime: "2024-01-15T09:30:00Z"
|
|
8062
|
-
* }]
|
|
8063
|
-
* })
|
|
8064
|
-
*/
|
|
8065
|
-
createSpans(request: SpanBatchWrite, requestOptions?: Spans.RequestOptions): HttpResponsePromise<void>;
|
|
8066
|
-
private __createSpans;
|
|
8067
8222
|
/**
|
|
8068
8223
|
* Get span by id
|
|
8069
8224
|
*
|
|
@@ -8294,6 +8449,53 @@ declare class Traces {
|
|
|
8294
8449
|
*/
|
|
8295
8450
|
addTraceFeedbackScore(id: string, request: FeedbackScore, requestOptions?: Traces.RequestOptions): HttpResponsePromise<void>;
|
|
8296
8451
|
private __addTraceFeedbackScore;
|
|
8452
|
+
/**
|
|
8453
|
+
* Create traces
|
|
8454
|
+
*
|
|
8455
|
+
* @param {OpikApi.TraceBatchWrite} request
|
|
8456
|
+
* @param {Traces.RequestOptions} requestOptions - Request-specific configuration.
|
|
8457
|
+
*
|
|
8458
|
+
* @example
|
|
8459
|
+
* await client.traces.createTraces({
|
|
8460
|
+
* traces: [{
|
|
8461
|
+
* startTime: "2024-01-15T09:30:00Z"
|
|
8462
|
+
* }]
|
|
8463
|
+
* })
|
|
8464
|
+
*/
|
|
8465
|
+
createTraces(request: TraceBatchWrite, requestOptions?: Traces.RequestOptions): HttpResponsePromise<void>;
|
|
8466
|
+
private __createTraces;
|
|
8467
|
+
/**
|
|
8468
|
+
* Update multiple traces
|
|
8469
|
+
*
|
|
8470
|
+
* @param {OpikApi.TraceBatchUpdate} request
|
|
8471
|
+
* @param {Traces.RequestOptions} requestOptions - Request-specific configuration.
|
|
8472
|
+
*
|
|
8473
|
+
* @throws {@link OpikApi.BadRequestError}
|
|
8474
|
+
*
|
|
8475
|
+
* @example
|
|
8476
|
+
* await client.traces.batchUpdateTraces({
|
|
8477
|
+
* ids: ["ids"],
|
|
8478
|
+
* update: {}
|
|
8479
|
+
* })
|
|
8480
|
+
*/
|
|
8481
|
+
batchUpdateTraces(request: TraceBatchUpdate, requestOptions?: Traces.RequestOptions): HttpResponsePromise<void>;
|
|
8482
|
+
private __batchUpdateTraces;
|
|
8483
|
+
/**
|
|
8484
|
+
* Update multiple threads
|
|
8485
|
+
*
|
|
8486
|
+
* @param {OpikApi.TraceThreadBatchUpdate} request
|
|
8487
|
+
* @param {Traces.RequestOptions} requestOptions - Request-specific configuration.
|
|
8488
|
+
*
|
|
8489
|
+
* @throws {@link OpikApi.BadRequestError}
|
|
8490
|
+
*
|
|
8491
|
+
* @example
|
|
8492
|
+
* await client.traces.batchUpdateThreads({
|
|
8493
|
+
* ids: ["ids"],
|
|
8494
|
+
* update: {}
|
|
8495
|
+
* })
|
|
8496
|
+
*/
|
|
8497
|
+
batchUpdateThreads(request: TraceThreadBatchUpdate, requestOptions?: Traces.RequestOptions): HttpResponsePromise<void>;
|
|
8498
|
+
private __batchUpdateThreads;
|
|
8297
8499
|
/**
|
|
8298
8500
|
* Close one or multiple trace threads. Supports both single thread_id and multiple thread_ids for batch operations.
|
|
8299
8501
|
*
|
|
@@ -8331,21 +8533,6 @@ declare class Traces {
|
|
|
8331
8533
|
*/
|
|
8332
8534
|
createTrace(request: TraceWrite, requestOptions?: Traces.RequestOptions): HttpResponsePromise<void>;
|
|
8333
8535
|
private __createTrace;
|
|
8334
|
-
/**
|
|
8335
|
-
* Create traces
|
|
8336
|
-
*
|
|
8337
|
-
* @param {OpikApi.TraceBatchWrite} request
|
|
8338
|
-
* @param {Traces.RequestOptions} requestOptions - Request-specific configuration.
|
|
8339
|
-
*
|
|
8340
|
-
* @example
|
|
8341
|
-
* await client.traces.createTraces({
|
|
8342
|
-
* traces: [{
|
|
8343
|
-
* startTime: "2024-01-15T09:30:00Z"
|
|
8344
|
-
* }]
|
|
8345
|
-
* })
|
|
8346
|
-
*/
|
|
8347
|
-
createTraces(request: TraceBatchWrite, requestOptions?: Traces.RequestOptions): HttpResponsePromise<void>;
|
|
8348
|
-
private __createTraces;
|
|
8349
8536
|
/**
|
|
8350
8537
|
* Get trace by id
|
|
8351
8538
|
*
|
|
@@ -8377,9 +8564,9 @@ declare class Traces {
|
|
|
8377
8564
|
* @param {Traces.RequestOptions} requestOptions - Request-specific configuration.
|
|
8378
8565
|
*
|
|
8379
8566
|
* @example
|
|
8380
|
-
* await client.traces.updateTrace("id")
|
|
8567
|
+
* await client.traces.updateTrace("id", {})
|
|
8381
8568
|
*/
|
|
8382
|
-
updateTrace(id: string, request
|
|
8569
|
+
updateTrace(id: string, request: TraceUpdate, requestOptions?: Traces.RequestOptions): HttpResponsePromise<void>;
|
|
8383
8570
|
private __updateTrace;
|
|
8384
8571
|
/**
|
|
8385
8572
|
* Delete thread comments
|
|
@@ -8623,9 +8810,9 @@ declare class Traces {
|
|
|
8623
8810
|
* @throws {@link OpikApi.NotFoundError}
|
|
8624
8811
|
*
|
|
8625
8812
|
* @example
|
|
8626
|
-
* await client.traces.updateThread("threadModelId")
|
|
8813
|
+
* await client.traces.updateThread("threadModelId", {})
|
|
8627
8814
|
*/
|
|
8628
|
-
updateThread(threadModelId: string, request
|
|
8815
|
+
updateThread(threadModelId: string, request: TraceThreadUpdate, requestOptions?: Traces.RequestOptions): HttpResponsePromise<void>;
|
|
8629
8816
|
private __updateThread;
|
|
8630
8817
|
/**
|
|
8631
8818
|
* Update thread comment by id
|