@orq-ai/node 4.10.0-rc.45 → 4.10.0-rc.47
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/README.md +36 -41
- package/funcs/annotationsCreate.d.ts +3 -0
- package/funcs/annotationsCreate.d.ts.map +1 -1
- package/funcs/annotationsCreate.js +3 -0
- package/funcs/annotationsCreate.js.map +1 -1
- package/funcs/annotationsDelete.d.ts +3 -0
- package/funcs/annotationsDelete.d.ts.map +1 -1
- package/funcs/annotationsDelete.js +3 -0
- package/funcs/annotationsDelete.js.map +1 -1
- package/funcs/deploymentsInvoke.d.ts +1 -2
- package/funcs/deploymentsInvoke.d.ts.map +1 -1
- package/funcs/deploymentsInvoke.js +1 -2
- package/funcs/deploymentsInvoke.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/agentthoughtstreamingevent.d.ts +12 -12
- package/models/components/agentthoughtstreamingevent.d.ts.map +1 -1
- package/models/components/agentthoughtstreamingevent.js +17 -17
- package/models/components/agentthoughtstreamingevent.js.map +1 -1
- package/models/components/index.d.ts +0 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -1
- package/models/components/index.js.map +1 -1
- package/models/components/modelmetadata.d.ts +38 -0
- package/models/components/modelmetadata.d.ts.map +1 -1
- package/models/components/modelmetadata.js +72 -0
- package/models/components/modelmetadata.js.map +1 -1
- package/models/components/reasoningpart.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 +67 -210
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +84 -201
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createtool.d.ts +10 -10
- package/models/operations/createtool.d.ts.map +1 -1
- package/models/operations/createtool.js +15 -15
- package/models/operations/createtool.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +440 -440
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +479 -484
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +1568 -8
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +1137 -12
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +56 -56
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +72 -73
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/index.d.ts +0 -1
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -1
- package/models/operations/index.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +3 -3
- 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/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 +8 -8
- package/models/operations/updateeval.d.ts.map +1 -1
- package/models/operations/updateeval.js +26 -26
- package/models/operations/updateeval.js.map +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +5 -5
- package/sdk/annotations.d.ts +6 -0
- package/sdk/annotations.d.ts.map +1 -1
- package/sdk/annotations.js +6 -0
- package/sdk/annotations.js.map +1 -1
- package/sdk/deployments.d.ts +1 -5
- package/sdk/deployments.d.ts.map +1 -1
- package/sdk/deployments.js +0 -4
- package/sdk/deployments.js.map +1 -1
- package/src/funcs/annotationsCreate.ts +3 -0
- package/src/funcs/annotationsDelete.ts +3 -0
- package/src/funcs/deploymentsInvoke.ts +4 -4
- package/src/lib/config.ts +3 -3
- package/src/models/components/agentthoughtstreamingevent.ts +43 -55
- package/src/models/components/index.ts +0 -1
- package/src/models/components/modelmetadata.ts +110 -0
- package/src/models/components/reasoningpart.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 +214 -543
- package/src/models/operations/createtool.ts +24 -28
- package/src/models/operations/deploymentgetconfig.ts +1606 -1156
- package/src/models/operations/deploymentinvoke.ts +3763 -317
- package/src/models/operations/deploymentstream.ts +285 -244
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/index.ts +0 -1
- 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/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- 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/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 +32 -34
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/annotations.ts +6 -0
- package/src/sdk/deployments.ts +1 -8
- package/funcs/deploymentsMetricsCreate.d.ts +0 -19
- package/funcs/deploymentsMetricsCreate.d.ts.map +0 -1
- package/funcs/deploymentsMetricsCreate.js +0 -123
- package/funcs/deploymentsMetricsCreate.js.map +0 -1
- package/models/components/invokedeploymentrequest.d.ts +0 -1573
- package/models/components/invokedeploymentrequest.d.ts.map +0 -1
- package/models/components/invokedeploymentrequest.js +0 -1137
- package/models/components/invokedeploymentrequest.js.map +0 -1
- package/models/operations/deploymentcreatemetric.d.ts +0 -1032
- package/models/operations/deploymentcreatemetric.d.ts.map +0 -1
- package/models/operations/deploymentcreatemetric.js +0 -749
- package/models/operations/deploymentcreatemetric.js.map +0 -1
- package/sdk/metrics.d.ts +0 -14
- package/sdk/metrics.d.ts.map +0 -1
- package/sdk/metrics.js +0 -24
- package/sdk/metrics.js.map +0 -1
- package/src/funcs/deploymentsMetricsCreate.ts +0 -171
- package/src/models/components/invokedeploymentrequest.ts +0 -3457
- package/src/models/operations/deploymentcreatemetric.ts +0 -2370
- package/src/sdk/metrics.ts +0 -29
|
@@ -9,84 +9,6 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
export const CreateEvalGuardrailConfigOperator = {
|
|
13
|
-
Eq: "eq",
|
|
14
|
-
Ne: "ne",
|
|
15
|
-
Gt: "gt",
|
|
16
|
-
Gte: "gte",
|
|
17
|
-
Lt: "lt",
|
|
18
|
-
Lte: "lte",
|
|
19
|
-
} as const;
|
|
20
|
-
export type CreateEvalGuardrailConfigOperator = ClosedEnum<
|
|
21
|
-
typeof CreateEvalGuardrailConfigOperator
|
|
22
|
-
>;
|
|
23
|
-
|
|
24
|
-
export type CreateEvalGuardrailConfigNumber = {
|
|
25
|
-
enabled?: boolean | undefined;
|
|
26
|
-
alertOnFailure?: boolean | undefined;
|
|
27
|
-
type: "number";
|
|
28
|
-
value: number;
|
|
29
|
-
operator: CreateEvalGuardrailConfigOperator;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export type CreateEvalGuardrailConfigCategorical = {
|
|
33
|
-
enabled?: boolean | undefined;
|
|
34
|
-
alertOnFailure?: boolean | undefined;
|
|
35
|
-
type: "categorical";
|
|
36
|
-
values: Array<string>;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export type CreateEvalGuardrailConfigBoolean = {
|
|
40
|
-
enabled?: boolean | undefined;
|
|
41
|
-
alertOnFailure?: boolean | undefined;
|
|
42
|
-
type: "boolean";
|
|
43
|
-
value: boolean;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
export type CreateEvalRequestBodyGuardrailConfig =
|
|
47
|
-
| CreateEvalGuardrailConfigBoolean
|
|
48
|
-
| CreateEvalGuardrailConfigCategorical
|
|
49
|
-
| CreateEvalGuardrailConfigNumber;
|
|
50
|
-
|
|
51
|
-
export const CreateEvalRequestBodyOutputType = {
|
|
52
|
-
Boolean: "boolean",
|
|
53
|
-
Number: "number",
|
|
54
|
-
} as const;
|
|
55
|
-
export type CreateEvalRequestBodyOutputType = ClosedEnum<
|
|
56
|
-
typeof CreateEvalRequestBodyOutputType
|
|
57
|
-
>;
|
|
58
|
-
|
|
59
|
-
export const CreateEvalRequestBodyType = {
|
|
60
|
-
PythonEval: "python_eval",
|
|
61
|
-
} as const;
|
|
62
|
-
export type CreateEvalRequestBodyType = ClosedEnum<
|
|
63
|
-
typeof CreateEvalRequestBodyType
|
|
64
|
-
>;
|
|
65
|
-
|
|
66
|
-
export type Python = {
|
|
67
|
-
guardrailConfig?:
|
|
68
|
-
| CreateEvalGuardrailConfigBoolean
|
|
69
|
-
| CreateEvalGuardrailConfigCategorical
|
|
70
|
-
| CreateEvalGuardrailConfigNumber
|
|
71
|
-
| null
|
|
72
|
-
| undefined;
|
|
73
|
-
outputType?: CreateEvalRequestBodyOutputType | undefined;
|
|
74
|
-
code: string;
|
|
75
|
-
type: CreateEvalRequestBodyType;
|
|
76
|
-
/**
|
|
77
|
-
* Entity storage path.
|
|
78
|
-
*
|
|
79
|
-
* @remarks
|
|
80
|
-
*
|
|
81
|
-
* With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
|
|
82
|
-
*
|
|
83
|
-
* With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
|
|
84
|
-
*/
|
|
85
|
-
path: string;
|
|
86
|
-
description?: string | undefined;
|
|
87
|
-
key: string;
|
|
88
|
-
};
|
|
89
|
-
|
|
90
12
|
export const GuardrailConfigOperator = {
|
|
91
13
|
Eq: "eq",
|
|
92
14
|
Ne: "ne",
|
|
@@ -126,49 +48,29 @@ export type RequestBodyGuardrailConfig =
|
|
|
126
48
|
| GuardrailConfigCategorical
|
|
127
49
|
| GuardrailConfigNumber;
|
|
128
50
|
|
|
129
|
-
/**
|
|
130
|
-
* The type of output expected from the evaluator
|
|
131
|
-
*/
|
|
132
51
|
export const RequestBodyOutputType = {
|
|
133
52
|
Boolean: "boolean",
|
|
134
|
-
Categorical: "categorical",
|
|
135
53
|
Number: "number",
|
|
136
|
-
String: "string",
|
|
137
54
|
} as const;
|
|
138
|
-
/**
|
|
139
|
-
* The type of output expected from the evaluator
|
|
140
|
-
*/
|
|
141
55
|
export type RequestBodyOutputType = ClosedEnum<typeof RequestBodyOutputType>;
|
|
142
56
|
|
|
143
|
-
export const
|
|
144
|
-
|
|
57
|
+
export const CreateEvalRequestBodyEvalsType = {
|
|
58
|
+
PythonEval: "python_eval",
|
|
145
59
|
} as const;
|
|
146
|
-
export type
|
|
147
|
-
typeof
|
|
60
|
+
export type CreateEvalRequestBodyEvalsType = ClosedEnum<
|
|
61
|
+
typeof CreateEvalRequestBodyEvalsType
|
|
148
62
|
>;
|
|
149
63
|
|
|
150
|
-
export
|
|
151
|
-
Get: "GET",
|
|
152
|
-
Post: "POST",
|
|
153
|
-
} as const;
|
|
154
|
-
export type RequestBodyMethod = ClosedEnum<typeof RequestBodyMethod>;
|
|
155
|
-
|
|
156
|
-
export type RequestBodyHTTP = {
|
|
64
|
+
export type Python = {
|
|
157
65
|
guardrailConfig?:
|
|
158
66
|
| GuardrailConfigBoolean
|
|
159
67
|
| GuardrailConfigCategorical
|
|
160
68
|
| GuardrailConfigNumber
|
|
161
69
|
| null
|
|
162
70
|
| undefined;
|
|
163
|
-
/**
|
|
164
|
-
* The type of output expected from the evaluator
|
|
165
|
-
*/
|
|
166
71
|
outputType?: RequestBodyOutputType | undefined;
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
method: RequestBodyMethod;
|
|
170
|
-
headers: { [k: string]: string };
|
|
171
|
-
payload: { [k: string]: any };
|
|
72
|
+
code: string;
|
|
73
|
+
type: CreateEvalRequestBodyEvalsType;
|
|
172
74
|
/**
|
|
173
75
|
* Entity storage path.
|
|
174
76
|
*
|
|
@@ -183,7 +85,7 @@ export type RequestBodyHTTP = {
|
|
|
183
85
|
key: string;
|
|
184
86
|
};
|
|
185
87
|
|
|
186
|
-
export const
|
|
88
|
+
export const CreateEvalGuardrailConfigOperator = {
|
|
187
89
|
Eq: "eq",
|
|
188
90
|
Ne: "ne",
|
|
189
91
|
Gt: "gt",
|
|
@@ -191,58 +93,58 @@ export const CreateEvalGuardrailConfigEvalsOperator = {
|
|
|
191
93
|
Lt: "lt",
|
|
192
94
|
Lte: "lte",
|
|
193
95
|
} as const;
|
|
194
|
-
export type
|
|
195
|
-
typeof
|
|
96
|
+
export type CreateEvalGuardrailConfigOperator = ClosedEnum<
|
|
97
|
+
typeof CreateEvalGuardrailConfigOperator
|
|
196
98
|
>;
|
|
197
99
|
|
|
198
|
-
export type
|
|
100
|
+
export type CreateEvalGuardrailConfigNumber = {
|
|
199
101
|
enabled?: boolean | undefined;
|
|
200
102
|
alertOnFailure?: boolean | undefined;
|
|
201
103
|
type: "number";
|
|
202
104
|
value: number;
|
|
203
|
-
operator:
|
|
105
|
+
operator: CreateEvalGuardrailConfigOperator;
|
|
204
106
|
};
|
|
205
107
|
|
|
206
|
-
export type
|
|
108
|
+
export type CreateEvalGuardrailConfigCategorical = {
|
|
207
109
|
enabled?: boolean | undefined;
|
|
208
110
|
alertOnFailure?: boolean | undefined;
|
|
209
111
|
type: "categorical";
|
|
210
112
|
values: Array<string>;
|
|
211
113
|
};
|
|
212
114
|
|
|
213
|
-
export type
|
|
115
|
+
export type CreateEvalGuardrailConfigBoolean = {
|
|
214
116
|
enabled?: boolean | undefined;
|
|
215
117
|
alertOnFailure?: boolean | undefined;
|
|
216
118
|
type: "boolean";
|
|
217
119
|
value: boolean;
|
|
218
120
|
};
|
|
219
121
|
|
|
220
|
-
export type
|
|
221
|
-
|
|
|
222
|
-
|
|
|
223
|
-
|
|
|
122
|
+
export type CreateEvalRequestBodyGuardrailConfig =
|
|
123
|
+
| CreateEvalGuardrailConfigBoolean
|
|
124
|
+
| CreateEvalGuardrailConfigCategorical
|
|
125
|
+
| CreateEvalGuardrailConfigNumber;
|
|
224
126
|
|
|
225
127
|
export const OutputType = {
|
|
226
128
|
Boolean: "boolean",
|
|
227
129
|
} as const;
|
|
228
130
|
export type OutputType = ClosedEnum<typeof OutputType>;
|
|
229
131
|
|
|
230
|
-
export const
|
|
132
|
+
export const CreateEvalRequestBodyType = {
|
|
231
133
|
JsonSchema: "json_schema",
|
|
232
134
|
} as const;
|
|
233
|
-
export type
|
|
234
|
-
typeof
|
|
135
|
+
export type CreateEvalRequestBodyType = ClosedEnum<
|
|
136
|
+
typeof CreateEvalRequestBodyType
|
|
235
137
|
>;
|
|
236
138
|
|
|
237
139
|
export type Json = {
|
|
238
140
|
guardrailConfig?:
|
|
239
|
-
|
|
|
240
|
-
|
|
|
241
|
-
|
|
|
141
|
+
| CreateEvalGuardrailConfigBoolean
|
|
142
|
+
| CreateEvalGuardrailConfigCategorical
|
|
143
|
+
| CreateEvalGuardrailConfigNumber
|
|
242
144
|
| null
|
|
243
145
|
| undefined;
|
|
244
146
|
outputType?: OutputType | undefined;
|
|
245
|
-
type:
|
|
147
|
+
type: CreateEvalRequestBodyType;
|
|
246
148
|
schema: string;
|
|
247
149
|
/**
|
|
248
150
|
* Entity storage path.
|
|
@@ -258,7 +160,7 @@ export type Json = {
|
|
|
258
160
|
key: string;
|
|
259
161
|
};
|
|
260
162
|
|
|
261
|
-
export const
|
|
163
|
+
export const CreateEvalGuardrailConfigEvalsOperator = {
|
|
262
164
|
Eq: "eq",
|
|
263
165
|
Ne: "ne",
|
|
264
166
|
Gt: "gt",
|
|
@@ -266,25 +168,26 @@ export const CreateEvalGuardrailConfigEvalsRequestRequestBodyOperator = {
|
|
|
266
168
|
Lt: "lt",
|
|
267
169
|
Lte: "lte",
|
|
268
170
|
} as const;
|
|
269
|
-
export type
|
|
270
|
-
|
|
171
|
+
export type CreateEvalGuardrailConfigEvalsOperator = ClosedEnum<
|
|
172
|
+
typeof CreateEvalGuardrailConfigEvalsOperator
|
|
173
|
+
>;
|
|
271
174
|
|
|
272
|
-
export type
|
|
175
|
+
export type CreateEvalGuardrailConfigEvalsNumber = {
|
|
273
176
|
enabled?: boolean | undefined;
|
|
274
177
|
alertOnFailure?: boolean | undefined;
|
|
275
178
|
type: "number";
|
|
276
179
|
value: number;
|
|
277
|
-
operator:
|
|
180
|
+
operator: CreateEvalGuardrailConfigEvalsOperator;
|
|
278
181
|
};
|
|
279
182
|
|
|
280
|
-
export type
|
|
183
|
+
export type CreateEvalGuardrailConfigEvalsCategorical = {
|
|
281
184
|
enabled?: boolean | undefined;
|
|
282
185
|
alertOnFailure?: boolean | undefined;
|
|
283
186
|
type: "categorical";
|
|
284
187
|
values: Array<string>;
|
|
285
188
|
};
|
|
286
189
|
|
|
287
|
-
export type
|
|
190
|
+
export type CreateEvalGuardrailConfigEvalsBoolean = {
|
|
288
191
|
enabled?: boolean | undefined;
|
|
289
192
|
alertOnFailure?: boolean | undefined;
|
|
290
193
|
type: "boolean";
|
|
@@ -292,9 +195,9 @@ export type CreateEvalGuardrailConfigEvalsRequestRequestBodyBoolean = {
|
|
|
292
195
|
};
|
|
293
196
|
|
|
294
197
|
export type LLMGuardrailConfig =
|
|
295
|
-
|
|
|
296
|
-
|
|
|
297
|
-
|
|
|
198
|
+
| CreateEvalGuardrailConfigEvalsBoolean
|
|
199
|
+
| CreateEvalGuardrailConfigEvalsCategorical
|
|
200
|
+
| CreateEvalGuardrailConfigEvalsNumber;
|
|
298
201
|
|
|
299
202
|
/**
|
|
300
203
|
* The type of output expected from the evaluator
|
|
@@ -364,9 +267,9 @@ export type LLMJury = {
|
|
|
364
267
|
|
|
365
268
|
export type Llm2 = {
|
|
366
269
|
guardrailConfig?:
|
|
367
|
-
|
|
|
368
|
-
|
|
|
369
|
-
|
|
|
270
|
+
| CreateEvalGuardrailConfigEvalsBoolean
|
|
271
|
+
| CreateEvalGuardrailConfigEvalsCategorical
|
|
272
|
+
| CreateEvalGuardrailConfigEvalsNumber
|
|
370
273
|
| null
|
|
371
274
|
| undefined;
|
|
372
275
|
/**
|
|
@@ -495,12 +398,7 @@ export type Llm1 = {
|
|
|
495
398
|
|
|
496
399
|
export type Llm = Llm1 | Llm2;
|
|
497
400
|
|
|
498
|
-
export type CreateEvalRequestBody =
|
|
499
|
-
| RequestBodyHTTP
|
|
500
|
-
| Json
|
|
501
|
-
| Python
|
|
502
|
-
| Llm1
|
|
503
|
-
| Llm2;
|
|
401
|
+
export type CreateEvalRequestBody = Json | Python | Llm1 | Llm2;
|
|
504
402
|
|
|
505
403
|
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Operator =
|
|
506
404
|
{
|
|
@@ -1039,13 +937,15 @@ export type CreateEvalResponseBodyType = ClosedEnum<
|
|
|
1039
937
|
typeof CreateEvalResponseBodyType
|
|
1040
938
|
>;
|
|
1041
939
|
|
|
1042
|
-
export const
|
|
940
|
+
export const CreateEvalResponseBodyMethod = {
|
|
1043
941
|
Get: "GET",
|
|
1044
942
|
Post: "POST",
|
|
1045
943
|
} as const;
|
|
1046
|
-
export type
|
|
944
|
+
export type CreateEvalResponseBodyMethod = ClosedEnum<
|
|
945
|
+
typeof CreateEvalResponseBodyMethod
|
|
946
|
+
>;
|
|
1047
947
|
|
|
1048
|
-
export type
|
|
948
|
+
export type CreateEvalResponseBodyHTTP = {
|
|
1049
949
|
id: string;
|
|
1050
950
|
description: string;
|
|
1051
951
|
created: string;
|
|
@@ -1058,7 +958,7 @@ export type ResponseBodyHTTP = {
|
|
|
1058
958
|
| undefined;
|
|
1059
959
|
type: CreateEvalResponseBodyType;
|
|
1060
960
|
url: string;
|
|
1061
|
-
method:
|
|
961
|
+
method: CreateEvalResponseBodyMethod;
|
|
1062
962
|
headers: { [k: string]: string };
|
|
1063
963
|
payload: { [k: string]: any };
|
|
1064
964
|
key: string;
|
|
@@ -1330,7 +1230,7 @@ export type ResponseBodyLLM = CreateEvalLlm1 | CreateEvalLlm2;
|
|
|
1330
1230
|
* Successfully created an evaluator
|
|
1331
1231
|
*/
|
|
1332
1232
|
export type CreateEvalResponseBody =
|
|
1333
|
-
|
|
|
1233
|
+
| CreateEvalResponseBodyHTTP
|
|
1334
1234
|
| Ragas
|
|
1335
1235
|
| ResponseBodyJSON
|
|
1336
1236
|
| ResponseBodyPython
|
|
@@ -1340,12 +1240,12 @@ export type CreateEvalResponseBody =
|
|
|
1340
1240
|
| CreateEvalLlm2;
|
|
1341
1241
|
|
|
1342
1242
|
/** @internal */
|
|
1343
|
-
export const
|
|
1344
|
-
typeof
|
|
1345
|
-
> = z.nativeEnum(
|
|
1243
|
+
export const GuardrailConfigOperator$outboundSchema: z.ZodNativeEnum<
|
|
1244
|
+
typeof GuardrailConfigOperator
|
|
1245
|
+
> = z.nativeEnum(GuardrailConfigOperator);
|
|
1346
1246
|
|
|
1347
1247
|
/** @internal */
|
|
1348
|
-
export type
|
|
1248
|
+
export type GuardrailConfigNumber$Outbound = {
|
|
1349
1249
|
enabled: boolean;
|
|
1350
1250
|
alert_on_failure: boolean;
|
|
1351
1251
|
type: "number";
|
|
@@ -1354,34 +1254,32 @@ export type CreateEvalGuardrailConfigNumber$Outbound = {
|
|
|
1354
1254
|
};
|
|
1355
1255
|
|
|
1356
1256
|
/** @internal */
|
|
1357
|
-
export const
|
|
1358
|
-
|
|
1257
|
+
export const GuardrailConfigNumber$outboundSchema: z.ZodType<
|
|
1258
|
+
GuardrailConfigNumber$Outbound,
|
|
1359
1259
|
z.ZodTypeDef,
|
|
1360
|
-
|
|
1260
|
+
GuardrailConfigNumber
|
|
1361
1261
|
> = z.object({
|
|
1362
1262
|
enabled: z.boolean().default(true),
|
|
1363
1263
|
alertOnFailure: z.boolean().default(false),
|
|
1364
1264
|
type: z.literal("number"),
|
|
1365
1265
|
value: z.number(),
|
|
1366
|
-
operator:
|
|
1266
|
+
operator: GuardrailConfigOperator$outboundSchema,
|
|
1367
1267
|
}).transform((v) => {
|
|
1368
1268
|
return remap$(v, {
|
|
1369
1269
|
alertOnFailure: "alert_on_failure",
|
|
1370
1270
|
});
|
|
1371
1271
|
});
|
|
1372
1272
|
|
|
1373
|
-
export function
|
|
1374
|
-
|
|
1273
|
+
export function guardrailConfigNumberToJSON(
|
|
1274
|
+
guardrailConfigNumber: GuardrailConfigNumber,
|
|
1375
1275
|
): string {
|
|
1376
1276
|
return JSON.stringify(
|
|
1377
|
-
|
|
1378
|
-
createEvalGuardrailConfigNumber,
|
|
1379
|
-
),
|
|
1277
|
+
GuardrailConfigNumber$outboundSchema.parse(guardrailConfigNumber),
|
|
1380
1278
|
);
|
|
1381
1279
|
}
|
|
1382
1280
|
|
|
1383
1281
|
/** @internal */
|
|
1384
|
-
export type
|
|
1282
|
+
export type GuardrailConfigCategorical$Outbound = {
|
|
1385
1283
|
enabled: boolean;
|
|
1386
1284
|
alert_on_failure: boolean;
|
|
1387
1285
|
type: "categorical";
|
|
@@ -1389,10 +1287,10 @@ export type CreateEvalGuardrailConfigCategorical$Outbound = {
|
|
|
1389
1287
|
};
|
|
1390
1288
|
|
|
1391
1289
|
/** @internal */
|
|
1392
|
-
export const
|
|
1393
|
-
|
|
1290
|
+
export const GuardrailConfigCategorical$outboundSchema: z.ZodType<
|
|
1291
|
+
GuardrailConfigCategorical$Outbound,
|
|
1394
1292
|
z.ZodTypeDef,
|
|
1395
|
-
|
|
1293
|
+
GuardrailConfigCategorical
|
|
1396
1294
|
> = z.object({
|
|
1397
1295
|
enabled: z.boolean().default(true),
|
|
1398
1296
|
alertOnFailure: z.boolean().default(false),
|
|
@@ -1404,18 +1302,16 @@ export const CreateEvalGuardrailConfigCategorical$outboundSchema: z.ZodType<
|
|
|
1404
1302
|
});
|
|
1405
1303
|
});
|
|
1406
1304
|
|
|
1407
|
-
export function
|
|
1408
|
-
|
|
1305
|
+
export function guardrailConfigCategoricalToJSON(
|
|
1306
|
+
guardrailConfigCategorical: GuardrailConfigCategorical,
|
|
1409
1307
|
): string {
|
|
1410
1308
|
return JSON.stringify(
|
|
1411
|
-
|
|
1412
|
-
createEvalGuardrailConfigCategorical,
|
|
1413
|
-
),
|
|
1309
|
+
GuardrailConfigCategorical$outboundSchema.parse(guardrailConfigCategorical),
|
|
1414
1310
|
);
|
|
1415
1311
|
}
|
|
1416
1312
|
|
|
1417
1313
|
/** @internal */
|
|
1418
|
-
export type
|
|
1314
|
+
export type GuardrailConfigBoolean$Outbound = {
|
|
1419
1315
|
enabled: boolean;
|
|
1420
1316
|
alert_on_failure: boolean;
|
|
1421
1317
|
type: "boolean";
|
|
@@ -1423,10 +1319,10 @@ export type CreateEvalGuardrailConfigBoolean$Outbound = {
|
|
|
1423
1319
|
};
|
|
1424
1320
|
|
|
1425
1321
|
/** @internal */
|
|
1426
|
-
export const
|
|
1427
|
-
|
|
1322
|
+
export const GuardrailConfigBoolean$outboundSchema: z.ZodType<
|
|
1323
|
+
GuardrailConfigBoolean$Outbound,
|
|
1428
1324
|
z.ZodTypeDef,
|
|
1429
|
-
|
|
1325
|
+
GuardrailConfigBoolean
|
|
1430
1326
|
> = z.object({
|
|
1431
1327
|
enabled: z.boolean().default(true),
|
|
1432
1328
|
alertOnFailure: z.boolean().default(false),
|
|
@@ -1438,59 +1334,55 @@ export const CreateEvalGuardrailConfigBoolean$outboundSchema: z.ZodType<
|
|
|
1438
1334
|
});
|
|
1439
1335
|
});
|
|
1440
1336
|
|
|
1441
|
-
export function
|
|
1442
|
-
|
|
1337
|
+
export function guardrailConfigBooleanToJSON(
|
|
1338
|
+
guardrailConfigBoolean: GuardrailConfigBoolean,
|
|
1443
1339
|
): string {
|
|
1444
1340
|
return JSON.stringify(
|
|
1445
|
-
|
|
1446
|
-
createEvalGuardrailConfigBoolean,
|
|
1447
|
-
),
|
|
1341
|
+
GuardrailConfigBoolean$outboundSchema.parse(guardrailConfigBoolean),
|
|
1448
1342
|
);
|
|
1449
1343
|
}
|
|
1450
1344
|
|
|
1451
1345
|
/** @internal */
|
|
1452
|
-
export type
|
|
1453
|
-
|
|
|
1454
|
-
|
|
|
1455
|
-
|
|
|
1346
|
+
export type RequestBodyGuardrailConfig$Outbound =
|
|
1347
|
+
| GuardrailConfigBoolean$Outbound
|
|
1348
|
+
| GuardrailConfigCategorical$Outbound
|
|
1349
|
+
| GuardrailConfigNumber$Outbound;
|
|
1456
1350
|
|
|
1457
1351
|
/** @internal */
|
|
1458
|
-
export const
|
|
1459
|
-
|
|
1352
|
+
export const RequestBodyGuardrailConfig$outboundSchema: z.ZodType<
|
|
1353
|
+
RequestBodyGuardrailConfig$Outbound,
|
|
1460
1354
|
z.ZodTypeDef,
|
|
1461
|
-
|
|
1355
|
+
RequestBodyGuardrailConfig
|
|
1462
1356
|
> = z.union([
|
|
1463
|
-
z.lazy(() =>
|
|
1464
|
-
z.lazy(() =>
|
|
1465
|
-
z.lazy(() =>
|
|
1357
|
+
z.lazy(() => GuardrailConfigBoolean$outboundSchema),
|
|
1358
|
+
z.lazy(() => GuardrailConfigCategorical$outboundSchema),
|
|
1359
|
+
z.lazy(() => GuardrailConfigNumber$outboundSchema),
|
|
1466
1360
|
]);
|
|
1467
1361
|
|
|
1468
|
-
export function
|
|
1469
|
-
|
|
1362
|
+
export function requestBodyGuardrailConfigToJSON(
|
|
1363
|
+
requestBodyGuardrailConfig: RequestBodyGuardrailConfig,
|
|
1470
1364
|
): string {
|
|
1471
1365
|
return JSON.stringify(
|
|
1472
|
-
|
|
1473
|
-
createEvalRequestBodyGuardrailConfig,
|
|
1474
|
-
),
|
|
1366
|
+
RequestBodyGuardrailConfig$outboundSchema.parse(requestBodyGuardrailConfig),
|
|
1475
1367
|
);
|
|
1476
1368
|
}
|
|
1477
1369
|
|
|
1478
1370
|
/** @internal */
|
|
1479
|
-
export const
|
|
1480
|
-
typeof
|
|
1481
|
-
> = z.nativeEnum(
|
|
1371
|
+
export const RequestBodyOutputType$outboundSchema: z.ZodNativeEnum<
|
|
1372
|
+
typeof RequestBodyOutputType
|
|
1373
|
+
> = z.nativeEnum(RequestBodyOutputType);
|
|
1482
1374
|
|
|
1483
1375
|
/** @internal */
|
|
1484
|
-
export const
|
|
1485
|
-
typeof
|
|
1486
|
-
> = z.nativeEnum(
|
|
1376
|
+
export const CreateEvalRequestBodyEvalsType$outboundSchema: z.ZodNativeEnum<
|
|
1377
|
+
typeof CreateEvalRequestBodyEvalsType
|
|
1378
|
+
> = z.nativeEnum(CreateEvalRequestBodyEvalsType);
|
|
1487
1379
|
|
|
1488
1380
|
/** @internal */
|
|
1489
1381
|
export type Python$Outbound = {
|
|
1490
1382
|
guardrail_config?:
|
|
1491
|
-
|
|
|
1492
|
-
|
|
|
1493
|
-
|
|
|
1383
|
+
| GuardrailConfigBoolean$Outbound
|
|
1384
|
+
| GuardrailConfigCategorical$Outbound
|
|
1385
|
+
| GuardrailConfigNumber$Outbound
|
|
1494
1386
|
| null
|
|
1495
1387
|
| undefined;
|
|
1496
1388
|
output_type?: string | undefined;
|
|
@@ -1509,14 +1401,14 @@ export const Python$outboundSchema: z.ZodType<
|
|
|
1509
1401
|
> = z.object({
|
|
1510
1402
|
guardrailConfig: z.nullable(
|
|
1511
1403
|
z.union([
|
|
1512
|
-
z.lazy(() =>
|
|
1513
|
-
z.lazy(() =>
|
|
1514
|
-
z.lazy(() =>
|
|
1404
|
+
z.lazy(() => GuardrailConfigBoolean$outboundSchema),
|
|
1405
|
+
z.lazy(() => GuardrailConfigCategorical$outboundSchema),
|
|
1406
|
+
z.lazy(() => GuardrailConfigNumber$outboundSchema),
|
|
1515
1407
|
]),
|
|
1516
1408
|
).optional(),
|
|
1517
|
-
outputType:
|
|
1409
|
+
outputType: RequestBodyOutputType$outboundSchema.optional(),
|
|
1518
1410
|
code: z.string(),
|
|
1519
|
-
type:
|
|
1411
|
+
type: CreateEvalRequestBodyEvalsType$outboundSchema,
|
|
1520
1412
|
path: z.string(),
|
|
1521
1413
|
description: z.string().default(""),
|
|
1522
1414
|
key: z.string(),
|
|
@@ -1532,12 +1424,12 @@ export function pythonToJSON(python: Python): string {
|
|
|
1532
1424
|
}
|
|
1533
1425
|
|
|
1534
1426
|
/** @internal */
|
|
1535
|
-
export const
|
|
1536
|
-
typeof
|
|
1537
|
-
> = z.nativeEnum(
|
|
1427
|
+
export const CreateEvalGuardrailConfigOperator$outboundSchema: z.ZodNativeEnum<
|
|
1428
|
+
typeof CreateEvalGuardrailConfigOperator
|
|
1429
|
+
> = z.nativeEnum(CreateEvalGuardrailConfigOperator);
|
|
1538
1430
|
|
|
1539
1431
|
/** @internal */
|
|
1540
|
-
export type
|
|
1432
|
+
export type CreateEvalGuardrailConfigNumber$Outbound = {
|
|
1541
1433
|
enabled: boolean;
|
|
1542
1434
|
alert_on_failure: boolean;
|
|
1543
1435
|
type: "number";
|
|
@@ -1546,32 +1438,34 @@ export type GuardrailConfigNumber$Outbound = {
|
|
|
1546
1438
|
};
|
|
1547
1439
|
|
|
1548
1440
|
/** @internal */
|
|
1549
|
-
export const
|
|
1550
|
-
|
|
1441
|
+
export const CreateEvalGuardrailConfigNumber$outboundSchema: z.ZodType<
|
|
1442
|
+
CreateEvalGuardrailConfigNumber$Outbound,
|
|
1551
1443
|
z.ZodTypeDef,
|
|
1552
|
-
|
|
1444
|
+
CreateEvalGuardrailConfigNumber
|
|
1553
1445
|
> = z.object({
|
|
1554
1446
|
enabled: z.boolean().default(true),
|
|
1555
1447
|
alertOnFailure: z.boolean().default(false),
|
|
1556
1448
|
type: z.literal("number"),
|
|
1557
1449
|
value: z.number(),
|
|
1558
|
-
operator:
|
|
1450
|
+
operator: CreateEvalGuardrailConfigOperator$outboundSchema,
|
|
1559
1451
|
}).transform((v) => {
|
|
1560
1452
|
return remap$(v, {
|
|
1561
1453
|
alertOnFailure: "alert_on_failure",
|
|
1562
1454
|
});
|
|
1563
1455
|
});
|
|
1564
1456
|
|
|
1565
|
-
export function
|
|
1566
|
-
|
|
1457
|
+
export function createEvalGuardrailConfigNumberToJSON(
|
|
1458
|
+
createEvalGuardrailConfigNumber: CreateEvalGuardrailConfigNumber,
|
|
1567
1459
|
): string {
|
|
1568
1460
|
return JSON.stringify(
|
|
1569
|
-
|
|
1461
|
+
CreateEvalGuardrailConfigNumber$outboundSchema.parse(
|
|
1462
|
+
createEvalGuardrailConfigNumber,
|
|
1463
|
+
),
|
|
1570
1464
|
);
|
|
1571
1465
|
}
|
|
1572
1466
|
|
|
1573
1467
|
/** @internal */
|
|
1574
|
-
export type
|
|
1468
|
+
export type CreateEvalGuardrailConfigCategorical$Outbound = {
|
|
1575
1469
|
enabled: boolean;
|
|
1576
1470
|
alert_on_failure: boolean;
|
|
1577
1471
|
type: "categorical";
|
|
@@ -1579,10 +1473,10 @@ export type GuardrailConfigCategorical$Outbound = {
|
|
|
1579
1473
|
};
|
|
1580
1474
|
|
|
1581
1475
|
/** @internal */
|
|
1582
|
-
export const
|
|
1583
|
-
|
|
1476
|
+
export const CreateEvalGuardrailConfigCategorical$outboundSchema: z.ZodType<
|
|
1477
|
+
CreateEvalGuardrailConfigCategorical$Outbound,
|
|
1584
1478
|
z.ZodTypeDef,
|
|
1585
|
-
|
|
1479
|
+
CreateEvalGuardrailConfigCategorical
|
|
1586
1480
|
> = z.object({
|
|
1587
1481
|
enabled: z.boolean().default(true),
|
|
1588
1482
|
alertOnFailure: z.boolean().default(false),
|
|
@@ -1594,16 +1488,18 @@ export const GuardrailConfigCategorical$outboundSchema: z.ZodType<
|
|
|
1594
1488
|
});
|
|
1595
1489
|
});
|
|
1596
1490
|
|
|
1597
|
-
export function
|
|
1598
|
-
|
|
1491
|
+
export function createEvalGuardrailConfigCategoricalToJSON(
|
|
1492
|
+
createEvalGuardrailConfigCategorical: CreateEvalGuardrailConfigCategorical,
|
|
1599
1493
|
): string {
|
|
1600
1494
|
return JSON.stringify(
|
|
1601
|
-
|
|
1495
|
+
CreateEvalGuardrailConfigCategorical$outboundSchema.parse(
|
|
1496
|
+
createEvalGuardrailConfigCategorical,
|
|
1497
|
+
),
|
|
1602
1498
|
);
|
|
1603
1499
|
}
|
|
1604
1500
|
|
|
1605
1501
|
/** @internal */
|
|
1606
|
-
export type
|
|
1502
|
+
export type CreateEvalGuardrailConfigBoolean$Outbound = {
|
|
1607
1503
|
enabled: boolean;
|
|
1608
1504
|
alert_on_failure: boolean;
|
|
1609
1505
|
type: "boolean";
|
|
@@ -1611,10 +1507,10 @@ export type GuardrailConfigBoolean$Outbound = {
|
|
|
1611
1507
|
};
|
|
1612
1508
|
|
|
1613
1509
|
/** @internal */
|
|
1614
|
-
export const
|
|
1615
|
-
|
|
1510
|
+
export const CreateEvalGuardrailConfigBoolean$outboundSchema: z.ZodType<
|
|
1511
|
+
CreateEvalGuardrailConfigBoolean$Outbound,
|
|
1616
1512
|
z.ZodTypeDef,
|
|
1617
|
-
|
|
1513
|
+
CreateEvalGuardrailConfigBoolean
|
|
1618
1514
|
> = z.object({
|
|
1619
1515
|
enabled: z.boolean().default(true),
|
|
1620
1516
|
alertOnFailure: z.boolean().default(false),
|
|
@@ -1626,107 +1522,93 @@ export const GuardrailConfigBoolean$outboundSchema: z.ZodType<
|
|
|
1626
1522
|
});
|
|
1627
1523
|
});
|
|
1628
1524
|
|
|
1629
|
-
export function
|
|
1630
|
-
|
|
1525
|
+
export function createEvalGuardrailConfigBooleanToJSON(
|
|
1526
|
+
createEvalGuardrailConfigBoolean: CreateEvalGuardrailConfigBoolean,
|
|
1631
1527
|
): string {
|
|
1632
1528
|
return JSON.stringify(
|
|
1633
|
-
|
|
1529
|
+
CreateEvalGuardrailConfigBoolean$outboundSchema.parse(
|
|
1530
|
+
createEvalGuardrailConfigBoolean,
|
|
1531
|
+
),
|
|
1634
1532
|
);
|
|
1635
1533
|
}
|
|
1636
1534
|
|
|
1637
1535
|
/** @internal */
|
|
1638
|
-
export type
|
|
1639
|
-
|
|
|
1640
|
-
|
|
|
1641
|
-
|
|
|
1536
|
+
export type CreateEvalRequestBodyGuardrailConfig$Outbound =
|
|
1537
|
+
| CreateEvalGuardrailConfigBoolean$Outbound
|
|
1538
|
+
| CreateEvalGuardrailConfigCategorical$Outbound
|
|
1539
|
+
| CreateEvalGuardrailConfigNumber$Outbound;
|
|
1642
1540
|
|
|
1643
1541
|
/** @internal */
|
|
1644
|
-
export const
|
|
1645
|
-
|
|
1542
|
+
export const CreateEvalRequestBodyGuardrailConfig$outboundSchema: z.ZodType<
|
|
1543
|
+
CreateEvalRequestBodyGuardrailConfig$Outbound,
|
|
1646
1544
|
z.ZodTypeDef,
|
|
1647
|
-
|
|
1545
|
+
CreateEvalRequestBodyGuardrailConfig
|
|
1648
1546
|
> = z.union([
|
|
1649
|
-
z.lazy(() =>
|
|
1650
|
-
z.lazy(() =>
|
|
1651
|
-
z.lazy(() =>
|
|
1547
|
+
z.lazy(() => CreateEvalGuardrailConfigBoolean$outboundSchema),
|
|
1548
|
+
z.lazy(() => CreateEvalGuardrailConfigCategorical$outboundSchema),
|
|
1549
|
+
z.lazy(() => CreateEvalGuardrailConfigNumber$outboundSchema),
|
|
1652
1550
|
]);
|
|
1653
1551
|
|
|
1654
|
-
export function
|
|
1655
|
-
|
|
1552
|
+
export function createEvalRequestBodyGuardrailConfigToJSON(
|
|
1553
|
+
createEvalRequestBodyGuardrailConfig: CreateEvalRequestBodyGuardrailConfig,
|
|
1656
1554
|
): string {
|
|
1657
1555
|
return JSON.stringify(
|
|
1658
|
-
|
|
1556
|
+
CreateEvalRequestBodyGuardrailConfig$outboundSchema.parse(
|
|
1557
|
+
createEvalRequestBodyGuardrailConfig,
|
|
1558
|
+
),
|
|
1659
1559
|
);
|
|
1660
1560
|
}
|
|
1661
1561
|
|
|
1662
1562
|
/** @internal */
|
|
1663
|
-
export const
|
|
1664
|
-
|
|
1665
|
-
> = z.nativeEnum(RequestBodyOutputType);
|
|
1666
|
-
|
|
1667
|
-
/** @internal */
|
|
1668
|
-
export const CreateEvalRequestBodyEvalsRequestType$outboundSchema:
|
|
1669
|
-
z.ZodNativeEnum<typeof CreateEvalRequestBodyEvalsRequestType> = z.nativeEnum(
|
|
1670
|
-
CreateEvalRequestBodyEvalsRequestType,
|
|
1671
|
-
);
|
|
1563
|
+
export const OutputType$outboundSchema: z.ZodNativeEnum<typeof OutputType> = z
|
|
1564
|
+
.nativeEnum(OutputType);
|
|
1672
1565
|
|
|
1673
1566
|
/** @internal */
|
|
1674
|
-
export const
|
|
1675
|
-
typeof
|
|
1676
|
-
> = z.nativeEnum(
|
|
1567
|
+
export const CreateEvalRequestBodyType$outboundSchema: z.ZodNativeEnum<
|
|
1568
|
+
typeof CreateEvalRequestBodyType
|
|
1569
|
+
> = z.nativeEnum(CreateEvalRequestBodyType);
|
|
1677
1570
|
|
|
1678
1571
|
/** @internal */
|
|
1679
|
-
export type
|
|
1572
|
+
export type Json$Outbound = {
|
|
1680
1573
|
guardrail_config?:
|
|
1681
|
-
|
|
|
1682
|
-
|
|
|
1683
|
-
|
|
|
1574
|
+
| CreateEvalGuardrailConfigBoolean$Outbound
|
|
1575
|
+
| CreateEvalGuardrailConfigCategorical$Outbound
|
|
1576
|
+
| CreateEvalGuardrailConfigNumber$Outbound
|
|
1684
1577
|
| null
|
|
1685
1578
|
| undefined;
|
|
1686
1579
|
output_type?: string | undefined;
|
|
1687
1580
|
type: string;
|
|
1688
|
-
|
|
1689
|
-
method: string;
|
|
1690
|
-
headers: { [k: string]: string };
|
|
1691
|
-
payload: { [k: string]: any };
|
|
1581
|
+
schema: string;
|
|
1692
1582
|
path: string;
|
|
1693
1583
|
description: string;
|
|
1694
1584
|
key: string;
|
|
1695
1585
|
};
|
|
1696
1586
|
|
|
1697
1587
|
/** @internal */
|
|
1698
|
-
export const
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
key: z.string(),
|
|
1719
|
-
}).transform((v) => {
|
|
1720
|
-
return remap$(v, {
|
|
1721
|
-
guardrailConfig: "guardrail_config",
|
|
1722
|
-
outputType: "output_type",
|
|
1588
|
+
export const Json$outboundSchema: z.ZodType<Json$Outbound, z.ZodTypeDef, Json> =
|
|
1589
|
+
z.object({
|
|
1590
|
+
guardrailConfig: z.nullable(
|
|
1591
|
+
z.union([
|
|
1592
|
+
z.lazy(() => CreateEvalGuardrailConfigBoolean$outboundSchema),
|
|
1593
|
+
z.lazy(() => CreateEvalGuardrailConfigCategorical$outboundSchema),
|
|
1594
|
+
z.lazy(() => CreateEvalGuardrailConfigNumber$outboundSchema),
|
|
1595
|
+
]),
|
|
1596
|
+
).optional(),
|
|
1597
|
+
outputType: OutputType$outboundSchema.optional(),
|
|
1598
|
+
type: CreateEvalRequestBodyType$outboundSchema,
|
|
1599
|
+
schema: z.string(),
|
|
1600
|
+
path: z.string(),
|
|
1601
|
+
description: z.string().default(""),
|
|
1602
|
+
key: z.string(),
|
|
1603
|
+
}).transform((v) => {
|
|
1604
|
+
return remap$(v, {
|
|
1605
|
+
guardrailConfig: "guardrail_config",
|
|
1606
|
+
outputType: "output_type",
|
|
1607
|
+
});
|
|
1723
1608
|
});
|
|
1724
|
-
});
|
|
1725
1609
|
|
|
1726
|
-
export function
|
|
1727
|
-
|
|
1728
|
-
): string {
|
|
1729
|
-
return JSON.stringify(RequestBodyHTTP$outboundSchema.parse(requestBodyHTTP));
|
|
1610
|
+
export function jsonToJSON(json: Json): string {
|
|
1611
|
+
return JSON.stringify(Json$outboundSchema.parse(json));
|
|
1730
1612
|
}
|
|
1731
1613
|
|
|
1732
1614
|
/** @internal */
|
|
@@ -1842,223 +1724,20 @@ export function createEvalGuardrailConfigEvalsBooleanToJSON(
|
|
|
1842
1724
|
}
|
|
1843
1725
|
|
|
1844
1726
|
/** @internal */
|
|
1845
|
-
export type
|
|
1727
|
+
export type LLMGuardrailConfig$Outbound =
|
|
1846
1728
|
| CreateEvalGuardrailConfigEvalsBoolean$Outbound
|
|
1847
1729
|
| CreateEvalGuardrailConfigEvalsCategorical$Outbound
|
|
1848
1730
|
| CreateEvalGuardrailConfigEvalsNumber$Outbound;
|
|
1849
1731
|
|
|
1850
|
-
/** @internal */
|
|
1851
|
-
export const CreateEvalRequestBodyEvalsGuardrailConfig$outboundSchema:
|
|
1852
|
-
z.ZodType<
|
|
1853
|
-
CreateEvalRequestBodyEvalsGuardrailConfig$Outbound,
|
|
1854
|
-
z.ZodTypeDef,
|
|
1855
|
-
CreateEvalRequestBodyEvalsGuardrailConfig
|
|
1856
|
-
> = z.union([
|
|
1857
|
-
z.lazy(() => CreateEvalGuardrailConfigEvalsBoolean$outboundSchema),
|
|
1858
|
-
z.lazy(() => CreateEvalGuardrailConfigEvalsCategorical$outboundSchema),
|
|
1859
|
-
z.lazy(() => CreateEvalGuardrailConfigEvalsNumber$outboundSchema),
|
|
1860
|
-
]);
|
|
1861
|
-
|
|
1862
|
-
export function createEvalRequestBodyEvalsGuardrailConfigToJSON(
|
|
1863
|
-
createEvalRequestBodyEvalsGuardrailConfig:
|
|
1864
|
-
CreateEvalRequestBodyEvalsGuardrailConfig,
|
|
1865
|
-
): string {
|
|
1866
|
-
return JSON.stringify(
|
|
1867
|
-
CreateEvalRequestBodyEvalsGuardrailConfig$outboundSchema.parse(
|
|
1868
|
-
createEvalRequestBodyEvalsGuardrailConfig,
|
|
1869
|
-
),
|
|
1870
|
-
);
|
|
1871
|
-
}
|
|
1872
|
-
|
|
1873
|
-
/** @internal */
|
|
1874
|
-
export const OutputType$outboundSchema: z.ZodNativeEnum<typeof OutputType> = z
|
|
1875
|
-
.nativeEnum(OutputType);
|
|
1876
|
-
|
|
1877
|
-
/** @internal */
|
|
1878
|
-
export const CreateEvalRequestBodyEvalsType$outboundSchema: z.ZodNativeEnum<
|
|
1879
|
-
typeof CreateEvalRequestBodyEvalsType
|
|
1880
|
-
> = z.nativeEnum(CreateEvalRequestBodyEvalsType);
|
|
1881
|
-
|
|
1882
|
-
/** @internal */
|
|
1883
|
-
export type Json$Outbound = {
|
|
1884
|
-
guardrail_config?:
|
|
1885
|
-
| CreateEvalGuardrailConfigEvalsBoolean$Outbound
|
|
1886
|
-
| CreateEvalGuardrailConfigEvalsCategorical$Outbound
|
|
1887
|
-
| CreateEvalGuardrailConfigEvalsNumber$Outbound
|
|
1888
|
-
| null
|
|
1889
|
-
| undefined;
|
|
1890
|
-
output_type?: string | undefined;
|
|
1891
|
-
type: string;
|
|
1892
|
-
schema: string;
|
|
1893
|
-
path: string;
|
|
1894
|
-
description: string;
|
|
1895
|
-
key: string;
|
|
1896
|
-
};
|
|
1897
|
-
|
|
1898
|
-
/** @internal */
|
|
1899
|
-
export const Json$outboundSchema: z.ZodType<Json$Outbound, z.ZodTypeDef, Json> =
|
|
1900
|
-
z.object({
|
|
1901
|
-
guardrailConfig: z.nullable(
|
|
1902
|
-
z.union([
|
|
1903
|
-
z.lazy(() => CreateEvalGuardrailConfigEvalsBoolean$outboundSchema),
|
|
1904
|
-
z.lazy(() => CreateEvalGuardrailConfigEvalsCategorical$outboundSchema),
|
|
1905
|
-
z.lazy(() => CreateEvalGuardrailConfigEvalsNumber$outboundSchema),
|
|
1906
|
-
]),
|
|
1907
|
-
).optional(),
|
|
1908
|
-
outputType: OutputType$outboundSchema.optional(),
|
|
1909
|
-
type: CreateEvalRequestBodyEvalsType$outboundSchema,
|
|
1910
|
-
schema: z.string(),
|
|
1911
|
-
path: z.string(),
|
|
1912
|
-
description: z.string().default(""),
|
|
1913
|
-
key: z.string(),
|
|
1914
|
-
}).transform((v) => {
|
|
1915
|
-
return remap$(v, {
|
|
1916
|
-
guardrailConfig: "guardrail_config",
|
|
1917
|
-
outputType: "output_type",
|
|
1918
|
-
});
|
|
1919
|
-
});
|
|
1920
|
-
|
|
1921
|
-
export function jsonToJSON(json: Json): string {
|
|
1922
|
-
return JSON.stringify(Json$outboundSchema.parse(json));
|
|
1923
|
-
}
|
|
1924
|
-
|
|
1925
|
-
/** @internal */
|
|
1926
|
-
export const CreateEvalGuardrailConfigEvalsRequestRequestBodyOperator$outboundSchema:
|
|
1927
|
-
z.ZodNativeEnum<
|
|
1928
|
-
typeof CreateEvalGuardrailConfigEvalsRequestRequestBodyOperator
|
|
1929
|
-
> = z.nativeEnum(CreateEvalGuardrailConfigEvalsRequestRequestBodyOperator);
|
|
1930
|
-
|
|
1931
|
-
/** @internal */
|
|
1932
|
-
export type CreateEvalGuardrailConfigEvalsRequestRequestBodyNumber$Outbound = {
|
|
1933
|
-
enabled: boolean;
|
|
1934
|
-
alert_on_failure: boolean;
|
|
1935
|
-
type: "number";
|
|
1936
|
-
value: number;
|
|
1937
|
-
operator: string;
|
|
1938
|
-
};
|
|
1939
|
-
|
|
1940
|
-
/** @internal */
|
|
1941
|
-
export const CreateEvalGuardrailConfigEvalsRequestRequestBodyNumber$outboundSchema:
|
|
1942
|
-
z.ZodType<
|
|
1943
|
-
CreateEvalGuardrailConfigEvalsRequestRequestBodyNumber$Outbound,
|
|
1944
|
-
z.ZodTypeDef,
|
|
1945
|
-
CreateEvalGuardrailConfigEvalsRequestRequestBodyNumber
|
|
1946
|
-
> = z.object({
|
|
1947
|
-
enabled: z.boolean().default(true),
|
|
1948
|
-
alertOnFailure: z.boolean().default(false),
|
|
1949
|
-
type: z.literal("number"),
|
|
1950
|
-
value: z.number(),
|
|
1951
|
-
operator:
|
|
1952
|
-
CreateEvalGuardrailConfigEvalsRequestRequestBodyOperator$outboundSchema,
|
|
1953
|
-
}).transform((v) => {
|
|
1954
|
-
return remap$(v, {
|
|
1955
|
-
alertOnFailure: "alert_on_failure",
|
|
1956
|
-
});
|
|
1957
|
-
});
|
|
1958
|
-
|
|
1959
|
-
export function createEvalGuardrailConfigEvalsRequestRequestBodyNumberToJSON(
|
|
1960
|
-
createEvalGuardrailConfigEvalsRequestRequestBodyNumber:
|
|
1961
|
-
CreateEvalGuardrailConfigEvalsRequestRequestBodyNumber,
|
|
1962
|
-
): string {
|
|
1963
|
-
return JSON.stringify(
|
|
1964
|
-
CreateEvalGuardrailConfigEvalsRequestRequestBodyNumber$outboundSchema.parse(
|
|
1965
|
-
createEvalGuardrailConfigEvalsRequestRequestBodyNumber,
|
|
1966
|
-
),
|
|
1967
|
-
);
|
|
1968
|
-
}
|
|
1969
|
-
|
|
1970
|
-
/** @internal */
|
|
1971
|
-
export type CreateEvalGuardrailConfigEvalsRequestRequestBodyCategorical$Outbound =
|
|
1972
|
-
{
|
|
1973
|
-
enabled: boolean;
|
|
1974
|
-
alert_on_failure: boolean;
|
|
1975
|
-
type: "categorical";
|
|
1976
|
-
values: Array<string>;
|
|
1977
|
-
};
|
|
1978
|
-
|
|
1979
|
-
/** @internal */
|
|
1980
|
-
export const CreateEvalGuardrailConfigEvalsRequestRequestBodyCategorical$outboundSchema:
|
|
1981
|
-
z.ZodType<
|
|
1982
|
-
CreateEvalGuardrailConfigEvalsRequestRequestBodyCategorical$Outbound,
|
|
1983
|
-
z.ZodTypeDef,
|
|
1984
|
-
CreateEvalGuardrailConfigEvalsRequestRequestBodyCategorical
|
|
1985
|
-
> = z.object({
|
|
1986
|
-
enabled: z.boolean().default(true),
|
|
1987
|
-
alertOnFailure: z.boolean().default(false),
|
|
1988
|
-
type: z.literal("categorical"),
|
|
1989
|
-
values: z.array(z.string()),
|
|
1990
|
-
}).transform((v) => {
|
|
1991
|
-
return remap$(v, {
|
|
1992
|
-
alertOnFailure: "alert_on_failure",
|
|
1993
|
-
});
|
|
1994
|
-
});
|
|
1995
|
-
|
|
1996
|
-
export function createEvalGuardrailConfigEvalsRequestRequestBodyCategoricalToJSON(
|
|
1997
|
-
createEvalGuardrailConfigEvalsRequestRequestBodyCategorical:
|
|
1998
|
-
CreateEvalGuardrailConfigEvalsRequestRequestBodyCategorical,
|
|
1999
|
-
): string {
|
|
2000
|
-
return JSON.stringify(
|
|
2001
|
-
CreateEvalGuardrailConfigEvalsRequestRequestBodyCategorical$outboundSchema
|
|
2002
|
-
.parse(createEvalGuardrailConfigEvalsRequestRequestBodyCategorical),
|
|
2003
|
-
);
|
|
2004
|
-
}
|
|
2005
|
-
|
|
2006
|
-
/** @internal */
|
|
2007
|
-
export type CreateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$Outbound = {
|
|
2008
|
-
enabled: boolean;
|
|
2009
|
-
alert_on_failure: boolean;
|
|
2010
|
-
type: "boolean";
|
|
2011
|
-
value: boolean;
|
|
2012
|
-
};
|
|
2013
|
-
|
|
2014
|
-
/** @internal */
|
|
2015
|
-
export const CreateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$outboundSchema:
|
|
2016
|
-
z.ZodType<
|
|
2017
|
-
CreateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$Outbound,
|
|
2018
|
-
z.ZodTypeDef,
|
|
2019
|
-
CreateEvalGuardrailConfigEvalsRequestRequestBodyBoolean
|
|
2020
|
-
> = z.object({
|
|
2021
|
-
enabled: z.boolean().default(true),
|
|
2022
|
-
alertOnFailure: z.boolean().default(false),
|
|
2023
|
-
type: z.literal("boolean"),
|
|
2024
|
-
value: z.boolean(),
|
|
2025
|
-
}).transform((v) => {
|
|
2026
|
-
return remap$(v, {
|
|
2027
|
-
alertOnFailure: "alert_on_failure",
|
|
2028
|
-
});
|
|
2029
|
-
});
|
|
2030
|
-
|
|
2031
|
-
export function createEvalGuardrailConfigEvalsRequestRequestBodyBooleanToJSON(
|
|
2032
|
-
createEvalGuardrailConfigEvalsRequestRequestBodyBoolean:
|
|
2033
|
-
CreateEvalGuardrailConfigEvalsRequestRequestBodyBoolean,
|
|
2034
|
-
): string {
|
|
2035
|
-
return JSON.stringify(
|
|
2036
|
-
CreateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$outboundSchema
|
|
2037
|
-
.parse(createEvalGuardrailConfigEvalsRequestRequestBodyBoolean),
|
|
2038
|
-
);
|
|
2039
|
-
}
|
|
2040
|
-
|
|
2041
|
-
/** @internal */
|
|
2042
|
-
export type LLMGuardrailConfig$Outbound =
|
|
2043
|
-
| CreateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$Outbound
|
|
2044
|
-
| CreateEvalGuardrailConfigEvalsRequestRequestBodyCategorical$Outbound
|
|
2045
|
-
| CreateEvalGuardrailConfigEvalsRequestRequestBodyNumber$Outbound;
|
|
2046
|
-
|
|
2047
1732
|
/** @internal */
|
|
2048
1733
|
export const LLMGuardrailConfig$outboundSchema: z.ZodType<
|
|
2049
1734
|
LLMGuardrailConfig$Outbound,
|
|
2050
1735
|
z.ZodTypeDef,
|
|
2051
1736
|
LLMGuardrailConfig
|
|
2052
1737
|
> = z.union([
|
|
2053
|
-
z.lazy(() =>
|
|
2054
|
-
|
|
2055
|
-
),
|
|
2056
|
-
z.lazy(() =>
|
|
2057
|
-
CreateEvalGuardrailConfigEvalsRequestRequestBodyCategorical$outboundSchema
|
|
2058
|
-
),
|
|
2059
|
-
z.lazy(() =>
|
|
2060
|
-
CreateEvalGuardrailConfigEvalsRequestRequestBodyNumber$outboundSchema
|
|
2061
|
-
),
|
|
1738
|
+
z.lazy(() => CreateEvalGuardrailConfigEvalsBoolean$outboundSchema),
|
|
1739
|
+
z.lazy(() => CreateEvalGuardrailConfigEvalsCategorical$outboundSchema),
|
|
1740
|
+
z.lazy(() => CreateEvalGuardrailConfigEvalsNumber$outboundSchema),
|
|
2062
1741
|
]);
|
|
2063
1742
|
|
|
2064
1743
|
export function llmGuardrailConfigToJSON(
|
|
@@ -2281,9 +1960,9 @@ export function llmJuryToJSON(llmJury: LLMJury): string {
|
|
|
2281
1960
|
/** @internal */
|
|
2282
1961
|
export type Llm2$Outbound = {
|
|
2283
1962
|
guardrail_config?:
|
|
2284
|
-
|
|
|
2285
|
-
|
|
|
2286
|
-
|
|
|
1963
|
+
| CreateEvalGuardrailConfigEvalsBoolean$Outbound
|
|
1964
|
+
| CreateEvalGuardrailConfigEvalsCategorical$Outbound
|
|
1965
|
+
| CreateEvalGuardrailConfigEvalsNumber$Outbound
|
|
2287
1966
|
| null
|
|
2288
1967
|
| undefined;
|
|
2289
1968
|
output_type?: string | undefined;
|
|
@@ -2305,15 +1984,9 @@ export const Llm2$outboundSchema: z.ZodType<Llm2$Outbound, z.ZodTypeDef, Llm2> =
|
|
|
2305
1984
|
z.object({
|
|
2306
1985
|
guardrailConfig: z.nullable(
|
|
2307
1986
|
z.union([
|
|
2308
|
-
z.lazy(() =>
|
|
2309
|
-
|
|
2310
|
-
),
|
|
2311
|
-
z.lazy(() =>
|
|
2312
|
-
CreateEvalGuardrailConfigEvalsRequestRequestBodyCategorical$outboundSchema
|
|
2313
|
-
),
|
|
2314
|
-
z.lazy(() =>
|
|
2315
|
-
CreateEvalGuardrailConfigEvalsRequestRequestBodyNumber$outboundSchema
|
|
2316
|
-
),
|
|
1987
|
+
z.lazy(() => CreateEvalGuardrailConfigEvalsBoolean$outboundSchema),
|
|
1988
|
+
z.lazy(() => CreateEvalGuardrailConfigEvalsCategorical$outboundSchema),
|
|
1989
|
+
z.lazy(() => CreateEvalGuardrailConfigEvalsNumber$outboundSchema),
|
|
2317
1990
|
]),
|
|
2318
1991
|
).optional(),
|
|
2319
1992
|
outputType: LLMOutputType$outboundSchema.optional(),
|
|
@@ -2604,7 +2277,6 @@ export function llmToJSON(llm: Llm): string {
|
|
|
2604
2277
|
|
|
2605
2278
|
/** @internal */
|
|
2606
2279
|
export type CreateEvalRequestBody$Outbound =
|
|
2607
|
-
| RequestBodyHTTP$Outbound
|
|
2608
2280
|
| Json$Outbound
|
|
2609
2281
|
| Python$Outbound
|
|
2610
2282
|
| Llm1$Outbound
|
|
@@ -2616,7 +2288,6 @@ export const CreateEvalRequestBody$outboundSchema: z.ZodType<
|
|
|
2616
2288
|
z.ZodTypeDef,
|
|
2617
2289
|
CreateEvalRequestBody
|
|
2618
2290
|
> = z.union([
|
|
2619
|
-
z.lazy(() => RequestBodyHTTP$outboundSchema),
|
|
2620
2291
|
z.lazy(() => Json$outboundSchema),
|
|
2621
2292
|
z.lazy(() => Python$outboundSchema),
|
|
2622
2293
|
z.union([
|
|
@@ -2786,8 +2457,8 @@ export const Typescript$inboundSchema: z.ZodType<
|
|
|
2786
2457
|
> = z.object({
|
|
2787
2458
|
_id: z.string(),
|
|
2788
2459
|
description: z.string(),
|
|
2789
|
-
created: z.string().default("2026-05-
|
|
2790
|
-
updated: z.string().default("2026-05-
|
|
2460
|
+
created: z.string().default("2026-05-28T05:20:55.252Z"),
|
|
2461
|
+
updated: z.string().default("2026-05-28T05:20:55.252Z"),
|
|
2791
2462
|
guardrail_config: z.nullable(
|
|
2792
2463
|
z.union([
|
|
2793
2464
|
z.lazy(() =>
|
|
@@ -2975,8 +2646,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
|
|
|
2975
2646
|
.object({
|
|
2976
2647
|
_id: z.string(),
|
|
2977
2648
|
description: z.string(),
|
|
2978
|
-
created: z.string().default("2026-05-
|
|
2979
|
-
updated: z.string().default("2026-05-
|
|
2649
|
+
created: z.string().default("2026-05-28T05:20:55.252Z"),
|
|
2650
|
+
updated: z.string().default("2026-05-28T05:20:55.252Z"),
|
|
2980
2651
|
guardrail_config: z.nullable(
|
|
2981
2652
|
z.union([
|
|
2982
2653
|
z.lazy(() =>
|
|
@@ -3799,8 +3470,8 @@ export const CreateEvalResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
3799
3470
|
> = z.object({
|
|
3800
3471
|
_id: z.string(),
|
|
3801
3472
|
description: z.string(),
|
|
3802
|
-
created: z.string().default("2026-05-
|
|
3803
|
-
updated: z.string().default("2026-05-
|
|
3473
|
+
created: z.string().default("2026-05-28T05:20:55.252Z"),
|
|
3474
|
+
updated: z.string().default("2026-05-28T05:20:55.252Z"),
|
|
3804
3475
|
guardrail_config: z.nullable(
|
|
3805
3476
|
z.union([
|
|
3806
3477
|
z.lazy(() =>
|
|
@@ -4018,8 +3689,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
4018
3689
|
> = z.object({
|
|
4019
3690
|
_id: z.string(),
|
|
4020
3691
|
description: z.string(),
|
|
4021
|
-
created: z.string().default("2026-05-
|
|
4022
|
-
updated: z.string().default("2026-05-
|
|
3692
|
+
created: z.string().default("2026-05-28T05:20:55.252Z"),
|
|
3693
|
+
updated: z.string().default("2026-05-28T05:20:55.252Z"),
|
|
4023
3694
|
guardrail_config: z.nullable(
|
|
4024
3695
|
z.union([
|
|
4025
3696
|
z.lazy(() =>
|
|
@@ -4188,20 +3859,20 @@ export const CreateEvalResponseBodyType$inboundSchema: z.ZodNativeEnum<
|
|
|
4188
3859
|
> = z.nativeEnum(CreateEvalResponseBodyType);
|
|
4189
3860
|
|
|
4190
3861
|
/** @internal */
|
|
4191
|
-
export const
|
|
4192
|
-
typeof
|
|
4193
|
-
> = z.nativeEnum(
|
|
3862
|
+
export const CreateEvalResponseBodyMethod$inboundSchema: z.ZodNativeEnum<
|
|
3863
|
+
typeof CreateEvalResponseBodyMethod
|
|
3864
|
+
> = z.nativeEnum(CreateEvalResponseBodyMethod);
|
|
4194
3865
|
|
|
4195
3866
|
/** @internal */
|
|
4196
|
-
export const
|
|
4197
|
-
|
|
3867
|
+
export const CreateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
3868
|
+
CreateEvalResponseBodyHTTP,
|
|
4198
3869
|
z.ZodTypeDef,
|
|
4199
3870
|
unknown
|
|
4200
3871
|
> = z.object({
|
|
4201
3872
|
_id: z.string(),
|
|
4202
3873
|
description: z.string(),
|
|
4203
|
-
created: z.string().default("2026-05-
|
|
4204
|
-
updated: z.string().default("2026-05-
|
|
3874
|
+
created: z.string().default("2026-05-28T05:20:55.252Z"),
|
|
3875
|
+
updated: z.string().default("2026-05-28T05:20:55.252Z"),
|
|
4205
3876
|
guardrail_config: z.nullable(
|
|
4206
3877
|
z.union([
|
|
4207
3878
|
z.lazy(() =>
|
|
@@ -4217,7 +3888,7 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
4217
3888
|
).optional(),
|
|
4218
3889
|
type: CreateEvalResponseBodyType$inboundSchema,
|
|
4219
3890
|
url: z.string(),
|
|
4220
|
-
method:
|
|
3891
|
+
method: CreateEvalResponseBodyMethod$inboundSchema,
|
|
4221
3892
|
headers: z.record(z.string()),
|
|
4222
3893
|
payload: z.record(z.any()),
|
|
4223
3894
|
key: z.string(),
|
|
@@ -4228,13 +3899,13 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
4228
3899
|
});
|
|
4229
3900
|
});
|
|
4230
3901
|
|
|
4231
|
-
export function
|
|
3902
|
+
export function createEvalResponseBodyHTTPFromJSON(
|
|
4232
3903
|
jsonString: string,
|
|
4233
|
-
): SafeParseResult<
|
|
3904
|
+
): SafeParseResult<CreateEvalResponseBodyHTTP, SDKValidationError> {
|
|
4234
3905
|
return safeParse(
|
|
4235
3906
|
jsonString,
|
|
4236
|
-
(x) =>
|
|
4237
|
-
`Failed to parse '
|
|
3907
|
+
(x) => CreateEvalResponseBodyHTTP$inboundSchema.parse(JSON.parse(x)),
|
|
3908
|
+
`Failed to parse 'CreateEvalResponseBodyHTTP' from JSON`,
|
|
4238
3909
|
);
|
|
4239
3910
|
}
|
|
4240
3911
|
|
|
@@ -4377,8 +4048,8 @@ export const ResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
4377
4048
|
> = z.object({
|
|
4378
4049
|
_id: z.string(),
|
|
4379
4050
|
description: z.string(),
|
|
4380
|
-
created: z.string().default("2026-05-
|
|
4381
|
-
updated: z.string().default("2026-05-
|
|
4051
|
+
created: z.string().default("2026-05-28T05:20:55.252Z"),
|
|
4052
|
+
updated: z.string().default("2026-05-28T05:20:55.252Z"),
|
|
4382
4053
|
guardrail_config: z.nullable(
|
|
4383
4054
|
z.union([
|
|
4384
4055
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -4748,8 +4419,8 @@ export const CreateEvalLlm2$inboundSchema: z.ZodType<
|
|
|
4748
4419
|
> = z.object({
|
|
4749
4420
|
_id: z.string(),
|
|
4750
4421
|
description: z.string(),
|
|
4751
|
-
created: z.string().default("2026-05-
|
|
4752
|
-
updated: z.string().default("2026-05-
|
|
4422
|
+
created: z.string().default("2026-05-28T05:20:55.252Z"),
|
|
4423
|
+
updated: z.string().default("2026-05-28T05:20:55.252Z"),
|
|
4753
4424
|
guardrail_config: z.nullable(
|
|
4754
4425
|
z.union([
|
|
4755
4426
|
z.lazy(() =>
|
|
@@ -4966,8 +4637,8 @@ export const CreateEvalLlm1$inboundSchema: z.ZodType<
|
|
|
4966
4637
|
> = z.object({
|
|
4967
4638
|
_id: z.string(),
|
|
4968
4639
|
description: z.string(),
|
|
4969
|
-
created: z.string().default("2026-05-
|
|
4970
|
-
updated: z.string().default("2026-05-
|
|
4640
|
+
created: z.string().default("2026-05-28T05:20:55.252Z"),
|
|
4641
|
+
updated: z.string().default("2026-05-28T05:20:55.252Z"),
|
|
4971
4642
|
guardrail_config: z.nullable(
|
|
4972
4643
|
z.union([
|
|
4973
4644
|
z.lazy(() =>
|
|
@@ -5037,7 +4708,7 @@ export const CreateEvalResponseBody$inboundSchema: z.ZodType<
|
|
|
5037
4708
|
z.ZodTypeDef,
|
|
5038
4709
|
unknown
|
|
5039
4710
|
> = z.union([
|
|
5040
|
-
z.lazy(() =>
|
|
4711
|
+
z.lazy(() => CreateEvalResponseBodyHTTP$inboundSchema),
|
|
5041
4712
|
z.lazy(() => Ragas$inboundSchema),
|
|
5042
4713
|
z.lazy(() => ResponseBodyJSON$inboundSchema),
|
|
5043
4714
|
z.lazy(() => ResponseBodyPython$inboundSchema),
|