@roarkanalytics/sdk 0.333.0 → 2.0.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.
@@ -147,6 +147,9 @@ export namespace EvaluationGetEvaluatorByIDResponse {
147
147
  */
148
148
  id: string;
149
149
 
150
+ /**
151
+ * Block type identifier
152
+ */
150
153
  blockType: 'CUSTOM_PROMPT';
151
154
 
152
155
  /**
@@ -191,6 +194,9 @@ export namespace EvaluationGetEvaluatorByIDResponse {
191
194
  */
192
195
  id: string;
193
196
 
197
+ /**
198
+ * Block type identifier
199
+ */
194
200
  blockType: 'DATAFIELD_CHECK';
195
201
 
196
202
  /**
@@ -245,6 +251,9 @@ export namespace EvaluationGetEvaluatorByIDResponse {
245
251
  */
246
252
  id: string;
247
253
 
254
+ /**
255
+ * Block type identifier
256
+ */
248
257
  blockType: 'EMOTION';
249
258
 
250
259
  /**
@@ -284,6 +293,9 @@ export namespace EvaluationGetEvaluatorByIDResponse {
284
293
  */
285
294
  id: string;
286
295
 
296
+ /**
297
+ * Block type identifier
298
+ */
287
299
  blockType: 'LATENCY';
288
300
 
289
301
  /**
@@ -328,6 +340,9 @@ export namespace EvaluationGetEvaluatorByIDResponse {
328
340
  */
329
341
  id: string;
330
342
 
343
+ /**
344
+ * Block type identifier
345
+ */
331
346
  blockType: 'POLITENESS';
332
347
 
333
348
  /**
@@ -362,6 +377,9 @@ export namespace EvaluationGetEvaluatorByIDResponse {
362
377
  */
363
378
  id: string;
364
379
 
380
+ /**
381
+ * Block type identifier
382
+ */
365
383
  blockType: 'SENTIMENT';
366
384
 
367
385
  /**
@@ -396,6 +414,9 @@ export namespace EvaluationGetEvaluatorByIDResponse {
396
414
  */
397
415
  id: string;
398
416
 
417
+ /**
418
+ * Block type identifier
419
+ */
399
420
  blockType: 'TOOL_CALLS';
400
421
 
401
422
  /**
@@ -445,6 +466,9 @@ export namespace EvaluationGetEvaluatorByIDResponse {
445
466
  */
446
467
  id: string;
447
468
 
469
+ /**
470
+ * Block type identifier
471
+ */
448
472
  blockType: 'TOXICITY';
449
473
 
450
474
  /**
@@ -479,6 +503,9 @@ export namespace EvaluationGetEvaluatorByIDResponse {
479
503
  */
480
504
  id: string;
481
505
 
506
+ /**
507
+ * Block type identifier
508
+ */
482
509
  blockType: 'VOCAL_CUE';
483
510
 
484
511
  /**
@@ -586,6 +613,9 @@ export namespace EvaluationGetEvaluatorsResponse {
586
613
  */
587
614
  id: string;
588
615
 
616
+ /**
617
+ * Block type identifier
618
+ */
589
619
  blockType: 'CUSTOM_PROMPT';
590
620
 
591
621
  /**
@@ -630,6 +660,9 @@ export namespace EvaluationGetEvaluatorsResponse {
630
660
  */
631
661
  id: string;
632
662
 
663
+ /**
664
+ * Block type identifier
665
+ */
633
666
  blockType: 'DATAFIELD_CHECK';
634
667
 
635
668
  /**
@@ -684,6 +717,9 @@ export namespace EvaluationGetEvaluatorsResponse {
684
717
  */
685
718
  id: string;
686
719
 
720
+ /**
721
+ * Block type identifier
722
+ */
687
723
  blockType: 'EMOTION';
688
724
 
689
725
  /**
@@ -723,6 +759,9 @@ export namespace EvaluationGetEvaluatorsResponse {
723
759
  */
724
760
  id: string;
725
761
 
762
+ /**
763
+ * Block type identifier
764
+ */
726
765
  blockType: 'LATENCY';
727
766
 
728
767
  /**
@@ -767,6 +806,9 @@ export namespace EvaluationGetEvaluatorsResponse {
767
806
  */
768
807
  id: string;
769
808
 
809
+ /**
810
+ * Block type identifier
811
+ */
770
812
  blockType: 'POLITENESS';
771
813
 
772
814
  /**
@@ -801,6 +843,9 @@ export namespace EvaluationGetEvaluatorsResponse {
801
843
  */
802
844
  id: string;
803
845
 
846
+ /**
847
+ * Block type identifier
848
+ */
804
849
  blockType: 'SENTIMENT';
805
850
 
806
851
  /**
@@ -835,6 +880,9 @@ export namespace EvaluationGetEvaluatorsResponse {
835
880
  */
836
881
  id: string;
837
882
 
883
+ /**
884
+ * Block type identifier
885
+ */
838
886
  blockType: 'TOOL_CALLS';
839
887
 
840
888
  /**
@@ -884,6 +932,9 @@ export namespace EvaluationGetEvaluatorsResponse {
884
932
  */
885
933
  id: string;
886
934
 
935
+ /**
936
+ * Block type identifier
937
+ */
887
938
  blockType: 'TOXICITY';
888
939
 
889
940
  /**
@@ -918,6 +969,9 @@ export namespace EvaluationGetEvaluatorsResponse {
918
969
  */
919
970
  id: string;
920
971
 
972
+ /**
973
+ * Block type identifier
974
+ */
921
975
  blockType: 'VOCAL_CUE';
922
976
 
923
977
  /**
@@ -1069,114 +1123,155 @@ export namespace EvaluationGetJobRunsResponse {
1069
1123
  export namespace Data {
1070
1124
  export interface Data {
1071
1125
  /**
1072
- * ID of the evaluator run
1126
+ * All block runs for this evaluator, including skipped ones
1073
1127
  */
1074
- id: string;
1128
+ blockRuns: Array<Data.BlockRun>;
1075
1129
 
1076
- /**
1077
- * When the evaluator run completed
1078
- */
1079
- completedAt: string | null;
1130
+ evaluator: Data.Evaluator;
1080
1131
 
1081
- /**
1082
- * Evaluator of the evaluator run
1083
- */
1084
- evaluator: Data.Evaluator | null;
1132
+ evidence: Array<Data.Evidence>;
1133
+
1134
+ metrics: Array<Data.Metric>;
1085
1135
 
1086
1136
  /**
1087
- * Evidence of the evaluator run
1137
+ * Status of the evaluator run
1088
1138
  */
1089
- evidence: Array<Data.Evidence> | null;
1139
+ status: 'PENDING' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED';
1090
1140
 
1091
1141
  /**
1092
- * Metrics of the evaluator run
1142
+ * ID of the evaluator run
1093
1143
  */
1094
- metrics: Array<Data.Metric> | null;
1144
+ id?: string;
1095
1145
 
1096
1146
  /**
1097
- * Score of the evaluator run
1147
+ * When the evaluator run completed
1098
1148
  */
1099
- score: number | null;
1149
+ completedAt?: string | null;
1100
1150
 
1101
1151
  /**
1102
- * Score classification of the evaluator run
1152
+ * Score of the evaluation run (0-1)
1103
1153
  */
1104
- scoreClassification: 'SUCCESS' | 'FAILURE' | 'IRRELEVANT' | null;
1154
+ score?: number | null;
1105
1155
 
1106
1156
  /**
1107
- * When the evaluator run started
1157
+ * Score classification of the evaluator run based on score threshold (IRRELEVANT
1158
+ * is mapped to SKIPPED)
1108
1159
  */
1109
- startedAt: string | null;
1160
+ scoreClassification?: 'SUCCESS' | 'FAILURE' | 'SKIPPED' | null;
1110
1161
 
1111
1162
  /**
1112
- * Status of the evaluator run
1163
+ * When the evaluator run started
1113
1164
  */
1114
- status: 'PENDING' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED';
1165
+ startedAt?: string | null;
1115
1166
 
1116
1167
  /**
1117
- * Summary of the evaluator run
1168
+ * Summary of the evaluation run
1118
1169
  */
1119
- summary: string | null;
1170
+ summary?: string | null;
1120
1171
  }
