opik 1.6.10 → 1.6.12
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/{Client-b-rflrP-.d.cts → Client-D0fvwRHZ.d.cts} +465 -13
- package/dist/{Client-b-rflrP-.d.ts → Client-D0fvwRHZ.d.ts} +465 -13
- package/dist/{Node18UniversalStreamWrapper-GZXI7BSF.js → Node18UniversalStreamWrapper-4W3MJAHL.js} +1 -1
- package/dist/{NodePre18StreamWrapper-TZYQXHQT.js → NodePre18StreamWrapper-6SHOOALU.js} +1 -1
- package/dist/{UndiciStreamWrapper-4QYH36IP.js → UndiciStreamWrapper-MDO66TBH.js} +1 -1
- package/dist/chunk-5TBO732O.js +1 -0
- package/dist/chunk-RJDPWWRR.js +4 -0
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/langchain/index.cjs +19 -0
- package/dist/langchain/index.d.cts +55 -0
- package/dist/langchain/index.d.ts +55 -0
- package/dist/langchain/index.js +17 -0
- package/dist/vercel/index.cjs +4 -4
- package/dist/vercel/index.d.cts +1 -1
- package/dist/vercel/index.d.ts +1 -1
- package/dist/vercel/index.js +1 -1
- package/package.json +7 -1
- package/dist/chunk-5DWIBQL7.js +0 -4
- package/dist/chunk-WOT6VMZA.js +0 -1
|
@@ -7,6 +7,15 @@ interface OpikConfig {
|
|
|
7
7
|
workspaceName: string;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
12
|
+
*/
|
|
13
|
+
type AttachmentListRequestEntityType = "trace" | "span";
|
|
14
|
+
declare const AttachmentListRequestEntityType: {
|
|
15
|
+
readonly Trace: "trace";
|
|
16
|
+
readonly Span: "span";
|
|
17
|
+
};
|
|
18
|
+
|
|
10
19
|
/**
|
|
11
20
|
* This file was auto-generated by Fern from our API Definition.
|
|
12
21
|
*/
|
|
@@ -16,6 +25,15 @@ declare const CompleteMultipartUploadRequestEntityType: {
|
|
|
16
25
|
readonly Span: "span";
|
|
17
26
|
};
|
|
18
27
|
|
|
28
|
+
/**
|
|
29
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
30
|
+
*/
|
|
31
|
+
type DownloadAttachmentRequestEntityType = "trace" | "span";
|
|
32
|
+
declare const DownloadAttachmentRequestEntityType: {
|
|
33
|
+
readonly Trace: "trace";
|
|
34
|
+
readonly Span: "span";
|
|
35
|
+
};
|
|
36
|
+
|
|
19
37
|
/**
|
|
20
38
|
* This file was auto-generated by Fern from our API Definition.
|
|
21
39
|
*/
|
|
@@ -34,6 +52,28 @@ declare const UploadAttachmentRequestEntityType: {
|
|
|
34
52
|
readonly Span: "span";
|
|
35
53
|
};
|
|
36
54
|
|
|
55
|
+
/**
|
|
56
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
57
|
+
*/
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @example
|
|
61
|
+
* {
|
|
62
|
+
* projectId: "project_id",
|
|
63
|
+
* entityType: "trace",
|
|
64
|
+
* entityId: "entity_id",
|
|
65
|
+
* path: "path"
|
|
66
|
+
* }
|
|
67
|
+
*/
|
|
68
|
+
interface AttachmentListRequest {
|
|
69
|
+
page?: number;
|
|
70
|
+
size?: number;
|
|
71
|
+
projectId: string;
|
|
72
|
+
entityType: AttachmentListRequestEntityType;
|
|
73
|
+
entityId: string;
|
|
74
|
+
path: string;
|
|
75
|
+
}
|
|
76
|
+
|
|
37
77
|
/**
|
|
38
78
|
* This file was auto-generated by Fern from our API Definition.
|
|
39
79
|
*/
|
|
@@ -64,6 +104,19 @@ interface CompleteMultipartUploadRequest {
|
|
|
64
104
|
uploadedFileParts: MultipartUploadPart[];
|
|
65
105
|
}
|
|
66
106
|
|
|
107
|
+
/**
|
|
108
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
109
|
+
*/
|
|
110
|
+
|
|
111
|
+
interface DownloadAttachmentRequest {
|
|
112
|
+
workspaceName?: string;
|
|
113
|
+
containerId: string;
|
|
114
|
+
entityType: DownloadAttachmentRequestEntityType;
|
|
115
|
+
entityId: string;
|
|
116
|
+
fileName: string;
|
|
117
|
+
mimeType: string;
|
|
118
|
+
}
|
|
119
|
+
|
|
67
120
|
/**
|
|
68
121
|
* This file was auto-generated by Fern from our API Definition.
|
|
69
122
|
*/
|
|
@@ -1146,6 +1199,28 @@ interface WorkspaceTraceCount {
|
|
|
1146
1199
|
traceCount?: number;
|
|
1147
1200
|
}
|
|
1148
1201
|
|
|
1202
|
+
/**
|
|
1203
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1204
|
+
*/
|
|
1205
|
+
interface Attachment {
|
|
1206
|
+
link?: string;
|
|
1207
|
+
fileName?: string;
|
|
1208
|
+
fileSize?: number;
|
|
1209
|
+
mimeType?: string;
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
/**
|
|
1213
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1214
|
+
*/
|
|
1215
|
+
|
|
1216
|
+
interface AttachmentPage {
|
|
1217
|
+
page?: number;
|
|
1218
|
+
size?: number;
|
|
1219
|
+
total?: number;
|
|
1220
|
+
content?: Attachment[];
|
|
1221
|
+
sortableBy?: string[];
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1149
1224
|
/**
|
|
1150
1225
|
* This file was auto-generated by Fern from our API Definition.
|
|
1151
1226
|
*/
|
|
@@ -1174,6 +1249,176 @@ interface WorkspaceNameHolder {
|
|
|
1174
1249
|
workspaceName?: string;
|
|
1175
1250
|
}
|
|
1176
1251
|
|
|
1252
|
+
/**
|
|
1253
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1254
|
+
*/
|
|
1255
|
+
|
|
1256
|
+
interface LlmAsJudgeCode {
|
|
1257
|
+
model: LlmAsJudgeModelParameters;
|
|
1258
|
+
messages: LlmAsJudgeMessage[];
|
|
1259
|
+
variables: Record<string, string>;
|
|
1260
|
+
schema: LlmAsJudgeOutputSchema[];
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
/**
|
|
1264
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1265
|
+
*/
|
|
1266
|
+
type LlmAsJudgeMessageRole = "SYSTEM" | "USER" | "AI" | "TOOL_EXECUTION_RESULT";
|
|
1267
|
+
declare const LlmAsJudgeMessageRole: {
|
|
1268
|
+
readonly System: "SYSTEM";
|
|
1269
|
+
readonly User: "USER";
|
|
1270
|
+
readonly Ai: "AI";
|
|
1271
|
+
readonly ToolExecutionResult: "TOOL_EXECUTION_RESULT";
|
|
1272
|
+
};
|
|
1273
|
+
|
|
1274
|
+
/**
|
|
1275
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1276
|
+
*/
|
|
1277
|
+
|
|
1278
|
+
interface LlmAsJudgeMessage {
|
|
1279
|
+
role: LlmAsJudgeMessageRole;
|
|
1280
|
+
content: string;
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
/**
|
|
1284
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1285
|
+
*/
|
|
1286
|
+
interface LlmAsJudgeModelParameters {
|
|
1287
|
+
name: string;
|
|
1288
|
+
temperature: number;
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
/**
|
|
1292
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1293
|
+
*/
|
|
1294
|
+
type LlmAsJudgeOutputSchemaType = "BOOLEAN" | "INTEGER" | "DOUBLE";
|
|
1295
|
+
declare const LlmAsJudgeOutputSchemaType: {
|
|
1296
|
+
readonly Boolean: "BOOLEAN";
|
|
1297
|
+
readonly Integer: "INTEGER";
|
|
1298
|
+
readonly Double: "DOUBLE";
|
|
1299
|
+
};
|
|
1300
|
+
|
|
1301
|
+
/**
|
|
1302
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1303
|
+
*/
|
|
1304
|
+
|
|
1305
|
+
interface LlmAsJudgeOutputSchema {
|
|
1306
|
+
name: string;
|
|
1307
|
+
type: LlmAsJudgeOutputSchemaType;
|
|
1308
|
+
description: string;
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
/**
|
|
1312
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1313
|
+
*/
|
|
1314
|
+
interface UserDefinedMetricPythonCode {
|
|
1315
|
+
metric: string;
|
|
1316
|
+
arguments: Record<string, string>;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
/**
|
|
1320
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1321
|
+
*/
|
|
1322
|
+
|
|
1323
|
+
interface AutomationRuleEvaluatorLlmAsJudgeWrite {
|
|
1324
|
+
code?: LlmAsJudgeCodeWrite;
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
/**
|
|
1328
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1329
|
+
*/
|
|
1330
|
+
|
|
1331
|
+
interface AutomationRuleEvaluatorUserDefinedMetricPythonWrite {
|
|
1332
|
+
code?: UserDefinedMetricPythonCodeWrite;
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
/**
|
|
1336
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1337
|
+
*/
|
|
1338
|
+
|
|
1339
|
+
type AutomationRuleEvaluatorWrite = AutomationRuleEvaluatorWrite.LlmAsJudge | AutomationRuleEvaluatorWrite.UserDefinedMetricPython;
|
|
1340
|
+
declare namespace AutomationRuleEvaluatorWrite {
|
|
1341
|
+
interface LlmAsJudge extends AutomationRuleEvaluatorLlmAsJudgeWrite, _Base {
|
|
1342
|
+
type: "llm_as_judge";
|
|
1343
|
+
}
|
|
1344
|
+
interface UserDefinedMetricPython extends AutomationRuleEvaluatorUserDefinedMetricPythonWrite, _Base {
|
|
1345
|
+
type: "user_defined_metric_python";
|
|
1346
|
+
}
|
|
1347
|
+
interface _Base {
|
|
1348
|
+
projectId?: string;
|
|
1349
|
+
name: string;
|
|
1350
|
+
samplingRate?: number;
|
|
1351
|
+
action?: "evaluator";
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
/**
|
|
1356
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1357
|
+
*/
|
|
1358
|
+
|
|
1359
|
+
interface LlmAsJudgeCodeWrite {
|
|
1360
|
+
model: LlmAsJudgeModelParametersWrite;
|
|
1361
|
+
messages: LlmAsJudgeMessageWrite[];
|
|
1362
|
+
variables: Record<string, string>;
|
|
1363
|
+
schema: LlmAsJudgeOutputSchemaWrite[];
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
/**
|
|
1367
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1368
|
+
*/
|
|
1369
|
+
type LlmAsJudgeMessageWriteRole = "SYSTEM" | "USER" | "AI" | "TOOL_EXECUTION_RESULT";
|
|
1370
|
+
declare const LlmAsJudgeMessageWriteRole: {
|
|
1371
|
+
readonly System: "SYSTEM";
|
|
1372
|
+
readonly User: "USER";
|
|
1373
|
+
readonly Ai: "AI";
|
|
1374
|
+
readonly ToolExecutionResult: "TOOL_EXECUTION_RESULT";
|
|
1375
|
+
};
|
|
1376
|
+
|
|
1377
|
+
/**
|
|
1378
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1379
|
+
*/
|
|
1380
|
+
|
|
1381
|
+
interface LlmAsJudgeMessageWrite {
|
|
1382
|
+
role: LlmAsJudgeMessageWriteRole;
|
|
1383
|
+
content: string;
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
/**
|
|
1387
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1388
|
+
*/
|
|
1389
|
+
interface LlmAsJudgeModelParametersWrite {
|
|
1390
|
+
name: string;
|
|
1391
|
+
temperature: number;
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
/**
|
|
1395
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1396
|
+
*/
|
|
1397
|
+
type LlmAsJudgeOutputSchemaWriteType = "BOOLEAN" | "INTEGER" | "DOUBLE";
|
|
1398
|
+
declare const LlmAsJudgeOutputSchemaWriteType: {
|
|
1399
|
+
readonly Boolean: "BOOLEAN";
|
|
1400
|
+
readonly Integer: "INTEGER";
|
|
1401
|
+
readonly Double: "DOUBLE";
|
|
1402
|
+
};
|
|
1403
|
+
|
|
1404
|
+
/**
|
|
1405
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1406
|
+
*/
|
|
1407
|
+
|
|
1408
|
+
interface LlmAsJudgeOutputSchemaWrite {
|
|
1409
|
+
name: string;
|
|
1410
|
+
type: LlmAsJudgeOutputSchemaWriteType;
|
|
1411
|
+
description: string;
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
/**
|
|
1415
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1416
|
+
*/
|
|
1417
|
+
interface UserDefinedMetricPythonCodeWrite {
|
|
1418
|
+
metric: string;
|
|
1419
|
+
arguments: Record<string, string>;
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1177
1422
|
/**
|
|
1178
1423
|
* This file was auto-generated by Fern from our API Definition.
|
|
1179
1424
|
*/
|
|
@@ -1184,11 +1429,147 @@ interface BatchDelete {
|
|
|
1184
1429
|
/**
|
|
1185
1430
|
* This file was auto-generated by Fern from our API Definition.
|
|
1186
1431
|
*/
|
|
1432
|
+
|
|
1433
|
+
interface AutomationRuleEvaluatorLlmAsJudgePublic {
|
|
1434
|
+
code?: LlmAsJudgeCodePublic;
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
/**
|
|
1438
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1439
|
+
*/
|
|
1440
|
+
|
|
1441
|
+
type AutomationRuleEvaluatorObjectPublic = AutomationRuleEvaluatorObjectPublic.LlmAsJudge | AutomationRuleEvaluatorObjectPublic.UserDefinedMetricPython;
|
|
1442
|
+
declare namespace AutomationRuleEvaluatorObjectPublic {
|
|
1443
|
+
interface LlmAsJudge extends AutomationRuleEvaluatorLlmAsJudgePublic, _Base {
|
|
1444
|
+
type: "llm_as_judge";
|
|
1445
|
+
}
|
|
1446
|
+
interface UserDefinedMetricPython extends AutomationRuleEvaluatorUserDefinedMetricPythonPublic, _Base {
|
|
1447
|
+
type: "user_defined_metric_python";
|
|
1448
|
+
}
|
|
1449
|
+
interface _Base {
|
|
1450
|
+
id?: string;
|
|
1451
|
+
projectId?: string;
|
|
1452
|
+
projectName?: string;
|
|
1453
|
+
name: string;
|
|
1454
|
+
samplingRate?: number;
|
|
1455
|
+
createdAt?: Date;
|
|
1456
|
+
createdBy?: string;
|
|
1457
|
+
lastUpdatedAt?: Date;
|
|
1458
|
+
lastUpdatedBy?: string;
|
|
1459
|
+
action?: "evaluator";
|
|
1460
|
+
}
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
/**
|
|
1464
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1465
|
+
*/
|
|
1466
|
+
|
|
1187
1467
|
interface AutomationRuleEvaluatorPagePublic {
|
|
1188
1468
|
page?: number;
|
|
1189
1469
|
size?: number;
|
|
1190
1470
|
total?: number;
|
|
1191
|
-
content?:
|
|
1471
|
+
content?: AutomationRuleEvaluatorObjectPublic[];
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
/**
|
|
1475
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1476
|
+
*/
|
|
1477
|
+
|
|
1478
|
+
interface AutomationRuleEvaluatorUserDefinedMetricPythonPublic {
|
|
1479
|
+
code?: UserDefinedMetricPythonCodePublic;
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
/**
|
|
1483
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1484
|
+
*/
|
|
1485
|
+
|
|
1486
|
+
interface LlmAsJudgeCodePublic {
|
|
1487
|
+
model: LlmAsJudgeModelParametersPublic;
|
|
1488
|
+
messages: LlmAsJudgeMessagePublic[];
|
|
1489
|
+
variables: Record<string, string>;
|
|
1490
|
+
schema: LlmAsJudgeOutputSchemaPublic[];
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
/**
|
|
1494
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1495
|
+
*/
|
|
1496
|
+
type LlmAsJudgeMessagePublicRole = "SYSTEM" | "USER" | "AI" | "TOOL_EXECUTION_RESULT";
|
|
1497
|
+
declare const LlmAsJudgeMessagePublicRole: {
|
|
1498
|
+
readonly System: "SYSTEM";
|
|
1499
|
+
readonly User: "USER";
|
|
1500
|
+
readonly Ai: "AI";
|
|
1501
|
+
readonly ToolExecutionResult: "TOOL_EXECUTION_RESULT";
|
|
1502
|
+
};
|
|
1503
|
+
|
|
1504
|
+
/**
|
|
1505
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1506
|
+
*/
|
|
1507
|
+
|
|
1508
|
+
interface LlmAsJudgeMessagePublic {
|
|
1509
|
+
role: LlmAsJudgeMessagePublicRole;
|
|
1510
|
+
content: string;
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
/**
|
|
1514
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1515
|
+
*/
|
|
1516
|
+
interface LlmAsJudgeModelParametersPublic {
|
|
1517
|
+
name: string;
|
|
1518
|
+
temperature: number;
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
/**
|
|
1522
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1523
|
+
*/
|
|
1524
|
+
type LlmAsJudgeOutputSchemaPublicType = "BOOLEAN" | "INTEGER" | "DOUBLE";
|
|
1525
|
+
declare const LlmAsJudgeOutputSchemaPublicType: {
|
|
1526
|
+
readonly Boolean: "BOOLEAN";
|
|
1527
|
+
readonly Integer: "INTEGER";
|
|
1528
|
+
readonly Double: "DOUBLE";
|
|
1529
|
+
};
|
|
1530
|
+
|
|
1531
|
+
/**
|
|
1532
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1533
|
+
*/
|
|
1534
|
+
|
|
1535
|
+
interface LlmAsJudgeOutputSchemaPublic {
|
|
1536
|
+
name: string;
|
|
1537
|
+
type: LlmAsJudgeOutputSchemaPublicType;
|
|
1538
|
+
description: string;
|
|
1539
|
+
}
|
|
1540
|
+
|
|
1541
|
+
/**
|
|
1542
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1543
|
+
*/
|
|
1544
|
+
interface UserDefinedMetricPythonCodePublic {
|
|
1545
|
+
metric: string;
|
|
1546
|
+
arguments: Record<string, string>;
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
/**
|
|
1550
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1551
|
+
*/
|
|
1552
|
+
|
|
1553
|
+
type AutomationRuleEvaluatorPublic = AutomationRuleEvaluatorPublic.LlmAsJudge | AutomationRuleEvaluatorPublic.UserDefinedMetricPython;
|
|
1554
|
+
declare namespace AutomationRuleEvaluatorPublic {
|
|
1555
|
+
interface LlmAsJudge extends AutomationRuleEvaluatorLlmAsJudgePublic, _Base {
|
|
1556
|
+
type: "llm_as_judge";
|
|
1557
|
+
}
|
|
1558
|
+
interface UserDefinedMetricPython extends AutomationRuleEvaluatorUserDefinedMetricPythonPublic, _Base {
|
|
1559
|
+
type: "user_defined_metric_python";
|
|
1560
|
+
}
|
|
1561
|
+
interface _Base {
|
|
1562
|
+
id?: string;
|
|
1563
|
+
projectId?: string;
|
|
1564
|
+
projectName?: string;
|
|
1565
|
+
name: string;
|
|
1566
|
+
samplingRate?: number;
|
|
1567
|
+
createdAt?: Date;
|
|
1568
|
+
createdBy?: string;
|
|
1569
|
+
lastUpdatedAt?: Date;
|
|
1570
|
+
lastUpdatedBy?: string;
|
|
1571
|
+
action?: "evaluator";
|
|
1572
|
+
}
|
|
1192
1573
|
}
|
|
1193
1574
|
|
|
1194
1575
|
/**
|
|
@@ -1226,6 +1607,42 @@ interface LogPage {
|
|
|
1226
1607
|
total?: number;
|
|
1227
1608
|
}
|
|
1228
1609
|
|
|
1610
|
+
/**
|
|
1611
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1612
|
+
*/
|
|
1613
|
+
|
|
1614
|
+
type AutomationRuleEvaluatorUpdate = AutomationRuleEvaluatorUpdate.LlmAsJudge | AutomationRuleEvaluatorUpdate.UserDefinedMetricPython;
|
|
1615
|
+
declare namespace AutomationRuleEvaluatorUpdate {
|
|
1616
|
+
interface LlmAsJudge extends AutomationRuleEvaluatorUpdateLlmAsJudge, _Base {
|
|
1617
|
+
type: "llm_as_judge";
|
|
1618
|
+
}
|
|
1619
|
+
interface UserDefinedMetricPython extends AutomationRuleEvaluatorUpdateUserDefinedMetricPython, _Base {
|
|
1620
|
+
type: "user_defined_metric_python";
|
|
1621
|
+
}
|
|
1622
|
+
interface _Base {
|
|
1623
|
+
name: string;
|
|
1624
|
+
samplingRate?: number;
|
|
1625
|
+
projectId?: string;
|
|
1626
|
+
action?: "evaluator";
|
|
1627
|
+
}
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
/**
|
|
1631
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1632
|
+
*/
|
|
1633
|
+
|
|
1634
|
+
interface AutomationRuleEvaluatorUpdateLlmAsJudge {
|
|
1635
|
+
code?: LlmAsJudgeCode;
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
/**
|
|
1639
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1640
|
+
*/
|
|
1641
|
+
|
|
1642
|
+
interface AutomationRuleEvaluatorUpdateUserDefinedMetricPython {
|
|
1643
|
+
code?: UserDefinedMetricPythonCode;
|
|
1644
|
+
}
|
|
1645
|
+
|
|
1229
1646
|
/**
|
|
1230
1647
|
* This file was auto-generated by Fern from our API Definition.
|
|
1231
1648
|
*/
|
|
@@ -2050,11 +2467,10 @@ interface NumericalFeedbackDetailUpdate {
|
|
|
2050
2467
|
* This file was auto-generated by Fern from our API Definition.
|
|
2051
2468
|
*/
|
|
2052
2469
|
|
|
2053
|
-
interface
|
|
2054
|
-
page?: number;
|
|
2470
|
+
interface ProviderApiKeyPagePublic {
|
|
2055
2471
|
size?: number;
|
|
2056
2472
|
total?: number;
|
|
2057
|
-
content?:
|
|
2473
|
+
content?: ProviderApiKeyPublic[];
|
|
2058
2474
|
sortableBy?: string[];
|
|
2059
2475
|
}
|
|
2060
2476
|
|
|
@@ -2093,6 +2509,18 @@ interface PercentageValues {
|
|
|
2093
2509
|
p99?: number;
|
|
2094
2510
|
}
|
|
2095
2511
|
|
|
2512
|
+
/**
|
|
2513
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2514
|
+
*/
|
|
2515
|
+
|
|
2516
|
+
interface ProjectPagePublic {
|
|
2517
|
+
page?: number;
|
|
2518
|
+
size?: number;
|
|
2519
|
+
total?: number;
|
|
2520
|
+
content?: ProjectPublic[];
|
|
2521
|
+
sortableBy?: string[];
|
|
2522
|
+
}
|
|
2523
|
+
|
|
2096
2524
|
/**
|
|
2097
2525
|
* This file was auto-generated by Fern from our API Definition.
|
|
2098
2526
|
*/
|
|
@@ -2943,6 +3371,24 @@ declare namespace Attachments {
|
|
|
2943
3371
|
declare class Attachments {
|
|
2944
3372
|
protected readonly _options: Attachments.Options;
|
|
2945
3373
|
constructor(_options?: Attachments.Options);
|
|
3374
|
+
/**
|
|
3375
|
+
* Attachments list for entity
|
|
3376
|
+
*
|
|
3377
|
+
* @param {OpikApi.AttachmentListRequest} request
|
|
3378
|
+
* @param {Attachments.RequestOptions} requestOptions - Request-specific configuration.
|
|
3379
|
+
*
|
|
3380
|
+
* @throws {@link OpikApi.UnauthorizedError}
|
|
3381
|
+
* @throws {@link OpikApi.ForbiddenError}
|
|
3382
|
+
*
|
|
3383
|
+
* @example
|
|
3384
|
+
* await client.attachments.attachmentList({
|
|
3385
|
+
* projectId: "project_id",
|
|
3386
|
+
* entityType: "trace",
|
|
3387
|
+
* entityId: "entity_id",
|
|
3388
|
+
* path: "path"
|
|
3389
|
+
* })
|
|
3390
|
+
*/
|
|
3391
|
+
attachmentList(request: AttachmentListRequest, requestOptions?: Attachments.RequestOptions): Promise<AttachmentPage>;
|
|
2946
3392
|
/**
|
|
2947
3393
|
* Start multipart attachment upload
|
|
2948
3394
|
*
|
|
@@ -2966,6 +3412,12 @@ declare class Attachments {
|
|
|
2966
3412
|
* })
|
|
2967
3413
|
*/
|
|
2968
3414
|
startMultiPartUpload(request: CompleteMultipartUploadRequest, requestOptions?: Attachments.RequestOptions): Promise<void>;
|
|
3415
|
+
/**
|
|
3416
|
+
* Download attachment from MinIO
|
|
3417
|
+
* @throws {@link OpikApi.UnauthorizedError}
|
|
3418
|
+
* @throws {@link OpikApi.ForbiddenError}
|
|
3419
|
+
*/
|
|
3420
|
+
downloadAttachment(request: DownloadAttachmentRequest, requestOptions?: Attachments.RequestOptions): Promise<stream.Readable>;
|
|
2969
3421
|
/**
|
|
2970
3422
|
* Start multipart attachment upload
|
|
2971
3423
|
*
|
|
@@ -3125,15 +3577,15 @@ declare class AutomationRuleEvaluators {
|
|
|
3125
3577
|
/**
|
|
3126
3578
|
* Create automation rule evaluator
|
|
3127
3579
|
*
|
|
3128
|
-
* @param {
|
|
3580
|
+
* @param {OpikApi.AutomationRuleEvaluatorWrite} request
|
|
3129
3581
|
* @param {AutomationRuleEvaluators.RequestOptions} requestOptions - Request-specific configuration.
|
|
3130
3582
|
*
|
|
3131
3583
|
* @example
|
|
3132
3584
|
* await client.automationRuleEvaluators.createAutomationRuleEvaluator({
|
|
3133
|
-
*
|
|
3585
|
+
* type: "llm_as_judge"
|
|
3134
3586
|
* })
|
|
3135
3587
|
*/
|
|
3136
|
-
createAutomationRuleEvaluator(request
|
|
3588
|
+
createAutomationRuleEvaluator(request: AutomationRuleEvaluatorWrite, requestOptions?: AutomationRuleEvaluators.RequestOptions): Promise<void>;
|
|
3137
3589
|
/**
|
|
3138
3590
|
* Delete automation rule evaluators batch
|
|
3139
3591
|
*
|
|
@@ -3158,20 +3610,20 @@ declare class AutomationRuleEvaluators {
|
|
|
3158
3610
|
* @example
|
|
3159
3611
|
* await client.automationRuleEvaluators.getEvaluatorById("id")
|
|
3160
3612
|
*/
|
|
3161
|
-
getEvaluatorById(id: string, request?: GetEvaluatorByIdRequest, requestOptions?: AutomationRuleEvaluators.RequestOptions): Promise<
|
|
3613
|
+
getEvaluatorById(id: string, request?: GetEvaluatorByIdRequest, requestOptions?: AutomationRuleEvaluators.RequestOptions): Promise<AutomationRuleEvaluatorPublic>;
|
|
3162
3614
|
/**
|
|
3163
3615
|
* Update Automation Rule Evaluator by id
|
|
3164
3616
|
*
|
|
3165
3617
|
* @param {string} id
|
|
3166
|
-
* @param {
|
|
3618
|
+
* @param {OpikApi.AutomationRuleEvaluatorUpdate} request
|
|
3167
3619
|
* @param {AutomationRuleEvaluators.RequestOptions} requestOptions - Request-specific configuration.
|
|
3168
3620
|
*
|
|
3169
3621
|
* @example
|
|
3170
3622
|
* await client.automationRuleEvaluators.updateAutomationRuleEvaluator("id", {
|
|
3171
|
-
*
|
|
3623
|
+
* type: "llm_as_judge"
|
|
3172
3624
|
* })
|
|
3173
3625
|
*/
|
|
3174
|
-
updateAutomationRuleEvaluator(id: string, request
|
|
3626
|
+
updateAutomationRuleEvaluator(id: string, request: AutomationRuleEvaluatorUpdate, requestOptions?: AutomationRuleEvaluators.RequestOptions): Promise<void>;
|
|
3175
3627
|
/**
|
|
3176
3628
|
* Get automation rule evaluator logs by id
|
|
3177
3629
|
*
|
|
@@ -3767,7 +4219,7 @@ declare class LlmProviderKey {
|
|
|
3767
4219
|
* @example
|
|
3768
4220
|
* await client.llmProviderKey.findLlmProviderKeys()
|
|
3769
4221
|
*/
|
|
3770
|
-
findLlmProviderKeys(requestOptions?: LlmProviderKey.RequestOptions): Promise<
|
|
4222
|
+
findLlmProviderKeys(requestOptions?: LlmProviderKey.RequestOptions): Promise<ProviderApiKeyPagePublic>;
|
|
3771
4223
|
/**
|
|
3772
4224
|
* Store LLM Provider's ApiKey
|
|
3773
4225
|
*
|
|
@@ -4989,4 +5441,4 @@ declare class OpikClient {
|
|
|
4989
5441
|
flush: () => Promise<void>;
|
|
4990
5442
|
}
|
|
4991
5443
|
|
|
4992
|
-
export { OpikClient as O, Span as S, Trace as T, SpanType as a, type OpikConfig as b };
|
|
5444
|
+
export { type JsonNode as J, OpikClient as O, Span as S, Trace as T, SpanType as a, type OpikConfig as b };
|