@orq-ai/node 4.8.0-rc.1 → 4.8.0-rc.3
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/funcs/filesCreate.js +3 -2
- package/funcs/filesCreate.js.map +1 -1
- package/funcs/routerAudioTranscriptionsCreate.js +3 -2
- package/funcs/routerAudioTranscriptionsCreate.js.map +1 -1
- package/funcs/routerAudioTranslationsCreate.js +3 -2
- package/funcs/routerAudioTranslationsCreate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/encodings.d.ts +1 -0
- package/lib/encodings.d.ts.map +1 -1
- package/lib/encodings.js +7 -0
- package/lib/encodings.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createcontact.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.d.ts +238 -36
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +295 -20
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.d.ts +106 -16
- package/models/operations/getevals.d.ts.map +1 -1
- package/models/operations/getevals.js +183 -19
- package/models/operations/getevals.js.map +1 -1
- package/models/operations/getv2humanevals.js +6 -6
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/getv2humanevalsid.js +6 -6
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/patchv2humanevalsid.js +12 -12
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevals.js +12 -12
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.d.ts +120 -16
- package/models/operations/updateeval.d.ts.map +1 -1
- package/models/operations/updateeval.js +195 -19
- package/models/operations/updateeval.js.map +1 -1
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +1 -1
- package/src/funcs/filesCreate.ts +4 -3
- package/src/funcs/routerAudioTranscriptionsCreate.ts +4 -3
- package/src/funcs/routerAudioTranslationsCreate.ts +4 -3
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +9 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createcontact.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +793 -20
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +447 -16
- package/src/models/operations/getv2humanevals.ts +6 -6
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/getv2humanevalsid.ts +6 -6
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/patchv2humanevalsid.ts +12 -12
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevals.ts +12 -12
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +484 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
|
@@ -29,6 +29,13 @@ export type CreateEvalGuardrailConfigNumber = {
|
|
|
29
29
|
operator: CreateEvalGuardrailConfigOperator;
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
+
export type CreateEvalGuardrailConfigCategorical = {
|
|
33
|
+
enabled: boolean;
|
|
34
|
+
alertOnFailure?: boolean | undefined;
|
|
35
|
+
type: "categorical";
|
|
36
|
+
values: Array<string>;
|
|
37
|
+
};
|
|
38
|
+
|
|
32
39
|
export type CreateEvalGuardrailConfigBoolean = {
|
|
33
40
|
enabled: boolean;
|
|
34
41
|
alertOnFailure?: boolean | undefined;
|
|
@@ -38,6 +45,7 @@ export type CreateEvalGuardrailConfigBoolean = {
|
|
|
38
45
|
|
|
39
46
|
export type CreateEvalRequestBodyGuardrailConfig =
|
|
40
47
|
| CreateEvalGuardrailConfigBoolean
|
|
48
|
+
| CreateEvalGuardrailConfigCategorical
|
|
41
49
|
| CreateEvalGuardrailConfigNumber;
|
|
42
50
|
|
|
43
51
|
export const CreateEvalRequestBodyOutputType = {
|
|
@@ -58,6 +66,7 @@ export type CreateEvalRequestBodyType = ClosedEnum<
|
|
|
58
66
|
export type Python = {
|
|
59
67
|
guardrailConfig?:
|
|
60
68
|
| CreateEvalGuardrailConfigBoolean
|
|
69
|
+
| CreateEvalGuardrailConfigCategorical
|
|
61
70
|
| CreateEvalGuardrailConfigNumber
|
|
62
71
|
| null
|
|
63
72
|
| undefined;
|
|
@@ -98,6 +107,13 @@ export type GuardrailConfigNumber = {
|
|
|
98
107
|
operator: GuardrailConfigOperator;
|
|
99
108
|
};
|
|
100
109
|
|
|
110
|
+
export type GuardrailConfigCategorical = {
|
|
111
|
+
enabled: boolean;
|
|
112
|
+
alertOnFailure?: boolean | undefined;
|
|
113
|
+
type: "categorical";
|
|
114
|
+
values: Array<string>;
|
|
115
|
+
};
|
|
116
|
+
|
|
101
117
|
export type GuardrailConfigBoolean = {
|
|
102
118
|
enabled: boolean;
|
|
103
119
|
alertOnFailure?: boolean | undefined;
|
|
@@ -107,6 +123,7 @@ export type GuardrailConfigBoolean = {
|
|
|
107
123
|
|
|
108
124
|
export type RequestBodyGuardrailConfig =
|
|
109
125
|
| GuardrailConfigBoolean
|
|
126
|
+
| GuardrailConfigCategorical
|
|
110
127
|
| GuardrailConfigNumber;
|
|
111
128
|
|
|
112
129
|
/**
|
|
@@ -139,6 +156,7 @@ export type RequestBodyMethod = ClosedEnum<typeof RequestBodyMethod>;
|
|
|
139
156
|
export type RequestBodyHTTP = {
|
|
140
157
|
guardrailConfig?:
|
|
141
158
|
| GuardrailConfigBoolean
|
|
159
|
+
| GuardrailConfigCategorical
|
|
142
160
|
| GuardrailConfigNumber
|
|
143
161
|
| null
|
|
144
162
|
| undefined;
|
|
@@ -183,6 +201,13 @@ export type NumberT = {
|
|
|
183
201
|
operator: Operator;
|
|
184
202
|
};
|
|
185
203
|
|
|
204
|
+
export type Categorical = {
|
|
205
|
+
enabled: boolean;
|
|
206
|
+
alertOnFailure?: boolean | undefined;
|
|
207
|
+
type: "categorical";
|
|
208
|
+
values: Array<string>;
|
|
209
|
+
};
|
|
210
|
+
|
|
186
211
|
export type Boolean = {
|
|
187
212
|
enabled: boolean;
|
|
188
213
|
alertOnFailure?: boolean | undefined;
|
|
@@ -190,7 +215,7 @@ export type Boolean = {
|
|
|
190
215
|
value: boolean;
|
|
191
216
|
};
|
|
192
217
|
|
|
193
|
-
export type GuardrailConfig = Boolean | NumberT;
|
|
218
|
+
export type GuardrailConfig = Boolean | Categorical | NumberT;
|
|
194
219
|
|
|
195
220
|
export const OutputType = {
|
|
196
221
|
Boolean: "boolean",
|
|
@@ -205,7 +230,7 @@ export type CreateEvalRequestBodyEvalsType = ClosedEnum<
|
|
|
205
230
|
>;
|
|
206
231
|
|
|
207
232
|
export type Json = {
|
|
208
|
-
guardrailConfig?: Boolean | NumberT | null | undefined;
|
|
233
|
+
guardrailConfig?: Boolean | Categorical | NumberT | null | undefined;
|
|
209
234
|
outputType?: OutputType | undefined;
|
|
210
235
|
type: CreateEvalRequestBodyEvalsType;
|
|
211
236
|
schema: string;
|
|
@@ -243,6 +268,13 @@ export type CreateEvalGuardrailConfigEvalsNumber = {
|
|
|
243
268
|
operator: CreateEvalGuardrailConfigEvalsOperator;
|
|
244
269
|
};
|
|
245
270
|
|
|
271
|
+
export type CreateEvalGuardrailConfigEvalsCategorical = {
|
|
272
|
+
enabled: boolean;
|
|
273
|
+
alertOnFailure?: boolean | undefined;
|
|
274
|
+
type: "categorical";
|
|
275
|
+
values: Array<string>;
|
|
276
|
+
};
|
|
277
|
+
|
|
246
278
|
export type CreateEvalGuardrailConfigEvalsBoolean = {
|
|
247
279
|
enabled: boolean;
|
|
248
280
|
alertOnFailure?: boolean | undefined;
|
|
@@ -252,6 +284,7 @@ export type CreateEvalGuardrailConfigEvalsBoolean = {
|
|
|
252
284
|
|
|
253
285
|
export type LLMGuardrailConfig =
|
|
254
286
|
| CreateEvalGuardrailConfigEvalsBoolean
|
|
287
|
+
| CreateEvalGuardrailConfigEvalsCategorical
|
|
255
288
|
| CreateEvalGuardrailConfigEvalsNumber;
|
|
256
289
|
|
|
257
290
|
/**
|
|
@@ -273,6 +306,11 @@ export const LLMType = {
|
|
|
273
306
|
} as const;
|
|
274
307
|
export type LLMType = ClosedEnum<typeof LLMType>;
|
|
275
308
|
|
|
309
|
+
export type LLMCategoricalLabels = {
|
|
310
|
+
value: string;
|
|
311
|
+
description?: string | undefined;
|
|
312
|
+
};
|
|
313
|
+
|
|
276
314
|
export type CreateEvalLLMRetry = {
|
|
277
315
|
count?: number | undefined;
|
|
278
316
|
onCodes?: Array<number> | undefined;
|
|
@@ -318,6 +356,7 @@ export type LLMJury = {
|
|
|
318
356
|
export type Llm2 = {
|
|
319
357
|
guardrailConfig?:
|
|
320
358
|
| CreateEvalGuardrailConfigEvalsBoolean
|
|
359
|
+
| CreateEvalGuardrailConfigEvalsCategorical
|
|
321
360
|
| CreateEvalGuardrailConfigEvalsNumber
|
|
322
361
|
| null
|
|
323
362
|
| undefined;
|
|
@@ -328,6 +367,8 @@ export type Llm2 = {
|
|
|
328
367
|
type: LLMType;
|
|
329
368
|
repetitions?: number | undefined;
|
|
330
369
|
prompt: string;
|
|
370
|
+
categories?: Array<string> | undefined;
|
|
371
|
+
categoricalLabels?: Array<LLMCategoricalLabels> | undefined;
|
|
331
372
|
/**
|
|
332
373
|
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
333
374
|
*
|
|
@@ -364,6 +405,13 @@ export type CreateEvalGuardrailConfigEvalsRequestNumber = {
|
|
|
364
405
|
operator: CreateEvalGuardrailConfigEvalsRequestOperator;
|
|
365
406
|
};
|
|
366
407
|
|
|
408
|
+
export type CreateEvalGuardrailConfigEvalsRequestCategorical = {
|
|
409
|
+
enabled: boolean;
|
|
410
|
+
alertOnFailure?: boolean | undefined;
|
|
411
|
+
type: "categorical";
|
|
412
|
+
values: Array<string>;
|
|
413
|
+
};
|
|
414
|
+
|
|
367
415
|
export type CreateEvalGuardrailConfigEvalsRequestBoolean = {
|
|
368
416
|
enabled: boolean;
|
|
369
417
|
alertOnFailure?: boolean | undefined;
|
|
@@ -373,6 +421,7 @@ export type CreateEvalGuardrailConfigEvalsRequestBoolean = {
|
|
|
373
421
|
|
|
374
422
|
export type CreateEvalLLMGuardrailConfig =
|
|
375
423
|
| CreateEvalGuardrailConfigEvalsRequestBoolean
|
|
424
|
+
| CreateEvalGuardrailConfigEvalsRequestCategorical
|
|
376
425
|
| CreateEvalGuardrailConfigEvalsRequestNumber;
|
|
377
426
|
|
|
378
427
|
/**
|
|
@@ -396,9 +445,15 @@ export const CreateEvalLLMType = {
|
|
|
396
445
|
} as const;
|
|
397
446
|
export type CreateEvalLLMType = ClosedEnum<typeof CreateEvalLLMType>;
|
|
398
447
|
|
|
448
|
+
export type CreateEvalLLMCategoricalLabels = {
|
|
449
|
+
value: string;
|
|
450
|
+
description?: string | undefined;
|
|
451
|
+
};
|
|
452
|
+
|
|
399
453
|
export type Llm1 = {
|
|
400
454
|
guardrailConfig?:
|
|
401
455
|
| CreateEvalGuardrailConfigEvalsRequestBoolean
|
|
456
|
+
| CreateEvalGuardrailConfigEvalsRequestCategorical
|
|
402
457
|
| CreateEvalGuardrailConfigEvalsRequestNumber
|
|
403
458
|
| null
|
|
404
459
|
| undefined;
|
|
@@ -409,6 +464,8 @@ export type Llm1 = {
|
|
|
409
464
|
type: CreateEvalLLMType;
|
|
410
465
|
repetitions?: number | undefined;
|
|
411
466
|
prompt: string;
|
|
467
|
+
categories?: Array<string> | undefined;
|
|
468
|
+
categoricalLabels?: Array<CreateEvalLLMCategoricalLabels> | undefined;
|
|
412
469
|
/**
|
|
413
470
|
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
414
471
|
*
|
|
@@ -458,6 +515,14 @@ export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody
|
|
|
458
515
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Operator;
|
|
459
516
|
};
|
|
460
517
|
|
|
518
|
+
export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Categorical =
|
|
519
|
+
{
|
|
520
|
+
enabled: boolean;
|
|
521
|
+
alertOnFailure: boolean;
|
|
522
|
+
type: "categorical";
|
|
523
|
+
values: Array<string>;
|
|
524
|
+
};
|
|
525
|
+
|
|
461
526
|
export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean =
|
|
462
527
|
{
|
|
463
528
|
enabled: boolean;
|
|
@@ -468,6 +533,7 @@ export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody
|
|
|
468
533
|
|
|
469
534
|
export type CreateEvalResponseBodyEvalsResponse200ApplicationJSONGuardrailConfig =
|
|
470
535
|
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean
|
|
536
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Categorical
|
|
471
537
|
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number;
|
|
472
538
|
|
|
473
539
|
export const CreateEvalResponseBodyEvalsResponse200ApplicationJSONType = {
|
|
@@ -483,6 +549,7 @@ export type Typescript = {
|
|
|
483
549
|
updated: string;
|
|
484
550
|
guardrailConfig?:
|
|
485
551
|
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean
|
|
552
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Categorical
|
|
486
553
|
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number
|
|
487
554
|
| null
|
|
488
555
|
| undefined;
|
|
@@ -515,6 +582,14 @@ export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody
|
|
|
515
582
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Operator;
|
|
516
583
|
};
|
|
517
584
|
|
|
585
|
+
export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Categorical =
|
|
586
|
+
{
|
|
587
|
+
enabled: boolean;
|
|
588
|
+
alertOnFailure: boolean;
|
|
589
|
+
type: "categorical";
|
|
590
|
+
values: Array<string>;
|
|
591
|
+
};
|
|
592
|
+
|
|
518
593
|
export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean =
|
|
519
594
|
{
|
|
520
595
|
enabled: boolean;
|
|
@@ -525,6 +600,7 @@ export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody
|
|
|
525
600
|
|
|
526
601
|
export type CreateEvalResponseBodyEvalsResponse200GuardrailConfig =
|
|
527
602
|
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean
|
|
603
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Categorical
|
|
528
604
|
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number;
|
|
529
605
|
|
|
530
606
|
export const CreateEvalResponseBodyEvalsResponse200Type = {
|
|
@@ -557,6 +633,7 @@ export type Ragas = {
|
|
|
557
633
|
updated: string;
|
|
558
634
|
guardrailConfig?:
|
|
559
635
|
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean
|
|
636
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Categorical
|
|
560
637
|
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number
|
|
561
638
|
| null
|
|
562
639
|
| undefined;
|
|
@@ -590,6 +667,14 @@ export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody
|
|
|
590
667
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator;
|
|
591
668
|
};
|
|
592
669
|
|
|
670
|
+
export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical =
|
|
671
|
+
{
|
|
672
|
+
enabled: boolean;
|
|
673
|
+
alertOnFailure: boolean;
|
|
674
|
+
type: "categorical";
|
|
675
|
+
values: Array<string>;
|
|
676
|
+
};
|
|
677
|
+
|
|
593
678
|
export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean =
|
|
594
679
|
{
|
|
595
680
|
enabled: boolean;
|
|
@@ -600,6 +685,7 @@ export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody
|
|
|
600
685
|
|
|
601
686
|
export type CreateEvalResponseBodyEvalsResponseGuardrailConfig =
|
|
602
687
|
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean
|
|
688
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical
|
|
603
689
|
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber;
|
|
604
690
|
|
|
605
691
|
export const CreateEvalResponseBodyEvalsResponseType = {
|
|
@@ -790,6 +876,7 @@ export type CreateEvalResponseBodyFunction = {
|
|
|
790
876
|
updated: string;
|
|
791
877
|
guardrailConfig?:
|
|
792
878
|
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean
|
|
879
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical
|
|
793
880
|
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber
|
|
794
881
|
| null
|
|
795
882
|
| undefined;
|
|
@@ -852,6 +939,14 @@ export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber = {
|
|
|
852
939
|
operator: CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator;
|
|
853
940
|
};
|
|
854
941
|
|
|
942
|
+
export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical =
|
|
943
|
+
{
|
|
944
|
+
enabled: boolean;
|
|
945
|
+
alertOnFailure: boolean;
|
|
946
|
+
type: "categorical";
|
|
947
|
+
values: Array<string>;
|
|
948
|
+
};
|
|
949
|
+
|
|
855
950
|
export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean = {
|
|
856
951
|
enabled: boolean;
|
|
857
952
|
alertOnFailure: boolean;
|
|
@@ -861,6 +956,7 @@ export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean = {
|
|
|
861
956
|
|
|
862
957
|
export type CreateEvalResponseBodyEvalsGuardrailConfig =
|
|
863
958
|
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean
|
|
959
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical
|
|
864
960
|
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber;
|
|
865
961
|
|
|
866
962
|
export const CreateEvalResponseBodyEvalsType = {
|
|
@@ -877,6 +973,7 @@ export type ResponseBodyPython = {
|
|
|
877
973
|
updated: string;
|
|
878
974
|
guardrailConfig?:
|
|
879
975
|
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean
|
|
976
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical
|
|
880
977
|
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber
|
|
881
978
|
| null
|
|
882
979
|
| undefined;
|
|
@@ -905,6 +1002,13 @@ export type CreateEvalGuardrailConfigEvalsResponse200Number = {
|
|
|
905
1002
|
operator: CreateEvalGuardrailConfigEvalsResponse200Operator;
|
|
906
1003
|
};
|
|
907
1004
|
|
|
1005
|
+
export type CreateEvalGuardrailConfigEvalsResponse200Categorical = {
|
|
1006
|
+
enabled: boolean;
|
|
1007
|
+
alertOnFailure: boolean;
|
|
1008
|
+
type: "categorical";
|
|
1009
|
+
values: Array<string>;
|
|
1010
|
+
};
|
|
1011
|
+
|
|
908
1012
|
export type CreateEvalGuardrailConfigEvalsResponse200Boolean = {
|
|
909
1013
|
enabled: boolean;
|
|
910
1014
|
alertOnFailure: boolean;
|
|
@@ -914,6 +1018,7 @@ export type CreateEvalGuardrailConfigEvalsResponse200Boolean = {
|
|
|
914
1018
|
|
|
915
1019
|
export type CreateEvalResponseBodyGuardrailConfig =
|
|
916
1020
|
| CreateEvalGuardrailConfigEvalsResponse200Boolean
|
|
1021
|
+
| CreateEvalGuardrailConfigEvalsResponse200Categorical
|
|
917
1022
|
| CreateEvalGuardrailConfigEvalsResponse200Number;
|
|
918
1023
|
|
|
919
1024
|
export const CreateEvalResponseBodyType = {
|
|
@@ -936,6 +1041,7 @@ export type ResponseBodyHTTP = {
|
|
|
936
1041
|
updated: string;
|
|
937
1042
|
guardrailConfig?:
|
|
938
1043
|
| CreateEvalGuardrailConfigEvalsResponse200Boolean
|
|
1044
|
+
| CreateEvalGuardrailConfigEvalsResponse200Categorical
|
|
939
1045
|
| CreateEvalGuardrailConfigEvalsResponse200Number
|
|
940
1046
|
| null
|
|
941
1047
|
| undefined;
|
|
@@ -967,6 +1073,13 @@ export type CreateEvalGuardrailConfigEvalsResponseNumber = {
|
|
|
967
1073
|
operator: CreateEvalGuardrailConfigEvalsResponseOperator;
|
|
968
1074
|
};
|
|
969
1075
|
|
|
1076
|
+
export type CreateEvalGuardrailConfigEvalsResponseCategorical = {
|
|
1077
|
+
enabled: boolean;
|
|
1078
|
+
alertOnFailure: boolean;
|
|
1079
|
+
type: "categorical";
|
|
1080
|
+
values: Array<string>;
|
|
1081
|
+
};
|
|
1082
|
+
|
|
970
1083
|
export type CreateEvalGuardrailConfigEvalsResponseBoolean = {
|
|
971
1084
|
enabled: boolean;
|
|
972
1085
|
alertOnFailure: boolean;
|
|
@@ -976,6 +1089,7 @@ export type CreateEvalGuardrailConfigEvalsResponseBoolean = {
|
|
|
976
1089
|
|
|
977
1090
|
export type ResponseBodyGuardrailConfig =
|
|
978
1091
|
| CreateEvalGuardrailConfigEvalsResponseBoolean
|
|
1092
|
+
| CreateEvalGuardrailConfigEvalsResponseCategorical
|
|
979
1093
|
| CreateEvalGuardrailConfigEvalsResponseNumber;
|
|
980
1094
|
|
|
981
1095
|
export const CreateEvalResponseBodyEvalsResponse200ApplicationJson2Type = {
|
|
@@ -991,6 +1105,7 @@ export type ResponseBodyJSON = {
|
|
|
991
1105
|
updated: string;
|
|
992
1106
|
guardrailConfig?:
|
|
993
1107
|
| CreateEvalGuardrailConfigEvalsResponseBoolean
|
|
1108
|
+
| CreateEvalGuardrailConfigEvalsResponseCategorical
|
|
994
1109
|
| CreateEvalGuardrailConfigEvalsResponseNumber
|
|
995
1110
|
| null
|
|
996
1111
|
| undefined;
|
|
@@ -1023,6 +1138,14 @@ export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody
|
|
|
1023
1138
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMOperator;
|
|
1024
1139
|
};
|
|
1025
1140
|
|
|
1141
|
+
export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategorical =
|
|
1142
|
+
{
|
|
1143
|
+
enabled: boolean;
|
|
1144
|
+
alertOnFailure: boolean;
|
|
1145
|
+
type: "categorical";
|
|
1146
|
+
values: Array<string>;
|
|
1147
|
+
};
|
|
1148
|
+
|
|
1026
1149
|
export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean =
|
|
1027
1150
|
{
|
|
1028
1151
|
enabled: boolean;
|
|
@@ -1033,6 +1156,7 @@ export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody
|
|
|
1033
1156
|
|
|
1034
1157
|
export type CreateEvalLLMEvalsResponseGuardrailConfig =
|
|
1035
1158
|
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean
|
|
1159
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategorical
|
|
1036
1160
|
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumber;
|
|
1037
1161
|
|
|
1038
1162
|
export const CreateEvalLLMEvalsResponseType = {
|
|
@@ -1042,6 +1166,11 @@ export type CreateEvalLLMEvalsResponseType = ClosedEnum<
|
|
|
1042
1166
|
typeof CreateEvalLLMEvalsResponseType
|
|
1043
1167
|
>;
|
|
1044
1168
|
|
|
1169
|
+
export type CreateEvalLLMEvalsCategoricalLabels = {
|
|
1170
|
+
value: string;
|
|
1171
|
+
description?: string | undefined;
|
|
1172
|
+
};
|
|
1173
|
+
|
|
1045
1174
|
export type CreateEvalLLMEvalsResponseRetry = {
|
|
1046
1175
|
count: number;
|
|
1047
1176
|
onCodes?: Array<number> | undefined;
|
|
@@ -1091,12 +1220,15 @@ export type CreateEvalLlm2 = {
|
|
|
1091
1220
|
updated: string;
|
|
1092
1221
|
guardrailConfig?:
|
|
1093
1222
|
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean
|
|
1223
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategorical
|
|
1094
1224
|
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumber
|
|
1095
1225
|
| null
|
|
1096
1226
|
| undefined;
|
|
1097
1227
|
type: CreateEvalLLMEvalsResponseType;
|
|
1098
1228
|
repetitions?: number | undefined;
|
|
1099
1229
|
prompt: string;
|
|
1230
|
+
categories?: Array<string> | undefined;
|
|
1231
|
+
categoricalLabels?: Array<CreateEvalLLMEvalsCategoricalLabels> | undefined;
|
|
1100
1232
|
key: string;
|
|
1101
1233
|
mode: "jury";
|
|
1102
1234
|
jury: CreateEvalLLMJury;
|
|
@@ -1126,6 +1258,14 @@ export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody
|
|
|
1126
1258
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Operator;
|
|
1127
1259
|
};
|
|
1128
1260
|
|
|
1261
|
+
export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Categorical =
|
|
1262
|
+
{
|
|
1263
|
+
enabled: boolean;
|
|
1264
|
+
alertOnFailure: boolean;
|
|
1265
|
+
type: "categorical";
|
|
1266
|
+
values: Array<string>;
|
|
1267
|
+
};
|
|
1268
|
+
|
|
1129
1269
|
export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean =
|
|
1130
1270
|
{
|
|
1131
1271
|
enabled: boolean;
|
|
@@ -1136,6 +1276,7 @@ export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody
|
|
|
1136
1276
|
|
|
1137
1277
|
export type CreateEvalLLMEvalsGuardrailConfig =
|
|
1138
1278
|
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean
|
|
1279
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Categorical
|
|
1139
1280
|
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Number;
|
|
1140
1281
|
|
|
1141
1282
|
export const CreateEvalLLMEvalsType = {
|
|
@@ -1143,6 +1284,11 @@ export const CreateEvalLLMEvalsType = {
|
|
|
1143
1284
|
} as const;
|
|
1144
1285
|
export type CreateEvalLLMEvalsType = ClosedEnum<typeof CreateEvalLLMEvalsType>;
|
|
1145
1286
|
|
|
1287
|
+
export type CreateEvalLLMEvalsResponseCategoricalLabels = {
|
|
1288
|
+
value: string;
|
|
1289
|
+
description?: string | undefined;
|
|
1290
|
+
};
|
|
1291
|
+
|
|
1146
1292
|
export type CreateEvalLlm1 = {
|
|
1147
1293
|
id: string;
|
|
1148
1294
|
description: string;
|
|
@@ -1150,12 +1296,17 @@ export type CreateEvalLlm1 = {
|
|
|
1150
1296
|
updated: string;
|
|
1151
1297
|
guardrailConfig?:
|
|
1152
1298
|
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean
|
|
1299
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Categorical
|
|
1153
1300
|
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Number
|
|
1154
1301
|
| null
|
|
1155
1302
|
| undefined;
|
|
1156
1303
|
type: CreateEvalLLMEvalsType;
|
|
1157
1304
|
repetitions?: number | undefined;
|
|
1158
1305
|
prompt: string;
|
|
1306
|
+
categories?: Array<string> | undefined;
|
|
1307
|
+
categoricalLabels?:
|
|
1308
|
+
| Array<CreateEvalLLMEvalsResponseCategoricalLabels>
|
|
1309
|
+
| undefined;
|
|
1159
1310
|
key: string;
|
|
1160
1311
|
mode: "single";
|
|
1161
1312
|
model: string;
|
|
@@ -1217,6 +1368,40 @@ export function createEvalGuardrailConfigNumberToJSON(
|
|
|
1217
1368
|
);
|
|
1218
1369
|
}
|
|
1219
1370
|
|
|
1371
|
+
/** @internal */
|
|
1372
|
+
export type CreateEvalGuardrailConfigCategorical$Outbound = {
|
|
1373
|
+
enabled: boolean;
|
|
1374
|
+
alert_on_failure: boolean;
|
|
1375
|
+
type: "categorical";
|
|
1376
|
+
values: Array<string>;
|
|
1377
|
+
};
|
|
1378
|
+
|
|
1379
|
+
/** @internal */
|
|
1380
|
+
export const CreateEvalGuardrailConfigCategorical$outboundSchema: z.ZodType<
|
|
1381
|
+
CreateEvalGuardrailConfigCategorical$Outbound,
|
|
1382
|
+
z.ZodTypeDef,
|
|
1383
|
+
CreateEvalGuardrailConfigCategorical
|
|
1384
|
+
> = z.object({
|
|
1385
|
+
enabled: z.boolean(),
|
|
1386
|
+
alertOnFailure: z.boolean().default(false),
|
|
1387
|
+
type: z.literal("categorical"),
|
|
1388
|
+
values: z.array(z.string()),
|
|
1389
|
+
}).transform((v) => {
|
|
1390
|
+
return remap$(v, {
|
|
1391
|
+
alertOnFailure: "alert_on_failure",
|
|
1392
|
+
});
|
|
1393
|
+
});
|
|
1394
|
+
|
|
1395
|
+
export function createEvalGuardrailConfigCategoricalToJSON(
|
|
1396
|
+
createEvalGuardrailConfigCategorical: CreateEvalGuardrailConfigCategorical,
|
|
1397
|
+
): string {
|
|
1398
|
+
return JSON.stringify(
|
|
1399
|
+
CreateEvalGuardrailConfigCategorical$outboundSchema.parse(
|
|
1400
|
+
createEvalGuardrailConfigCategorical,
|
|
1401
|
+
),
|
|
1402
|
+
);
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1220
1405
|
/** @internal */
|
|
1221
1406
|
export type CreateEvalGuardrailConfigBoolean$Outbound = {
|
|
1222
1407
|
enabled: boolean;
|
|
@@ -1254,6 +1439,7 @@ export function createEvalGuardrailConfigBooleanToJSON(
|
|
|
1254
1439
|
/** @internal */
|
|
1255
1440
|
export type CreateEvalRequestBodyGuardrailConfig$Outbound =
|
|
1256
1441
|
| CreateEvalGuardrailConfigBoolean$Outbound
|
|
1442
|
+
| CreateEvalGuardrailConfigCategorical$Outbound
|
|
1257
1443
|
| CreateEvalGuardrailConfigNumber$Outbound;
|
|
1258
1444
|
|
|
1259
1445
|
/** @internal */
|
|
@@ -1263,6 +1449,7 @@ export const CreateEvalRequestBodyGuardrailConfig$outboundSchema: z.ZodType<
|
|
|
1263
1449
|
CreateEvalRequestBodyGuardrailConfig
|
|
1264
1450
|
> = z.union([
|
|
1265
1451
|
z.lazy(() => CreateEvalGuardrailConfigBoolean$outboundSchema),
|
|
1452
|
+
z.lazy(() => CreateEvalGuardrailConfigCategorical$outboundSchema),
|
|
1266
1453
|
z.lazy(() => CreateEvalGuardrailConfigNumber$outboundSchema),
|
|
1267
1454
|
]);
|
|
1268
1455
|
|
|
@@ -1290,6 +1477,7 @@ export const CreateEvalRequestBodyType$outboundSchema: z.ZodNativeEnum<
|
|
|
1290
1477
|
export type Python$Outbound = {
|
|
1291
1478
|
guardrail_config?:
|
|
1292
1479
|
| CreateEvalGuardrailConfigBoolean$Outbound
|
|
1480
|
+
| CreateEvalGuardrailConfigCategorical$Outbound
|
|
1293
1481
|
| CreateEvalGuardrailConfigNumber$Outbound
|
|
1294
1482
|
| null
|
|
1295
1483
|
| undefined;
|
|
@@ -1310,6 +1498,7 @@ export const Python$outboundSchema: z.ZodType<
|
|
|
1310
1498
|
guardrailConfig: z.nullable(
|
|
1311
1499
|
z.union([
|
|
1312
1500
|
z.lazy(() => CreateEvalGuardrailConfigBoolean$outboundSchema),
|
|
1501
|
+
z.lazy(() => CreateEvalGuardrailConfigCategorical$outboundSchema),
|
|
1313
1502
|
z.lazy(() => CreateEvalGuardrailConfigNumber$outboundSchema),
|
|
1314
1503
|
]),
|
|
1315
1504
|
).optional(),
|
|
@@ -1369,6 +1558,38 @@ export function guardrailConfigNumberToJSON(
|
|
|
1369
1558
|
);
|
|
1370
1559
|
}
|
|
1371
1560
|
|
|
1561
|
+
/** @internal */
|
|
1562
|
+
export type GuardrailConfigCategorical$Outbound = {
|
|
1563
|
+
enabled: boolean;
|
|
1564
|
+
alert_on_failure: boolean;
|
|
1565
|
+
type: "categorical";
|
|
1566
|
+
values: Array<string>;
|
|
1567
|
+
};
|
|
1568
|
+
|
|
1569
|
+
/** @internal */
|
|
1570
|
+
export const GuardrailConfigCategorical$outboundSchema: z.ZodType<
|
|
1571
|
+
GuardrailConfigCategorical$Outbound,
|
|
1572
|
+
z.ZodTypeDef,
|
|
1573
|
+
GuardrailConfigCategorical
|
|
1574
|
+
> = z.object({
|
|
1575
|
+
enabled: z.boolean(),
|
|
1576
|
+
alertOnFailure: z.boolean().default(false),
|
|
1577
|
+
type: z.literal("categorical"),
|
|
1578
|
+
values: z.array(z.string()),
|
|
1579
|
+
}).transform((v) => {
|
|
1580
|
+
return remap$(v, {
|
|
1581
|
+
alertOnFailure: "alert_on_failure",
|
|
1582
|
+
});
|
|
1583
|
+
});
|
|
1584
|
+
|
|
1585
|
+
export function guardrailConfigCategoricalToJSON(
|
|
1586
|
+
guardrailConfigCategorical: GuardrailConfigCategorical,
|
|
1587
|
+
): string {
|
|
1588
|
+
return JSON.stringify(
|
|
1589
|
+
GuardrailConfigCategorical$outboundSchema.parse(guardrailConfigCategorical),
|
|
1590
|
+
);
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1372
1593
|
/** @internal */
|
|
1373
1594
|
export type GuardrailConfigBoolean$Outbound = {
|
|
1374
1595
|
enabled: boolean;
|
|
@@ -1404,6 +1625,7 @@ export function guardrailConfigBooleanToJSON(
|
|
|
1404
1625
|
/** @internal */
|
|
1405
1626
|
export type RequestBodyGuardrailConfig$Outbound =
|
|
1406
1627
|
| GuardrailConfigBoolean$Outbound
|
|
1628
|
+
| GuardrailConfigCategorical$Outbound
|
|
1407
1629
|
| GuardrailConfigNumber$Outbound;
|
|
1408
1630
|
|
|
1409
1631
|
/** @internal */
|
|
@@ -1413,6 +1635,7 @@ export const RequestBodyGuardrailConfig$outboundSchema: z.ZodType<
|
|
|
1413
1635
|
RequestBodyGuardrailConfig
|
|
1414
1636
|
> = z.union([
|
|
1415
1637
|
z.lazy(() => GuardrailConfigBoolean$outboundSchema),
|
|
1638
|
+
z.lazy(() => GuardrailConfigCategorical$outboundSchema),
|
|
1416
1639
|
z.lazy(() => GuardrailConfigNumber$outboundSchema),
|
|
1417
1640
|
]);
|
|
1418
1641
|
|
|
@@ -1444,6 +1667,7 @@ export const RequestBodyMethod$outboundSchema: z.ZodNativeEnum<
|
|
|
1444
1667
|
export type RequestBodyHTTP$Outbound = {
|
|
1445
1668
|
guardrail_config?:
|
|
1446
1669
|
| GuardrailConfigBoolean$Outbound
|
|
1670
|
+
| GuardrailConfigCategorical$Outbound
|
|
1447
1671
|
| GuardrailConfigNumber$Outbound
|
|
1448
1672
|
| null
|
|
1449
1673
|
| undefined;
|
|
@@ -1467,6 +1691,7 @@ export const RequestBodyHTTP$outboundSchema: z.ZodType<
|
|
|
1467
1691
|
guardrailConfig: z.nullable(
|
|
1468
1692
|
z.union([
|
|
1469
1693
|
z.lazy(() => GuardrailConfigBoolean$outboundSchema),
|
|
1694
|
+
z.lazy(() => GuardrailConfigCategorical$outboundSchema),
|
|
1470
1695
|
z.lazy(() => GuardrailConfigNumber$outboundSchema),
|
|
1471
1696
|
]),
|
|
1472
1697
|
).optional(),
|
|
@@ -1526,6 +1751,34 @@ export function numberToJSON(numberT: NumberT): string {
|
|
|
1526
1751
|
return JSON.stringify(NumberT$outboundSchema.parse(numberT));
|
|
1527
1752
|
}
|
|
1528
1753
|
|
|
1754
|
+
/** @internal */
|
|
1755
|
+
export type Categorical$Outbound = {
|
|
1756
|
+
enabled: boolean;
|
|
1757
|
+
alert_on_failure: boolean;
|
|
1758
|
+
type: "categorical";
|
|
1759
|
+
values: Array<string>;
|
|
1760
|
+
};
|
|
1761
|
+
|
|
1762
|
+
/** @internal */
|
|
1763
|
+
export const Categorical$outboundSchema: z.ZodType<
|
|
1764
|
+
Categorical$Outbound,
|
|
1765
|
+
z.ZodTypeDef,
|
|
1766
|
+
Categorical
|
|
1767
|
+
> = z.object({
|
|
1768
|
+
enabled: z.boolean(),
|
|
1769
|
+
alertOnFailure: z.boolean().default(false),
|
|
1770
|
+
type: z.literal("categorical"),
|
|
1771
|
+
values: z.array(z.string()),
|
|
1772
|
+
}).transform((v) => {
|
|
1773
|
+
return remap$(v, {
|
|
1774
|
+
alertOnFailure: "alert_on_failure",
|
|
1775
|
+
});
|
|
1776
|
+
});
|
|
1777
|
+
|
|
1778
|
+
export function categoricalToJSON(categorical: Categorical): string {
|
|
1779
|
+
return JSON.stringify(Categorical$outboundSchema.parse(categorical));
|
|
1780
|
+
}
|
|
1781
|
+
|
|
1529
1782
|
/** @internal */
|
|
1530
1783
|
export type Boolean$Outbound = {
|
|
1531
1784
|
enabled: boolean;
|
|
@@ -1555,7 +1808,10 @@ export function booleanToJSON(value: Boolean): string {
|
|
|
1555
1808
|
}
|
|
1556
1809
|
|
|
1557
1810
|
/** @internal */
|
|
1558
|
-
export type GuardrailConfig$Outbound =
|
|
1811
|
+
export type GuardrailConfig$Outbound =
|
|
1812
|
+
| Boolean$Outbound
|
|
1813
|
+
| Categorical$Outbound
|
|
1814
|
+
| NumberT$Outbound;
|
|
1559
1815
|
|
|
1560
1816
|
/** @internal */
|
|
1561
1817
|
export const GuardrailConfig$outboundSchema: z.ZodType<
|
|
@@ -1564,6 +1820,7 @@ export const GuardrailConfig$outboundSchema: z.ZodType<
|
|
|
1564
1820
|
GuardrailConfig
|
|
1565
1821
|
> = z.union([
|
|
1566
1822
|
z.lazy(() => Boolean$outboundSchema),
|
|
1823
|
+
z.lazy(() => Categorical$outboundSchema),
|
|
1567
1824
|
z.lazy(() => NumberT$outboundSchema),
|
|
1568
1825
|
]);
|
|
1569
1826
|
|
|
@@ -1584,7 +1841,12 @@ export const CreateEvalRequestBodyEvalsType$outboundSchema: z.ZodNativeEnum<
|
|
|
1584
1841
|
|
|
1585
1842
|
/** @internal */
|
|
1586
1843
|
export type Json$Outbound = {
|
|
1587
|
-
guardrail_config?:
|
|
1844
|
+
guardrail_config?:
|
|
1845
|
+
| Boolean$Outbound
|
|
1846
|
+
| Categorical$Outbound
|
|
1847
|
+
| NumberT$Outbound
|
|
1848
|
+
| null
|
|
1849
|
+
| undefined;
|
|
1588
1850
|
output_type?: string | undefined;
|
|
1589
1851
|
type: string;
|
|
1590
1852
|
schema: string;
|
|
@@ -1599,6 +1861,7 @@ export const Json$outboundSchema: z.ZodType<Json$Outbound, z.ZodTypeDef, Json> =
|
|
|
1599
1861
|
guardrailConfig: z.nullable(
|
|
1600
1862
|
z.union([
|
|
1601
1863
|
z.lazy(() => Boolean$outboundSchema),
|
|
1864
|
+
z.lazy(() => Categorical$outboundSchema),
|
|
1602
1865
|
z.lazy(() => NumberT$outboundSchema),
|
|
1603
1866
|
]),
|
|
1604
1867
|
).optional(),
|
|
@@ -1661,6 +1924,42 @@ export function createEvalGuardrailConfigEvalsNumberToJSON(
|
|
|
1661
1924
|
);
|
|
1662
1925
|
}
|
|
1663
1926
|
|
|
1927
|
+
/** @internal */
|
|
1928
|
+
export type CreateEvalGuardrailConfigEvalsCategorical$Outbound = {
|
|
1929
|
+
enabled: boolean;
|
|
1930
|
+
alert_on_failure: boolean;
|
|
1931
|
+
type: "categorical";
|
|
1932
|
+
values: Array<string>;
|
|
1933
|
+
};
|
|
1934
|
+
|
|
1935
|
+
/** @internal */
|
|
1936
|
+
export const CreateEvalGuardrailConfigEvalsCategorical$outboundSchema:
|
|
1937
|
+
z.ZodType<
|
|
1938
|
+
CreateEvalGuardrailConfigEvalsCategorical$Outbound,
|
|
1939
|
+
z.ZodTypeDef,
|
|
1940
|
+
CreateEvalGuardrailConfigEvalsCategorical
|
|
1941
|
+
> = z.object({
|
|
1942
|
+
enabled: z.boolean(),
|
|
1943
|
+
alertOnFailure: z.boolean().default(false),
|
|
1944
|
+
type: z.literal("categorical"),
|
|
1945
|
+
values: z.array(z.string()),
|
|
1946
|
+
}).transform((v) => {
|
|
1947
|
+
return remap$(v, {
|
|
1948
|
+
alertOnFailure: "alert_on_failure",
|
|
1949
|
+
});
|
|
1950
|
+
});
|
|
1951
|
+
|
|
1952
|
+
export function createEvalGuardrailConfigEvalsCategoricalToJSON(
|
|
1953
|
+
createEvalGuardrailConfigEvalsCategorical:
|
|
1954
|
+
CreateEvalGuardrailConfigEvalsCategorical,
|
|
1955
|
+
): string {
|
|
1956
|
+
return JSON.stringify(
|
|
1957
|
+
CreateEvalGuardrailConfigEvalsCategorical$outboundSchema.parse(
|
|
1958
|
+
createEvalGuardrailConfigEvalsCategorical,
|
|
1959
|
+
),
|
|
1960
|
+
);
|
|
1961
|
+
}
|
|
1962
|
+
|
|
1664
1963
|
/** @internal */
|
|
1665
1964
|
export type CreateEvalGuardrailConfigEvalsBoolean$Outbound = {
|
|
1666
1965
|
enabled: boolean;
|
|
@@ -1698,6 +1997,7 @@ export function createEvalGuardrailConfigEvalsBooleanToJSON(
|
|
|
1698
1997
|
/** @internal */
|
|
1699
1998
|
export type LLMGuardrailConfig$Outbound =
|
|
1700
1999
|
| CreateEvalGuardrailConfigEvalsBoolean$Outbound
|
|
2000
|
+
| CreateEvalGuardrailConfigEvalsCategorical$Outbound
|
|
1701
2001
|
| CreateEvalGuardrailConfigEvalsNumber$Outbound;
|
|
1702
2002
|
|
|
1703
2003
|
/** @internal */
|
|
@@ -1707,6 +2007,7 @@ export const LLMGuardrailConfig$outboundSchema: z.ZodType<
|
|
|
1707
2007
|
LLMGuardrailConfig
|
|
1708
2008
|
> = z.union([
|
|
1709
2009
|
z.lazy(() => CreateEvalGuardrailConfigEvalsBoolean$outboundSchema),
|
|
2010
|
+
z.lazy(() => CreateEvalGuardrailConfigEvalsCategorical$outboundSchema),
|
|
1710
2011
|
z.lazy(() => CreateEvalGuardrailConfigEvalsNumber$outboundSchema),
|
|
1711
2012
|
]);
|
|
1712
2013
|
|
|
@@ -1727,6 +2028,30 @@ export const LLMOutputType$outboundSchema: z.ZodNativeEnum<
|
|
|
1727
2028
|
export const LLMType$outboundSchema: z.ZodNativeEnum<typeof LLMType> = z
|
|
1728
2029
|
.nativeEnum(LLMType);
|
|
1729
2030
|
|
|
2031
|
+
/** @internal */
|
|
2032
|
+
export type LLMCategoricalLabels$Outbound = {
|
|
2033
|
+
value: string;
|
|
2034
|
+
description?: string | undefined;
|
|
2035
|
+
};
|
|
2036
|
+
|
|
2037
|
+
/** @internal */
|
|
2038
|
+
export const LLMCategoricalLabels$outboundSchema: z.ZodType<
|
|
2039
|
+
LLMCategoricalLabels$Outbound,
|
|
2040
|
+
z.ZodTypeDef,
|
|
2041
|
+
LLMCategoricalLabels
|
|
2042
|
+
> = z.object({
|
|
2043
|
+
value: z.string(),
|
|
2044
|
+
description: z.string().optional(),
|
|
2045
|
+
});
|
|
2046
|
+
|
|
2047
|
+
export function llmCategoricalLabelsToJSON(
|
|
2048
|
+
llmCategoricalLabels: LLMCategoricalLabels,
|
|
2049
|
+
): string {
|
|
2050
|
+
return JSON.stringify(
|
|
2051
|
+
LLMCategoricalLabels$outboundSchema.parse(llmCategoricalLabels),
|
|
2052
|
+
);
|
|
2053
|
+
}
|
|
2054
|
+
|
|
1730
2055
|
/** @internal */
|
|
1731
2056
|
export type CreateEvalLLMRetry$Outbound = {
|
|
1732
2057
|
count: number;
|
|
@@ -1907,6 +2232,7 @@ export function llmJuryToJSON(llmJury: LLMJury): string {
|
|
|
1907
2232
|
export type Llm2$Outbound = {
|
|
1908
2233
|
guardrail_config?:
|
|
1909
2234
|
| CreateEvalGuardrailConfigEvalsBoolean$Outbound
|
|
2235
|
+
| CreateEvalGuardrailConfigEvalsCategorical$Outbound
|
|
1910
2236
|
| CreateEvalGuardrailConfigEvalsNumber$Outbound
|
|
1911
2237
|
| null
|
|
1912
2238
|
| undefined;
|
|
@@ -1914,6 +2240,8 @@ export type Llm2$Outbound = {
|
|
|
1914
2240
|
type: string;
|
|
1915
2241
|
repetitions?: number | undefined;
|
|
1916
2242
|
prompt: string;
|
|
2243
|
+
categories?: Array<string> | undefined;
|
|
2244
|
+
categorical_labels?: Array<LLMCategoricalLabels$Outbound> | undefined;
|
|
1917
2245
|
path: string;
|
|
1918
2246
|
description: string;
|
|
1919
2247
|
key: string;
|
|
@@ -1927,6 +2255,7 @@ export const Llm2$outboundSchema: z.ZodType<Llm2$Outbound, z.ZodTypeDef, Llm2> =
|
|
|
1927
2255
|
guardrailConfig: z.nullable(
|
|
1928
2256
|
z.union([
|
|
1929
2257
|
z.lazy(() => CreateEvalGuardrailConfigEvalsBoolean$outboundSchema),
|
|
2258
|
+
z.lazy(() => CreateEvalGuardrailConfigEvalsCategorical$outboundSchema),
|
|
1930
2259
|
z.lazy(() => CreateEvalGuardrailConfigEvalsNumber$outboundSchema),
|
|
1931
2260
|
]),
|
|
1932
2261
|
).optional(),
|
|
@@ -1934,6 +2263,10 @@ export const Llm2$outboundSchema: z.ZodType<Llm2$Outbound, z.ZodTypeDef, Llm2> =
|
|
|
1934
2263
|
type: LLMType$outboundSchema,
|
|
1935
2264
|
repetitions: z.number().int().optional(),
|
|
1936
2265
|
prompt: z.string(),
|
|
2266
|
+
categories: z.array(z.string()).optional(),
|
|
2267
|
+
categoricalLabels: z.array(
|
|
2268
|
+
z.lazy(() => LLMCategoricalLabels$outboundSchema),
|
|
2269
|
+
).optional(),
|
|
1937
2270
|
path: z.string(),
|
|
1938
2271
|
description: z.string().default(""),
|
|
1939
2272
|
key: z.string(),
|
|
@@ -1943,6 +2276,7 @@ export const Llm2$outboundSchema: z.ZodType<Llm2$Outbound, z.ZodTypeDef, Llm2> =
|
|
|
1943
2276
|
return remap$(v, {
|
|
1944
2277
|
guardrailConfig: "guardrail_config",
|
|
1945
2278
|
outputType: "output_type",
|
|
2279
|
+
categoricalLabels: "categorical_labels",
|
|
1946
2280
|
});
|
|
1947
2281
|
});
|
|
1948
2282
|
|
|
@@ -1993,6 +2327,42 @@ export function createEvalGuardrailConfigEvalsRequestNumberToJSON(
|
|
|
1993
2327
|
);
|
|
1994
2328
|
}
|
|
1995
2329
|
|
|
2330
|
+
/** @internal */
|
|
2331
|
+
export type CreateEvalGuardrailConfigEvalsRequestCategorical$Outbound = {
|
|
2332
|
+
enabled: boolean;
|
|
2333
|
+
alert_on_failure: boolean;
|
|
2334
|
+
type: "categorical";
|
|
2335
|
+
values: Array<string>;
|
|
2336
|
+
};
|
|
2337
|
+
|
|
2338
|
+
/** @internal */
|
|
2339
|
+
export const CreateEvalGuardrailConfigEvalsRequestCategorical$outboundSchema:
|
|
2340
|
+
z.ZodType<
|
|
2341
|
+
CreateEvalGuardrailConfigEvalsRequestCategorical$Outbound,
|
|
2342
|
+
z.ZodTypeDef,
|
|
2343
|
+
CreateEvalGuardrailConfigEvalsRequestCategorical
|
|
2344
|
+
> = z.object({
|
|
2345
|
+
enabled: z.boolean(),
|
|
2346
|
+
alertOnFailure: z.boolean().default(false),
|
|
2347
|
+
type: z.literal("categorical"),
|
|
2348
|
+
values: z.array(z.string()),
|
|
2349
|
+
}).transform((v) => {
|
|
2350
|
+
return remap$(v, {
|
|
2351
|
+
alertOnFailure: "alert_on_failure",
|
|
2352
|
+
});
|
|
2353
|
+
});
|
|
2354
|
+
|
|
2355
|
+
export function createEvalGuardrailConfigEvalsRequestCategoricalToJSON(
|
|
2356
|
+
createEvalGuardrailConfigEvalsRequestCategorical:
|
|
2357
|
+
CreateEvalGuardrailConfigEvalsRequestCategorical,
|
|
2358
|
+
): string {
|
|
2359
|
+
return JSON.stringify(
|
|
2360
|
+
CreateEvalGuardrailConfigEvalsRequestCategorical$outboundSchema.parse(
|
|
2361
|
+
createEvalGuardrailConfigEvalsRequestCategorical,
|
|
2362
|
+
),
|
|
2363
|
+
);
|
|
2364
|
+
}
|
|
2365
|
+
|
|
1996
2366
|
/** @internal */
|
|
1997
2367
|
export type CreateEvalGuardrailConfigEvalsRequestBoolean$Outbound = {
|
|
1998
2368
|
enabled: boolean;
|
|
@@ -2032,6 +2402,7 @@ export function createEvalGuardrailConfigEvalsRequestBooleanToJSON(
|
|
|
2032
2402
|
/** @internal */
|
|
2033
2403
|
export type CreateEvalLLMGuardrailConfig$Outbound =
|
|
2034
2404
|
| CreateEvalGuardrailConfigEvalsRequestBoolean$Outbound
|
|
2405
|
+
| CreateEvalGuardrailConfigEvalsRequestCategorical$Outbound
|
|
2035
2406
|
| CreateEvalGuardrailConfigEvalsRequestNumber$Outbound;
|
|
2036
2407
|
|
|
2037
2408
|
/** @internal */
|
|
@@ -2041,6 +2412,7 @@ export const CreateEvalLLMGuardrailConfig$outboundSchema: z.ZodType<
|
|
|
2041
2412
|
CreateEvalLLMGuardrailConfig
|
|
2042
2413
|
> = z.union([
|
|
2043
2414
|
z.lazy(() => CreateEvalGuardrailConfigEvalsRequestBoolean$outboundSchema),
|
|
2415
|
+
z.lazy(() => CreateEvalGuardrailConfigEvalsRequestCategorical$outboundSchema),
|
|
2044
2416
|
z.lazy(() => CreateEvalGuardrailConfigEvalsRequestNumber$outboundSchema),
|
|
2045
2417
|
]);
|
|
2046
2418
|
|
|
@@ -2064,10 +2436,37 @@ export const CreateEvalLLMType$outboundSchema: z.ZodNativeEnum<
|
|
|
2064
2436
|
typeof CreateEvalLLMType
|
|
2065
2437
|
> = z.nativeEnum(CreateEvalLLMType);
|
|
2066
2438
|
|
|
2439
|
+
/** @internal */
|
|
2440
|
+
export type CreateEvalLLMCategoricalLabels$Outbound = {
|
|
2441
|
+
value: string;
|
|
2442
|
+
description?: string | undefined;
|
|
2443
|
+
};
|
|
2444
|
+
|
|
2445
|
+
/** @internal */
|
|
2446
|
+
export const CreateEvalLLMCategoricalLabels$outboundSchema: z.ZodType<
|
|
2447
|
+
CreateEvalLLMCategoricalLabels$Outbound,
|
|
2448
|
+
z.ZodTypeDef,
|
|
2449
|
+
CreateEvalLLMCategoricalLabels
|
|
2450
|
+
> = z.object({
|
|
2451
|
+
value: z.string(),
|
|
2452
|
+
description: z.string().optional(),
|
|
2453
|
+
});
|
|
2454
|
+
|
|
2455
|
+
export function createEvalLLMCategoricalLabelsToJSON(
|
|
2456
|
+
createEvalLLMCategoricalLabels: CreateEvalLLMCategoricalLabels,
|
|
2457
|
+
): string {
|
|
2458
|
+
return JSON.stringify(
|
|
2459
|
+
CreateEvalLLMCategoricalLabels$outboundSchema.parse(
|
|
2460
|
+
createEvalLLMCategoricalLabels,
|
|
2461
|
+
),
|
|
2462
|
+
);
|
|
2463
|
+
}
|
|
2464
|
+
|
|
2067
2465
|
/** @internal */
|
|
2068
2466
|
export type Llm1$Outbound = {
|
|
2069
2467
|
guardrail_config?:
|
|
2070
2468
|
| CreateEvalGuardrailConfigEvalsRequestBoolean$Outbound
|
|
2469
|
+
| CreateEvalGuardrailConfigEvalsRequestCategorical$Outbound
|
|
2071
2470
|
| CreateEvalGuardrailConfigEvalsRequestNumber$Outbound
|
|
2072
2471
|
| null
|
|
2073
2472
|
| undefined;
|
|
@@ -2075,6 +2474,10 @@ export type Llm1$Outbound = {
|
|
|
2075
2474
|
type: string;
|
|
2076
2475
|
repetitions?: number | undefined;
|
|
2077
2476
|
prompt: string;
|
|
2477
|
+
categories?: Array<string> | undefined;
|
|
2478
|
+
categorical_labels?:
|
|
2479
|
+
| Array<CreateEvalLLMCategoricalLabels$Outbound>
|
|
2480
|
+
| undefined;
|
|
2078
2481
|
path: string;
|
|
2079
2482
|
description: string;
|
|
2080
2483
|
key: string;
|
|
@@ -2090,6 +2493,9 @@ export const Llm1$outboundSchema: z.ZodType<Llm1$Outbound, z.ZodTypeDef, Llm1> =
|
|
|
2090
2493
|
z.lazy(() =>
|
|
2091
2494
|
CreateEvalGuardrailConfigEvalsRequestBoolean$outboundSchema
|
|
2092
2495
|
),
|
|
2496
|
+
z.lazy(() =>
|
|
2497
|
+
CreateEvalGuardrailConfigEvalsRequestCategorical$outboundSchema
|
|
2498
|
+
),
|
|
2093
2499
|
z.lazy(() =>
|
|
2094
2500
|
CreateEvalGuardrailConfigEvalsRequestNumber$outboundSchema
|
|
2095
2501
|
),
|
|
@@ -2099,6 +2505,10 @@ export const Llm1$outboundSchema: z.ZodType<Llm1$Outbound, z.ZodTypeDef, Llm1> =
|
|
|
2099
2505
|
type: CreateEvalLLMType$outboundSchema,
|
|
2100
2506
|
repetitions: z.number().int().optional(),
|
|
2101
2507
|
prompt: z.string(),
|
|
2508
|
+
categories: z.array(z.string()).optional(),
|
|
2509
|
+
categoricalLabels: z.array(
|
|
2510
|
+
z.lazy(() => CreateEvalLLMCategoricalLabels$outboundSchema),
|
|
2511
|
+
).optional(),
|
|
2102
2512
|
path: z.string(),
|
|
2103
2513
|
description: z.string().default(""),
|
|
2104
2514
|
key: z.string(),
|
|
@@ -2108,6 +2518,7 @@ export const Llm1$outboundSchema: z.ZodType<Llm1$Outbound, z.ZodTypeDef, Llm1> =
|
|
|
2108
2518
|
return remap$(v, {
|
|
2109
2519
|
guardrailConfig: "guardrail_config",
|
|
2110
2520
|
outputType: "output_type",
|
|
2521
|
+
categoricalLabels: "categorical_labels",
|
|
2111
2522
|
});
|
|
2112
2523
|
});
|
|
2113
2524
|
|
|
@@ -2202,6 +2613,38 @@ export function createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponse
|
|
|
2202
2613
|
);
|
|
2203
2614
|
}
|
|
2204
2615
|
|
|
2616
|
+
/** @internal */
|
|
2617
|
+
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Categorical$inboundSchema:
|
|
2618
|
+
z.ZodType<
|
|
2619
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Categorical,
|
|
2620
|
+
z.ZodTypeDef,
|
|
2621
|
+
unknown
|
|
2622
|
+
> = z.object({
|
|
2623
|
+
enabled: z.boolean(),
|
|
2624
|
+
alert_on_failure: z.boolean().default(false),
|
|
2625
|
+
type: z.literal("categorical"),
|
|
2626
|
+
values: z.array(z.string()),
|
|
2627
|
+
}).transform((v) => {
|
|
2628
|
+
return remap$(v, {
|
|
2629
|
+
"alert_on_failure": "alertOnFailure",
|
|
2630
|
+
});
|
|
2631
|
+
});
|
|
2632
|
+
|
|
2633
|
+
export function createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7CategoricalFromJSON(
|
|
2634
|
+
jsonString: string,
|
|
2635
|
+
): SafeParseResult<
|
|
2636
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Categorical,
|
|
2637
|
+
SDKValidationError
|
|
2638
|
+
> {
|
|
2639
|
+
return safeParse(
|
|
2640
|
+
jsonString,
|
|
2641
|
+
(x) =>
|
|
2642
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Categorical$inboundSchema
|
|
2643
|
+
.parse(JSON.parse(x)),
|
|
2644
|
+
`Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Categorical' from JSON`,
|
|
2645
|
+
);
|
|
2646
|
+
}
|
|
2647
|
+
|
|
2205
2648
|
/** @internal */
|
|
2206
2649
|
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$inboundSchema:
|
|
2207
2650
|
z.ZodType<
|
|
@@ -2244,6 +2687,9 @@ export const CreateEvalResponseBodyEvalsResponse200ApplicationJSONGuardrailConfi
|
|
|
2244
2687
|
z.lazy(() =>
|
|
2245
2688
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$inboundSchema
|
|
2246
2689
|
),
|
|
2690
|
+
z.lazy(() =>
|
|
2691
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Categorical$inboundSchema
|
|
2692
|
+
),
|
|
2247
2693
|
z.lazy(() =>
|
|
2248
2694
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$inboundSchema
|
|
2249
2695
|
),
|
|
@@ -2278,13 +2724,16 @@ export const Typescript$inboundSchema: z.ZodType<
|
|
|
2278
2724
|
> = z.object({
|
|
2279
2725
|
_id: z.string(),
|
|
2280
2726
|
description: z.string(),
|
|
2281
|
-
created: z.string().default("2026-04-
|
|
2282
|
-
updated: z.string().default("2026-04-
|
|
2727
|
+
created: z.string().default("2026-04-10T13:03:23.771Z"),
|
|
2728
|
+
updated: z.string().default("2026-04-10T13:03:23.771Z"),
|
|
2283
2729
|
guardrail_config: z.nullable(
|
|
2284
2730
|
z.union([
|
|
2285
2731
|
z.lazy(() =>
|
|
2286
2732
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$inboundSchema
|
|
2287
2733
|
),
|
|
2734
|
+
z.lazy(() =>
|
|
2735
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Categorical$inboundSchema
|
|
2736
|
+
),
|
|
2288
2737
|
z.lazy(() =>
|
|
2289
2738
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$inboundSchema
|
|
2290
2739
|
),
|
|
@@ -2352,6 +2801,38 @@ export function createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponse
|
|
|
2352
2801
|
);
|
|
2353
2802
|
}
|
|
2354
2803
|
|
|
2804
|
+
/** @internal */
|
|
2805
|
+
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Categorical$inboundSchema:
|
|
2806
|
+
z.ZodType<
|
|
2807
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Categorical,
|
|
2808
|
+
z.ZodTypeDef,
|
|
2809
|
+
unknown
|
|
2810
|
+
> = z.object({
|
|
2811
|
+
enabled: z.boolean(),
|
|
2812
|
+
alert_on_failure: z.boolean().default(false),
|
|
2813
|
+
type: z.literal("categorical"),
|
|
2814
|
+
values: z.array(z.string()),
|
|
2815
|
+
}).transform((v) => {
|
|
2816
|
+
return remap$(v, {
|
|
2817
|
+
"alert_on_failure": "alertOnFailure",
|
|
2818
|
+
});
|
|
2819
|
+
});
|
|
2820
|
+
|
|
2821
|
+
export function createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6CategoricalFromJSON(
|
|
2822
|
+
jsonString: string,
|
|
2823
|
+
): SafeParseResult<
|
|
2824
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Categorical,
|
|
2825
|
+
SDKValidationError
|
|
2826
|
+
> {
|
|
2827
|
+
return safeParse(
|
|
2828
|
+
jsonString,
|
|
2829
|
+
(x) =>
|
|
2830
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Categorical$inboundSchema
|
|
2831
|
+
.parse(JSON.parse(x)),
|
|
2832
|
+
`Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Categorical' from JSON`,
|
|
2833
|
+
);
|
|
2834
|
+
}
|
|
2835
|
+
|
|
2355
2836
|
/** @internal */
|
|
2356
2837
|
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean$inboundSchema:
|
|
2357
2838
|
z.ZodType<
|
|
@@ -2394,6 +2875,9 @@ export const CreateEvalResponseBodyEvalsResponse200GuardrailConfig$inboundSchema
|
|
|
2394
2875
|
z.lazy(() =>
|
|
2395
2876
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean$inboundSchema
|
|
2396
2877
|
),
|
|
2878
|
+
z.lazy(() =>
|
|
2879
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Categorical$inboundSchema
|
|
2880
|
+
),
|
|
2397
2881
|
z.lazy(() =>
|
|
2398
2882
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$inboundSchema
|
|
2399
2883
|
),
|
|
@@ -2429,13 +2913,16 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
|
|
|
2429
2913
|
.object({
|
|
2430
2914
|
_id: z.string(),
|
|
2431
2915
|
description: z.string(),
|
|
2432
|
-
created: z.string().default("2026-04-
|
|
2433
|
-
updated: z.string().default("2026-04-
|
|
2916
|
+
created: z.string().default("2026-04-10T13:03:23.771Z"),
|
|
2917
|
+
updated: z.string().default("2026-04-10T13:03:23.771Z"),
|
|
2434
2918
|
guardrail_config: z.nullable(
|
|
2435
2919
|
z.union([
|
|
2436
2920
|
z.lazy(() =>
|
|
2437
2921
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean$inboundSchema
|
|
2438
2922
|
),
|
|
2923
|
+
z.lazy(() =>
|
|
2924
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Categorical$inboundSchema
|
|
2925
|
+
),
|
|
2439
2926
|
z.lazy(() =>
|
|
2440
2927
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$inboundSchema
|
|
2441
2928
|
),
|
|
@@ -2505,6 +2992,38 @@ export function createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponse
|
|
|
2505
2992
|
);
|
|
2506
2993
|
}
|
|
2507
2994
|
|
|
2995
|
+
/** @internal */
|
|
2996
|
+
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical$inboundSchema:
|
|
2997
|
+
z.ZodType<
|
|
2998
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical,
|
|
2999
|
+
z.ZodTypeDef,
|
|
3000
|
+
unknown
|
|
3001
|
+
> = z.object({
|
|
3002
|
+
enabled: z.boolean(),
|
|
3003
|
+
alert_on_failure: z.boolean().default(false),
|
|
3004
|
+
type: z.literal("categorical"),
|
|
3005
|
+
values: z.array(z.string()),
|
|
3006
|
+
}).transform((v) => {
|
|
3007
|
+
return remap$(v, {
|
|
3008
|
+
"alert_on_failure": "alertOnFailure",
|
|
3009
|
+
});
|
|
3010
|
+
});
|
|
3011
|
+
|
|
3012
|
+
export function createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategoricalFromJSON(
|
|
3013
|
+
jsonString: string,
|
|
3014
|
+
): SafeParseResult<
|
|
3015
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical,
|
|
3016
|
+
SDKValidationError
|
|
3017
|
+
> {
|
|
3018
|
+
return safeParse(
|
|
3019
|
+
jsonString,
|
|
3020
|
+
(x) =>
|
|
3021
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical$inboundSchema
|
|
3022
|
+
.parse(JSON.parse(x)),
|
|
3023
|
+
`Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical' from JSON`,
|
|
3024
|
+
);
|
|
3025
|
+
}
|
|
3026
|
+
|
|
2508
3027
|
/** @internal */
|
|
2509
3028
|
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema:
|
|
2510
3029
|
z.ZodType<
|
|
@@ -2547,6 +3066,9 @@ export const CreateEvalResponseBodyEvalsResponseGuardrailConfig$inboundSchema:
|
|
|
2547
3066
|
z.lazy(() =>
|
|
2548
3067
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema
|
|
2549
3068
|
),
|
|
3069
|
+
z.lazy(() =>
|
|
3070
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical$inboundSchema
|
|
3071
|
+
),
|
|
2550
3072
|
z.lazy(() =>
|
|
2551
3073
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
|
|
2552
3074
|
),
|
|
@@ -3221,13 +3743,16 @@ export const CreateEvalResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
3221
3743
|
> = z.object({
|
|
3222
3744
|
_id: z.string(),
|
|
3223
3745
|
description: z.string(),
|
|
3224
|
-
created: z.string().default("2026-04-
|
|
3225
|
-
updated: z.string().default("2026-04-
|
|
3746
|
+
created: z.string().default("2026-04-10T13:03:23.771Z"),
|
|
3747
|
+
updated: z.string().default("2026-04-10T13:03:23.771Z"),
|
|
3226
3748
|
guardrail_config: z.nullable(
|
|
3227
3749
|
z.union([
|
|
3228
3750
|
z.lazy(() =>
|
|
3229
3751
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema
|
|
3230
3752
|
),
|
|
3753
|
+
z.lazy(() =>
|
|
3754
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical$inboundSchema
|
|
3755
|
+
),
|
|
3231
3756
|
z.lazy(() =>
|
|
3232
3757
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
|
|
3233
3758
|
),
|
|
@@ -3329,6 +3854,38 @@ export function createEvalGuardrailConfigEvalsResponse200ApplicationJSONNumberFr
|
|
|
3329
3854
|
);
|
|
3330
3855
|
}
|
|
3331
3856
|
|
|
3857
|
+
/** @internal */
|
|
3858
|
+
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical$inboundSchema:
|
|
3859
|
+
z.ZodType<
|
|
3860
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical,
|
|
3861
|
+
z.ZodTypeDef,
|
|
3862
|
+
unknown
|
|
3863
|
+
> = z.object({
|
|
3864
|
+
enabled: z.boolean(),
|
|
3865
|
+
alert_on_failure: z.boolean().default(false),
|
|
3866
|
+
type: z.literal("categorical"),
|
|
3867
|
+
values: z.array(z.string()),
|
|
3868
|
+
}).transform((v) => {
|
|
3869
|
+
return remap$(v, {
|
|
3870
|
+
"alert_on_failure": "alertOnFailure",
|
|
3871
|
+
});
|
|
3872
|
+
});
|
|
3873
|
+
|
|
3874
|
+
export function createEvalGuardrailConfigEvalsResponse200ApplicationJSONCategoricalFromJSON(
|
|
3875
|
+
jsonString: string,
|
|
3876
|
+
): SafeParseResult<
|
|
3877
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical,
|
|
3878
|
+
SDKValidationError
|
|
3879
|
+
> {
|
|
3880
|
+
return safeParse(
|
|
3881
|
+
jsonString,
|
|
3882
|
+
(x) =>
|
|
3883
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical$inboundSchema
|
|
3884
|
+
.parse(JSON.parse(x)),
|
|
3885
|
+
`Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical' from JSON`,
|
|
3886
|
+
);
|
|
3887
|
+
}
|
|
3888
|
+
|
|
3332
3889
|
/** @internal */
|
|
3333
3890
|
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema:
|
|
3334
3891
|
z.ZodType<
|
|
@@ -3368,6 +3925,9 @@ export const CreateEvalResponseBodyEvalsGuardrailConfig$inboundSchema:
|
|
|
3368
3925
|
z.lazy(() =>
|
|
3369
3926
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
|
|
3370
3927
|
),
|
|
3928
|
+
z.lazy(() =>
|
|
3929
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical$inboundSchema
|
|
3930
|
+
),
|
|
3371
3931
|
z.lazy(() =>
|
|
3372
3932
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
|
|
3373
3933
|
),
|
|
@@ -3402,13 +3962,16 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
3402
3962
|
> = z.object({
|
|
3403
3963
|
_id: z.string(),
|
|
3404
3964
|
description: z.string(),
|
|
3405
|
-
created: z.string().default("2026-04-
|
|
3406
|
-
updated: z.string().default("2026-04-
|
|
3965
|
+
created: z.string().default("2026-04-10T13:03:23.771Z"),
|
|
3966
|
+
updated: z.string().default("2026-04-10T13:03:23.771Z"),
|
|
3407
3967
|
guardrail_config: z.nullable(
|
|
3408
3968
|
z.union([
|
|
3409
3969
|
z.lazy(() =>
|
|
3410
3970
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
|
|
3411
3971
|
),
|
|
3972
|
+
z.lazy(() =>
|
|
3973
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical$inboundSchema
|
|
3974
|
+
),
|
|
3412
3975
|
z.lazy(() =>
|
|
3413
3976
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
|
|
3414
3977
|
),
|
|
@@ -3473,6 +4036,39 @@ export function createEvalGuardrailConfigEvalsResponse200NumberFromJSON(
|
|
|
3473
4036
|
);
|
|
3474
4037
|
}
|
|
3475
4038
|
|
|
4039
|
+
/** @internal */
|
|
4040
|
+
export const CreateEvalGuardrailConfigEvalsResponse200Categorical$inboundSchema:
|
|
4041
|
+
z.ZodType<
|
|
4042
|
+
CreateEvalGuardrailConfigEvalsResponse200Categorical,
|
|
4043
|
+
z.ZodTypeDef,
|
|
4044
|
+
unknown
|
|
4045
|
+
> = z.object({
|
|
4046
|
+
enabled: z.boolean(),
|
|
4047
|
+
alert_on_failure: z.boolean().default(false),
|
|
4048
|
+
type: z.literal("categorical"),
|
|
4049
|
+
values: z.array(z.string()),
|
|
4050
|
+
}).transform((v) => {
|
|
4051
|
+
return remap$(v, {
|
|
4052
|
+
"alert_on_failure": "alertOnFailure",
|
|
4053
|
+
});
|
|
4054
|
+
});
|
|
4055
|
+
|
|
4056
|
+
export function createEvalGuardrailConfigEvalsResponse200CategoricalFromJSON(
|
|
4057
|
+
jsonString: string,
|
|
4058
|
+
): SafeParseResult<
|
|
4059
|
+
CreateEvalGuardrailConfigEvalsResponse200Categorical,
|
|
4060
|
+
SDKValidationError
|
|
4061
|
+
> {
|
|
4062
|
+
return safeParse(
|
|
4063
|
+
jsonString,
|
|
4064
|
+
(x) =>
|
|
4065
|
+
CreateEvalGuardrailConfigEvalsResponse200Categorical$inboundSchema.parse(
|
|
4066
|
+
JSON.parse(x),
|
|
4067
|
+
),
|
|
4068
|
+
`Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200Categorical' from JSON`,
|
|
4069
|
+
);
|
|
4070
|
+
}
|
|
4071
|
+
|
|
3476
4072
|
/** @internal */
|
|
3477
4073
|
export const CreateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema:
|
|
3478
4074
|
z.ZodType<
|
|
@@ -3513,6 +4109,9 @@ export const CreateEvalResponseBodyGuardrailConfig$inboundSchema: z.ZodType<
|
|
|
3513
4109
|
unknown
|
|
3514
4110
|
> = z.union([
|
|
3515
4111
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema),
|
|
4112
|
+
z.lazy(() =>
|
|
4113
|
+
CreateEvalGuardrailConfigEvalsResponse200Categorical$inboundSchema
|
|
4114
|
+
),
|
|
3516
4115
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
3517
4116
|
]);
|
|
3518
4117
|
|
|
@@ -3545,13 +4144,16 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
3545
4144
|
> = z.object({
|
|
3546
4145
|
_id: z.string(),
|
|
3547
4146
|
description: z.string(),
|
|
3548
|
-
created: z.string().default("2026-04-
|
|
3549
|
-
updated: z.string().default("2026-04-
|
|
4147
|
+
created: z.string().default("2026-04-10T13:03:23.771Z"),
|
|
4148
|
+
updated: z.string().default("2026-04-10T13:03:23.771Z"),
|
|
3550
4149
|
guardrail_config: z.nullable(
|
|
3551
4150
|
z.union([
|
|
3552
4151
|
z.lazy(() =>
|
|
3553
4152
|
CreateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema
|
|
3554
4153
|
),
|
|
4154
|
+
z.lazy(() =>
|
|
4155
|
+
CreateEvalGuardrailConfigEvalsResponse200Categorical$inboundSchema
|
|
4156
|
+
),
|
|
3555
4157
|
z.lazy(() =>
|
|
3556
4158
|
CreateEvalGuardrailConfigEvalsResponse200Number$inboundSchema
|
|
3557
4159
|
),
|
|
@@ -3619,6 +4221,39 @@ export function createEvalGuardrailConfigEvalsResponseNumberFromJSON(
|
|
|
3619
4221
|
);
|
|
3620
4222
|
}
|
|
3621
4223
|
|
|
4224
|
+
/** @internal */
|
|
4225
|
+
export const CreateEvalGuardrailConfigEvalsResponseCategorical$inboundSchema:
|
|
4226
|
+
z.ZodType<
|
|
4227
|
+
CreateEvalGuardrailConfigEvalsResponseCategorical,
|
|
4228
|
+
z.ZodTypeDef,
|
|
4229
|
+
unknown
|
|
4230
|
+
> = z.object({
|
|
4231
|
+
enabled: z.boolean(),
|
|
4232
|
+
alert_on_failure: z.boolean().default(false),
|
|
4233
|
+
type: z.literal("categorical"),
|
|
4234
|
+
values: z.array(z.string()),
|
|
4235
|
+
}).transform((v) => {
|
|
4236
|
+
return remap$(v, {
|
|
4237
|
+
"alert_on_failure": "alertOnFailure",
|
|
4238
|
+
});
|
|
4239
|
+
});
|
|
4240
|
+
|
|
4241
|
+
export function createEvalGuardrailConfigEvalsResponseCategoricalFromJSON(
|
|
4242
|
+
jsonString: string,
|
|
4243
|
+
): SafeParseResult<
|
|
4244
|
+
CreateEvalGuardrailConfigEvalsResponseCategorical,
|
|
4245
|
+
SDKValidationError
|
|
4246
|
+
> {
|
|
4247
|
+
return safeParse(
|
|
4248
|
+
jsonString,
|
|
4249
|
+
(x) =>
|
|
4250
|
+
CreateEvalGuardrailConfigEvalsResponseCategorical$inboundSchema.parse(
|
|
4251
|
+
JSON.parse(x),
|
|
4252
|
+
),
|
|
4253
|
+
`Failed to parse 'CreateEvalGuardrailConfigEvalsResponseCategorical' from JSON`,
|
|
4254
|
+
);
|
|
4255
|
+
}
|
|
4256
|
+
|
|
3622
4257
|
/** @internal */
|
|
3623
4258
|
export const CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema:
|
|
3624
4259
|
z.ZodType<
|
|
@@ -3659,6 +4294,7 @@ export const ResponseBodyGuardrailConfig$inboundSchema: z.ZodType<
|
|
|
3659
4294
|
unknown
|
|
3660
4295
|
> = z.union([
|
|
3661
4296
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
4297
|
+
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseCategorical$inboundSchema),
|
|
3662
4298
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
3663
4299
|
]);
|
|
3664
4300
|
|
|
@@ -3686,11 +4322,14 @@ export const ResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
3686
4322
|
> = z.object({
|
|
3687
4323
|
_id: z.string(),
|
|
3688
4324
|
description: z.string(),
|
|
3689
|
-
created: z.string().default("2026-04-
|
|
3690
|
-
updated: z.string().default("2026-04-
|
|
4325
|
+
created: z.string().default("2026-04-10T13:03:23.771Z"),
|
|
4326
|
+
updated: z.string().default("2026-04-10T13:03:23.771Z"),
|
|
3691
4327
|
guardrail_config: z.nullable(
|
|
3692
4328
|
z.union([
|
|
3693
4329
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
4330
|
+
z.lazy(() =>
|
|
4331
|
+
CreateEvalGuardrailConfigEvalsResponseCategorical$inboundSchema
|
|
4332
|
+
),
|
|
3694
4333
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
3695
4334
|
]),
|
|
3696
4335
|
).optional(),
|
|
@@ -3757,6 +4396,38 @@ export function createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponse
|
|
|
3757
4396
|
);
|
|
3758
4397
|
}
|
|
3759
4398
|
|
|
4399
|
+
/** @internal */
|
|
4400
|
+
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategorical$inboundSchema:
|
|
4401
|
+
z.ZodType<
|
|
4402
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategorical,
|
|
4403
|
+
z.ZodTypeDef,
|
|
4404
|
+
unknown
|
|
4405
|
+
> = z.object({
|
|
4406
|
+
enabled: z.boolean(),
|
|
4407
|
+
alert_on_failure: z.boolean().default(false),
|
|
4408
|
+
type: z.literal("categorical"),
|
|
4409
|
+
values: z.array(z.string()),
|
|
4410
|
+
}).transform((v) => {
|
|
4411
|
+
return remap$(v, {
|
|
4412
|
+
"alert_on_failure": "alertOnFailure",
|
|
4413
|
+
});
|
|
4414
|
+
});
|
|
4415
|
+
|
|
4416
|
+
export function createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategoricalFromJSON(
|
|
4417
|
+
jsonString: string,
|
|
4418
|
+
): SafeParseResult<
|
|
4419
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategorical,
|
|
4420
|
+
SDKValidationError
|
|
4421
|
+
> {
|
|
4422
|
+
return safeParse(
|
|
4423
|
+
jsonString,
|
|
4424
|
+
(x) =>
|
|
4425
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategorical$inboundSchema
|
|
4426
|
+
.parse(JSON.parse(x)),
|
|
4427
|
+
`Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategorical' from JSON`,
|
|
4428
|
+
);
|
|
4429
|
+
}
|
|
4430
|
+
|
|
3760
4431
|
/** @internal */
|
|
3761
4432
|
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean$inboundSchema:
|
|
3762
4433
|
z.ZodType<
|
|
@@ -3798,6 +4469,9 @@ export const CreateEvalLLMEvalsResponseGuardrailConfig$inboundSchema: z.ZodType<
|
|
|
3798
4469
|
z.lazy(() =>
|
|
3799
4470
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean$inboundSchema
|
|
3800
4471
|
),
|
|
4472
|
+
z.lazy(() =>
|
|
4473
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategorical$inboundSchema
|
|
4474
|
+
),
|
|
3801
4475
|
z.lazy(() =>
|
|
3802
4476
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumber$inboundSchema
|
|
3803
4477
|
),
|
|
@@ -3824,6 +4498,27 @@ export const CreateEvalLLMEvalsResponseType$inboundSchema: z.ZodNativeEnum<
|
|
|
3824
4498
|
typeof CreateEvalLLMEvalsResponseType
|
|
3825
4499
|
> = z.nativeEnum(CreateEvalLLMEvalsResponseType);
|
|
3826
4500
|
|
|
4501
|
+
/** @internal */
|
|
4502
|
+
export const CreateEvalLLMEvalsCategoricalLabels$inboundSchema: z.ZodType<
|
|
4503
|
+
CreateEvalLLMEvalsCategoricalLabels,
|
|
4504
|
+
z.ZodTypeDef,
|
|
4505
|
+
unknown
|
|
4506
|
+
> = z.object({
|
|
4507
|
+
value: z.string(),
|
|
4508
|
+
description: z.string().optional(),
|
|
4509
|
+
});
|
|
4510
|
+
|
|
4511
|
+
export function createEvalLLMEvalsCategoricalLabelsFromJSON(
|
|
4512
|
+
jsonString: string,
|
|
4513
|
+
): SafeParseResult<CreateEvalLLMEvalsCategoricalLabels, SDKValidationError> {
|
|
4514
|
+
return safeParse(
|
|
4515
|
+
jsonString,
|
|
4516
|
+
(x) =>
|
|
4517
|
+
CreateEvalLLMEvalsCategoricalLabels$inboundSchema.parse(JSON.parse(x)),
|
|
4518
|
+
`Failed to parse 'CreateEvalLLMEvalsCategoricalLabels' from JSON`,
|
|
4519
|
+
);
|
|
4520
|
+
}
|
|
4521
|
+
|
|
3827
4522
|
/** @internal */
|
|
3828
4523
|
export const CreateEvalLLMEvalsResponseRetry$inboundSchema: z.ZodType<
|
|
3829
4524
|
CreateEvalLLMEvalsResponseRetry,
|
|
@@ -3999,13 +4694,16 @@ export const CreateEvalLlm2$inboundSchema: z.ZodType<
|
|
|
3999
4694
|
> = z.object({
|
|
4000
4695
|
_id: z.string(),
|
|
4001
4696
|
description: z.string(),
|
|
4002
|
-
created: z.string().default("2026-04-
|
|
4003
|
-
updated: z.string().default("2026-04-
|
|
4697
|
+
created: z.string().default("2026-04-10T13:03:23.771Z"),
|
|
4698
|
+
updated: z.string().default("2026-04-10T13:03:23.771Z"),
|
|
4004
4699
|
guardrail_config: z.nullable(
|
|
4005
4700
|
z.union([
|
|
4006
4701
|
z.lazy(() =>
|
|
4007
4702
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean$inboundSchema
|
|
4008
4703
|
),
|
|
4704
|
+
z.lazy(() =>
|
|
4705
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategorical$inboundSchema
|
|
4706
|
+
),
|
|
4009
4707
|
z.lazy(() =>
|
|
4010
4708
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumber$inboundSchema
|
|
4011
4709
|
),
|
|
@@ -4014,6 +4712,10 @@ export const CreateEvalLlm2$inboundSchema: z.ZodType<
|
|
|
4014
4712
|
type: CreateEvalLLMEvalsResponseType$inboundSchema,
|
|
4015
4713
|
repetitions: z.number().int().optional(),
|
|
4016
4714
|
prompt: z.string(),
|
|
4715
|
+
categories: z.array(z.string()).optional(),
|
|
4716
|
+
categorical_labels: z.array(
|
|
4717
|
+
z.lazy(() => CreateEvalLLMEvalsCategoricalLabels$inboundSchema),
|
|
4718
|
+
).optional(),
|
|
4017
4719
|
key: z.string(),
|
|
4018
4720
|
mode: z.literal("jury"),
|
|
4019
4721
|
jury: z.lazy(() => CreateEvalLLMJury$inboundSchema),
|
|
@@ -4021,6 +4723,7 @@ export const CreateEvalLlm2$inboundSchema: z.ZodType<
|
|
|
4021
4723
|
return remap$(v, {
|
|
4022
4724
|
"_id": "id",
|
|
4023
4725
|
"guardrail_config": "guardrailConfig",
|
|
4726
|
+
"categorical_labels": "categoricalLabels",
|
|
4024
4727
|
});
|
|
4025
4728
|
});
|
|
4026
4729
|
|
|
@@ -4076,6 +4779,38 @@ export function createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponse
|
|
|
4076
4779
|
);
|
|
4077
4780
|
}
|
|
4078
4781
|
|
|
4782
|
+
/** @internal */
|
|
4783
|
+
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Categorical$inboundSchema:
|
|
4784
|
+
z.ZodType<
|
|
4785
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Categorical,
|
|
4786
|
+
z.ZodTypeDef,
|
|
4787
|
+
unknown
|
|
4788
|
+
> = z.object({
|
|
4789
|
+
enabled: z.boolean(),
|
|
4790
|
+
alert_on_failure: z.boolean().default(false),
|
|
4791
|
+
type: z.literal("categorical"),
|
|
4792
|
+
values: z.array(z.string()),
|
|
4793
|
+
}).transform((v) => {
|
|
4794
|
+
return remap$(v, {
|
|
4795
|
+
"alert_on_failure": "alertOnFailure",
|
|
4796
|
+
});
|
|
4797
|
+
});
|
|
4798
|
+
|
|
4799
|
+
export function createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1CategoricalFromJSON(
|
|
4800
|
+
jsonString: string,
|
|
4801
|
+
): SafeParseResult<
|
|
4802
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Categorical,
|
|
4803
|
+
SDKValidationError
|
|
4804
|
+
> {
|
|
4805
|
+
return safeParse(
|
|
4806
|
+
jsonString,
|
|
4807
|
+
(x) =>
|
|
4808
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Categorical$inboundSchema
|
|
4809
|
+
.parse(JSON.parse(x)),
|
|
4810
|
+
`Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Categorical' from JSON`,
|
|
4811
|
+
);
|
|
4812
|
+
}
|
|
4813
|
+
|
|
4079
4814
|
/** @internal */
|
|
4080
4815
|
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean$inboundSchema:
|
|
4081
4816
|
z.ZodType<
|
|
@@ -4117,6 +4852,9 @@ export const CreateEvalLLMEvalsGuardrailConfig$inboundSchema: z.ZodType<
|
|
|
4117
4852
|
z.lazy(() =>
|
|
4118
4853
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean$inboundSchema
|
|
4119
4854
|
),
|
|
4855
|
+
z.lazy(() =>
|
|
4856
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Categorical$inboundSchema
|
|
4857
|
+
),
|
|
4120
4858
|
z.lazy(() =>
|
|
4121
4859
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Number$inboundSchema
|
|
4122
4860
|
),
|
|
@@ -4137,6 +4875,33 @@ export const CreateEvalLLMEvalsType$inboundSchema: z.ZodNativeEnum<
|
|
|
4137
4875
|
typeof CreateEvalLLMEvalsType
|
|
4138
4876
|
> = z.nativeEnum(CreateEvalLLMEvalsType);
|
|
4139
4877
|
|
|
4878
|
+
/** @internal */
|
|
4879
|
+
export const CreateEvalLLMEvalsResponseCategoricalLabels$inboundSchema:
|
|
4880
|
+
z.ZodType<
|
|
4881
|
+
CreateEvalLLMEvalsResponseCategoricalLabels,
|
|
4882
|
+
z.ZodTypeDef,
|
|
4883
|
+
unknown
|
|
4884
|
+
> = z.object({
|
|
4885
|
+
value: z.string(),
|
|
4886
|
+
description: z.string().optional(),
|
|
4887
|
+
});
|
|
4888
|
+
|
|
4889
|
+
export function createEvalLLMEvalsResponseCategoricalLabelsFromJSON(
|
|
4890
|
+
jsonString: string,
|
|
4891
|
+
): SafeParseResult<
|
|
4892
|
+
CreateEvalLLMEvalsResponseCategoricalLabels,
|
|
4893
|
+
SDKValidationError
|
|
4894
|
+
> {
|
|
4895
|
+
return safeParse(
|
|
4896
|
+
jsonString,
|
|
4897
|
+
(x) =>
|
|
4898
|
+
CreateEvalLLMEvalsResponseCategoricalLabels$inboundSchema.parse(
|
|
4899
|
+
JSON.parse(x),
|
|
4900
|
+
),
|
|
4901
|
+
`Failed to parse 'CreateEvalLLMEvalsResponseCategoricalLabels' from JSON`,
|
|
4902
|
+
);
|
|
4903
|
+
}
|
|
4904
|
+
|
|
4140
4905
|
/** @internal */
|
|
4141
4906
|
export const CreateEvalLlm1$inboundSchema: z.ZodType<
|
|
4142
4907
|
CreateEvalLlm1,
|
|
@@ -4145,13 +4910,16 @@ export const CreateEvalLlm1$inboundSchema: z.ZodType<
|
|
|
4145
4910
|
> = z.object({
|
|
4146
4911
|
_id: z.string(),
|
|
4147
4912
|
description: z.string(),
|
|
4148
|
-
created: z.string().default("2026-04-
|
|
4149
|
-
updated: z.string().default("2026-04-
|
|
4913
|
+
created: z.string().default("2026-04-10T13:03:23.771Z"),
|
|
4914
|
+
updated: z.string().default("2026-04-10T13:03:23.771Z"),
|
|
4150
4915
|
guardrail_config: z.nullable(
|
|
4151
4916
|
z.union([
|
|
4152
4917
|
z.lazy(() =>
|
|
4153
4918
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean$inboundSchema
|
|
4154
4919
|
),
|
|
4920
|
+
z.lazy(() =>
|
|
4921
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Categorical$inboundSchema
|
|
4922
|
+
),
|
|
4155
4923
|
z.lazy(() =>
|
|
4156
4924
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Number$inboundSchema
|
|
4157
4925
|
),
|
|
@@ -4160,6 +4928,10 @@ export const CreateEvalLlm1$inboundSchema: z.ZodType<
|
|
|
4160
4928
|
type: CreateEvalLLMEvalsType$inboundSchema,
|
|
4161
4929
|
repetitions: z.number().int().optional(),
|
|
4162
4930
|
prompt: z.string(),
|
|
4931
|
+
categories: z.array(z.string()).optional(),
|
|
4932
|
+
categorical_labels: z.array(
|
|
4933
|
+
z.lazy(() => CreateEvalLLMEvalsResponseCategoricalLabels$inboundSchema),
|
|
4934
|
+
).optional(),
|
|
4163
4935
|
key: z.string(),
|
|
4164
4936
|
mode: z.literal("single"),
|
|
4165
4937
|
model: z.string(),
|
|
@@ -4167,6 +4939,7 @@ export const CreateEvalLlm1$inboundSchema: z.ZodType<
|
|
|
4167
4939
|
return remap$(v, {
|
|
4168
4940
|
"_id": "id",
|
|
4169
4941
|
"guardrail_config": "guardrailConfig",
|
|
4942
|
+
"categorical_labels": "categoricalLabels",
|
|
4170
4943
|
});
|
|
4171
4944
|
});
|
|
4172
4945
|
|