1121
1172
 
1122
1173
  export namespace Data {
1123
- /**
1124
- * Evaluator of the evaluator run
1125
- */
1174
+ export interface BlockRun {
1175
+ /**
1176
+ * ID of the block definition
1177
+ */
1178
+ blockDefinitionId: string;
1179
+
1180
+ /**
1181
+ * Name of the evaluation block
1182
+ */
1183
+ blockName: string;
1184
+
1185
+ /**
1186
+ * ID of the block run instance
1187
+ */
1188
+ blockRunId: string;
1189
+
1190
+ /**
1191
+ * When the block run was created
1192
+ */
1193
+ createdAt: string;
1194
+
1195
+ /**
1196
+ * Reason for the outcome (pass/fail explanation or skip reason)
1197
+ */
1198
+ reason: string | null;
1199
+
1200
+ /**
1201
+ * Result of the block run
1202
+ */
1203
+ result: 'PASSED' | 'FAILED' | 'SKIPPED' | null;
1204
+
1205
+ /**
1206
+ * Score of the block run (0-1)
1207
+ */
1208
+ score: number | null;
1209
+
1210
+ /**
1211
+ * Status of the block run
1212
+ */
1213
+ status: 'PENDING' | 'RUNNING' | 'COMPLETED' | 'FAILED';
1214
+ }
1215
+
1126
1216
  export interface Evaluator {
1127
1217
  /**
1128
1218
  * ID of the evaluator
1129
1219
  */
1130
- id: string | null;
1220
+ id: string;
1131
1221
 
1132
1222
  /**
1133
1223
  * Name of the evaluator
1134
1224
  */
1135
- name: string | null;
1136
- }
1225
+ name: string;
1137
1226
 
1138
- export interface Evidence {
1139
1227
  /**
1140
- * ID of the evidence
1228
+ * Weight of the evaluator
1141
1229
  */
1142
- id: string | null;
1230
+ weight?: number;
1231
+ }
1143
1232
 
1233
+ export interface Evidence {
1144
1234
  /**
1145
- * Comment on the evidence
1235
+ * Comment text of the evidence
1146
1236
  */
1147
1237
  commentText: string | null;
1148
1238
 
1149
1239
  /**
1150
- * Whether this is a positive example of the metric
1240
+ * Created at of the evidence
1151
1241
  */
1152
- isPositive: boolean | null;
1242
+ createdAt: string;
1153
1243
 
1154
1244
  /**
1155
- * Snippet of the evidence
1245
+ * Is positive of the evidence
1156
1246
  */
1157
- snippetText: string | null;
1158
- }
1247
+ isPositive: boolean;
1159
1248
 
1160
- export interface Metric {
1161
1249
  /**
1162
- * ID of the metric
1250
+ * Snippet text of the evidence
1163
1251
  */
1164
- id: string | null;
1252
+ snippetText: string;
1253
+ }
1165
1254
 
1255
+ export interface Metric {
1166
1256
  /**
1167
1257
  * Boolean value of the metric
1168
1258
  */
1169
1259
  booleanValue: boolean | null;
1170
1260
 
1171
1261
  /**
1172
- * Confidence of the metric
1262
+ * Confidence level of the metric (0-1)
1173
1263
  */
1174
1264
  confidence: number | null;
1175
1265
 
1266
+ /**
1267
+ * Created at of the metric
1268
+ */
1269
+ createdAt: string;
1270
+
1176
1271
  /**
1177
1272
  * Name of the metric
1178
1273
  */
1179
- name: string | null;
1274
+ name: string;
1180
1275
 
1181
1276
  /**
1182
1277
  * Numeric value of the metric
@@ -1184,14 +1279,14 @@ export namespace EvaluationGetJobRunsResponse {
1184
1279
  numericValue: number | null;
1185
1280
 
1186
1281
  /**
1187
- * Reasoning for the metric
1282
+ * Reasoning of the metric
1188
1283
  */
1189
1284
  reasoning: string | null;
1190
1285
 
1191
1286
  /**
1192
1287
  * Role of the metric
1193
1288
  */
1194
- role: 'PRIMARY' | 'SECONDARY' | null;
1289
+ role: string;
1195
1290
 
1196
1291
  /**
1197
1292
  * Text value of the metric
@@ -1201,7 +1296,7 @@ export namespace EvaluationGetJobRunsResponse {
1201
1296
  /**
1202
1297
  * Value type of the metric
1203
1298
  */
1204
- valueType: 'NUMERIC' | 'BOOLEAN' | 'TEXT' | null;
1299
+ valueType: string;
1205
1300
  }
1206
1301
  }
1207
1302
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.333.0'; // x-release-please-version
1
+ export const VERSION = '2.0.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.333.0";
1
+ export declare const VERSION = "2.0.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,YAAY,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.333.0'; // x-release-please-version
4
+ exports.VERSION = '2.0.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,SAAS,CAAC,CAAC,2BAA2B"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.333.0'; // x-release-please-version
1
+ export const VERSION = '2.0.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
package/version.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC,CAAC,2BAA2B"}
1
+ {"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}