@orq-ai/node 4.9.24 → 4.9.28
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/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- 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.js +16 -16
- 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.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- 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/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/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.js +16 -16
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +1 -1
- package/packages/orq-rc/src/funcs/annotationsCreate.ts +3 -0
- package/packages/orq-rc/src/funcs/annotationsDelete.ts +3 -0
- package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +5 -13
- package/packages/orq-rc/src/funcs/deploymentsStream.ts +1 -9
- package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +3 -0
- package/packages/orq-rc/src/funcs/modelsAzureFoundryDeployments.ts +168 -0
- package/packages/orq-rc/src/funcs/modelsCreate.ts +162 -0
- package/packages/orq-rc/src/funcs/modelsCreateAutorouter.ts +163 -0
- package/packages/orq-rc/src/funcs/modelsCreateAwsBedrock.ts +163 -0
- package/packages/orq-rc/src/funcs/modelsCreateOpenaiLike.ts +163 -0
- package/packages/orq-rc/src/funcs/modelsCreateVertex.ts +163 -0
- package/packages/orq-rc/src/funcs/modelsDelete.ts +168 -0
- package/packages/orq-rc/src/funcs/modelsDisable.ts +168 -0
- package/packages/orq-rc/src/funcs/modelsEnable.ts +163 -0
- package/packages/orq-rc/src/funcs/{agentsPostV2AgentsA2a.ts → modelsImportLitellm.ts} +16 -30
- package/packages/orq-rc/src/funcs/modelsListLitellm.ts +144 -0
- package/packages/orq-rc/src/funcs/{deploymentsMetricsCreate.ts → modelsUpdate.ts} +14 -17
- package/packages/orq-rc/src/funcs/modelsUpdateAutorouter.ts +169 -0
- package/packages/orq-rc/src/funcs/modelsUpdateAwsBedrock.ts +169 -0
- package/packages/orq-rc/src/funcs/modelsUpdateOpenaiLike.ts +169 -0
- package/packages/orq-rc/src/funcs/modelsValidate.ts +163 -0
- package/packages/orq-rc/src/funcs/modelsValidateAwsBedrock.ts +164 -0
- package/packages/orq-rc/src/lib/config.ts +3 -13
- package/packages/orq-rc/src/lib/env.ts +0 -32
- package/packages/orq-rc/src/lib/sdks.ts +2 -2
- package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +43 -55
- package/packages/orq-rc/src/models/components/autorouterconfig.ts +78 -0
- package/packages/orq-rc/src/models/components/azurefoundrydeployment.ts +44 -0
- package/packages/orq-rc/src/models/components/azurefoundrydeploymentmasterdata.ts +60 -0
- package/packages/orq-rc/src/models/components/createmodelparameter.ts +54 -0
- package/packages/orq-rc/src/models/components/createprojectrequest.ts +6 -0
- package/packages/orq-rc/src/models/components/domain.ts +14 -21
- package/packages/orq-rc/src/models/components/index.ts +21 -3
- package/packages/orq-rc/src/models/components/listcapabilitiesresponse.ts +1 -2
- package/packages/orq-rc/src/models/components/litellmmodel.ts +50 -0
- package/packages/orq-rc/src/models/components/litellmmodelinfo.ts +97 -0
- package/packages/orq-rc/src/models/components/litellmparams.ts +43 -0
- package/packages/orq-rc/src/models/components/modelconfigurationresponse.ts +82 -0
- package/packages/orq-rc/src/models/components/modeldocument.ts +112 -0
- package/packages/orq-rc/src/models/components/modelmetadata.ts +720 -0
- package/packages/orq-rc/src/models/components/modelparameterdocument.ts +53 -0
- package/packages/orq-rc/src/models/components/price.ts +56 -0
- package/packages/orq-rc/src/models/components/pricing.ts +93 -0
- package/packages/orq-rc/src/models/components/pricingvariant.ts +90 -0
- package/packages/orq-rc/src/models/components/project.ts +5 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/updatemodelparameter.ts +61 -0
- package/packages/orq-rc/src/models/components/updateprojectrequest.ts +6 -0
- package/packages/orq-rc/src/models/components/vertexcapabilities.ts +37 -0
- package/packages/orq-rc/src/models/components/vertexconfiguration.ts +45 -0
- package/packages/orq-rc/src/models/components/vertexmodelconfiguration.ts +53 -0
- package/packages/orq-rc/src/models/components/vertexparameters.ts +47 -0
- package/packages/orq-rc/src/models/components/vertexparamrange.ts +34 -0
- package/packages/orq-rc/src/models/components/vertexparamrangeint.ts +34 -0
- package/packages/orq-rc/src/models/errors/index.ts +0 -1
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +14 -101
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
- package/packages/orq-rc/src/models/operations/createdatasource.ts +7 -1
- package/packages/orq-rc/src/models/operations/createeval.ts +668 -1296
- package/packages/orq-rc/src/models/operations/createtool.ts +24 -28
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +1606 -1156
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +3761 -320
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +285 -249
- package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
- package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
- package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/index.ts +15 -2
- package/packages/orq-rc/src/models/operations/listagents.ts +3 -87
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
- package/packages/orq-rc/src/models/operations/modelazurefoundrydeployments.ts +90 -0
- package/packages/orq-rc/src/models/operations/modelcreate.ts +184 -0
- package/packages/orq-rc/src/models/operations/modelcreateautorouter.ts +151 -0
- package/packages/orq-rc/src/models/operations/modelcreateawsbedrock.ts +218 -0
- package/packages/orq-rc/src/models/operations/modelcreateopenailike.ts +202 -0
- package/packages/orq-rc/src/models/operations/modelcreatevertex.ts +144 -0
- package/packages/orq-rc/src/models/operations/modeldelete.ts +34 -0
- package/packages/orq-rc/src/models/operations/modeldisable.ts +39 -0
- package/packages/orq-rc/src/models/operations/modelenable.ts +36 -0
- package/packages/orq-rc/src/models/operations/modelupdate.ts +198 -0
- package/packages/orq-rc/src/models/operations/modelupdateautorouter.ts +189 -0
- package/packages/orq-rc/src/models/operations/modelupdateawsbedrock.ts +248 -0
- package/packages/orq-rc/src/models/operations/modelupdateopenailike.ts +236 -0
- package/packages/orq-rc/src/models/operations/modelvalidate.ts +57 -0
- package/packages/orq-rc/src/models/operations/modelvalidateawsbedrock.ts +57 -0
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -91
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
- package/packages/orq-rc/src/models/operations/runagent.ts +20 -29
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateagent.ts +0 -171
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateeval.ts +41 -43
- package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
- package/packages/orq-rc/src/sdk/agents.ts +17 -35
- package/packages/orq-rc/src/sdk/annotations.ts +6 -0
- package/packages/orq-rc/src/sdk/deployments.ts +1 -8
- package/packages/orq-rc/src/sdk/knowledge.ts +3 -0
- package/packages/orq-rc/src/sdk/models.ts +305 -0
- package/packages/orq-rc/src/sdk/sdk.ts +5 -5
- package/src/lib/config.ts +3 -3
- 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 +16 -16
- 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 +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- 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/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/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 +16 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
- package/packages/orq-rc/src/models/components/domaingroup.ts +0 -18
- package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +0 -3457
- package/packages/orq-rc/src/models/components/scopemode.ts +0 -17
- package/packages/orq-rc/src/models/errors/postv2agentsa2a.ts +0 -96
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -2370
- package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +0 -249
- package/packages/orq-rc/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,124 +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
|
-
export const RequestBodyOutputType = {
|
|
51
|
+
export const OutputType = {
|
|
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
|
-
export type RequestBodyOutputType = ClosedEnum<typeof RequestBodyOutputType>;
|
|
55
|
+
export type OutputType = ClosedEnum<typeof OutputType>;
|
|
142
56
|
|
|
143
|
-
export const
|
|
144
|
-
|
|
57
|
+
export const CreateEvalRequestBodyType = {
|
|
58
|
+
PythonEval: "python_eval",
|
|
145
59
|
} as const;
|
|
146
|
-
export type
|
|
147
|
-
typeof
|
|
60
|
+
export type CreateEvalRequestBodyType = ClosedEnum<
|
|
61
|
+
typeof CreateEvalRequestBodyType
|
|
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
|
-
outputType?: RequestBodyOutputType | undefined;
|
|
167
|
-
type: CreateEvalRequestBodyEvalsRequestType;
|
|
168
|
-
url: string;
|
|
169
|
-
method: RequestBodyMethod;
|
|
170
|
-
headers: { [k: string]: string };
|
|
171
|
-
payload: { [k: string]: any };
|
|
172
|
-
/**
|
|
173
|
-
* Entity storage path.
|
|
174
|
-
*
|
|
175
|
-
* @remarks
|
|
176
|
-
*
|
|
177
|
-
* 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`.
|
|
178
|
-
*
|
|
179
|
-
* 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.
|
|
180
|
-
*/
|
|
181
|
-
path: string;
|
|
182
|
-
description?: string | undefined;
|
|
183
|
-
key: string;
|
|
184
|
-
};
|
|
185
|
-
|
|
186
|
-
export const CreateEvalGuardrailConfigEvalsOperator = {
|
|
187
|
-
Eq: "eq",
|
|
188
|
-
Ne: "ne",
|
|
189
|
-
Gt: "gt",
|
|
190
|
-
Gte: "gte",
|
|
191
|
-
Lt: "lt",
|
|
192
|
-
Lte: "lte",
|
|
193
|
-
} as const;
|
|
194
|
-
export type CreateEvalGuardrailConfigEvalsOperator = ClosedEnum<
|
|
195
|
-
typeof CreateEvalGuardrailConfigEvalsOperator
|
|
196
|
-
>;
|
|
197
|
-
|
|
198
|
-
export type CreateEvalGuardrailConfigEvalsNumber = {
|
|
199
|
-
enabled?: boolean | undefined;
|
|
200
|
-
alertOnFailure?: boolean | undefined;
|
|
201
|
-
type: "number";
|
|
202
|
-
value: number;
|
|
203
|
-
operator: CreateEvalGuardrailConfigEvalsOperator;
|
|
204
|
-
};
|
|
205
|
-
|
|
206
|
-
export type CreateEvalGuardrailConfigEvalsCategorical = {
|
|
207
|
-
enabled?: boolean | undefined;
|
|
208
|
-
alertOnFailure?: boolean | undefined;
|
|
209
|
-
type: "categorical";
|
|
210
|
-
values: Array<string>;
|
|
211
|
-
};
|
|
212
|
-
|
|
213
|
-
export type CreateEvalGuardrailConfigEvalsBoolean = {
|
|
214
|
-
enabled?: boolean | undefined;
|
|
215
|
-
alertOnFailure?: boolean | undefined;
|
|
216
|
-
type: "boolean";
|
|
217
|
-
value: boolean;
|
|
218
|
-
};
|
|
219
|
-
|
|
220
|
-
export type CreateEvalRequestBodyEvalsGuardrailConfig =
|
|
221
|
-
| CreateEvalGuardrailConfigEvalsBoolean
|
|
222
|
-
| CreateEvalGuardrailConfigEvalsCategorical
|
|
223
|
-
| CreateEvalGuardrailConfigEvalsNumber;
|
|
224
|
-
|
|
225
|
-
export const OutputType = {
|
|
226
|
-
Boolean: "boolean",
|
|
227
|
-
} as const;
|
|
228
|
-
export type OutputType = ClosedEnum<typeof OutputType>;
|
|
229
|
-
|
|
230
|
-
export const CreateEvalRequestBodyEvalsType = {
|
|
231
|
-
JsonSchema: "json_schema",
|
|
232
|
-
} as const;
|
|
233
|
-
export type CreateEvalRequestBodyEvalsType = ClosedEnum<
|
|
234
|
-
typeof CreateEvalRequestBodyEvalsType
|
|
235
|
-
>;
|
|
236
|
-
|
|
237
|
-
export type Json = {
|
|
238
|
-
guardrailConfig?:
|
|
239
|
-
| CreateEvalGuardrailConfigEvalsBoolean
|
|
240
|
-
| CreateEvalGuardrailConfigEvalsCategorical
|
|
241
|
-
| CreateEvalGuardrailConfigEvalsNumber
|
|
242
|
-
| null
|
|
243
|
-
| undefined;
|
|
244
71
|
outputType?: OutputType | undefined;
|
|
245
|
-
|
|
246
|
-
|
|
72
|
+
code: string;
|
|
73
|
+
type: CreateEvalRequestBodyType;
|
|
247
74
|
/**
|
|
248
75
|
* Entity storage path.
|
|
249
76
|
*
|
|
@@ -258,7 +85,7 @@ export type Json = {
|
|
|
258
85
|
key: string;
|
|
259
86
|
};
|
|
260
87
|
|
|
261
|
-
export const
|
|
88
|
+
export const CreateEvalGuardrailConfigEvalsRequestOperator = {
|
|
262
89
|
Eq: "eq",
|
|
263
90
|
Ne: "ne",
|
|
264
91
|
Gt: "gt",
|
|
@@ -266,25 +93,26 @@ export const CreateEvalGuardrailConfigEvalsRequestRequestBodyOperator = {
|
|
|
266
93
|
Lt: "lt",
|
|
267
94
|
Lte: "lte",
|
|
268
95
|
} as const;
|
|
269
|
-
export type
|
|
270
|
-
|
|
96
|
+
export type CreateEvalGuardrailConfigEvalsRequestOperator = ClosedEnum<
|
|
97
|
+
typeof CreateEvalGuardrailConfigEvalsRequestOperator
|
|
98
|
+
>;
|
|
271
99
|
|
|
272
|
-
export type
|
|
100
|
+
export type CreateEvalGuardrailConfigEvalsRequestNumber = {
|
|
273
101
|
enabled?: boolean | undefined;
|
|
274
102
|
alertOnFailure?: boolean | undefined;
|
|
275
103
|
type: "number";
|
|
276
104
|
value: number;
|
|
277
|
-
operator:
|
|
105
|
+
operator: CreateEvalGuardrailConfigEvalsRequestOperator;
|
|
278
106
|
};
|
|
279
107
|
|
|
280
|
-
export type
|
|
108
|
+
export type CreateEvalGuardrailConfigEvalsRequestCategorical = {
|
|
281
109
|
enabled?: boolean | undefined;
|
|
282
110
|
alertOnFailure?: boolean | undefined;
|
|
283
111
|
type: "categorical";
|
|
284
112
|
values: Array<string>;
|
|
285
113
|
};
|
|
286
114
|
|
|
287
|
-
export type
|
|
115
|
+
export type CreateEvalGuardrailConfigEvalsRequestBoolean = {
|
|
288
116
|
enabled?: boolean | undefined;
|
|
289
117
|
alertOnFailure?: boolean | undefined;
|
|
290
118
|
type: "boolean";
|
|
@@ -292,9 +120,9 @@ export type CreateEvalGuardrailConfigEvalsRequestRequestBodyBoolean = {
|
|
|
292
120
|
};
|
|
293
121
|
|
|
294
122
|
export type LLMGuardrailConfig =
|
|
295
|
-
|
|
|
296
|
-
|
|
|
297
|
-
|
|
|
123
|
+
| CreateEvalGuardrailConfigEvalsRequestBoolean
|
|
124
|
+
| CreateEvalGuardrailConfigEvalsRequestCategorical
|
|
125
|
+
| CreateEvalGuardrailConfigEvalsRequestNumber;
|
|
298
126
|
|
|
299
127
|
/**
|
|
300
128
|
* The type of output expected from the evaluator
|
|
@@ -364,9 +192,9 @@ export type LLMJury = {
|
|
|
364
192
|
|
|
365
193
|
export type Llm2 = {
|
|
366
194
|
guardrailConfig?:
|
|
367
|
-
|
|
|
368
|
-
|
|
|
369
|
-
|
|
|
195
|
+
| CreateEvalGuardrailConfigEvalsRequestBoolean
|
|
196
|
+
| CreateEvalGuardrailConfigEvalsRequestCategorical
|
|
197
|
+
| CreateEvalGuardrailConfigEvalsRequestNumber
|
|
370
198
|
| null
|
|
371
199
|
| undefined;
|
|
372
200
|
/**
|
|
@@ -395,7 +223,7 @@ export type Llm2 = {
|
|
|
395
223
|
jury: LLMJury;
|
|
396
224
|
};
|
|
397
225
|
|
|
398
|
-
export const
|
|
226
|
+
export const CreateEvalGuardrailConfigOperator = {
|
|
399
227
|
Eq: "eq",
|
|
400
228
|
Ne: "ne",
|
|
401
229
|
Gt: "gt",
|
|
@@ -403,26 +231,26 @@ export const CreateEvalGuardrailConfigEvalsRequestOperator = {
|
|
|
403
231
|
Lt: "lt",
|
|
404
232
|
Lte: "lte",
|
|
405
233
|
} as const;
|
|
406
|
-
export type
|
|
407
|
-
typeof
|
|
234
|
+
export type CreateEvalGuardrailConfigOperator = ClosedEnum<
|
|
235
|
+
typeof CreateEvalGuardrailConfigOperator
|
|
408
236
|
>;
|
|
409
237
|
|
|
410
|
-
export type
|
|
238
|
+
export type CreateEvalGuardrailConfigNumber = {
|
|
411
239
|
enabled?: boolean | undefined;
|
|
412
240
|
alertOnFailure?: boolean | undefined;
|
|
413
241
|
type: "number";
|
|
414
242
|
value: number;
|
|
415
|
-
operator:
|
|
243
|
+
operator: CreateEvalGuardrailConfigOperator;
|
|
416
244
|
};
|
|
417
245
|
|
|
418
|
-
export type
|
|
246
|
+
export type CreateEvalGuardrailConfigCategorical = {
|
|
419
247
|
enabled?: boolean | undefined;
|
|
420
248
|
alertOnFailure?: boolean | undefined;
|
|
421
249
|
type: "categorical";
|
|
422
250
|
values: Array<string>;
|
|
423
251
|
};
|
|
424
252
|
|
|
425
|
-
export type
|
|
253
|
+
export type CreateEvalGuardrailConfigBoolean = {
|
|
426
254
|
enabled?: boolean | undefined;
|
|
427
255
|
alertOnFailure?: boolean | undefined;
|
|
428
256
|
type: "boolean";
|
|
@@ -430,9 +258,9 @@ export type CreateEvalGuardrailConfigEvalsRequestBoolean = {
|
|
|
430
258
|
};
|
|
431
259
|
|
|
432
260
|
export type CreateEvalLLMGuardrailConfig =
|
|
433
|
-
|
|
|
434
|
-
|
|
|
435
|
-
|
|
|
261
|
+
| CreateEvalGuardrailConfigBoolean
|
|
262
|
+
| CreateEvalGuardrailConfigCategorical
|
|
263
|
+
| CreateEvalGuardrailConfigNumber;
|
|
436
264
|
|
|
437
265
|
/**
|
|
438
266
|
* The type of output expected from the evaluator
|
|
@@ -462,9 +290,9 @@ export type CreateEvalLLMCategoricalLabels = {
|
|
|
462
290
|
|
|
463
291
|
export type Llm1 = {
|
|
464
292
|
guardrailConfig?:
|
|
465
|
-
|
|
|
466
|
-
|
|
|
467
|
-
|
|
|
293
|
+
| CreateEvalGuardrailConfigBoolean
|
|
294
|
+
| CreateEvalGuardrailConfigCategorical
|
|
295
|
+
| CreateEvalGuardrailConfigNumber
|
|
468
296
|
| null
|
|
469
297
|
| undefined;
|
|
470
298
|
/**
|
|
@@ -495,12 +323,7 @@ export type Llm1 = {
|
|
|
495
323
|
|
|
496
324
|
export type Llm = Llm1 | Llm2;
|
|
497
325
|
|
|
498
|
-
export type CreateEvalRequestBody =
|
|
499
|
-
| RequestBodyHTTP
|
|
500
|
-
| Json
|
|
501
|
-
| Python
|
|
502
|
-
| Llm1
|
|
503
|
-
| Llm2;
|
|
326
|
+
export type CreateEvalRequestBody = Python | Llm1 | Llm2;
|
|
504
327
|
|
|
505
328
|
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Operator =
|
|
506
329
|
{
|
|
@@ -569,7 +392,7 @@ export type Typescript = {
|
|
|
569
392
|
key: string;
|
|
570
393
|
};
|
|
571
394
|
|
|
572
|
-
export const
|
|
395
|
+
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator =
|
|
573
396
|
{
|
|
574
397
|
Eq: "eq",
|
|
575
398
|
Ne: "ne",
|
|
@@ -578,22 +401,22 @@ export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBod
|
|
|
578
401
|
Lt: "lt",
|
|
579
402
|
Lte: "lte",
|
|
580
403
|
} as const;
|
|
581
|
-
export type
|
|
404
|
+
export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator =
|
|
582
405
|
ClosedEnum<
|
|
583
|
-
typeof
|
|
406
|
+
typeof CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator
|
|
584
407
|
>;
|
|
585
408
|
|
|
586
|
-
export type
|
|
409
|
+
export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber =
|
|
587
410
|
{
|
|
588
411
|
enabled: boolean;
|
|
589
412
|
alertOnFailure: boolean;
|
|
590
413
|
type: "number";
|
|
591
414
|
value: number;
|
|
592
415
|
operator:
|
|
593
|
-
|
|
416
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator;
|
|
594
417
|
};
|
|
595
418
|
|
|
596
|
-
export type
|
|
419
|
+
export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical =
|
|
597
420
|
{
|
|
598
421
|
enabled: boolean;
|
|
599
422
|
alertOnFailure: boolean;
|
|
@@ -601,7 +424,7 @@ export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody
|
|
|
601
424
|
values: Array<string>;
|
|
602
425
|
};
|
|
603
426
|
|
|
604
|
-
export type
|
|
427
|
+
export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean =
|
|
605
428
|
{
|
|
606
429
|
enabled: boolean;
|
|
607
430
|
alertOnFailure: boolean;
|
|
@@ -610,9 +433,9 @@ export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody
|
|
|
610
433
|
};
|
|
611
434
|
|
|
612
435
|
export type CreateEvalResponseBodyEvalsResponse200GuardrailConfig =
|
|
613
|
-
|
|
|
614
|
-
|
|
|
615
|
-
|
|
|
436
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean
|
|
437
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical
|
|
438
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber;
|
|
616
439
|
|
|
617
440
|
export const CreateEvalResponseBodyEvalsResponse200Type = {
|
|
618
441
|
Ragas: "ragas",
|
|
@@ -643,9 +466,9 @@ export type Ragas = {
|
|
|
643
466
|
created: string;
|
|
644
467
|
updated: string;
|
|
645
468
|
guardrailConfig?:
|
|
646
|
-
|
|
|
647
|
-
|
|
|
648
|
-
|
|
|
469
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean
|
|
470
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical
|
|
471
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber
|
|
649
472
|
| null
|
|
650
473
|
| undefined;
|
|
651
474
|
type: CreateEvalResponseBodyEvalsResponse200Type;
|
|
@@ -654,7 +477,7 @@ export type Ragas = {
|
|
|
654
477
|
model: string;
|
|
655
478
|
};
|
|
656
479
|
|
|
657
|
-
export const
|
|
480
|
+
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator =
|
|
658
481
|
{
|
|
659
482
|
Eq: "eq",
|
|
660
483
|
Ne: "ne",
|
|
@@ -663,22 +486,20 @@ export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBod
|
|
|
663
486
|
Lt: "lt",
|
|
664
487
|
Lte: "lte",
|
|
665
488
|
} as const;
|
|
666
|
-
export type
|
|
489
|
+
export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator =
|
|
667
490
|
ClosedEnum<
|
|
668
|
-
typeof
|
|
491
|
+
typeof CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator
|
|
669
492
|
>;
|
|
670
493
|
|
|
671
|
-
export type
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator;
|
|
679
|
-
};
|
|
494
|
+
export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber = {
|
|
495
|
+
enabled: boolean;
|
|
496
|
+
alertOnFailure: boolean;
|
|
497
|
+
type: "number";
|
|
498
|
+
value: number;
|
|
499
|
+
operator: CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator;
|
|
500
|
+
};
|
|
680
501
|
|
|
681
|
-
export type
|
|
502
|
+
export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical =
|
|
682
503
|
{
|
|
683
504
|
enabled: boolean;
|
|
684
505
|
alertOnFailure: boolean;
|
|
@@ -686,18 +507,17 @@ export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody
|
|
|
686
507
|
values: Array<string>;
|
|
687
508
|
};
|
|
688
509
|
|
|
689
|
-
export type
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
510
|
+
export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean = {
|
|
511
|
+
enabled: boolean;
|
|
512
|
+
alertOnFailure: boolean;
|
|
513
|
+
type: "boolean";
|
|
514
|
+
value: boolean;
|
|
515
|
+
};
|
|
516
|
+
|
|
697
517
|
export type CreateEvalResponseBodyEvalsResponseGuardrailConfig =
|
|
698
|
-
|
|
|
699
|
-
|
|
|
700
|
-
|
|
|
518
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean
|
|
519
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical
|
|
520
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber;
|
|
701
521
|
|
|
702
522
|
export const CreateEvalResponseBodyEvalsResponseType = {
|
|
703
523
|
FunctionEval: "function_eval",
|
|
@@ -886,9 +706,9 @@ export type CreateEvalResponseBodyFunction = {
|
|
|
886
706
|
created: string;
|
|
887
707
|
updated: string;
|
|
888
708
|
guardrailConfig?:
|
|
889
|
-
|
|
|
890
|
-
|
|
|
891
|
-
|
|
|
709
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean
|
|
710
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical
|
|
711
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber
|
|
892
712
|
| null
|
|
893
713
|
| undefined;
|
|
894
714
|
type: CreateEvalResponseBodyEvalsResponseType;
|
|
@@ -928,37 +748,34 @@ export type CreateEvalResponseBodyFunction = {
|
|
|
928
748
|
key: string;
|
|
929
749
|
};
|
|
930
750
|
|
|
931
|
-
export const
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
typeof CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator
|
|
943
|
-
>;
|
|
751
|
+
export const CreateEvalGuardrailConfigEvalsResponse200Operator = {
|
|
752
|
+
Eq: "eq",
|
|
753
|
+
Ne: "ne",
|
|
754
|
+
Gt: "gt",
|
|
755
|
+
Gte: "gte",
|
|
756
|
+
Lt: "lt",
|
|
757
|
+
Lte: "lte",
|
|
758
|
+
} as const;
|
|
759
|
+
export type CreateEvalGuardrailConfigEvalsResponse200Operator = ClosedEnum<
|
|
760
|
+
typeof CreateEvalGuardrailConfigEvalsResponse200Operator
|
|
761
|
+
>;
|
|
944
762
|
|
|
945
|
-
export type
|
|
763
|
+
export type CreateEvalGuardrailConfigEvalsResponse200Number = {
|
|
946
764
|
enabled: boolean;
|
|
947
765
|
alertOnFailure: boolean;
|
|
948
766
|
type: "number";
|
|
949
767
|
value: number;
|
|
950
|
-
operator:
|
|
768
|
+
operator: CreateEvalGuardrailConfigEvalsResponse200Operator;
|
|
951
769
|
};
|
|
952
770
|
|
|
953
|
-
export type
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
};
|
|
771
|
+
export type CreateEvalGuardrailConfigEvalsResponse200Categorical = {
|
|
772
|
+
enabled: boolean;
|
|
773
|
+
alertOnFailure: boolean;
|
|
774
|
+
type: "categorical";
|
|
775
|
+
values: Array<string>;
|
|
776
|
+
};
|
|
960
777
|
|
|
961
|
-
export type
|
|
778
|
+
export type CreateEvalGuardrailConfigEvalsResponse200Boolean = {
|
|
962
779
|
enabled: boolean;
|
|
963
780
|
alertOnFailure: boolean;
|
|
964
781
|
type: "boolean";
|
|
@@ -966,9 +783,9 @@ export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean = {
|
|
|
966
783
|
};
|
|
967
784
|
|
|
968
785
|
export type CreateEvalResponseBodyEvalsGuardrailConfig =
|
|
969
|
-
|
|
|
970
|
-
|
|
|
971
|
-
|
|
|
786
|
+
| CreateEvalGuardrailConfigEvalsResponse200Boolean
|
|
787
|
+
| CreateEvalGuardrailConfigEvalsResponse200Categorical
|
|
788
|
+
| CreateEvalGuardrailConfigEvalsResponse200Number;
|
|
972
789
|
|
|
973
790
|
export const CreateEvalResponseBodyEvalsType = {
|
|
974
791
|
PythonEval: "python_eval",
|
|
@@ -983,9 +800,9 @@ export type ResponseBodyPython = {
|
|
|
983
800
|
created: string;
|
|
984
801
|
updated: string;
|
|
985
802
|
guardrailConfig?:
|
|
986
|
-
|
|
|
987
|
-
|
|
|
988
|
-
|
|
|
803
|
+
| CreateEvalGuardrailConfigEvalsResponse200Boolean
|
|
804
|
+
| CreateEvalGuardrailConfigEvalsResponse200Categorical
|
|
805
|
+
| CreateEvalGuardrailConfigEvalsResponse200Number
|
|
989
806
|
| null
|
|
990
807
|
| undefined;
|
|
991
808
|
code: string;
|
|
@@ -993,7 +810,7 @@ export type ResponseBodyPython = {
|
|
|
993
810
|
key: string;
|
|
994
811
|
};
|
|
995
812
|
|
|
996
|
-
export const
|
|
813
|
+
export const CreateEvalGuardrailConfigEvalsResponseOperator = {
|
|
997
814
|
Eq: "eq",
|
|
998
815
|
Ne: "ne",
|
|
999
816
|
Gt: "gt",
|
|
@@ -1001,26 +818,26 @@ export const CreateEvalGuardrailConfigEvalsResponse200Operator = {
|
|
|
1001
818
|
Lt: "lt",
|
|
1002
819
|
Lte: "lte",
|
|
1003
820
|
} as const;
|
|
1004
|
-
export type
|
|
1005
|
-
typeof
|
|
821
|
+
export type CreateEvalGuardrailConfigEvalsResponseOperator = ClosedEnum<
|
|
822
|
+
typeof CreateEvalGuardrailConfigEvalsResponseOperator
|
|
1006
823
|
>;
|
|
1007
824
|
|
|
1008
|
-
export type
|
|
825
|
+
export type CreateEvalGuardrailConfigEvalsResponseNumber = {
|
|
1009
826
|
enabled: boolean;
|
|
1010
827
|
alertOnFailure: boolean;
|
|
1011
828
|
type: "number";
|
|
1012
829
|
value: number;
|
|
1013
|
-
operator:
|
|
830
|
+
operator: CreateEvalGuardrailConfigEvalsResponseOperator;
|
|
1014
831
|
};
|
|
1015
832
|
|
|
1016
|
-
export type
|
|
833
|
+
export type CreateEvalGuardrailConfigEvalsResponseCategorical = {
|
|
1017
834
|
enabled: boolean;
|
|
1018
835
|
alertOnFailure: boolean;
|
|
1019
836
|
type: "categorical";
|
|
1020
837
|
values: Array<string>;
|
|
1021
838
|
};
|
|
1022
839
|
|
|
1023
|
-
export type
|
|
840
|
+
export type CreateEvalGuardrailConfigEvalsResponseBoolean = {
|
|
1024
841
|
enabled: boolean;
|
|
1025
842
|
alertOnFailure: boolean;
|
|
1026
843
|
type: "boolean";
|
|
@@ -1028,9 +845,9 @@ export type CreateEvalGuardrailConfigEvalsResponse200Boolean = {
|
|
|
1028
845
|
};
|
|
1029
846
|
|
|
1030
847
|
export type CreateEvalResponseBodyGuardrailConfig =
|
|
1031
|
-
|
|
|
1032
|
-
|
|
|
1033
|
-
|
|
|
848
|
+
| CreateEvalGuardrailConfigEvalsResponseBoolean
|
|
849
|
+
| CreateEvalGuardrailConfigEvalsResponseCategorical
|
|
850
|
+
| CreateEvalGuardrailConfigEvalsResponseNumber;
|
|
1034
851
|
|
|
1035
852
|
export const CreateEvalResponseBodyType = {
|
|
1036
853
|
HttpEval: "http_eval",
|
|
@@ -1039,32 +856,34 @@ export type CreateEvalResponseBodyType = ClosedEnum<
|
|
|
1039
856
|
typeof CreateEvalResponseBodyType
|
|
1040
857
|
>;
|
|
1041
858
|
|
|
1042
|
-
export const
|
|
859
|
+
export const CreateEvalResponseBodyMethod = {
|
|
1043
860
|
Get: "GET",
|
|
1044
861
|
Post: "POST",
|
|
1045
862
|
} as const;
|
|
1046
|
-
export type
|
|
863
|
+
export type CreateEvalResponseBodyMethod = ClosedEnum<
|
|
864
|
+
typeof CreateEvalResponseBodyMethod
|
|
865
|
+
>;
|
|
1047
866
|
|
|
1048
|
-
export type
|
|
867
|
+
export type CreateEvalResponseBodyHTTP = {
|
|
1049
868
|
id: string;
|
|
1050
869
|
description: string;
|
|
1051
870
|
created: string;
|
|
1052
871
|
updated: string;
|
|
1053
872
|
guardrailConfig?:
|
|
1054
|
-
|
|
|
1055
|
-
|
|
|
1056
|
-
|
|
|
873
|
+
| CreateEvalGuardrailConfigEvalsResponseBoolean
|
|
874
|
+
| CreateEvalGuardrailConfigEvalsResponseCategorical
|
|
875
|
+
| CreateEvalGuardrailConfigEvalsResponseNumber
|
|
1057
876
|
| null
|
|
1058
877
|
| undefined;
|
|
1059
878
|
type: CreateEvalResponseBodyType;
|
|
1060
879
|
url: string;
|
|
1061
|
-
method:
|
|
880
|
+
method: CreateEvalResponseBodyMethod;
|
|
1062
881
|
headers: { [k: string]: string };
|
|
1063
882
|
payload: { [k: string]: any };
|
|
1064
883
|
key: string;
|
|
1065
884
|
};
|
|
1066
885
|
|
|
1067
|
-
export const
|
|
886
|
+
export const CreateEvalGuardrailConfigEvalsOperator = {
|
|
1068
887
|
Eq: "eq",
|
|
1069
888
|
Ne: "ne",
|
|
1070
889
|
Gt: "gt",
|
|
@@ -1072,26 +891,26 @@ export const CreateEvalGuardrailConfigEvalsResponseOperator = {
|
|
|
1072
891
|
Lt: "lt",
|
|
1073
892
|
Lte: "lte",
|
|
1074
893
|
} as const;
|
|
1075
|
-
export type
|
|
1076
|
-
typeof
|
|
894
|
+
export type CreateEvalGuardrailConfigEvalsOperator = ClosedEnum<
|
|
895
|
+
typeof CreateEvalGuardrailConfigEvalsOperator
|
|
1077
896
|
>;
|
|
1078
897
|
|
|
1079
|
-
export type
|
|
898
|
+
export type CreateEvalGuardrailConfigEvalsNumber = {
|
|
1080
899
|
enabled: boolean;
|
|
1081
900
|
alertOnFailure: boolean;
|
|
1082
901
|
type: "number";
|
|
1083
902
|
value: number;
|
|
1084
|
-
operator:
|
|
903
|
+
operator: CreateEvalGuardrailConfigEvalsOperator;
|
|
1085
904
|
};
|
|
1086
905
|
|
|
1087
|
-
export type
|
|
906
|
+
export type CreateEvalGuardrailConfigEvalsCategorical = {
|
|
1088
907
|
enabled: boolean;
|
|
1089
908
|
alertOnFailure: boolean;
|
|
1090
909
|
type: "categorical";
|
|
1091
910
|
values: Array<string>;
|
|
1092
911
|
};
|
|
1093
912
|
|
|
1094
|
-
export type
|
|
913
|
+
export type CreateEvalGuardrailConfigEvalsBoolean = {
|
|
1095
914
|
enabled: boolean;
|
|
1096
915
|
alertOnFailure: boolean;
|
|
1097
916
|
type: "boolean";
|
|
@@ -1099,24 +918,24 @@ export type CreateEvalGuardrailConfigEvalsResponseBoolean = {
|
|
|
1099
918
|
};
|
|
1100
919
|
|
|
1101
920
|
export type ResponseBodyGuardrailConfig =
|
|
1102
|
-
|
|
|
1103
|
-
|
|
|
1104
|
-
|
|
|
921
|
+
| CreateEvalGuardrailConfigEvalsBoolean
|
|
922
|
+
| CreateEvalGuardrailConfigEvalsCategorical
|
|
923
|
+
| CreateEvalGuardrailConfigEvalsNumber;
|
|
1105
924
|
|
|
1106
925
|
export const ResponseBodyType = {
|
|
1107
926
|
JsonSchema: "json_schema",
|
|
1108
927
|
} as const;
|
|
1109
928
|
export type ResponseBodyType = ClosedEnum<typeof ResponseBodyType>;
|
|
1110
929
|
|
|
1111
|
-
export type
|
|
930
|
+
export type Json = {
|
|
1112
931
|
id: string;
|
|
1113
932
|
description: string;
|
|
1114
933
|
created: string;
|
|
1115
934
|
updated: string;
|
|
1116
935
|
guardrailConfig?:
|
|
1117
|
-
|
|
|
1118
|
-
|
|
|
1119
|
-
|
|
|
936
|
+
| CreateEvalGuardrailConfigEvalsBoolean
|
|
937
|
+
| CreateEvalGuardrailConfigEvalsCategorical
|
|
938
|
+
| CreateEvalGuardrailConfigEvalsNumber
|
|
1120
939
|
| null
|
|
1121
940
|
| undefined;
|
|
1122
941
|
type: ResponseBodyType;
|
|
@@ -1124,7 +943,7 @@ export type ResponseBodyJSON = {
|
|
|
1124
943
|
key: string;
|
|
1125
944
|
};
|
|
1126
945
|
|
|
1127
|
-
export const
|
|
946
|
+
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Operator =
|
|
1128
947
|
{
|
|
1129
948
|
Eq: "eq",
|
|
1130
949
|
Ne: "ne",
|
|
@@ -1133,22 +952,22 @@ export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBod
|
|
|
1133
952
|
Lt: "lt",
|
|
1134
953
|
Lte: "lte",
|
|
1135
954
|
} as const;
|
|
1136
|
-
export type
|
|
955
|
+
export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Operator =
|
|
1137
956
|
ClosedEnum<
|
|
1138
|
-
typeof
|
|
957
|
+
typeof CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Operator
|
|
1139
958
|
>;
|
|
1140
959
|
|
|
1141
|
-
export type
|
|
960
|
+
export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Number =
|
|
1142
961
|
{
|
|
1143
962
|
enabled: boolean;
|
|
1144
963
|
alertOnFailure: boolean;
|
|
1145
964
|
type: "number";
|
|
1146
965
|
value: number;
|
|
1147
966
|
operator:
|
|
1148
|
-
|
|
967
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Operator;
|
|
1149
968
|
};
|
|
1150
969
|
|
|
1151
|
-
export type
|
|
970
|
+
export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Categorical =
|
|
1152
971
|
{
|
|
1153
972
|
enabled: boolean;
|
|
1154
973
|
alertOnFailure: boolean;
|
|
@@ -1156,7 +975,7 @@ export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody
|
|
|
1156
975
|
values: Array<string>;
|
|
1157
976
|
};
|
|
1158
977
|
|
|
1159
|
-
export type
|
|
978
|
+
export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean =
|
|
1160
979
|
{
|
|
1161
980
|
enabled: boolean;
|
|
1162
981
|
alertOnFailure: boolean;
|
|
@@ -1165,9 +984,9 @@ export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody
|
|
|
1165
984
|
};
|
|
1166
985
|
|
|
1167
986
|
export type CreateEvalLLMEvalsResponseGuardrailConfig =
|
|
1168
|
-
|
|
|
1169
|
-
|
|
|
1170
|
-
|
|
|
987
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean
|
|
988
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Categorical
|
|
989
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Number;
|
|
1171
990
|
|
|
1172
991
|
export const CreateEvalLLMEvalsResponseType = {
|
|
1173
992
|
LlmEval: "llm_eval",
|
|
@@ -1229,9 +1048,9 @@ export type CreateEvalLlm2 = {
|
|
|
1229
1048
|
created: string;
|
|
1230
1049
|
updated: string;
|
|
1231
1050
|
guardrailConfig?:
|
|
1232
|
-
|
|
|
1233
|
-
|
|
|
1234
|
-
|
|
|
1051
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean
|
|
1052
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Categorical
|
|
1053
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Number
|
|
1235
1054
|
| null
|
|
1236
1055
|
| undefined;
|
|
1237
1056
|
type: CreateEvalLLMEvalsResponseType;
|
|
@@ -1245,7 +1064,7 @@ export type CreateEvalLlm2 = {
|
|
|
1245
1064
|
jury: CreateEvalLLMJury;
|
|
1246
1065
|
};
|
|
1247
1066
|
|
|
1248
|
-
export const
|
|
1067
|
+
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMOperator =
|
|
1249
1068
|
{
|
|
1250
1069
|
Eq: "eq",
|
|
1251
1070
|
Ne: "ne",
|
|
@@ -1254,22 +1073,22 @@ export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBod
|
|
|
1254
1073
|
Lt: "lt",
|
|
1255
1074
|
Lte: "lte",
|
|
1256
1075
|
} as const;
|
|
1257
|
-
export type
|
|
1076
|
+
export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMOperator =
|
|
1258
1077
|
ClosedEnum<
|
|
1259
|
-
typeof
|
|
1078
|
+
typeof CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMOperator
|
|
1260
1079
|
>;
|
|
1261
1080
|
|
|
1262
|
-
export type
|
|
1081
|
+
export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumber =
|
|
1263
1082
|
{
|
|
1264
1083
|
enabled: boolean;
|
|
1265
1084
|
alertOnFailure: boolean;
|
|
1266
1085
|
type: "number";
|
|
1267
1086
|
value: number;
|
|
1268
1087
|
operator:
|
|
1269
|
-
|
|
1088
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMOperator;
|
|
1270
1089
|
};
|
|
1271
1090
|
|
|
1272
|
-
export type
|
|
1091
|
+
export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategorical =
|
|
1273
1092
|
{
|
|
1274
1093
|
enabled: boolean;
|
|
1275
1094
|
alertOnFailure: boolean;
|
|
@@ -1277,7 +1096,7 @@ export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody
|
|
|
1277
1096
|
values: Array<string>;
|
|
1278
1097
|
};
|
|
1279
1098
|
|
|
1280
|
-
export type
|
|
1099
|
+
export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean =
|
|
1281
1100
|
{
|
|
1282
1101
|
enabled: boolean;
|
|
1283
1102
|
alertOnFailure: boolean;
|
|
@@ -1286,9 +1105,9 @@ export type CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody
|
|
|
1286
1105
|
};
|
|
1287
1106
|
|
|
1288
1107
|
export type CreateEvalLLMEvalsGuardrailConfig =
|
|
1289
|
-
|
|
|
1290
|
-
|
|
|
1291
|
-
|
|
|
1108
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean
|
|
1109
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategorical
|
|
1110
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumber;
|
|
1292
1111
|
|
|
1293
1112
|
export const CreateEvalLLMEvalsType = {
|
|
1294
1113
|
LlmEval: "llm_eval",
|
|
@@ -1306,9 +1125,9 @@ export type CreateEvalLlm1 = {
|
|
|
1306
1125
|
created: string;
|
|
1307
1126
|
updated: string;
|
|
1308
1127
|
guardrailConfig?:
|
|
1309
|
-
|
|
|
1310
|
-
|
|
|
1311
|
-
|
|
|
1128
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean
|
|
1129
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategorical
|
|
1130
|
+
| CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumber
|
|
1312
1131
|
| null
|
|
1313
1132
|
| undefined;
|
|
1314
1133
|
type: CreateEvalLLMEvalsType;
|
|
@@ -1330,9 +1149,9 @@ export type ResponseBodyLLM = CreateEvalLlm1 | CreateEvalLlm2;
|
|
|
1330
1149
|
* Successfully created an evaluator
|
|
1331
1150
|
*/
|
|
1332
1151
|
export type CreateEvalResponseBody =
|
|
1333
|
-
|
|
|
1152
|
+
| CreateEvalResponseBodyHTTP
|
|
1334
1153
|
| Ragas
|
|
1335
|
-
|
|
|
1154
|
+
| Json
|
|
1336
1155
|
| ResponseBodyPython
|
|
1337
1156
|
| CreateEvalResponseBodyFunction
|
|
1338
1157
|
| Typescript
|
|
@@ -1340,12 +1159,12 @@ export type CreateEvalResponseBody =
|
|
|
1340
1159
|
| CreateEvalLlm2;
|
|
1341
1160
|
|
|
1342
1161
|
/** @internal */
|
|
1343
|
-
export const
|
|
1344
|
-
typeof
|
|
1345
|
-
> = z.nativeEnum(
|
|
1162
|
+
export const GuardrailConfigOperator$outboundSchema: z.ZodNativeEnum<
|
|
1163
|
+
typeof GuardrailConfigOperator
|
|
1164
|
+
> = z.nativeEnum(GuardrailConfigOperator);
|
|
1346
1165
|
|
|
1347
1166
|
/** @internal */
|
|
1348
|
-
export type
|
|
1167
|
+
export type GuardrailConfigNumber$Outbound = {
|
|
1349
1168
|
enabled: boolean;
|
|
1350
1169
|
alert_on_failure: boolean;
|
|
1351
1170
|
type: "number";
|
|
@@ -1354,34 +1173,32 @@ export type CreateEvalGuardrailConfigNumber$Outbound = {
|
|
|
1354
1173
|
};
|
|
1355
1174
|
|
|
1356
1175
|
/** @internal */
|
|
1357
|
-
export const
|
|
1358
|
-
|
|
1176
|
+
export const GuardrailConfigNumber$outboundSchema: z.ZodType<
|
|
1177
|
+
GuardrailConfigNumber$Outbound,
|
|
1359
1178
|
z.ZodTypeDef,
|
|
1360
|
-
|
|
1179
|
+
GuardrailConfigNumber
|
|
1361
1180
|
> = z.object({
|
|
1362
1181
|
enabled: z.boolean().default(true),
|
|
1363
1182
|
alertOnFailure: z.boolean().default(false),
|
|
1364
1183
|
type: z.literal("number"),
|
|
1365
1184
|
value: z.number(),
|
|
1366
|
-
operator:
|
|
1185
|
+
operator: GuardrailConfigOperator$outboundSchema,
|
|
1367
1186
|
}).transform((v) => {
|
|
1368
1187
|
return remap$(v, {
|
|
1369
1188
|
alertOnFailure: "alert_on_failure",
|
|
1370
1189
|
});
|
|
1371
1190
|
});
|
|
1372
1191
|
|
|
1373
|
-
export function
|
|
1374
|
-
|
|
1192
|
+
export function guardrailConfigNumberToJSON(
|
|
1193
|
+
guardrailConfigNumber: GuardrailConfigNumber,
|
|
1375
1194
|
): string {
|
|
1376
1195
|
return JSON.stringify(
|
|
1377
|
-
|
|
1378
|
-
createEvalGuardrailConfigNumber,
|
|
1379
|
-
),
|
|
1196
|
+
GuardrailConfigNumber$outboundSchema.parse(guardrailConfigNumber),
|
|
1380
1197
|
);
|
|
1381
1198
|
}
|
|
1382
1199
|
|
|
1383
1200
|
/** @internal */
|
|
1384
|
-
export type
|
|
1201
|
+
export type GuardrailConfigCategorical$Outbound = {
|
|
1385
1202
|
enabled: boolean;
|
|
1386
1203
|
alert_on_failure: boolean;
|
|
1387
1204
|
type: "categorical";
|
|
@@ -1389,10 +1206,10 @@ export type CreateEvalGuardrailConfigCategorical$Outbound = {
|
|
|
1389
1206
|
};
|
|
1390
1207
|
|
|
1391
1208
|
/** @internal */
|
|
1392
|
-
export const
|
|
1393
|
-
|
|
1209
|
+
export const GuardrailConfigCategorical$outboundSchema: z.ZodType<
|
|
1210
|
+
GuardrailConfigCategorical$Outbound,
|
|
1394
1211
|
z.ZodTypeDef,
|
|
1395
|
-
|
|
1212
|
+
GuardrailConfigCategorical
|
|
1396
1213
|
> = z.object({
|
|
1397
1214
|
enabled: z.boolean().default(true),
|
|
1398
1215
|
alertOnFailure: z.boolean().default(false),
|
|
@@ -1404,18 +1221,16 @@ export const CreateEvalGuardrailConfigCategorical$outboundSchema: z.ZodType<
|
|
|
1404
1221
|
});
|
|
1405
1222
|
});
|
|
1406
1223
|
|
|
1407
|
-
export function
|
|
1408
|
-
|
|
1224
|
+
export function guardrailConfigCategoricalToJSON(
|
|
1225
|
+
guardrailConfigCategorical: GuardrailConfigCategorical,
|
|
1409
1226
|
): string {
|
|
1410
1227
|
return JSON.stringify(
|
|
1411
|
-
|
|
1412
|
-
createEvalGuardrailConfigCategorical,
|
|
1413
|
-
),
|
|
1228
|
+
GuardrailConfigCategorical$outboundSchema.parse(guardrailConfigCategorical),
|
|
1414
1229
|
);
|
|
1415
1230
|
}
|
|
1416
1231
|
|
|
1417
1232
|
/** @internal */
|
|
1418
|
-
export type
|
|
1233
|
+
export type GuardrailConfigBoolean$Outbound = {
|
|
1419
1234
|
enabled: boolean;
|
|
1420
1235
|
alert_on_failure: boolean;
|
|
1421
1236
|
type: "boolean";
|
|
@@ -1423,10 +1238,10 @@ export type CreateEvalGuardrailConfigBoolean$Outbound = {
|
|
|
1423
1238
|
};
|
|
1424
1239
|
|
|
1425
1240
|
/** @internal */
|
|
1426
|
-
export const
|
|
1427
|
-
|
|
1241
|
+
export const GuardrailConfigBoolean$outboundSchema: z.ZodType<
|
|
1242
|
+
GuardrailConfigBoolean$Outbound,
|
|
1428
1243
|
z.ZodTypeDef,
|
|
1429
|
-
|
|
1244
|
+
GuardrailConfigBoolean
|
|
1430
1245
|
> = z.object({
|
|
1431
1246
|
enabled: z.boolean().default(true),
|
|
1432
1247
|
alertOnFailure: z.boolean().default(false),
|
|
@@ -1438,47 +1253,42 @@ export const CreateEvalGuardrailConfigBoolean$outboundSchema: z.ZodType<
|
|
|
1438
1253
|
});
|
|
1439
1254
|
});
|
|
1440
1255
|
|
|
1441
|
-
export function
|
|
1442
|
-
|
|
1256
|
+
export function guardrailConfigBooleanToJSON(
|
|
1257
|
+
guardrailConfigBoolean: GuardrailConfigBoolean,
|
|
1443
1258
|
): string {
|
|
1444
1259
|
return JSON.stringify(
|
|
1445
|
-
|
|
1446
|
-
createEvalGuardrailConfigBoolean,
|
|
1447
|
-
),
|
|
1260
|
+
GuardrailConfigBoolean$outboundSchema.parse(guardrailConfigBoolean),
|
|
1448
1261
|
);
|
|
1449
1262
|
}
|
|
1450
1263
|
|
|
1451
1264
|
/** @internal */
|
|
1452
|
-
export type
|
|
1453
|
-
|
|
|
1454
|
-
|
|
|
1455
|
-
|
|
|
1265
|
+
export type RequestBodyGuardrailConfig$Outbound =
|
|
1266
|
+
| GuardrailConfigBoolean$Outbound
|
|
1267
|
+
| GuardrailConfigCategorical$Outbound
|
|
1268
|
+
| GuardrailConfigNumber$Outbound;
|
|
1456
1269
|
|
|
1457
1270
|
/** @internal */
|
|
1458
|
-
export const
|
|
1459
|
-
|
|
1271
|
+
export const RequestBodyGuardrailConfig$outboundSchema: z.ZodType<
|
|
1272
|
+
RequestBodyGuardrailConfig$Outbound,
|
|
1460
1273
|
z.ZodTypeDef,
|
|
1461
|
-
|
|
1274
|
+
RequestBodyGuardrailConfig
|
|
1462
1275
|
> = z.union([
|
|
1463
|
-
z.lazy(() =>
|
|
1464
|
-
z.lazy(() =>
|
|
1465
|
-
z.lazy(() =>
|
|
1276
|
+
z.lazy(() => GuardrailConfigBoolean$outboundSchema),
|
|
1277
|
+
z.lazy(() => GuardrailConfigCategorical$outboundSchema),
|
|
1278
|
+
z.lazy(() => GuardrailConfigNumber$outboundSchema),
|
|
1466
1279
|
]);
|
|
1467
1280
|
|
|
1468
|
-
export function
|
|
1469
|
-
|
|
1281
|
+
export function requestBodyGuardrailConfigToJSON(
|
|
1282
|
+
requestBodyGuardrailConfig: RequestBodyGuardrailConfig,
|
|
1470
1283
|
): string {
|
|
1471
1284
|
return JSON.stringify(
|
|
1472
|
-
|
|
1473
|
-
createEvalRequestBodyGuardrailConfig,
|
|
1474
|
-
),
|
|
1285
|
+
RequestBodyGuardrailConfig$outboundSchema.parse(requestBodyGuardrailConfig),
|
|
1475
1286
|
);
|
|
1476
1287
|
}
|
|
1477
1288
|
|
|
1478
1289
|
/** @internal */
|
|
1479
|
-
export const
|
|
1480
|
-
|
|
1481
|
-
> = z.nativeEnum(CreateEvalRequestBodyOutputType);
|
|
1290
|
+
export const OutputType$outboundSchema: z.ZodNativeEnum<typeof OutputType> = z
|
|
1291
|
+
.nativeEnum(OutputType);
|
|
1482
1292
|
|
|
1483
1293
|
/** @internal */
|
|
1484
1294
|
export const CreateEvalRequestBodyType$outboundSchema: z.ZodNativeEnum<
|
|
@@ -1488,9 +1298,9 @@ export const CreateEvalRequestBodyType$outboundSchema: z.ZodNativeEnum<
|
|
|
1488
1298
|
/** @internal */
|
|
1489
1299
|
export type Python$Outbound = {
|
|
1490
1300
|
guardrail_config?:
|
|
1491
|
-
|
|
|
1492
|
-
|
|
|
1493
|
-
|
|
|
1301
|
+
| GuardrailConfigBoolean$Outbound
|
|
1302
|
+
| GuardrailConfigCategorical$Outbound
|
|
1303
|
+
| GuardrailConfigNumber$Outbound
|
|
1494
1304
|
| null
|
|
1495
1305
|
| undefined;
|
|
1496
1306
|
output_type?: string | undefined;
|
|
@@ -1509,12 +1319,12 @@ export const Python$outboundSchema: z.ZodType<
|
|
|
1509
1319
|
> = z.object({
|
|
1510
1320
|
guardrailConfig: z.nullable(
|
|
1511
1321
|
z.union([
|
|
1512
|
-
z.lazy(() =>
|
|
1513
|
-
z.lazy(() =>
|
|
1514
|
-
z.lazy(() =>
|
|
1322
|
+
z.lazy(() => GuardrailConfigBoolean$outboundSchema),
|
|
1323
|
+
z.lazy(() => GuardrailConfigCategorical$outboundSchema),
|
|
1324
|
+
z.lazy(() => GuardrailConfigNumber$outboundSchema),
|
|
1515
1325
|
]),
|
|
1516
1326
|
).optional(),
|
|
1517
|
-
outputType:
|
|
1327
|
+
outputType: OutputType$outboundSchema.optional(),
|
|
1518
1328
|
code: z.string(),
|
|
1519
1329
|
type: CreateEvalRequestBodyType$outboundSchema,
|
|
1520
1330
|
path: z.string(),
|
|
@@ -1532,404 +1342,12 @@ export function pythonToJSON(python: Python): string {
|
|
|
1532
1342
|
}
|
|
1533
1343
|
|
|
1534
1344
|
/** @internal */
|
|
1535
|
-
export const
|
|
1536
|
-
typeof
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
/** @internal */
|
|
1540
|
-
export type GuardrailConfigNumber$Outbound = {
|
|
1541
|
-
enabled: boolean;
|
|
1542
|
-
alert_on_failure: boolean;
|
|
1543
|
-
type: "number";
|
|
1544
|
-
value: number;
|
|
1545
|
-
operator: string;
|
|
1546
|
-
};
|
|
1547
|
-
|
|
1548
|
-
/** @internal */
|
|
1549
|
-
export const GuardrailConfigNumber$outboundSchema: z.ZodType<
|
|
1550
|
-
GuardrailConfigNumber$Outbound,
|
|
1551
|
-
z.ZodTypeDef,
|
|
1552
|
-
GuardrailConfigNumber
|
|
1553
|
-
> = z.object({
|
|
1554
|
-
enabled: z.boolean().default(true),
|
|
1555
|
-
alertOnFailure: z.boolean().default(false),
|
|
1556
|
-
type: z.literal("number"),
|
|
1557
|
-
value: z.number(),
|
|
1558
|
-
operator: GuardrailConfigOperator$outboundSchema,
|
|
1559
|
-
}).transform((v) => {
|
|
1560
|
-
return remap$(v, {
|
|
1561
|
-
alertOnFailure: "alert_on_failure",
|
|
1562
|
-
});
|
|
1563
|
-
});
|
|
1564
|
-
|
|
1565
|
-
export function guardrailConfigNumberToJSON(
|
|
1566
|
-
guardrailConfigNumber: GuardrailConfigNumber,
|
|
1567
|
-
): string {
|
|
1568
|
-
return JSON.stringify(
|
|
1569
|
-
GuardrailConfigNumber$outboundSchema.parse(guardrailConfigNumber),
|
|
1570
|
-
);
|
|
1571
|
-
}
|
|
1572
|
-
|
|
1573
|
-
/** @internal */
|
|
1574
|
-
export type GuardrailConfigCategorical$Outbound = {
|
|
1575
|
-
enabled: boolean;
|
|
1576
|
-
alert_on_failure: boolean;
|
|
1577
|
-
type: "categorical";
|
|
1578
|
-
values: Array<string>;
|
|
1579
|
-
};
|
|
1580
|
-
|
|
1581
|
-
/** @internal */
|
|
1582
|
-
export const GuardrailConfigCategorical$outboundSchema: z.ZodType<
|
|
1583
|
-
GuardrailConfigCategorical$Outbound,
|
|
1584
|
-
z.ZodTypeDef,
|
|
1585
|
-
GuardrailConfigCategorical
|
|
1586
|
-
> = z.object({
|
|
1587
|
-
enabled: z.boolean().default(true),
|
|
1588
|
-
alertOnFailure: z.boolean().default(false),
|
|
1589
|
-
type: z.literal("categorical"),
|
|
1590
|
-
values: z.array(z.string()),
|
|
1591
|
-
}).transform((v) => {
|
|
1592
|
-
return remap$(v, {
|
|
1593
|
-
alertOnFailure: "alert_on_failure",
|
|
1594
|
-
});
|
|
1595
|
-
});
|
|
1596
|
-
|
|
1597
|
-
export function guardrailConfigCategoricalToJSON(
|
|
1598
|
-
guardrailConfigCategorical: GuardrailConfigCategorical,
|
|
1599
|
-
): string {
|
|
1600
|
-
return JSON.stringify(
|
|
1601
|
-
GuardrailConfigCategorical$outboundSchema.parse(guardrailConfigCategorical),
|
|
1602
|
-
);
|
|
1603
|
-
}
|
|
1604
|
-
|
|
1605
|
-
/** @internal */
|
|
1606
|
-
export type GuardrailConfigBoolean$Outbound = {
|
|
1607
|
-
enabled: boolean;
|
|
1608
|
-
alert_on_failure: boolean;
|
|
1609
|
-
type: "boolean";
|
|
1610
|
-
value: boolean;
|
|
1611
|
-
};
|
|
1612
|
-
|
|
1613
|
-
/** @internal */
|
|
1614
|
-
export const GuardrailConfigBoolean$outboundSchema: z.ZodType<
|
|
1615
|
-
GuardrailConfigBoolean$Outbound,
|
|
1616
|
-
z.ZodTypeDef,
|
|
1617
|
-
GuardrailConfigBoolean
|
|
1618
|
-
> = z.object({
|
|
1619
|
-
enabled: z.boolean().default(true),
|
|
1620
|
-
alertOnFailure: z.boolean().default(false),
|
|
1621
|
-
type: z.literal("boolean"),
|
|
1622
|
-
value: z.boolean(),
|
|
1623
|
-
}).transform((v) => {
|
|
1624
|
-
return remap$(v, {
|
|
1625
|
-
alertOnFailure: "alert_on_failure",
|
|
1626
|
-
});
|
|
1627
|
-
});
|
|
1628
|
-
|
|
1629
|
-
export function guardrailConfigBooleanToJSON(
|
|
1630
|
-
guardrailConfigBoolean: GuardrailConfigBoolean,
|
|
1631
|
-
): string {
|
|
1632
|
-
return JSON.stringify(
|
|
1633
|
-
GuardrailConfigBoolean$outboundSchema.parse(guardrailConfigBoolean),
|
|
1634
|
-
);
|
|
1635
|
-
}
|
|
1636
|
-
|
|
1637
|
-
/** @internal */
|
|
1638
|
-
export type RequestBodyGuardrailConfig$Outbound =
|
|
1639
|
-
| GuardrailConfigBoolean$Outbound
|
|
1640
|
-
| GuardrailConfigCategorical$Outbound
|
|
1641
|
-
| GuardrailConfigNumber$Outbound;
|
|
1642
|
-
|
|
1643
|
-
/** @internal */
|
|
1644
|
-
export const RequestBodyGuardrailConfig$outboundSchema: z.ZodType<
|
|
1645
|
-
RequestBodyGuardrailConfig$Outbound,
|
|
1646
|
-
z.ZodTypeDef,
|
|
1647
|
-
RequestBodyGuardrailConfig
|
|
1648
|
-
> = z.union([
|
|
1649
|
-
z.lazy(() => GuardrailConfigBoolean$outboundSchema),
|
|
1650
|
-
z.lazy(() => GuardrailConfigCategorical$outboundSchema),
|
|
1651
|
-
z.lazy(() => GuardrailConfigNumber$outboundSchema),
|
|
1652
|
-
]);
|
|
1653
|
-
|
|
1654
|
-
export function requestBodyGuardrailConfigToJSON(
|
|
1655
|
-
requestBodyGuardrailConfig: RequestBodyGuardrailConfig,
|
|
1656
|
-
): string {
|
|
1657
|
-
return JSON.stringify(
|
|
1658
|
-
RequestBodyGuardrailConfig$outboundSchema.parse(requestBodyGuardrailConfig),
|
|
1659
|
-
);
|
|
1660
|
-
}
|
|
1661
|
-
|
|
1662
|
-
/** @internal */
|
|
1663
|
-
export const RequestBodyOutputType$outboundSchema: z.ZodNativeEnum<
|
|
1664
|
-
typeof RequestBodyOutputType
|
|
1665
|
-
> = z.nativeEnum(RequestBodyOutputType);
|
|
1666
|
-
|
|
1667
|
-
/** @internal */
|
|
1668
|
-
export const CreateEvalRequestBodyEvalsRequestType$outboundSchema:
|
|
1669
|
-
z.ZodNativeEnum<typeof CreateEvalRequestBodyEvalsRequestType> = z.nativeEnum(
|
|
1670
|
-
CreateEvalRequestBodyEvalsRequestType,
|
|
1671
|
-
);
|
|
1672
|
-
|
|
1673
|
-
/** @internal */
|
|
1674
|
-
export const RequestBodyMethod$outboundSchema: z.ZodNativeEnum<
|
|
1675
|
-
typeof RequestBodyMethod
|
|
1676
|
-
> = z.nativeEnum(RequestBodyMethod);
|
|
1677
|
-
|
|
1678
|
-
/** @internal */
|
|
1679
|
-
export type RequestBodyHTTP$Outbound = {
|
|
1680
|
-
guardrail_config?:
|
|
1681
|
-
| GuardrailConfigBoolean$Outbound
|
|
1682
|
-
| GuardrailConfigCategorical$Outbound
|
|
1683
|
-
| GuardrailConfigNumber$Outbound
|
|
1684
|
-
| null
|
|
1685
|
-
| undefined;
|
|
1686
|
-
output_type?: string | undefined;
|
|
1687
|
-
type: string;
|
|
1688
|
-
url: string;
|
|
1689
|
-
method: string;
|
|
1690
|
-
headers: { [k: string]: string };
|
|
1691
|
-
payload: { [k: string]: any };
|
|
1692
|
-
path: string;
|
|
1693
|
-
description: string;
|
|
1694
|
-
key: string;
|
|
1695
|
-
};
|
|
1696
|
-
|
|
1697
|
-
/** @internal */
|
|
1698
|
-
export const RequestBodyHTTP$outboundSchema: z.ZodType<
|
|
1699
|
-
RequestBodyHTTP$Outbound,
|
|
1700
|
-
z.ZodTypeDef,
|
|
1701
|
-
RequestBodyHTTP
|
|
1702
|
-
> = z.object({
|
|
1703
|
-
guardrailConfig: z.nullable(
|
|
1704
|
-
z.union([
|
|
1705
|
-
z.lazy(() => GuardrailConfigBoolean$outboundSchema),
|
|
1706
|
-
z.lazy(() => GuardrailConfigCategorical$outboundSchema),
|
|
1707
|
-
z.lazy(() => GuardrailConfigNumber$outboundSchema),
|
|
1708
|
-
]),
|
|
1709
|
-
).optional(),
|
|
1710
|
-
outputType: RequestBodyOutputType$outboundSchema.optional(),
|
|
1711
|
-
type: CreateEvalRequestBodyEvalsRequestType$outboundSchema,
|
|
1712
|
-
url: z.string(),
|
|
1713
|
-
method: RequestBodyMethod$outboundSchema,
|
|
1714
|
-
headers: z.record(z.string()),
|
|
1715
|
-
payload: z.record(z.any()),
|
|
1716
|
-
path: z.string(),
|
|
1717
|
-
description: z.string().default(""),
|
|
1718
|
-
key: z.string(),
|
|
1719
|
-
}).transform((v) => {
|
|
1720
|
-
return remap$(v, {
|
|
1721
|
-
guardrailConfig: "guardrail_config",
|
|
1722
|
-
outputType: "output_type",
|
|
1723
|
-
});
|
|
1724
|
-
});
|
|
1725
|
-
|
|
1726
|
-
export function requestBodyHTTPToJSON(
|
|
1727
|
-
requestBodyHTTP: RequestBodyHTTP,
|
|
1728
|
-
): string {
|
|
1729
|
-
return JSON.stringify(RequestBodyHTTP$outboundSchema.parse(requestBodyHTTP));
|
|
1730
|
-
}
|
|
1731
|
-
|
|
1732
|
-
/** @internal */
|
|
1733
|
-
export const CreateEvalGuardrailConfigEvalsOperator$outboundSchema:
|
|
1734
|
-
z.ZodNativeEnum<typeof CreateEvalGuardrailConfigEvalsOperator> = z.nativeEnum(
|
|
1735
|
-
CreateEvalGuardrailConfigEvalsOperator,
|
|
1736
|
-
);
|
|
1737
|
-
|
|
1738
|
-
/** @internal */
|
|
1739
|
-
export type CreateEvalGuardrailConfigEvalsNumber$Outbound = {
|
|
1740
|
-
enabled: boolean;
|
|
1741
|
-
alert_on_failure: boolean;
|
|
1742
|
-
type: "number";
|
|
1743
|
-
value: number;
|
|
1744
|
-
operator: string;
|
|
1745
|
-
};
|
|
1746
|
-
|
|
1747
|
-
/** @internal */
|
|
1748
|
-
export const CreateEvalGuardrailConfigEvalsNumber$outboundSchema: z.ZodType<
|
|
1749
|
-
CreateEvalGuardrailConfigEvalsNumber$Outbound,
|
|
1750
|
-
z.ZodTypeDef,
|
|
1751
|
-
CreateEvalGuardrailConfigEvalsNumber
|
|
1752
|
-
> = z.object({
|
|
1753
|
-
enabled: z.boolean().default(true),
|
|
1754
|
-
alertOnFailure: z.boolean().default(false),
|
|
1755
|
-
type: z.literal("number"),
|
|
1756
|
-
value: z.number(),
|
|
1757
|
-
operator: CreateEvalGuardrailConfigEvalsOperator$outboundSchema,
|
|
1758
|
-
}).transform((v) => {
|
|
1759
|
-
return remap$(v, {
|
|
1760
|
-
alertOnFailure: "alert_on_failure",
|
|
1761
|
-
});
|
|
1762
|
-
});
|
|
1763
|
-
|
|
1764
|
-
export function createEvalGuardrailConfigEvalsNumberToJSON(
|
|
1765
|
-
createEvalGuardrailConfigEvalsNumber: CreateEvalGuardrailConfigEvalsNumber,
|
|
1766
|
-
): string {
|
|
1767
|
-
return JSON.stringify(
|
|
1768
|
-
CreateEvalGuardrailConfigEvalsNumber$outboundSchema.parse(
|
|
1769
|
-
createEvalGuardrailConfigEvalsNumber,
|
|
1770
|
-
),
|
|
1771
|
-
);
|
|
1772
|
-
}
|
|
1773
|
-
|
|
1774
|
-
/** @internal */
|
|
1775
|
-
export type CreateEvalGuardrailConfigEvalsCategorical$Outbound = {
|
|
1776
|
-
enabled: boolean;
|
|
1777
|
-
alert_on_failure: boolean;
|
|
1778
|
-
type: "categorical";
|
|
1779
|
-
values: Array<string>;
|
|
1780
|
-
};
|
|
1781
|
-
|
|
1782
|
-
/** @internal */
|
|
1783
|
-
export const CreateEvalGuardrailConfigEvalsCategorical$outboundSchema:
|
|
1784
|
-
z.ZodType<
|
|
1785
|
-
CreateEvalGuardrailConfigEvalsCategorical$Outbound,
|
|
1786
|
-
z.ZodTypeDef,
|
|
1787
|
-
CreateEvalGuardrailConfigEvalsCategorical
|
|
1788
|
-
> = z.object({
|
|
1789
|
-
enabled: z.boolean().default(true),
|
|
1790
|
-
alertOnFailure: z.boolean().default(false),
|
|
1791
|
-
type: z.literal("categorical"),
|
|
1792
|
-
values: z.array(z.string()),
|
|
1793
|
-
}).transform((v) => {
|
|
1794
|
-
return remap$(v, {
|
|
1795
|
-
alertOnFailure: "alert_on_failure",
|
|
1796
|
-
});
|
|
1797
|
-
});
|
|
1798
|
-
|
|
1799
|
-
export function createEvalGuardrailConfigEvalsCategoricalToJSON(
|
|
1800
|
-
createEvalGuardrailConfigEvalsCategorical:
|
|
1801
|
-
CreateEvalGuardrailConfigEvalsCategorical,
|
|
1802
|
-
): string {
|
|
1803
|
-
return JSON.stringify(
|
|
1804
|
-
CreateEvalGuardrailConfigEvalsCategorical$outboundSchema.parse(
|
|
1805
|
-
createEvalGuardrailConfigEvalsCategorical,
|
|
1806
|
-
),
|
|
1807
|
-
);
|
|
1808
|
-
}
|
|
1809
|
-
|
|
1810
|
-
/** @internal */
|
|
1811
|
-
export type CreateEvalGuardrailConfigEvalsBoolean$Outbound = {
|
|
1812
|
-
enabled: boolean;
|
|
1813
|
-
alert_on_failure: boolean;
|
|
1814
|
-
type: "boolean";
|
|
1815
|
-
value: boolean;
|
|
1816
|
-
};
|
|
1817
|
-
|
|
1818
|
-
/** @internal */
|
|
1819
|
-
export const CreateEvalGuardrailConfigEvalsBoolean$outboundSchema: z.ZodType<
|
|
1820
|
-
CreateEvalGuardrailConfigEvalsBoolean$Outbound,
|
|
1821
|
-
z.ZodTypeDef,
|
|
1822
|
-
CreateEvalGuardrailConfigEvalsBoolean
|
|
1823
|
-
> = z.object({
|
|
1824
|
-
enabled: z.boolean().default(true),
|
|
1825
|
-
alertOnFailure: z.boolean().default(false),
|
|
1826
|
-
type: z.literal("boolean"),
|
|
1827
|
-
value: z.boolean(),
|
|
1828
|
-
}).transform((v) => {
|
|
1829
|
-
return remap$(v, {
|
|
1830
|
-
alertOnFailure: "alert_on_failure",
|
|
1831
|
-
});
|
|
1832
|
-
});
|
|
1833
|
-
|
|
1834
|
-
export function createEvalGuardrailConfigEvalsBooleanToJSON(
|
|
1835
|
-
createEvalGuardrailConfigEvalsBoolean: CreateEvalGuardrailConfigEvalsBoolean,
|
|
1836
|
-
): string {
|
|
1837
|
-
return JSON.stringify(
|
|
1838
|
-
CreateEvalGuardrailConfigEvalsBoolean$outboundSchema.parse(
|
|
1839
|
-
createEvalGuardrailConfigEvalsBoolean,
|
|
1840
|
-
),
|
|
1841
|
-
);
|
|
1842
|
-
}
|
|
1843
|
-
|
|
1844
|
-
/** @internal */
|
|
1845
|
-
export type CreateEvalRequestBodyEvalsGuardrailConfig$Outbound =
|
|
1846
|
-
| CreateEvalGuardrailConfigEvalsBoolean$Outbound
|
|
1847
|
-
| CreateEvalGuardrailConfigEvalsCategorical$Outbound
|
|
1848
|
-
| CreateEvalGuardrailConfigEvalsNumber$Outbound;
|
|
1849
|
-
|
|
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);
|
|
1345
|
+
export const CreateEvalGuardrailConfigEvalsRequestOperator$outboundSchema:
|
|
1346
|
+
z.ZodNativeEnum<typeof CreateEvalGuardrailConfigEvalsRequestOperator> = z
|
|
1347
|
+
.nativeEnum(CreateEvalGuardrailConfigEvalsRequestOperator);
|
|
1930
1348
|
|
|
1931
1349
|
/** @internal */
|
|
1932
|
-
export type
|
|
1350
|
+
export type CreateEvalGuardrailConfigEvalsRequestNumber$Outbound = {
|
|
1933
1351
|
enabled: boolean;
|
|
1934
1352
|
alert_on_failure: boolean;
|
|
1935
1353
|
type: "number";
|
|
@@ -1938,50 +1356,48 @@ export type CreateEvalGuardrailConfigEvalsRequestRequestBodyNumber$Outbound = {
|
|
|
1938
1356
|
};
|
|
1939
1357
|
|
|
1940
1358
|
/** @internal */
|
|
1941
|
-
export const
|
|
1359
|
+
export const CreateEvalGuardrailConfigEvalsRequestNumber$outboundSchema:
|
|
1942
1360
|
z.ZodType<
|
|
1943
|
-
|
|
1361
|
+
CreateEvalGuardrailConfigEvalsRequestNumber$Outbound,
|
|
1944
1362
|
z.ZodTypeDef,
|
|
1945
|
-
|
|
1363
|
+
CreateEvalGuardrailConfigEvalsRequestNumber
|
|
1946
1364
|
> = z.object({
|
|
1947
1365
|
enabled: z.boolean().default(true),
|
|
1948
1366
|
alertOnFailure: z.boolean().default(false),
|
|
1949
1367
|
type: z.literal("number"),
|
|
1950
1368
|
value: z.number(),
|
|
1951
|
-
operator:
|
|
1952
|
-
CreateEvalGuardrailConfigEvalsRequestRequestBodyOperator$outboundSchema,
|
|
1369
|
+
operator: CreateEvalGuardrailConfigEvalsRequestOperator$outboundSchema,
|
|
1953
1370
|
}).transform((v) => {
|
|
1954
1371
|
return remap$(v, {
|
|
1955
1372
|
alertOnFailure: "alert_on_failure",
|
|
1956
1373
|
});
|
|
1957
1374
|
});
|
|
1958
1375
|
|
|
1959
|
-
export function
|
|
1960
|
-
|
|
1961
|
-
|
|
1376
|
+
export function createEvalGuardrailConfigEvalsRequestNumberToJSON(
|
|
1377
|
+
createEvalGuardrailConfigEvalsRequestNumber:
|
|
1378
|
+
CreateEvalGuardrailConfigEvalsRequestNumber,
|
|
1962
1379
|
): string {
|
|
1963
1380
|
return JSON.stringify(
|
|
1964
|
-
|
|
1965
|
-
|
|
1381
|
+
CreateEvalGuardrailConfigEvalsRequestNumber$outboundSchema.parse(
|
|
1382
|
+
createEvalGuardrailConfigEvalsRequestNumber,
|
|
1966
1383
|
),
|
|
1967
1384
|
);
|
|
1968
1385
|
}
|
|
1969
1386
|
|
|
1970
1387
|
/** @internal */
|
|
1971
|
-
export type
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
};
|
|
1388
|
+
export type CreateEvalGuardrailConfigEvalsRequestCategorical$Outbound = {
|
|
1389
|
+
enabled: boolean;
|
|
1390
|
+
alert_on_failure: boolean;
|
|
1391
|
+
type: "categorical";
|
|
1392
|
+
values: Array<string>;
|
|
1393
|
+
};
|
|
1978
1394
|
|
|
1979
1395
|
/** @internal */
|
|
1980
|
-
export const
|
|
1396
|
+
export const CreateEvalGuardrailConfigEvalsRequestCategorical$outboundSchema:
|
|
1981
1397
|
z.ZodType<
|
|
1982
|
-
|
|
1398
|
+
CreateEvalGuardrailConfigEvalsRequestCategorical$Outbound,
|
|
1983
1399
|
z.ZodTypeDef,
|
|
1984
|
-
|
|
1400
|
+
CreateEvalGuardrailConfigEvalsRequestCategorical
|
|
1985
1401
|
> = z.object({
|
|
1986
1402
|
enabled: z.boolean().default(true),
|
|
1987
1403
|
alertOnFailure: z.boolean().default(false),
|
|
@@ -1993,18 +1409,19 @@ export const CreateEvalGuardrailConfigEvalsRequestRequestBodyCategorical$outboun
|
|
|
1993
1409
|
});
|
|
1994
1410
|
});
|
|
1995
1411
|
|
|
1996
|
-
export function
|
|
1997
|
-
|
|
1998
|
-
|
|
1412
|
+
export function createEvalGuardrailConfigEvalsRequestCategoricalToJSON(
|
|
1413
|
+
createEvalGuardrailConfigEvalsRequestCategorical:
|
|
1414
|
+
CreateEvalGuardrailConfigEvalsRequestCategorical,
|
|
1999
1415
|
): string {
|
|
2000
1416
|
return JSON.stringify(
|
|
2001
|
-
|
|
2002
|
-
|
|
1417
|
+
CreateEvalGuardrailConfigEvalsRequestCategorical$outboundSchema.parse(
|
|
1418
|
+
createEvalGuardrailConfigEvalsRequestCategorical,
|
|
1419
|
+
),
|
|
2003
1420
|
);
|
|
2004
1421
|
}
|
|
2005
1422
|
|
|
2006
1423
|
/** @internal */
|
|
2007
|
-
export type
|
|
1424
|
+
export type CreateEvalGuardrailConfigEvalsRequestBoolean$Outbound = {
|
|
2008
1425
|
enabled: boolean;
|
|
2009
1426
|
alert_on_failure: boolean;
|
|
2010
1427
|
type: "boolean";
|
|
@@ -2012,11 +1429,11 @@ export type CreateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$Outbound = {
|
|
|
2012
1429
|
};
|
|
2013
1430
|
|
|
2014
1431
|
/** @internal */
|
|
2015
|
-
export const
|
|
1432
|
+
export const CreateEvalGuardrailConfigEvalsRequestBoolean$outboundSchema:
|
|
2016
1433
|
z.ZodType<
|
|
2017
|
-
|
|
1434
|
+
CreateEvalGuardrailConfigEvalsRequestBoolean$Outbound,
|
|
2018
1435
|
z.ZodTypeDef,
|
|
2019
|
-
|
|
1436
|
+
CreateEvalGuardrailConfigEvalsRequestBoolean
|
|
2020
1437
|
> = z.object({
|
|
2021
1438
|
enabled: z.boolean().default(true),
|
|
2022
1439
|
alertOnFailure: z.boolean().default(false),
|
|
@@ -2028,21 +1445,22 @@ export const CreateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$outboundSch
|
|
|
2028
1445
|
});
|
|
2029
1446
|
});
|
|
2030
1447
|
|
|
2031
|
-
export function
|
|
2032
|
-
|
|
2033
|
-
|
|
1448
|
+
export function createEvalGuardrailConfigEvalsRequestBooleanToJSON(
|
|
1449
|
+
createEvalGuardrailConfigEvalsRequestBoolean:
|
|
1450
|
+
CreateEvalGuardrailConfigEvalsRequestBoolean,
|
|
2034
1451
|
): string {
|
|
2035
1452
|
return JSON.stringify(
|
|
2036
|
-
|
|
2037
|
-
|
|
1453
|
+
CreateEvalGuardrailConfigEvalsRequestBoolean$outboundSchema.parse(
|
|
1454
|
+
createEvalGuardrailConfigEvalsRequestBoolean,
|
|
1455
|
+
),
|
|
2038
1456
|
);
|
|
2039
1457
|
}
|
|
2040
1458
|
|
|
2041
1459
|
/** @internal */
|
|
2042
1460
|
export type LLMGuardrailConfig$Outbound =
|
|
2043
|
-
|
|
|
2044
|
-
|
|
|
2045
|
-
|
|
|
1461
|
+
| CreateEvalGuardrailConfigEvalsRequestBoolean$Outbound
|
|
1462
|
+
| CreateEvalGuardrailConfigEvalsRequestCategorical$Outbound
|
|
1463
|
+
| CreateEvalGuardrailConfigEvalsRequestNumber$Outbound;
|
|
2046
1464
|
|
|
2047
1465
|
/** @internal */
|
|
2048
1466
|
export const LLMGuardrailConfig$outboundSchema: z.ZodType<
|
|
@@ -2050,15 +1468,9 @@ export const LLMGuardrailConfig$outboundSchema: z.ZodType<
|
|
|
2050
1468
|
z.ZodTypeDef,
|
|
2051
1469
|
LLMGuardrailConfig
|
|
2052
1470
|
> = z.union([
|
|
2053
|
-
z.lazy(() =>
|
|
2054
|
-
|
|
2055
|
-
),
|
|
2056
|
-
z.lazy(() =>
|
|
2057
|
-
CreateEvalGuardrailConfigEvalsRequestRequestBodyCategorical$outboundSchema
|
|
2058
|
-
),
|
|
2059
|
-
z.lazy(() =>
|
|
2060
|
-
CreateEvalGuardrailConfigEvalsRequestRequestBodyNumber$outboundSchema
|
|
2061
|
-
),
|
|
1471
|
+
z.lazy(() => CreateEvalGuardrailConfigEvalsRequestBoolean$outboundSchema),
|
|
1472
|
+
z.lazy(() => CreateEvalGuardrailConfigEvalsRequestCategorical$outboundSchema),
|
|
1473
|
+
z.lazy(() => CreateEvalGuardrailConfigEvalsRequestNumber$outboundSchema),
|
|
2062
1474
|
]);
|
|
2063
1475
|
|
|
2064
1476
|
export function llmGuardrailConfigToJSON(
|
|
@@ -2281,9 +1693,9 @@ export function llmJuryToJSON(llmJury: LLMJury): string {
|
|
|
2281
1693
|
/** @internal */
|
|
2282
1694
|
export type Llm2$Outbound = {
|
|
2283
1695
|
guardrail_config?:
|
|
2284
|
-
|
|
|
2285
|
-
|
|
|
2286
|
-
|
|
|
1696
|
+
| CreateEvalGuardrailConfigEvalsRequestBoolean$Outbound
|
|
1697
|
+
| CreateEvalGuardrailConfigEvalsRequestCategorical$Outbound
|
|
1698
|
+
| CreateEvalGuardrailConfigEvalsRequestNumber$Outbound
|
|
2287
1699
|
| null
|
|
2288
1700
|
| undefined;
|
|
2289
1701
|
output_type?: string | undefined;
|
|
@@ -2306,13 +1718,13 @@ export const Llm2$outboundSchema: z.ZodType<Llm2$Outbound, z.ZodTypeDef, Llm2> =
|
|
|
2306
1718
|
guardrailConfig: z.nullable(
|
|
2307
1719
|
z.union([
|
|
2308
1720
|
z.lazy(() =>
|
|
2309
|
-
|
|
1721
|
+
CreateEvalGuardrailConfigEvalsRequestBoolean$outboundSchema
|
|
2310
1722
|
),
|
|
2311
1723
|
z.lazy(() =>
|
|
2312
|
-
|
|
1724
|
+
CreateEvalGuardrailConfigEvalsRequestCategorical$outboundSchema
|
|
2313
1725
|
),
|
|
2314
1726
|
z.lazy(() =>
|
|
2315
|
-
|
|
1727
|
+
CreateEvalGuardrailConfigEvalsRequestNumber$outboundSchema
|
|
2316
1728
|
),
|
|
2317
1729
|
]),
|
|
2318
1730
|
).optional(),
|
|
@@ -2344,12 +1756,12 @@ export function llm2ToJSON(llm2: Llm2): string {
|
|
|
2344
1756
|
}
|
|
2345
1757
|
|
|
2346
1758
|
/** @internal */
|
|
2347
|
-
export const
|
|
2348
|
-
|
|
2349
|
-
|
|
1759
|
+
export const CreateEvalGuardrailConfigOperator$outboundSchema: z.ZodNativeEnum<
|
|
1760
|
+
typeof CreateEvalGuardrailConfigOperator
|
|
1761
|
+
> = z.nativeEnum(CreateEvalGuardrailConfigOperator);
|
|
2350
1762
|
|
|
2351
1763
|
/** @internal */
|
|
2352
|
-
export type
|
|
1764
|
+
export type CreateEvalGuardrailConfigNumber$Outbound = {
|
|
2353
1765
|
enabled: boolean;
|
|
2354
1766
|
alert_on_failure: boolean;
|
|
2355
1767
|
type: "number";
|
|
@@ -2358,36 +1770,34 @@ export type CreateEvalGuardrailConfigEvalsRequestNumber$Outbound = {
|
|
|
2358
1770
|
};
|
|
2359
1771
|
|
|
2360
1772
|
/** @internal */
|
|
2361
|
-
export const
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
alertOnFailure: "alert_on_failure",
|
|
2375
|
-
});
|
|
1773
|
+
export const CreateEvalGuardrailConfigNumber$outboundSchema: z.ZodType<
|
|
1774
|
+
CreateEvalGuardrailConfigNumber$Outbound,
|
|
1775
|
+
z.ZodTypeDef,
|
|
1776
|
+
CreateEvalGuardrailConfigNumber
|
|
1777
|
+
> = z.object({
|
|
1778
|
+
enabled: z.boolean().default(true),
|
|
1779
|
+
alertOnFailure: z.boolean().default(false),
|
|
1780
|
+
type: z.literal("number"),
|
|
1781
|
+
value: z.number(),
|
|
1782
|
+
operator: CreateEvalGuardrailConfigOperator$outboundSchema,
|
|
1783
|
+
}).transform((v) => {
|
|
1784
|
+
return remap$(v, {
|
|
1785
|
+
alertOnFailure: "alert_on_failure",
|
|
2376
1786
|
});
|
|
1787
|
+
});
|
|
2377
1788
|
|
|
2378
|
-
export function
|
|
2379
|
-
|
|
2380
|
-
CreateEvalGuardrailConfigEvalsRequestNumber,
|
|
1789
|
+
export function createEvalGuardrailConfigNumberToJSON(
|
|
1790
|
+
createEvalGuardrailConfigNumber: CreateEvalGuardrailConfigNumber,
|
|
2381
1791
|
): string {
|
|
2382
1792
|
return JSON.stringify(
|
|
2383
|
-
|
|
2384
|
-
|
|
1793
|
+
CreateEvalGuardrailConfigNumber$outboundSchema.parse(
|
|
1794
|
+
createEvalGuardrailConfigNumber,
|
|
2385
1795
|
),
|
|
2386
1796
|
);
|
|
2387
1797
|
}
|
|
2388
1798
|
|
|
2389
1799
|
/** @internal */
|
|
2390
|
-
export type
|
|
1800
|
+
export type CreateEvalGuardrailConfigCategorical$Outbound = {
|
|
2391
1801
|
enabled: boolean;
|
|
2392
1802
|
alert_on_failure: boolean;
|
|
2393
1803
|
type: "categorical";
|
|
@@ -2395,35 +1805,33 @@ export type CreateEvalGuardrailConfigEvalsRequestCategorical$Outbound = {
|
|
|
2395
1805
|
};
|
|
2396
1806
|
|
|
2397
1807
|
/** @internal */
|
|
2398
|
-
export const
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
alertOnFailure: "alert_on_failure",
|
|
2411
|
-
});
|
|
1808
|
+
export const CreateEvalGuardrailConfigCategorical$outboundSchema: z.ZodType<
|
|
1809
|
+
CreateEvalGuardrailConfigCategorical$Outbound,
|
|
1810
|
+
z.ZodTypeDef,
|
|
1811
|
+
CreateEvalGuardrailConfigCategorical
|
|
1812
|
+
> = z.object({
|
|
1813
|
+
enabled: z.boolean().default(true),
|
|
1814
|
+
alertOnFailure: z.boolean().default(false),
|
|
1815
|
+
type: z.literal("categorical"),
|
|
1816
|
+
values: z.array(z.string()),
|
|
1817
|
+
}).transform((v) => {
|
|
1818
|
+
return remap$(v, {
|
|
1819
|
+
alertOnFailure: "alert_on_failure",
|
|
2412
1820
|
});
|
|
1821
|
+
});
|
|
2413
1822
|
|
|
2414
|
-
export function
|
|
2415
|
-
|
|
2416
|
-
CreateEvalGuardrailConfigEvalsRequestCategorical,
|
|
1823
|
+
export function createEvalGuardrailConfigCategoricalToJSON(
|
|
1824
|
+
createEvalGuardrailConfigCategorical: CreateEvalGuardrailConfigCategorical,
|
|
2417
1825
|
): string {
|
|
2418
1826
|
return JSON.stringify(
|
|
2419
|
-
|
|
2420
|
-
|
|
1827
|
+
CreateEvalGuardrailConfigCategorical$outboundSchema.parse(
|
|
1828
|
+
createEvalGuardrailConfigCategorical,
|
|
2421
1829
|
),
|
|
2422
1830
|
);
|
|
2423
1831
|
}
|
|
2424
1832
|
|
|
2425
1833
|
/** @internal */
|
|
2426
|
-
export type
|
|
1834
|
+
export type CreateEvalGuardrailConfigBoolean$Outbound = {
|
|
2427
1835
|
enabled: boolean;
|
|
2428
1836
|
alert_on_failure: boolean;
|
|
2429
1837
|
type: "boolean";
|
|
@@ -2431,38 +1839,36 @@ export type CreateEvalGuardrailConfigEvalsRequestBoolean$Outbound = {
|
|
|
2431
1839
|
};
|
|
2432
1840
|
|
|
2433
1841
|
/** @internal */
|
|
2434
|
-
export const
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
alertOnFailure: "alert_on_failure",
|
|
2447
|
-
});
|
|
1842
|
+
export const CreateEvalGuardrailConfigBoolean$outboundSchema: z.ZodType<
|
|
1843
|
+
CreateEvalGuardrailConfigBoolean$Outbound,
|
|
1844
|
+
z.ZodTypeDef,
|
|
1845
|
+
CreateEvalGuardrailConfigBoolean
|
|
1846
|
+
> = z.object({
|
|
1847
|
+
enabled: z.boolean().default(true),
|
|
1848
|
+
alertOnFailure: z.boolean().default(false),
|
|
1849
|
+
type: z.literal("boolean"),
|
|
1850
|
+
value: z.boolean(),
|
|
1851
|
+
}).transform((v) => {
|
|
1852
|
+
return remap$(v, {
|
|
1853
|
+
alertOnFailure: "alert_on_failure",
|
|
2448
1854
|
});
|
|
1855
|
+
});
|
|
2449
1856
|
|
|
2450
|
-
export function
|
|
2451
|
-
|
|
2452
|
-
CreateEvalGuardrailConfigEvalsRequestBoolean,
|
|
1857
|
+
export function createEvalGuardrailConfigBooleanToJSON(
|
|
1858
|
+
createEvalGuardrailConfigBoolean: CreateEvalGuardrailConfigBoolean,
|
|
2453
1859
|
): string {
|
|
2454
1860
|
return JSON.stringify(
|
|
2455
|
-
|
|
2456
|
-
|
|
1861
|
+
CreateEvalGuardrailConfigBoolean$outboundSchema.parse(
|
|
1862
|
+
createEvalGuardrailConfigBoolean,
|
|
2457
1863
|
),
|
|
2458
1864
|
);
|
|
2459
1865
|
}
|
|
2460
1866
|
|
|
2461
1867
|
/** @internal */
|
|
2462
1868
|
export type CreateEvalLLMGuardrailConfig$Outbound =
|
|
2463
|
-
|
|
|
2464
|
-
|
|
|
2465
|
-
|
|
|
1869
|
+
| CreateEvalGuardrailConfigBoolean$Outbound
|
|
1870
|
+
| CreateEvalGuardrailConfigCategorical$Outbound
|
|
1871
|
+
| CreateEvalGuardrailConfigNumber$Outbound;
|
|
2466
1872
|
|
|
2467
1873
|
/** @internal */
|
|
2468
1874
|
export const CreateEvalLLMGuardrailConfig$outboundSchema: z.ZodType<
|
|
@@ -2470,9 +1876,9 @@ export const CreateEvalLLMGuardrailConfig$outboundSchema: z.ZodType<
|
|
|
2470
1876
|
z.ZodTypeDef,
|
|
2471
1877
|
CreateEvalLLMGuardrailConfig
|
|
2472
1878
|
> = z.union([
|
|
2473
|
-
z.lazy(() =>
|
|
2474
|
-
z.lazy(() =>
|
|
2475
|
-
z.lazy(() =>
|
|
1879
|
+
z.lazy(() => CreateEvalGuardrailConfigBoolean$outboundSchema),
|
|
1880
|
+
z.lazy(() => CreateEvalGuardrailConfigCategorical$outboundSchema),
|
|
1881
|
+
z.lazy(() => CreateEvalGuardrailConfigNumber$outboundSchema),
|
|
2476
1882
|
]);
|
|
2477
1883
|
|
|
2478
1884
|
export function createEvalLLMGuardrailConfigToJSON(
|
|
@@ -2524,9 +1930,9 @@ export function createEvalLLMCategoricalLabelsToJSON(
|
|
|
2524
1930
|
/** @internal */
|
|
2525
1931
|
export type Llm1$Outbound = {
|
|
2526
1932
|
guardrail_config?:
|
|
2527
|
-
|
|
|
2528
|
-
|
|
|
2529
|
-
|
|
|
1933
|
+
| CreateEvalGuardrailConfigBoolean$Outbound
|
|
1934
|
+
| CreateEvalGuardrailConfigCategorical$Outbound
|
|
1935
|
+
| CreateEvalGuardrailConfigNumber$Outbound
|
|
2530
1936
|
| null
|
|
2531
1937
|
| undefined;
|
|
2532
1938
|
output_type?: string | undefined;
|
|
@@ -2550,15 +1956,9 @@ export const Llm1$outboundSchema: z.ZodType<Llm1$Outbound, z.ZodTypeDef, Llm1> =
|
|
|
2550
1956
|
z.object({
|
|
2551
1957
|
guardrailConfig: z.nullable(
|
|
2552
1958
|
z.union([
|
|
2553
|
-
z.lazy(() =>
|
|
2554
|
-
|
|
2555
|
-
),
|
|
2556
|
-
z.lazy(() =>
|
|
2557
|
-
CreateEvalGuardrailConfigEvalsRequestCategorical$outboundSchema
|
|
2558
|
-
),
|
|
2559
|
-
z.lazy(() =>
|
|
2560
|
-
CreateEvalGuardrailConfigEvalsRequestNumber$outboundSchema
|
|
2561
|
-
),
|
|
1959
|
+
z.lazy(() => CreateEvalGuardrailConfigBoolean$outboundSchema),
|
|
1960
|
+
z.lazy(() => CreateEvalGuardrailConfigCategorical$outboundSchema),
|
|
1961
|
+
z.lazy(() => CreateEvalGuardrailConfigNumber$outboundSchema),
|
|
2562
1962
|
]),
|
|
2563
1963
|
).optional(),
|
|
2564
1964
|
outputType: CreateEvalLLMOutputType$outboundSchema.optional(),
|
|
@@ -2604,8 +2004,6 @@ export function llmToJSON(llm: Llm): string {
|
|
|
2604
2004
|
|
|
2605
2005
|
/** @internal */
|
|
2606
2006
|
export type CreateEvalRequestBody$Outbound =
|
|
2607
|
-
| RequestBodyHTTP$Outbound
|
|
2608
|
-
| Json$Outbound
|
|
2609
2007
|
| Python$Outbound
|
|
2610
2008
|
| Llm1$Outbound
|
|
2611
2009
|
| Llm2$Outbound;
|
|
@@ -2616,8 +2014,6 @@ export const CreateEvalRequestBody$outboundSchema: z.ZodType<
|
|
|
2616
2014
|
z.ZodTypeDef,
|
|
2617
2015
|
CreateEvalRequestBody
|
|
2618
2016
|
> = z.union([
|
|
2619
|
-
z.lazy(() => RequestBodyHTTP$outboundSchema),
|
|
2620
|
-
z.lazy(() => Json$outboundSchema),
|
|
2621
2017
|
z.lazy(() => Python$outboundSchema),
|
|
2622
2018
|
z.union([
|
|
2623
2019
|
z.lazy(() => Llm1$outboundSchema),
|
|
@@ -2786,8 +2182,8 @@ export const Typescript$inboundSchema: z.ZodType<
|
|
|
2786
2182
|
> = z.object({
|
|
2787
2183
|
_id: z.string(),
|
|
2788
2184
|
description: z.string(),
|
|
2789
|
-
created: z.string().default("2026-05-
|
|
2790
|
-
updated: z.string().default("2026-05-
|
|
2185
|
+
created: z.string().default("2026-05-29T13:09:24.592Z"),
|
|
2186
|
+
updated: z.string().default("2026-05-29T13:09:24.592Z"),
|
|
2791
2187
|
guardrail_config: z.nullable(
|
|
2792
2188
|
z.union([
|
|
2793
2189
|
z.lazy(() =>
|
|
@@ -2822,17 +2218,17 @@ export function typescriptFromJSON(
|
|
|
2822
2218
|
}
|
|
2823
2219
|
|
|
2824
2220
|
/** @internal */
|
|
2825
|
-
export const
|
|
2221
|
+
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator$inboundSchema:
|
|
2826
2222
|
z.ZodNativeEnum<
|
|
2827
|
-
typeof
|
|
2223
|
+
typeof CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator
|
|
2828
2224
|
> = z.nativeEnum(
|
|
2829
|
-
|
|
2225
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator,
|
|
2830
2226
|
);
|
|
2831
2227
|
|
|
2832
2228
|
/** @internal */
|
|
2833
|
-
export const
|
|
2229
|
+
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema:
|
|
2834
2230
|
z.ZodType<
|
|
2835
|
-
|
|
2231
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber,
|
|
2836
2232
|
z.ZodTypeDef,
|
|
2837
2233
|
unknown
|
|
2838
2234
|
> = z.object({
|
|
@@ -2841,32 +2237,32 @@ export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBod
|
|
|
2841
2237
|
type: z.literal("number"),
|
|
2842
2238
|
value: z.number(),
|
|
2843
2239
|
operator:
|
|
2844
|
-
|
|
2240
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator$inboundSchema,
|
|
2845
2241
|
}).transform((v) => {
|
|
2846
2242
|
return remap$(v, {
|
|
2847
2243
|
"alert_on_failure": "alertOnFailure",
|
|
2848
2244
|
});
|
|
2849
2245
|
});
|
|
2850
2246
|
|
|
2851
|
-
export function
|
|
2247
|
+
export function createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumberFromJSON(
|
|
2852
2248
|
jsonString: string,
|
|
2853
2249
|
): SafeParseResult<
|
|
2854
|
-
|
|
2250
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber,
|
|
2855
2251
|
SDKValidationError
|
|
2856
2252
|
> {
|
|
2857
2253
|
return safeParse(
|
|
2858
2254
|
jsonString,
|
|
2859
2255
|
(x) =>
|
|
2860
|
-
|
|
2256
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
|
|
2861
2257
|
.parse(JSON.parse(x)),
|
|
2862
|
-
`Failed to parse '
|
|
2258
|
+
`Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber' from JSON`,
|
|
2863
2259
|
);
|
|
2864
2260
|
}
|
|
2865
2261
|
|
|
2866
2262
|
/** @internal */
|
|
2867
|
-
export const
|
|
2263
|
+
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical$inboundSchema:
|
|
2868
2264
|
z.ZodType<
|
|
2869
|
-
|
|
2265
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical,
|
|
2870
2266
|
z.ZodTypeDef,
|
|
2871
2267
|
unknown
|
|
2872
2268
|
> = z.object({
|
|
@@ -2880,25 +2276,25 @@ export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBod
|
|
|
2880
2276
|
});
|
|
2881
2277
|
});
|
|
2882
2278
|
|
|
2883
|
-
export function
|
|
2279
|
+
export function createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategoricalFromJSON(
|
|
2884
2280
|
jsonString: string,
|
|
2885
2281
|
): SafeParseResult<
|
|
2886
|
-
|
|
2282
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical,
|
|
2887
2283
|
SDKValidationError
|
|
2888
2284
|
> {
|
|
2889
2285
|
return safeParse(
|
|
2890
2286
|
jsonString,
|
|
2891
2287
|
(x) =>
|
|
2892
|
-
|
|
2288
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical$inboundSchema
|
|
2893
2289
|
.parse(JSON.parse(x)),
|
|
2894
|
-
`Failed to parse '
|
|
2290
|
+
`Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical' from JSON`,
|
|
2895
2291
|
);
|
|
2896
2292
|
}
|
|
2897
2293
|
|
|
2898
2294
|
/** @internal */
|
|
2899
|
-
export const
|
|
2295
|
+
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema:
|
|
2900
2296
|
z.ZodType<
|
|
2901
|
-
|
|
2297
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean,
|
|
2902
2298
|
z.ZodTypeDef,
|
|
2903
2299
|
unknown
|
|
2904
2300
|
> = z.object({
|
|
@@ -2912,18 +2308,18 @@ export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBod
|
|
|
2912
2308
|
});
|
|
2913
2309
|
});
|
|
2914
2310
|
|
|
2915
|
-
export function
|
|
2311
|
+
export function createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBooleanFromJSON(
|
|
2916
2312
|
jsonString: string,
|
|
2917
2313
|
): SafeParseResult<
|
|
2918
|
-
|
|
2314
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean,
|
|
2919
2315
|
SDKValidationError
|
|
2920
2316
|
> {
|
|
2921
2317
|
return safeParse(
|
|
2922
2318
|
jsonString,
|
|
2923
2319
|
(x) =>
|
|
2924
|
-
|
|
2320
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema
|
|
2925
2321
|
.parse(JSON.parse(x)),
|
|
2926
|
-
`Failed to parse '
|
|
2322
|
+
`Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean' from JSON`,
|
|
2927
2323
|
);
|
|
2928
2324
|
}
|
|
2929
2325
|
|
|
@@ -2935,13 +2331,13 @@ export const CreateEvalResponseBodyEvalsResponse200GuardrailConfig$inboundSchema
|
|
|
2935
2331
|
unknown
|
|
2936
2332
|
> = z.union([
|
|
2937
2333
|
z.lazy(() =>
|
|
2938
|
-
|
|
2334
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema
|
|
2939
2335
|
),
|
|
2940
2336
|
z.lazy(() =>
|
|
2941
|
-
|
|
2337
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical$inboundSchema
|
|
2942
2338
|
),
|
|
2943
2339
|
z.lazy(() =>
|
|
2944
|
-
|
|
2340
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
|
|
2945
2341
|
),
|
|
2946
2342
|
]);
|
|
2947
2343
|
|
|
@@ -2975,18 +2371,18 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
|
|
|
2975
2371
|
.object({
|
|
2976
2372
|
_id: z.string(),
|
|
2977
2373
|
description: z.string(),
|
|
2978
|
-
created: z.string().default("2026-05-
|
|
2979
|
-
updated: z.string().default("2026-05-
|
|
2374
|
+
created: z.string().default("2026-05-29T13:09:24.592Z"),
|
|
2375
|
+
updated: z.string().default("2026-05-29T13:09:24.592Z"),
|
|
2980
2376
|
guardrail_config: z.nullable(
|
|
2981
2377
|
z.union([
|
|
2982
2378
|
z.lazy(() =>
|
|
2983
|
-
|
|
2379
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema
|
|
2984
2380
|
),
|
|
2985
2381
|
z.lazy(() =>
|
|
2986
|
-
|
|
2382
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical$inboundSchema
|
|
2987
2383
|
),
|
|
2988
2384
|
z.lazy(() =>
|
|
2989
|
-
|
|
2385
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
|
|
2990
2386
|
),
|
|
2991
2387
|
]),
|
|
2992
2388
|
).optional(),
|
|
@@ -3013,17 +2409,17 @@ export function ragasFromJSON(
|
|
|
3013
2409
|
}
|
|
3014
2410
|
|
|
3015
2411
|
/** @internal */
|
|
3016
|
-
export const
|
|
2412
|
+
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator$inboundSchema:
|
|
3017
2413
|
z.ZodNativeEnum<
|
|
3018
|
-
typeof
|
|
2414
|
+
typeof CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator
|
|
3019
2415
|
> = z.nativeEnum(
|
|
3020
|
-
|
|
2416
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator,
|
|
3021
2417
|
);
|
|
3022
2418
|
|
|
3023
2419
|
/** @internal */
|
|
3024
|
-
export const
|
|
2420
|
+
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema:
|
|
3025
2421
|
z.ZodType<
|
|
3026
|
-
|
|
2422
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber,
|
|
3027
2423
|
z.ZodTypeDef,
|
|
3028
2424
|
unknown
|
|
3029
2425
|
> = z.object({
|
|
@@ -3032,32 +2428,32 @@ export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBod
|
|
|
3032
2428
|
type: z.literal("number"),
|
|
3033
2429
|
value: z.number(),
|
|
3034
2430
|
operator:
|
|
3035
|
-
|
|
2431
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator$inboundSchema,
|
|
3036
2432
|
}).transform((v) => {
|
|
3037
2433
|
return remap$(v, {
|
|
3038
2434
|
"alert_on_failure": "alertOnFailure",
|
|
3039
2435
|
});
|
|
3040
2436
|
});
|
|
3041
2437
|
|
|
3042
|
-
export function
|
|
2438
|
+
export function createEvalGuardrailConfigEvalsResponse200ApplicationJSONNumberFromJSON(
|
|
3043
2439
|
jsonString: string,
|
|
3044
2440
|
): SafeParseResult<
|
|
3045
|
-
|
|
2441
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber,
|
|
3046
2442
|
SDKValidationError
|
|
3047
2443
|
> {
|
|
3048
2444
|
return safeParse(
|
|
3049
2445
|
jsonString,
|
|
3050
2446
|
(x) =>
|
|
3051
|
-
|
|
2447
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
|
|
3052
2448
|
.parse(JSON.parse(x)),
|
|
3053
|
-
`Failed to parse '
|
|
2449
|
+
`Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber' from JSON`,
|
|
3054
2450
|
);
|
|
3055
2451
|
}
|
|
3056
2452
|
|
|
3057
2453
|
/** @internal */
|
|
3058
|
-
export const
|
|
2454
|
+
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical$inboundSchema:
|
|
3059
2455
|
z.ZodType<
|
|
3060
|
-
|
|
2456
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical,
|
|
3061
2457
|
z.ZodTypeDef,
|
|
3062
2458
|
unknown
|
|
3063
2459
|
> = z.object({
|
|
@@ -3071,25 +2467,25 @@ export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBod
|
|
|
3071
2467
|
});
|
|
3072
2468
|
});
|
|
3073
2469
|
|
|
3074
|
-
export function
|
|
2470
|
+
export function createEvalGuardrailConfigEvalsResponse200ApplicationJSONCategoricalFromJSON(
|
|
3075
2471
|
jsonString: string,
|
|
3076
2472
|
): SafeParseResult<
|
|
3077
|
-
|
|
2473
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical,
|
|
3078
2474
|
SDKValidationError
|
|
3079
2475
|
> {
|
|
3080
2476
|
return safeParse(
|
|
3081
2477
|
jsonString,
|
|
3082
2478
|
(x) =>
|
|
3083
|
-
|
|
2479
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical$inboundSchema
|
|
3084
2480
|
.parse(JSON.parse(x)),
|
|
3085
|
-
`Failed to parse '
|
|
2481
|
+
`Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical' from JSON`,
|
|
3086
2482
|
);
|
|
3087
2483
|
}
|
|
3088
2484
|
|
|
3089
2485
|
/** @internal */
|
|
3090
|
-
export const
|
|
2486
|
+
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema:
|
|
3091
2487
|
z.ZodType<
|
|
3092
|
-
|
|
2488
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean,
|
|
3093
2489
|
z.ZodTypeDef,
|
|
3094
2490
|
unknown
|
|
3095
2491
|
> = z.object({
|
|
@@ -3103,18 +2499,18 @@ export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBod
|
|
|
3103
2499
|
});
|
|
3104
2500
|
});
|
|
3105
2501
|
|
|
3106
|
-
export function
|
|
2502
|
+
export function createEvalGuardrailConfigEvalsResponse200ApplicationJSONBooleanFromJSON(
|
|
3107
2503
|
jsonString: string,
|
|
3108
2504
|
): SafeParseResult<
|
|
3109
|
-
|
|
2505
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean,
|
|
3110
2506
|
SDKValidationError
|
|
3111
2507
|
> {
|
|
3112
2508
|
return safeParse(
|
|
3113
2509
|
jsonString,
|
|
3114
2510
|
(x) =>
|
|
3115
|
-
|
|
2511
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
|
|
3116
2512
|
.parse(JSON.parse(x)),
|
|
3117
|
-
`Failed to parse '
|
|
2513
|
+
`Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean' from JSON`,
|
|
3118
2514
|
);
|
|
3119
2515
|
}
|
|
3120
2516
|
|
|
@@ -3126,13 +2522,13 @@ export const CreateEvalResponseBodyEvalsResponseGuardrailConfig$inboundSchema:
|
|
|
3126
2522
|
unknown
|
|
3127
2523
|
> = z.union([
|
|
3128
2524
|
z.lazy(() =>
|
|
3129
|
-
|
|
2525
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
|
|
3130
2526
|
),
|
|
3131
2527
|
z.lazy(() =>
|
|
3132
|
-
|
|
2528
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical$inboundSchema
|
|
3133
2529
|
),
|
|
3134
2530
|
z.lazy(() =>
|
|
3135
|
-
|
|
2531
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
|
|
3136
2532
|
),
|
|
3137
2533
|
]);
|
|
3138
2534
|
|
|
@@ -3799,18 +3195,18 @@ export const CreateEvalResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
3799
3195
|
> = z.object({
|
|
3800
3196
|
_id: z.string(),
|
|
3801
3197
|
description: z.string(),
|
|
3802
|
-
created: z.string().default("2026-05-
|
|
3803
|
-
updated: z.string().default("2026-05-
|
|
3198
|
+
created: z.string().default("2026-05-29T13:09:24.592Z"),
|
|
3199
|
+
updated: z.string().default("2026-05-29T13:09:24.592Z"),
|
|
3804
3200
|
guardrail_config: z.nullable(
|
|
3805
3201
|
z.union([
|
|
3806
3202
|
z.lazy(() =>
|
|
3807
|
-
|
|
3203
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
|
|
3808
3204
|
),
|
|
3809
3205
|
z.lazy(() =>
|
|
3810
|
-
|
|
3206
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical$inboundSchema
|
|
3811
3207
|
),
|
|
3812
3208
|
z.lazy(() =>
|
|
3813
|
-
|
|
3209
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
|
|
3814
3210
|
),
|
|
3815
3211
|
]),
|
|
3816
3212
|
).optional(),
|
|
@@ -3868,191 +3264,6 @@ export function createEvalResponseBodyFunctionFromJSON(
|
|
|
3868
3264
|
);
|
|
3869
3265
|
}
|
|
3870
3266
|
|
|
3871
|
-
/** @internal */
|
|
3872
|
-
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator$inboundSchema:
|
|
3873
|
-
z.ZodNativeEnum<
|
|
3874
|
-
typeof CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator
|
|
3875
|
-
> = z.nativeEnum(
|
|
3876
|
-
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator,
|
|
3877
|
-
);
|
|
3878
|
-
|
|
3879
|
-
/** @internal */
|
|
3880
|
-
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema:
|
|
3881
|
-
z.ZodType<
|
|
3882
|
-
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber,
|
|
3883
|
-
z.ZodTypeDef,
|
|
3884
|
-
unknown
|
|
3885
|
-
> = z.object({
|
|
3886
|
-
enabled: z.boolean().default(true),
|
|
3887
|
-
alert_on_failure: z.boolean().default(false),
|
|
3888
|
-
type: z.literal("number"),
|
|
3889
|
-
value: z.number(),
|
|
3890
|
-
operator:
|
|
3891
|
-
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator$inboundSchema,
|
|
3892
|
-
}).transform((v) => {
|
|
3893
|
-
return remap$(v, {
|
|
3894
|
-
"alert_on_failure": "alertOnFailure",
|
|
3895
|
-
});
|
|
3896
|
-
});
|
|
3897
|
-
|
|
3898
|
-
export function createEvalGuardrailConfigEvalsResponse200ApplicationJSONNumberFromJSON(
|
|
3899
|
-
jsonString: string,
|
|
3900
|
-
): SafeParseResult<
|
|
3901
|
-
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber,
|
|
3902
|
-
SDKValidationError
|
|
3903
|
-
> {
|
|
3904
|
-
return safeParse(
|
|
3905
|
-
jsonString,
|
|
3906
|
-
(x) =>
|
|
3907
|
-
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
|
|
3908
|
-
.parse(JSON.parse(x)),
|
|
3909
|
-
`Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber' from JSON`,
|
|
3910
|
-
);
|
|
3911
|
-
}
|
|
3912
|
-
|
|
3913
|
-
/** @internal */
|
|
3914
|
-
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical$inboundSchema:
|
|
3915
|
-
z.ZodType<
|
|
3916
|
-
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical,
|
|
3917
|
-
z.ZodTypeDef,
|
|
3918
|
-
unknown
|
|
3919
|
-
> = z.object({
|
|
3920
|
-
enabled: z.boolean().default(true),
|
|
3921
|
-
alert_on_failure: z.boolean().default(false),
|
|
3922
|
-
type: z.literal("categorical"),
|
|
3923
|
-
values: z.array(z.string()),
|
|
3924
|
-
}).transform((v) => {
|
|
3925
|
-
return remap$(v, {
|
|
3926
|
-
"alert_on_failure": "alertOnFailure",
|
|
3927
|
-
});
|
|
3928
|
-
});
|
|
3929
|
-
|
|
3930
|
-
export function createEvalGuardrailConfigEvalsResponse200ApplicationJSONCategoricalFromJSON(
|
|
3931
|
-
jsonString: string,
|
|
3932
|
-
): SafeParseResult<
|
|
3933
|
-
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical,
|
|
3934
|
-
SDKValidationError
|
|
3935
|
-
> {
|
|
3936
|
-
return safeParse(
|
|
3937
|
-
jsonString,
|
|
3938
|
-
(x) =>
|
|
3939
|
-
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical$inboundSchema
|
|
3940
|
-
.parse(JSON.parse(x)),
|
|
3941
|
-
`Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical' from JSON`,
|
|
3942
|
-
);
|
|
3943
|
-
}
|
|
3944
|
-
|
|
3945
|
-
/** @internal */
|
|
3946
|
-
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema:
|
|
3947
|
-
z.ZodType<
|
|
3948
|
-
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean,
|
|
3949
|
-
z.ZodTypeDef,
|
|
3950
|
-
unknown
|
|
3951
|
-
> = z.object({
|
|
3952
|
-
enabled: z.boolean().default(true),
|
|
3953
|
-
alert_on_failure: z.boolean().default(false),
|
|
3954
|
-
type: z.literal("boolean"),
|
|
3955
|
-
value: z.boolean(),
|
|
3956
|
-
}).transform((v) => {
|
|
3957
|
-
return remap$(v, {
|
|
3958
|
-
"alert_on_failure": "alertOnFailure",
|
|
3959
|
-
});
|
|
3960
|
-
});
|
|
3961
|
-
|
|
3962
|
-
export function createEvalGuardrailConfigEvalsResponse200ApplicationJSONBooleanFromJSON(
|
|
3963
|
-
jsonString: string,
|
|
3964
|
-
): SafeParseResult<
|
|
3965
|
-
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean,
|
|
3966
|
-
SDKValidationError
|
|
3967
|
-
> {
|
|
3968
|
-
return safeParse(
|
|
3969
|
-
jsonString,
|
|
3970
|
-
(x) =>
|
|
3971
|
-
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
|
|
3972
|
-
.parse(JSON.parse(x)),
|
|
3973
|
-
`Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean' from JSON`,
|
|
3974
|
-
);
|
|
3975
|
-
}
|
|
3976
|
-
|
|
3977
|
-
/** @internal */
|
|
3978
|
-
export const CreateEvalResponseBodyEvalsGuardrailConfig$inboundSchema:
|
|
3979
|
-
z.ZodType<CreateEvalResponseBodyEvalsGuardrailConfig, z.ZodTypeDef, unknown> =
|
|
3980
|
-
z.union([
|
|
3981
|
-
z.lazy(() =>
|
|
3982
|
-
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
|
|
3983
|
-
),
|
|
3984
|
-
z.lazy(() =>
|
|
3985
|
-
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical$inboundSchema
|
|
3986
|
-
),
|
|
3987
|
-
z.lazy(() =>
|
|
3988
|
-
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
|
|
3989
|
-
),
|
|
3990
|
-
]);
|
|
3991
|
-
|
|
3992
|
-
export function createEvalResponseBodyEvalsGuardrailConfigFromJSON(
|
|
3993
|
-
jsonString: string,
|
|
3994
|
-
): SafeParseResult<
|
|
3995
|
-
CreateEvalResponseBodyEvalsGuardrailConfig,
|
|
3996
|
-
SDKValidationError
|
|
3997
|
-
> {
|
|
3998
|
-
return safeParse(
|
|
3999
|
-
jsonString,
|
|
4000
|
-
(x) =>
|
|
4001
|
-
CreateEvalResponseBodyEvalsGuardrailConfig$inboundSchema.parse(
|
|
4002
|
-
JSON.parse(x),
|
|
4003
|
-
),
|
|
4004
|
-
`Failed to parse 'CreateEvalResponseBodyEvalsGuardrailConfig' from JSON`,
|
|
4005
|
-
);
|
|
4006
|
-
}
|
|
4007
|
-
|
|
4008
|
-
/** @internal */
|
|
4009
|
-
export const CreateEvalResponseBodyEvalsType$inboundSchema: z.ZodNativeEnum<
|
|
4010
|
-
typeof CreateEvalResponseBodyEvalsType
|
|
4011
|
-
> = z.nativeEnum(CreateEvalResponseBodyEvalsType);
|
|
4012
|
-
|
|
4013
|
-
/** @internal */
|
|
4014
|
-
export const ResponseBodyPython$inboundSchema: z.ZodType<
|
|
4015
|
-
ResponseBodyPython,
|
|
4016
|
-
z.ZodTypeDef,
|
|
4017
|
-
unknown
|
|
4018
|
-
> = z.object({
|
|
4019
|
-
_id: z.string(),
|
|
4020
|
-
description: z.string(),
|
|
4021
|
-
created: z.string().default("2026-05-25T16:12:13.080Z"),
|
|
4022
|
-
updated: z.string().default("2026-05-25T16:12:13.080Z"),
|
|
4023
|
-
guardrail_config: z.nullable(
|
|
4024
|
-
z.union([
|
|
4025
|
-
z.lazy(() =>
|
|
4026
|
-
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
|
|
4027
|
-
),
|
|
4028
|
-
z.lazy(() =>
|
|
4029
|
-
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical$inboundSchema
|
|
4030
|
-
),
|
|
4031
|
-
z.lazy(() =>
|
|
4032
|
-
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
|
|
4033
|
-
),
|
|
4034
|
-
]),
|
|
4035
|
-
).optional(),
|
|
4036
|
-
code: z.string(),
|
|
4037
|
-
type: CreateEvalResponseBodyEvalsType$inboundSchema,
|
|
4038
|
-
key: z.string(),
|
|
4039
|
-
}).transform((v) => {
|
|
4040
|
-
return remap$(v, {
|
|
4041
|
-
"_id": "id",
|
|
4042
|
-
"guardrail_config": "guardrailConfig",
|
|
4043
|
-
});
|
|
4044
|
-
});
|
|
4045
|
-
|
|
4046
|
-
export function responseBodyPythonFromJSON(
|
|
4047
|
-
jsonString: string,
|
|
4048
|
-
): SafeParseResult<ResponseBodyPython, SDKValidationError> {
|
|
4049
|
-
return safeParse(
|
|
4050
|
-
jsonString,
|
|
4051
|
-
(x) => ResponseBodyPython$inboundSchema.parse(JSON.parse(x)),
|
|
4052
|
-
`Failed to parse 'ResponseBodyPython' from JSON`,
|
|
4053
|
-
);
|
|
4054
|
-
}
|
|
4055
|
-
|
|
4056
3267
|
/** @internal */
|
|
4057
3268
|
export const CreateEvalGuardrailConfigEvalsResponse200Operator$inboundSchema:
|
|
4058
3269
|
z.ZodNativeEnum<typeof CreateEvalGuardrailConfigEvalsResponse200Operator> = z
|
|
@@ -4159,49 +3370,51 @@ export function createEvalGuardrailConfigEvalsResponse200BooleanFromJSON(
|
|
|
4159
3370
|
}
|
|
4160
3371
|
|
|
4161
3372
|
/** @internal */
|
|
4162
|
-
export const
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
3373
|
+
export const CreateEvalResponseBodyEvalsGuardrailConfig$inboundSchema:
|
|
3374
|
+
z.ZodType<CreateEvalResponseBodyEvalsGuardrailConfig, z.ZodTypeDef, unknown> =
|
|
3375
|
+
z.union([
|
|
3376
|
+
z.lazy(() =>
|
|
3377
|
+
CreateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema
|
|
3378
|
+
),
|
|
3379
|
+
z.lazy(() =>
|
|
3380
|
+
CreateEvalGuardrailConfigEvalsResponse200Categorical$inboundSchema
|
|
3381
|
+
),
|
|
3382
|
+
z.lazy(() =>
|
|
3383
|
+
CreateEvalGuardrailConfigEvalsResponse200Number$inboundSchema
|
|
3384
|
+
),
|
|
3385
|
+
]);
|
|
4173
3386
|
|
|
4174
|
-
export function
|
|
3387
|
+
export function createEvalResponseBodyEvalsGuardrailConfigFromJSON(
|
|
4175
3388
|
jsonString: string,
|
|
4176
|
-
): SafeParseResult<
|
|
3389
|
+
): SafeParseResult<
|
|
3390
|
+
CreateEvalResponseBodyEvalsGuardrailConfig,
|
|
3391
|
+
SDKValidationError
|
|
3392
|
+
> {
|
|
4177
3393
|
return safeParse(
|
|
4178
3394
|
jsonString,
|
|
4179
3395
|
(x) =>
|
|
4180
|
-
|
|
4181
|
-
|
|
3396
|
+
CreateEvalResponseBodyEvalsGuardrailConfig$inboundSchema.parse(
|
|
3397
|
+
JSON.parse(x),
|
|
3398
|
+
),
|
|
3399
|
+
`Failed to parse 'CreateEvalResponseBodyEvalsGuardrailConfig' from JSON`,
|
|
4182
3400
|
);
|
|
4183
3401
|
}
|
|
4184
3402
|
|
|
4185
3403
|
/** @internal */
|
|
4186
|
-
export const
|
|
4187
|
-
typeof
|
|
4188
|
-
> = z.nativeEnum(
|
|
4189
|
-
|
|
4190
|
-
/** @internal */
|
|
4191
|
-
export const ResponseBodyMethod$inboundSchema: z.ZodNativeEnum<
|
|
4192
|
-
typeof ResponseBodyMethod
|
|
4193
|
-
> = z.nativeEnum(ResponseBodyMethod);
|
|
3404
|
+
export const CreateEvalResponseBodyEvalsType$inboundSchema: z.ZodNativeEnum<
|
|
3405
|
+
typeof CreateEvalResponseBodyEvalsType
|
|
3406
|
+
> = z.nativeEnum(CreateEvalResponseBodyEvalsType);
|
|
4194
3407
|
|
|
4195
3408
|
/** @internal */
|
|
4196
|
-
export const
|
|
4197
|
-
|
|
3409
|
+
export const ResponseBodyPython$inboundSchema: z.ZodType<
|
|
3410
|
+
ResponseBodyPython,
|
|
4198
3411
|
z.ZodTypeDef,
|
|
4199
3412
|
unknown
|
|
4200
3413
|
> = z.object({
|
|
4201
3414
|
_id: z.string(),
|
|
4202
3415
|
description: z.string(),
|
|
4203
|
-
created: z.string().default("2026-05-
|
|
4204
|
-
updated: z.string().default("2026-05-
|
|
3416
|
+
created: z.string().default("2026-05-29T13:09:24.592Z"),
|
|
3417
|
+
updated: z.string().default("2026-05-29T13:09:24.592Z"),
|
|
4205
3418
|
guardrail_config: z.nullable(
|
|
4206
3419
|
z.union([
|
|
4207
3420
|
z.lazy(() =>
|
|
@@ -4215,11 +3428,8 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
4215
3428
|
),
|
|
4216
3429
|
]),
|
|
4217
3430
|
).optional(),
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
method: ResponseBodyMethod$inboundSchema,
|
|
4221
|
-
headers: z.record(z.string()),
|
|
4222
|
-
payload: z.record(z.any()),
|
|
3431
|
+
code: z.string(),
|
|
3432
|
+
type: CreateEvalResponseBodyEvalsType$inboundSchema,
|
|
4223
3433
|
key: z.string(),
|
|
4224
3434
|
}).transform((v) => {
|
|
4225
3435
|
return remap$(v, {
|
|
@@ -4228,13 +3438,13 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
4228
3438
|
});
|
|
4229
3439
|
});
|
|
4230
3440
|
|
|
4231
|
-
export function
|
|
3441
|
+
export function responseBodyPythonFromJSON(
|
|
4232
3442
|
jsonString: string,
|
|
4233
|
-
): SafeParseResult<
|
|
3443
|
+
): SafeParseResult<ResponseBodyPython, SDKValidationError> {
|
|
4234
3444
|
return safeParse(
|
|
4235
3445
|
jsonString,
|
|
4236
|
-
(x) =>
|
|
4237
|
-
`Failed to parse '
|
|
3446
|
+
(x) => ResponseBodyPython$inboundSchema.parse(JSON.parse(x)),
|
|
3447
|
+
`Failed to parse 'ResponseBodyPython' from JSON`,
|
|
4238
3448
|
);
|
|
4239
3449
|
}
|
|
4240
3450
|
|
|
@@ -4344,8 +3554,8 @@ export function createEvalGuardrailConfigEvalsResponseBooleanFromJSON(
|
|
|
4344
3554
|
}
|
|
4345
3555
|
|
|
4346
3556
|
/** @internal */
|
|
4347
|
-
export const
|
|
4348
|
-
|
|
3557
|
+
export const CreateEvalResponseBodyGuardrailConfig$inboundSchema: z.ZodType<
|
|
3558
|
+
CreateEvalResponseBodyGuardrailConfig,
|
|
4349
3559
|
z.ZodTypeDef,
|
|
4350
3560
|
unknown
|
|
4351
3561
|
> = z.union([
|
|
@@ -4354,31 +3564,37 @@ export const ResponseBodyGuardrailConfig$inboundSchema: z.ZodType<
|
|
|
4354
3564
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
4355
3565
|
]);
|
|
4356
3566
|
|
|
4357
|
-
export function
|
|
3567
|
+
export function createEvalResponseBodyGuardrailConfigFromJSON(
|
|
4358
3568
|
jsonString: string,
|
|
4359
|
-
): SafeParseResult<
|
|
3569
|
+
): SafeParseResult<CreateEvalResponseBodyGuardrailConfig, SDKValidationError> {
|
|
4360
3570
|
return safeParse(
|
|
4361
3571
|
jsonString,
|
|
4362
|
-
(x) =>
|
|
4363
|
-
|
|
3572
|
+
(x) =>
|
|
3573
|
+
CreateEvalResponseBodyGuardrailConfig$inboundSchema.parse(JSON.parse(x)),
|
|
3574
|
+
`Failed to parse 'CreateEvalResponseBodyGuardrailConfig' from JSON`,
|
|
4364
3575
|
);
|
|
4365
3576
|
}
|
|
4366
3577
|
|
|
4367
3578
|
/** @internal */
|
|
4368
|
-
export const
|
|
4369
|
-
typeof
|
|
4370
|
-
> = z.nativeEnum(
|
|
3579
|
+
export const CreateEvalResponseBodyType$inboundSchema: z.ZodNativeEnum<
|
|
3580
|
+
typeof CreateEvalResponseBodyType
|
|
3581
|
+
> = z.nativeEnum(CreateEvalResponseBodyType);
|
|
3582
|
+
|
|
3583
|
+
/** @internal */
|
|
3584
|
+
export const CreateEvalResponseBodyMethod$inboundSchema: z.ZodNativeEnum<
|
|
3585
|
+
typeof CreateEvalResponseBodyMethod
|
|
3586
|
+
> = z.nativeEnum(CreateEvalResponseBodyMethod);
|
|
4371
3587
|
|
|
4372
3588
|
/** @internal */
|
|
4373
|
-
export const
|
|
4374
|
-
|
|
3589
|
+
export const CreateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
3590
|
+
CreateEvalResponseBodyHTTP,
|
|
4375
3591
|
z.ZodTypeDef,
|
|
4376
3592
|
unknown
|
|
4377
3593
|
> = z.object({
|
|
4378
3594
|
_id: z.string(),
|
|
4379
3595
|
description: z.string(),
|
|
4380
|
-
created: z.string().default("2026-05-
|
|
4381
|
-
updated: z.string().default("2026-05-
|
|
3596
|
+
created: z.string().default("2026-05-29T13:09:24.592Z"),
|
|
3597
|
+
updated: z.string().default("2026-05-29T13:09:24.592Z"),
|
|
4382
3598
|
guardrail_config: z.nullable(
|
|
4383
3599
|
z.union([
|
|
4384
3600
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -4388,8 +3604,11 @@ export const ResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
4388
3604
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
4389
3605
|
]),
|
|
4390
3606
|
).optional(),
|
|
4391
|
-
type:
|
|
4392
|
-
|
|
3607
|
+
type: CreateEvalResponseBodyType$inboundSchema,
|
|
3608
|
+
url: z.string(),
|
|
3609
|
+
method: CreateEvalResponseBodyMethod$inboundSchema,
|
|
3610
|
+
headers: z.record(z.string()),
|
|
3611
|
+
payload: z.record(z.any()),
|
|
4393
3612
|
key: z.string(),
|
|
4394
3613
|
}).transform((v) => {
|
|
4395
3614
|
return remap$(v, {
|
|
@@ -4398,28 +3617,181 @@ export const ResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
4398
3617
|
});
|
|
4399
3618
|
});
|
|
4400
3619
|
|
|
4401
|
-
export function
|
|
3620
|
+
export function createEvalResponseBodyHTTPFromJSON(
|
|
4402
3621
|
jsonString: string,
|
|
4403
|
-
): SafeParseResult<
|
|
3622
|
+
): SafeParseResult<CreateEvalResponseBodyHTTP, SDKValidationError> {
|
|
4404
3623
|
return safeParse(
|
|
4405
3624
|
jsonString,
|
|
4406
|
-
(x) =>
|
|
4407
|
-
`Failed to parse '
|
|
3625
|
+
(x) => CreateEvalResponseBodyHTTP$inboundSchema.parse(JSON.parse(x)),
|
|
3626
|
+
`Failed to parse 'CreateEvalResponseBodyHTTP' from JSON`,
|
|
4408
3627
|
);
|
|
4409
3628
|
}
|
|
4410
3629
|
|
|
4411
3630
|
/** @internal */
|
|
4412
|
-
export const
|
|
3631
|
+
export const CreateEvalGuardrailConfigEvalsOperator$inboundSchema:
|
|
3632
|
+
z.ZodNativeEnum<typeof CreateEvalGuardrailConfigEvalsOperator> = z.nativeEnum(
|
|
3633
|
+
CreateEvalGuardrailConfigEvalsOperator,
|
|
3634
|
+
);
|
|
3635
|
+
|
|
3636
|
+
/** @internal */
|
|
3637
|
+
export const CreateEvalGuardrailConfigEvalsNumber$inboundSchema: z.ZodType<
|
|
3638
|
+
CreateEvalGuardrailConfigEvalsNumber,
|
|
3639
|
+
z.ZodTypeDef,
|
|
3640
|
+
unknown
|
|
3641
|
+
> = z.object({
|
|
3642
|
+
enabled: z.boolean().default(true),
|
|
3643
|
+
alert_on_failure: z.boolean().default(false),
|
|
3644
|
+
type: z.literal("number"),
|
|
3645
|
+
value: z.number(),
|
|
3646
|
+
operator: CreateEvalGuardrailConfigEvalsOperator$inboundSchema,
|
|
3647
|
+
}).transform((v) => {
|
|
3648
|
+
return remap$(v, {
|
|
3649
|
+
"alert_on_failure": "alertOnFailure",
|
|
3650
|
+
});
|
|
3651
|
+
});
|
|
3652
|
+
|
|
3653
|
+
export function createEvalGuardrailConfigEvalsNumberFromJSON(
|
|
3654
|
+
jsonString: string,
|
|
3655
|
+
): SafeParseResult<CreateEvalGuardrailConfigEvalsNumber, SDKValidationError> {
|
|
3656
|
+
return safeParse(
|
|
3657
|
+
jsonString,
|
|
3658
|
+
(x) =>
|
|
3659
|
+
CreateEvalGuardrailConfigEvalsNumber$inboundSchema.parse(JSON.parse(x)),
|
|
3660
|
+
`Failed to parse 'CreateEvalGuardrailConfigEvalsNumber' from JSON`,
|
|
3661
|
+
);
|
|
3662
|
+
}
|
|
3663
|
+
|
|
3664
|
+
/** @internal */
|
|
3665
|
+
export const CreateEvalGuardrailConfigEvalsCategorical$inboundSchema: z.ZodType<
|
|
3666
|
+
CreateEvalGuardrailConfigEvalsCategorical,
|
|
3667
|
+
z.ZodTypeDef,
|
|
3668
|
+
unknown
|
|
3669
|
+
> = z.object({
|
|
3670
|
+
enabled: z.boolean().default(true),
|
|
3671
|
+
alert_on_failure: z.boolean().default(false),
|
|
3672
|
+
type: z.literal("categorical"),
|
|
3673
|
+
values: z.array(z.string()),
|
|
3674
|
+
}).transform((v) => {
|
|
3675
|
+
return remap$(v, {
|
|
3676
|
+
"alert_on_failure": "alertOnFailure",
|
|
3677
|
+
});
|
|
3678
|
+
});
|
|
3679
|
+
|
|
3680
|
+
export function createEvalGuardrailConfigEvalsCategoricalFromJSON(
|
|
3681
|
+
jsonString: string,
|
|
3682
|
+
): SafeParseResult<
|
|
3683
|
+
CreateEvalGuardrailConfigEvalsCategorical,
|
|
3684
|
+
SDKValidationError
|
|
3685
|
+
> {
|
|
3686
|
+
return safeParse(
|
|
3687
|
+
jsonString,
|
|
3688
|
+
(x) =>
|
|
3689
|
+
CreateEvalGuardrailConfigEvalsCategorical$inboundSchema.parse(
|
|
3690
|
+
JSON.parse(x),
|
|
3691
|
+
),
|
|
3692
|
+
`Failed to parse 'CreateEvalGuardrailConfigEvalsCategorical' from JSON`,
|
|
3693
|
+
);
|
|
3694
|
+
}
|
|
3695
|
+
|
|
3696
|
+
/** @internal */
|
|
3697
|
+
export const CreateEvalGuardrailConfigEvalsBoolean$inboundSchema: z.ZodType<
|
|
3698
|
+
CreateEvalGuardrailConfigEvalsBoolean,
|
|
3699
|
+
z.ZodTypeDef,
|
|
3700
|
+
unknown
|
|
3701
|
+
> = z.object({
|
|
3702
|
+
enabled: z.boolean().default(true),
|
|
3703
|
+
alert_on_failure: z.boolean().default(false),
|
|
3704
|
+
type: z.literal("boolean"),
|
|
3705
|
+
value: z.boolean(),
|
|
3706
|
+
}).transform((v) => {
|
|
3707
|
+
return remap$(v, {
|
|
3708
|
+
"alert_on_failure": "alertOnFailure",
|
|
3709
|
+
});
|
|
3710
|
+
});
|
|
3711
|
+
|
|
3712
|
+
export function createEvalGuardrailConfigEvalsBooleanFromJSON(
|
|
3713
|
+
jsonString: string,
|
|
3714
|
+
): SafeParseResult<CreateEvalGuardrailConfigEvalsBoolean, SDKValidationError> {
|
|
3715
|
+
return safeParse(
|
|
3716
|
+
jsonString,
|
|
3717
|
+
(x) =>
|
|
3718
|
+
CreateEvalGuardrailConfigEvalsBoolean$inboundSchema.parse(JSON.parse(x)),
|
|
3719
|
+
`Failed to parse 'CreateEvalGuardrailConfigEvalsBoolean' from JSON`,
|
|
3720
|
+
);
|
|
3721
|
+
}
|
|
3722
|
+
|
|
3723
|
+
/** @internal */
|
|
3724
|
+
export const ResponseBodyGuardrailConfig$inboundSchema: z.ZodType<
|
|
3725
|
+
ResponseBodyGuardrailConfig,
|
|
3726
|
+
z.ZodTypeDef,
|
|
3727
|
+
unknown
|
|
3728
|
+
> = z.union([
|
|
3729
|
+
z.lazy(() => CreateEvalGuardrailConfigEvalsBoolean$inboundSchema),
|
|
3730
|
+
z.lazy(() => CreateEvalGuardrailConfigEvalsCategorical$inboundSchema),
|
|
3731
|
+
z.lazy(() => CreateEvalGuardrailConfigEvalsNumber$inboundSchema),
|
|
3732
|
+
]);
|
|
3733
|
+
|
|
3734
|
+
export function responseBodyGuardrailConfigFromJSON(
|
|
3735
|
+
jsonString: string,
|
|
3736
|
+
): SafeParseResult<ResponseBodyGuardrailConfig, SDKValidationError> {
|
|
3737
|
+
return safeParse(
|
|
3738
|
+
jsonString,
|
|
3739
|
+
(x) => ResponseBodyGuardrailConfig$inboundSchema.parse(JSON.parse(x)),
|
|
3740
|
+
`Failed to parse 'ResponseBodyGuardrailConfig' from JSON`,
|
|
3741
|
+
);
|
|
3742
|
+
}
|
|
3743
|
+
|
|
3744
|
+
/** @internal */
|
|
3745
|
+
export const ResponseBodyType$inboundSchema: z.ZodNativeEnum<
|
|
3746
|
+
typeof ResponseBodyType
|
|
3747
|
+
> = z.nativeEnum(ResponseBodyType);
|
|
3748
|
+
|
|
3749
|
+
/** @internal */
|
|
3750
|
+
export const Json$inboundSchema: z.ZodType<Json, z.ZodTypeDef, unknown> = z
|
|
3751
|
+
.object({
|
|
3752
|
+
_id: z.string(),
|
|
3753
|
+
description: z.string(),
|
|
3754
|
+
created: z.string().default("2026-05-29T13:09:24.592Z"),
|
|
3755
|
+
updated: z.string().default("2026-05-29T13:09:24.592Z"),
|
|
3756
|
+
guardrail_config: z.nullable(
|
|
3757
|
+
z.union([
|
|
3758
|
+
z.lazy(() => CreateEvalGuardrailConfigEvalsBoolean$inboundSchema),
|
|
3759
|
+
z.lazy(() => CreateEvalGuardrailConfigEvalsCategorical$inboundSchema),
|
|
3760
|
+
z.lazy(() => CreateEvalGuardrailConfigEvalsNumber$inboundSchema),
|
|
3761
|
+
]),
|
|
3762
|
+
).optional(),
|
|
3763
|
+
type: ResponseBodyType$inboundSchema,
|
|
3764
|
+
schema: z.string(),
|
|
3765
|
+
key: z.string(),
|
|
3766
|
+
}).transform((v) => {
|
|
3767
|
+
return remap$(v, {
|
|
3768
|
+
"_id": "id",
|
|
3769
|
+
"guardrail_config": "guardrailConfig",
|
|
3770
|
+
});
|
|
3771
|
+
});
|
|
3772
|
+
|
|
3773
|
+
export function jsonFromJSON(
|
|
3774
|
+
jsonString: string,
|
|
3775
|
+
): SafeParseResult<Json, SDKValidationError> {
|
|
3776
|
+
return safeParse(
|
|
3777
|
+
jsonString,
|
|
3778
|
+
(x) => Json$inboundSchema.parse(JSON.parse(x)),
|
|
3779
|
+
`Failed to parse 'Json' from JSON`,
|
|
3780
|
+
);
|
|
3781
|
+
}
|
|
3782
|
+
|
|
3783
|
+
/** @internal */
|
|
3784
|
+
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Operator$inboundSchema:
|
|
4413
3785
|
z.ZodNativeEnum<
|
|
4414
|
-
typeof
|
|
3786
|
+
typeof CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Operator
|
|
4415
3787
|
> = z.nativeEnum(
|
|
4416
|
-
|
|
3788
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Operator,
|
|
4417
3789
|
);
|
|
4418
3790
|
|
|
4419
3791
|
/** @internal */
|
|
4420
|
-
export const
|
|
3792
|
+
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Number$inboundSchema:
|
|
4421
3793
|
z.ZodType<
|
|
4422
|
-
|
|
3794
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Number,
|
|
4423
3795
|
z.ZodTypeDef,
|
|
4424
3796
|
unknown
|
|
4425
3797
|
> = z.object({
|
|
@@ -4428,32 +3800,32 @@ export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBod
|
|
|
4428
3800
|
type: z.literal("number"),
|
|
4429
3801
|
value: z.number(),
|
|
4430
3802
|
operator:
|
|
4431
|
-
|
|
3803
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Operator$inboundSchema,
|
|
4432
3804
|
}).transform((v) => {
|
|
4433
3805
|
return remap$(v, {
|
|
4434
3806
|
"alert_on_failure": "alertOnFailure",
|
|
4435
3807
|
});
|
|
4436
3808
|
});
|
|
4437
3809
|
|
|
4438
|
-
export function
|
|
3810
|
+
export function createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1NumberFromJSON(
|
|
4439
3811
|
jsonString: string,
|
|
4440
3812
|
): SafeParseResult<
|
|
4441
|
-
|
|
3813
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Number,
|
|
4442
3814
|
SDKValidationError
|
|
4443
3815
|
> {
|
|
4444
3816
|
return safeParse(
|
|
4445
3817
|
jsonString,
|
|
4446
3818
|
(x) =>
|
|
4447
|
-
|
|
3819
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Number$inboundSchema
|
|
4448
3820
|
.parse(JSON.parse(x)),
|
|
4449
|
-
`Failed to parse '
|
|
3821
|
+
`Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Number' from JSON`,
|
|
4450
3822
|
);
|
|
4451
3823
|
}
|
|
4452
3824
|
|
|
4453
3825
|
/** @internal */
|
|
4454
|
-
export const
|
|
3826
|
+
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Categorical$inboundSchema:
|
|
4455
3827
|
z.ZodType<
|
|
4456
|
-
|
|
3828
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Categorical,
|
|
4457
3829
|
z.ZodTypeDef,
|
|
4458
3830
|
unknown
|
|
4459
3831
|
> = z.object({
|
|
@@ -4467,25 +3839,25 @@ export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBod
|
|
|
4467
3839
|
});
|
|
4468
3840
|
});
|
|
4469
3841
|
|
|
4470
|
-
export function
|
|
3842
|
+
export function createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1CategoricalFromJSON(
|
|
4471
3843
|
jsonString: string,
|
|
4472
3844
|
): SafeParseResult<
|
|
4473
|
-
|
|
3845
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Categorical,
|
|
4474
3846
|
SDKValidationError
|
|
4475
3847
|
> {
|
|
4476
3848
|
return safeParse(
|
|
4477
3849
|
jsonString,
|
|
4478
3850
|
(x) =>
|
|
4479
|
-
|
|
3851
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Categorical$inboundSchema
|
|
4480
3852
|
.parse(JSON.parse(x)),
|
|
4481
|
-
`Failed to parse '
|
|
3853
|
+
`Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Categorical' from JSON`,
|
|
4482
3854
|
);
|
|
4483
3855
|
}
|
|
4484
3856
|
|
|
4485
3857
|
/** @internal */
|
|
4486
|
-
export const
|
|
3858
|
+
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean$inboundSchema:
|
|
4487
3859
|
z.ZodType<
|
|
4488
|
-
|
|
3860
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean,
|
|
4489
3861
|
z.ZodTypeDef,
|
|
4490
3862
|
unknown
|
|
4491
3863
|
> = z.object({
|
|
@@ -4499,18 +3871,18 @@ export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBod
|
|
|
4499
3871
|
});
|
|
4500
3872
|
});
|
|
4501
3873
|
|
|
4502
|
-
export function
|
|
3874
|
+
export function createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1BooleanFromJSON(
|
|
4503
3875
|
jsonString: string,
|
|
4504
3876
|
): SafeParseResult<
|
|
4505
|
-
|
|
3877
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean,
|
|
4506
3878
|
SDKValidationError
|
|
4507
3879
|
> {
|
|
4508
3880
|
return safeParse(
|
|
4509
3881
|
jsonString,
|
|
4510
3882
|
(x) =>
|
|
4511
|
-
|
|
3883
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean$inboundSchema
|
|
4512
3884
|
.parse(JSON.parse(x)),
|
|
4513
|
-
`Failed to parse '
|
|
3885
|
+
`Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean' from JSON`,
|
|
4514
3886
|
);
|
|
4515
3887
|
}
|
|
4516
3888
|
|
|
@@ -4521,13 +3893,13 @@ export const CreateEvalLLMEvalsResponseGuardrailConfig$inboundSchema: z.ZodType<
|
|
|
4521
3893
|
unknown
|
|
4522
3894
|
> = z.union([
|
|
4523
3895
|
z.lazy(() =>
|
|
4524
|
-
|
|
3896
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean$inboundSchema
|
|
4525
3897
|
),
|
|
4526
3898
|
z.lazy(() =>
|
|
4527
|
-
|
|
3899
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Categorical$inboundSchema
|
|
4528
3900
|
),
|
|
4529
3901
|
z.lazy(() =>
|
|
4530
|
-
|
|
3902
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Number$inboundSchema
|
|
4531
3903
|
),
|
|
4532
3904
|
]);
|
|
4533
3905
|
|
|
@@ -4748,18 +4120,18 @@ export const CreateEvalLlm2$inboundSchema: z.ZodType<
|
|
|
4748
4120
|
> = z.object({
|
|
4749
4121
|
_id: z.string(),
|
|
4750
4122
|
description: z.string(),
|
|
4751
|
-
created: z.string().default("2026-05-
|
|
4752
|
-
updated: z.string().default("2026-05-
|
|
4123
|
+
created: z.string().default("2026-05-29T13:09:24.592Z"),
|
|
4124
|
+
updated: z.string().default("2026-05-29T13:09:24.592Z"),
|
|
4753
4125
|
guardrail_config: z.nullable(
|
|
4754
4126
|
z.union([
|
|
4755
4127
|
z.lazy(() =>
|
|
4756
|
-
|
|
4128
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean$inboundSchema
|
|
4757
4129
|
),
|
|
4758
4130
|
z.lazy(() =>
|
|
4759
|
-
|
|
4131
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Categorical$inboundSchema
|
|
4760
4132
|
),
|
|
4761
4133
|
z.lazy(() =>
|
|
4762
|
-
|
|
4134
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Number$inboundSchema
|
|
4763
4135
|
),
|
|
4764
4136
|
]),
|
|
4765
4137
|
).optional(),
|
|
@@ -4794,17 +4166,17 @@ export function createEvalLLM2FromJSON(
|
|
|
4794
4166
|
}
|
|
4795
4167
|
|
|
4796
4168
|
/** @internal */
|
|
4797
|
-
export const
|
|
4169
|
+
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMOperator$inboundSchema:
|
|
4798
4170
|
z.ZodNativeEnum<
|
|
4799
|
-
typeof
|
|
4171
|
+
typeof CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMOperator
|
|
4800
4172
|
> = z.nativeEnum(
|
|
4801
|
-
|
|
4173
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMOperator,
|
|
4802
4174
|
);
|
|
4803
4175
|
|
|
4804
4176
|
/** @internal */
|
|
4805
|
-
export const
|
|
4177
|
+
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumber$inboundSchema:
|
|
4806
4178
|
z.ZodType<
|
|
4807
|
-
|
|
4179
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumber,
|
|
4808
4180
|
z.ZodTypeDef,
|
|
4809
4181
|
unknown
|
|
4810
4182
|
> = z.object({
|
|
@@ -4813,32 +4185,32 @@ export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBod
|
|
|
4813
4185
|
type: z.literal("number"),
|
|
4814
4186
|
value: z.number(),
|
|
4815
4187
|
operator:
|
|
4816
|
-
|
|
4188
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMOperator$inboundSchema,
|
|
4817
4189
|
}).transform((v) => {
|
|
4818
4190
|
return remap$(v, {
|
|
4819
4191
|
"alert_on_failure": "alertOnFailure",
|
|
4820
4192
|
});
|
|
4821
4193
|
});
|
|
4822
4194
|
|
|
4823
|
-
export function
|
|
4195
|
+
export function createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumberFromJSON(
|
|
4824
4196
|
jsonString: string,
|
|
4825
4197
|
): SafeParseResult<
|
|
4826
|
-
|
|
4198
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumber,
|
|
4827
4199
|
SDKValidationError
|
|
4828
4200
|
> {
|
|
4829
4201
|
return safeParse(
|
|
4830
4202
|
jsonString,
|
|
4831
4203
|
(x) =>
|
|
4832
|
-
|
|
4204
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumber$inboundSchema
|
|
4833
4205
|
.parse(JSON.parse(x)),
|
|
4834
|
-
`Failed to parse '
|
|
4206
|
+
`Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumber' from JSON`,
|
|
4835
4207
|
);
|
|
4836
4208
|
}
|
|
4837
4209
|
|
|
4838
4210
|
/** @internal */
|
|
4839
|
-
export const
|
|
4211
|
+
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategorical$inboundSchema:
|
|
4840
4212
|
z.ZodType<
|
|
4841
|
-
|
|
4213
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategorical,
|
|
4842
4214
|
z.ZodTypeDef,
|
|
4843
4215
|
unknown
|
|
4844
4216
|
> = z.object({
|
|
@@ -4852,25 +4224,25 @@ export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBod
|
|
|
4852
4224
|
});
|
|
4853
4225
|
});
|
|
4854
4226
|
|
|
4855
|
-
export function
|
|
4227
|
+
export function createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategoricalFromJSON(
|
|
4856
4228
|
jsonString: string,
|
|
4857
4229
|
): SafeParseResult<
|
|
4858
|
-
|
|
4230
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategorical,
|
|
4859
4231
|
SDKValidationError
|
|
4860
4232
|
> {
|
|
4861
4233
|
return safeParse(
|
|
4862
4234
|
jsonString,
|
|
4863
4235
|
(x) =>
|
|
4864
|
-
|
|
4236
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategorical$inboundSchema
|
|
4865
4237
|
.parse(JSON.parse(x)),
|
|
4866
|
-
`Failed to parse '
|
|
4238
|
+
`Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategorical' from JSON`,
|
|
4867
4239
|
);
|
|
4868
4240
|
}
|
|
4869
4241
|
|
|
4870
4242
|
/** @internal */
|
|
4871
|
-
export const
|
|
4243
|
+
export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean$inboundSchema:
|
|
4872
4244
|
z.ZodType<
|
|
4873
|
-
|
|
4245
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean,
|
|
4874
4246
|
z.ZodTypeDef,
|
|
4875
4247
|
unknown
|
|
4876
4248
|
> = z.object({
|
|
@@ -4884,18 +4256,18 @@ export const CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBod
|
|
|
4884
4256
|
});
|
|
4885
4257
|
});
|
|
4886
4258
|
|
|
4887
|
-
export function
|
|
4259
|
+
export function createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBooleanFromJSON(
|
|
4888
4260
|
jsonString: string,
|
|
4889
4261
|
): SafeParseResult<
|
|
4890
|
-
|
|
4262
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean,
|
|
4891
4263
|
SDKValidationError
|
|
4892
4264
|
> {
|
|
4893
4265
|
return safeParse(
|
|
4894
4266
|
jsonString,
|
|
4895
4267
|
(x) =>
|
|
4896
|
-
|
|
4268
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean$inboundSchema
|
|
4897
4269
|
.parse(JSON.parse(x)),
|
|
4898
|
-
`Failed to parse '
|
|
4270
|
+
`Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean' from JSON`,
|
|
4899
4271
|
);
|
|
4900
4272
|
}
|
|
4901
4273
|
|
|
@@ -4906,13 +4278,13 @@ export const CreateEvalLLMEvalsGuardrailConfig$inboundSchema: z.ZodType<
|
|
|
4906
4278
|
unknown
|
|
4907
4279
|
> = z.union([
|
|
4908
4280
|
z.lazy(() =>
|
|
4909
|
-
|
|
4281
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean$inboundSchema
|
|
4910
4282
|
),
|
|
4911
4283
|
z.lazy(() =>
|
|
4912
|
-
|
|
4284
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategorical$inboundSchema
|
|
4913
4285
|
),
|
|
4914
4286
|
z.lazy(() =>
|
|
4915
|
-
|
|
4287
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumber$inboundSchema
|
|
4916
4288
|
),
|
|
4917
4289
|
]);
|
|
4918
4290
|
|
|
@@ -4966,18 +4338,18 @@ export const CreateEvalLlm1$inboundSchema: z.ZodType<
|
|
|
4966
4338
|
> = z.object({
|
|
4967
4339
|
_id: z.string(),
|
|
4968
4340
|
description: z.string(),
|
|
4969
|
-
created: z.string().default("2026-05-
|
|
4970
|
-
updated: z.string().default("2026-05-
|
|
4341
|
+
created: z.string().default("2026-05-29T13:09:24.592Z"),
|
|
4342
|
+
updated: z.string().default("2026-05-29T13:09:24.592Z"),
|
|
4971
4343
|
guardrail_config: z.nullable(
|
|
4972
4344
|
z.union([
|
|
4973
4345
|
z.lazy(() =>
|
|
4974
|
-
|
|
4346
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean$inboundSchema
|
|
4975
4347
|
),
|
|
4976
4348
|
z.lazy(() =>
|
|
4977
|
-
|
|
4349
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategorical$inboundSchema
|
|
4978
4350
|
),
|
|
4979
4351
|
z.lazy(() =>
|
|
4980
|
-
|
|
4352
|
+
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumber$inboundSchema
|
|
4981
4353
|
),
|
|
4982
4354
|
]),
|
|
4983
4355
|
).optional(),
|
|
@@ -5037,9 +4409,9 @@ export const CreateEvalResponseBody$inboundSchema: z.ZodType<
|
|
|
5037
4409
|
z.ZodTypeDef,
|
|
5038
4410
|
unknown
|
|
5039
4411
|
> = z.union([
|
|
5040
|
-
z.lazy(() =>
|
|
4412
|
+
z.lazy(() => CreateEvalResponseBodyHTTP$inboundSchema),
|
|
5041
4413
|
z.lazy(() => Ragas$inboundSchema),
|
|
5042
|
-
z.lazy(() =>
|
|
4414
|
+
z.lazy(() => Json$inboundSchema),
|
|
5043
4415
|
z.lazy(() => ResponseBodyPython$inboundSchema),
|
|
5044
4416
|
z.lazy(() => CreateEvalResponseBodyFunction$inboundSchema),
|
|
5045
4417
|
z.lazy(() => Typescript$inboundSchema),
|