@orq-ai/node 4.11.0-rc.52 → 4.11.0-rc.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/funcs/knowledgeList.js +1 -0
- package/funcs/knowledgeList.js.map +1 -1
- package/funcs/memoryStoresList.js +1 -0
- package/funcs/memoryStoresList.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/createskillrequest.d.ts +6 -6
- package/models/components/createskillrequest.d.ts.map +1 -1
- package/models/components/createskillrequest.js +6 -7
- package/models/components/createskillrequest.js.map +1 -1
- package/models/components/evaluatorresponsefunction.d.ts +270 -0
- package/models/components/evaluatorresponsefunction.d.ts.map +1 -0
- package/models/components/evaluatorresponsefunction.js +491 -0
- package/models/components/evaluatorresponsefunction.js.map +1 -0
- package/models/components/evaluatorresponsehttp.d.ts +76 -0
- package/models/components/evaluatorresponsehttp.d.ts.map +1 -0
- package/models/components/evaluatorresponsehttp.js +146 -0
- package/models/components/evaluatorresponsehttp.js.map +1 -0
- package/models/components/evaluatorresponsejsonschema.d.ts +62 -0
- package/models/components/evaluatorresponsejsonschema.d.ts.map +1 -0
- package/models/components/evaluatorresponsejsonschema.js +135 -0
- package/models/components/evaluatorresponsejsonschema.js.map +1 -0
- package/models/components/evaluatorresponsellm.d.ts +140 -0
- package/models/components/evaluatorresponsellm.d.ts.map +1 -0
- package/models/components/evaluatorresponsellm.js +250 -0
- package/models/components/evaluatorresponsellm.js.map +1 -0
- package/models/components/evaluatorresponsepython.d.ts +62 -0
- package/models/components/evaluatorresponsepython.d.ts.map +1 -0
- package/models/components/evaluatorresponsepython.js +136 -0
- package/models/components/evaluatorresponsepython.js.map +1 -0
- package/models/components/evaluatorresponseragas.d.ts +80 -0
- package/models/components/evaluatorresponseragas.d.ts.map +1 -0
- package/models/components/evaluatorresponseragas.js +155 -0
- package/models/components/evaluatorresponseragas.js.map +1 -0
- package/models/components/evaluatorresponsetypescript.d.ts +62 -0
- package/models/components/evaluatorresponsetypescript.d.ts.map +1 -0
- package/models/components/evaluatorresponsetypescript.js +136 -0
- package/models/components/evaluatorresponsetypescript.js.map +1 -0
- package/models/components/guardrailrule.d.ts +2 -0
- package/models/components/guardrailrule.d.ts.map +1 -1
- package/models/components/guardrailrule.js +2 -0
- package/models/components/guardrailrule.js.map +1 -1
- package/models/components/index.d.ts +13 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +13 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invokedeploymentrequest.d.ts +36 -36
- package/models/components/invokedeploymentrequest.d.ts.map +1 -1
- package/models/components/invokedeploymentrequest.js +33 -34
- package/models/components/invokedeploymentrequest.js.map +1 -1
- package/models/components/modelsconfig.d.ts +5 -5
- package/models/components/modelsconfig.d.ts.map +1 -1
- package/models/components/modelsconfig.js +6 -6
- package/models/components/modelsconfig.js.map +1 -1
- package/models/components/piiredactionplugin.d.ts +14 -0
- package/models/components/piiredactionplugin.d.ts.map +1 -0
- package/models/components/piiredactionplugin.js +59 -0
- package/models/components/piiredactionplugin.js.map +1 -0
- package/models/components/piiredactionpluginauto.d.ts +127 -0
- package/models/components/piiredactionpluginauto.d.ts.map +1 -0
- package/models/components/piiredactionpluginauto.js +157 -0
- package/models/components/piiredactionpluginauto.js.map +1 -0
- package/models/components/piiredactionpluginen.d.ts +146 -0
- package/models/components/piiredactionpluginen.d.ts.map +1 -0
- package/models/components/piiredactionpluginen.js +168 -0
- package/models/components/piiredactionpluginen.js.map +1 -0
- package/models/components/piiredactionpluginnl.d.ts +138 -0
- package/models/components/piiredactionpluginnl.d.ts.map +1 -0
- package/models/components/piiredactionpluginnl.js +159 -0
- package/models/components/piiredactionpluginnl.js.map +1 -0
- package/models/components/plugin.d.ts +11 -0
- package/models/components/plugin.d.ts.map +1 -0
- package/models/components/plugin.js +57 -0
- package/models/components/plugin.js.map +1 -0
- package/models/components/publicpiiredactionplugin.d.ts +79 -0
- package/models/components/publicpiiredactionplugin.d.ts.map +1 -0
- package/models/components/publicpiiredactionplugin.js +86 -0
- package/models/components/publicpiiredactionplugin.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/components/textcontentpartschema.d.ts +10 -10
- package/models/components/textcontentpartschema.d.ts.map +1 -1
- package/models/components/textcontentpartschema.js +11 -11
- package/models/components/textcontentpartschema.js.map +1 -1
- package/models/operations/createagentrequest.d.ts +38 -0
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +65 -5
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts +11 -0
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +18 -3
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createcompletion.d.ts +11 -0
- package/models/operations/createcompletion.d.ts.map +1 -1
- package/models/operations/createcompletion.js +18 -3
- package/models/operations/createcompletion.js.map +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.d.ts +22 -852
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +30 -1341
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createimage.d.ts +11 -0
- package/models/operations/createimage.d.ts.map +1 -1
- package/models/operations/createimage.js +16 -1
- package/models/operations/createimage.js.map +1 -1
- package/models/operations/createprompt.d.ts +27 -8
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +42 -12
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/creatererank.d.ts +11 -0
- package/models/operations/creatererank.d.ts.map +1 -1
- package/models/operations/creatererank.js +16 -1
- package/models/operations/creatererank.js.map +1 -1
- package/models/operations/createrouterresponse.d.ts +5 -0
- package/models/operations/createrouterresponse.d.ts.map +1 -1
- package/models/operations/createrouterresponse.js +1 -0
- package/models/operations/createrouterresponse.js.map +1 -1
- package/models/operations/createtool.d.ts +8 -8
- package/models/operations/createtool.d.ts.map +1 -1
- package/models/operations/createtool.js +16 -16
- package/models/operations/createtool.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +8 -8
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +10 -10
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/getallmemorystores.d.ts +5 -0
- package/models/operations/getallmemorystores.d.ts.map +1 -1
- package/models/operations/getallmemorystores.js +2 -0
- package/models/operations/getallmemorystores.js.map +1 -1
- package/models/operations/getallprompts.d.ts +8 -0
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +16 -1
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.d.ts +20 -20
- package/models/operations/getalltools.d.ts.map +1 -1
- package/models/operations/getalltools.js +28 -26
- package/models/operations/getalltools.js.map +1 -1
- package/models/operations/getevals.d.ts +3 -833
- package/models/operations/getevals.d.ts.map +1 -1
- package/models/operations/getevals.js +16 -1314
- package/models/operations/getevals.js.map +1 -1
- package/models/operations/getoneprompt.d.ts +8 -0
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +17 -2
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +8 -0
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +17 -2
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/guardrailrulecreate.d.ts +1 -0
- package/models/operations/guardrailrulecreate.d.ts.map +1 -1
- package/models/operations/guardrailrulecreate.js +1 -0
- package/models/operations/guardrailrulecreate.js.map +1 -1
- package/models/operations/guardrailruleget.d.ts +1 -0
- package/models/operations/guardrailruleget.d.ts.map +1 -1
- package/models/operations/guardrailruleget.js +1 -0
- package/models/operations/guardrailruleget.js.map +1 -1
- package/models/operations/guardrailruleupdate.d.ts +1 -0
- package/models/operations/guardrailruleupdate.d.ts.map +1 -1
- package/models/operations/guardrailruleupdate.js +1 -0
- package/models/operations/guardrailruleupdate.js.map +1 -1
- package/models/operations/invokeeval.d.ts +7 -7
- package/models/operations/invokeeval.d.ts.map +1 -1
- package/models/operations/invokeeval.js +11 -11
- package/models/operations/invokeeval.js.map +1 -1
- package/models/operations/listagents.d.ts +16 -0
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +32 -2
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listknowledgebases.d.ts +5 -0
- package/models/operations/listknowledgebases.d.ts.map +1 -1
- package/models/operations/listknowledgebases.js +2 -0
- package/models/operations/listknowledgebases.js.map +1 -1
- package/models/operations/listpromptversions.d.ts +8 -0
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +17 -2
- package/models/operations/listpromptversions.js.map +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/retrieveagentrequest.d.ts +16 -0
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +32 -2
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.d.ts +22 -0
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +34 -4
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +22 -0
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +34 -4
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +38 -0
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +65 -5
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.d.ts +2 -832
- package/models/operations/updateeval.d.ts.map +1 -1
- package/models/operations/updateeval.js +9 -1304
- package/models/operations/updateeval.js.map +1 -1
- package/models/operations/updateprompt.d.ts +19 -0
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +33 -3
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +7 -7
- package/sdk/feedback.d.ts +2 -2
- package/sdk/feedback.js +2 -2
- package/src/funcs/knowledgeList.ts +1 -0
- package/src/funcs/memoryStoresList.ts +1 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/createskillrequest.ts +27 -20
- package/src/models/components/evaluatorresponsefunction.ts +1107 -0
- package/src/models/components/evaluatorresponsehttp.ts +247 -0
- package/src/models/components/evaluatorresponsejsonschema.ts +214 -0
- package/src/models/components/evaluatorresponsellm.ts +442 -0
- package/src/models/components/evaluatorresponsepython.ts +234 -0
- package/src/models/components/evaluatorresponseragas.ts +257 -0
- package/src/models/components/evaluatorresponsetypescript.ts +247 -0
- package/src/models/components/guardrailrule.ts +3 -0
- package/src/models/components/index.ts +13 -0
- package/src/models/components/invokedeploymentrequest.ts +119 -95
- package/src/models/components/modelsconfig.ts +11 -10
- package/src/models/components/piiredactionplugin.ts +44 -0
- package/src/models/components/piiredactionpluginauto.ts +186 -0
- package/src/models/components/piiredactionpluginen.ts +223 -0
- package/src/models/components/piiredactionpluginnl.ts +219 -0
- package/src/models/components/plugin.ts +37 -0
- package/src/models/components/publicpiiredactionplugin.ts +127 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/textcontentpartschema.ts +23 -19
- package/src/models/operations/createagentrequest.ts +199 -0
- package/src/models/operations/createchatcompletion.ts +56 -0
- package/src/models/operations/createcompletion.ts +54 -0
- 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 +673 -3909
- package/src/models/operations/createimage.ts +54 -0
- package/src/models/operations/createprompt.ts +115 -22
- package/src/models/operations/creatererank.ts +54 -0
- package/src/models/operations/createrouterresponse.ts +11 -0
- package/src/models/operations/createtool.ts +22 -24
- package/src/models/operations/deploymentgetconfig.ts +16 -18
- package/src/models/operations/getallmemorystores.ts +7 -0
- package/src/models/operations/getallprompts.ts +43 -0
- package/src/models/operations/getalltools.ts +47 -53
- package/src/models/operations/getevals.ts +29 -3214
- package/src/models/operations/getoneprompt.ts +43 -0
- package/src/models/operations/getpromptversion.ts +43 -0
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/guardrailrulecreate.ts +2 -0
- package/src/models/operations/guardrailruleget.ts +2 -0
- package/src/models/operations/guardrailruleupdate.ts +2 -0
- package/src/models/operations/invokeeval.ts +18 -18
- package/src/models/operations/listagents.ts +93 -0
- 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/listknowledgebases.ts +7 -0
- package/src/models/operations/listpromptversions.ts +43 -0
- 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/retrieveagentrequest.ts +93 -0
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +115 -1
- package/src/models/operations/streamrunagent.ts +116 -1
- package/src/models/operations/updateagent.ts +205 -0
- 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 +306 -3524
- package/src/models/operations/updateprompt.ts +97 -0
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/feedback.ts +2 -2
|
@@ -824,6 +824,11 @@ export type GetOnePromptGuardrails = {
|
|
|
824
824
|
executeOn: GetOnePromptExecuteOn;
|
|
825
825
|
};
|
|
826
826
|
|
|
827
|
+
export type GetOnePromptPlugins =
|
|
828
|
+
| components.PIIRedactionPluginEn
|
|
829
|
+
| components.PIIRedactionPluginNl
|
|
830
|
+
| components.PIIRedactionPluginAuto;
|
|
831
|
+
|
|
827
832
|
export type GetOnePromptFallbacks = {
|
|
828
833
|
/**
|
|
829
834
|
* Fallback model identifier
|
|
@@ -1404,6 +1409,16 @@ export type GetOnePromptPromptField = {
|
|
|
1404
1409
|
* A list of guardrails to apply to the request.
|
|
1405
1410
|
*/
|
|
1406
1411
|
guardrails?: Array<GetOnePromptGuardrails> | undefined;
|
|
1412
|
+
/**
|
|
1413
|
+
* Request-scoped transforms applied to the text exchanged with the model. Currently supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response.
|
|
1414
|
+
*/
|
|
1415
|
+
plugins?:
|
|
1416
|
+
| Array<
|
|
1417
|
+
| components.PIIRedactionPluginEn
|
|
1418
|
+
| components.PIIRedactionPluginNl
|
|
1419
|
+
| components.PIIRedactionPluginAuto
|
|
1420
|
+
>
|
|
1421
|
+
| undefined;
|
|
1407
1422
|
/**
|
|
1408
1423
|
* Array of fallback models to use if primary model fails
|
|
1409
1424
|
*/
|
|
@@ -2459,6 +2474,27 @@ export function getOnePromptGuardrailsFromJSON(
|
|
|
2459
2474
|
);
|
|
2460
2475
|
}
|
|
2461
2476
|
|
|
2477
|
+
/** @internal */
|
|
2478
|
+
export const GetOnePromptPlugins$inboundSchema: z.ZodType<
|
|
2479
|
+
GetOnePromptPlugins,
|
|
2480
|
+
z.ZodTypeDef,
|
|
2481
|
+
unknown
|
|
2482
|
+
> = z.union([
|
|
2483
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
2484
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
2485
|
+
components.PIIRedactionPluginAuto$inboundSchema,
|
|
2486
|
+
]);
|
|
2487
|
+
|
|
2488
|
+
export function getOnePromptPluginsFromJSON(
|
|
2489
|
+
jsonString: string,
|
|
2490
|
+
): SafeParseResult<GetOnePromptPlugins, SDKValidationError> {
|
|
2491
|
+
return safeParse(
|
|
2492
|
+
jsonString,
|
|
2493
|
+
(x) => GetOnePromptPlugins$inboundSchema.parse(JSON.parse(x)),
|
|
2494
|
+
`Failed to parse 'GetOnePromptPlugins' from JSON`,
|
|
2495
|
+
);
|
|
2496
|
+
}
|
|
2497
|
+
|
|
2462
2498
|
/** @internal */
|
|
2463
2499
|
export const GetOnePromptFallbacks$inboundSchema: z.ZodType<
|
|
2464
2500
|
GetOnePromptFallbacks,
|
|
@@ -3174,6 +3210,13 @@ export const GetOnePromptPromptField$inboundSchema: z.ZodType<
|
|
|
3174
3210
|
.optional(),
|
|
3175
3211
|
guardrails: z.array(z.lazy(() => GetOnePromptGuardrails$inboundSchema))
|
|
3176
3212
|
.optional(),
|
|
3213
|
+
plugins: z.array(
|
|
3214
|
+
z.union([
|
|
3215
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
3216
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
3217
|
+
components.PIIRedactionPluginAuto$inboundSchema,
|
|
3218
|
+
]),
|
|
3219
|
+
).optional(),
|
|
3177
3220
|
fallbacks: z.array(z.lazy(() => GetOnePromptFallbacks$inboundSchema))
|
|
3178
3221
|
.optional(),
|
|
3179
3222
|
retry: z.lazy(() => GetOnePromptRetry$inboundSchema).optional(),
|
|
@@ -836,6 +836,11 @@ export type GetPromptVersionGuardrails = {
|
|
|
836
836
|
executeOn: GetPromptVersionExecuteOn;
|
|
837
837
|
};
|
|
838
838
|
|
|
839
|
+
export type GetPromptVersionPlugins =
|
|
840
|
+
| components.PIIRedactionPluginEn
|
|
841
|
+
| components.PIIRedactionPluginNl
|
|
842
|
+
| components.PIIRedactionPluginAuto;
|
|
843
|
+
|
|
839
844
|
export type GetPromptVersionFallbacks = {
|
|
840
845
|
/**
|
|
841
846
|
* Fallback model identifier
|
|
@@ -1417,6 +1422,16 @@ export type GetPromptVersionPromptField = {
|
|
|
1417
1422
|
* A list of guardrails to apply to the request.
|
|
1418
1423
|
*/
|
|
1419
1424
|
guardrails?: Array<GetPromptVersionGuardrails> | undefined;
|
|
1425
|
+
/**
|
|
1426
|
+
* Request-scoped transforms applied to the text exchanged with the model. Currently supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response.
|
|
1427
|
+
*/
|
|
1428
|
+
plugins?:
|
|
1429
|
+
| Array<
|
|
1430
|
+
| components.PIIRedactionPluginEn
|
|
1431
|
+
| components.PIIRedactionPluginNl
|
|
1432
|
+
| components.PIIRedactionPluginAuto
|
|
1433
|
+
>
|
|
1434
|
+
| undefined;
|
|
1420
1435
|
/**
|
|
1421
1436
|
* Array of fallback models to use if primary model fails
|
|
1422
1437
|
*/
|
|
@@ -2488,6 +2503,27 @@ export function getPromptVersionGuardrailsFromJSON(
|
|
|
2488
2503
|
);
|
|
2489
2504
|
}
|
|
2490
2505
|
|
|
2506
|
+
/** @internal */
|
|
2507
|
+
export const GetPromptVersionPlugins$inboundSchema: z.ZodType<
|
|
2508
|
+
GetPromptVersionPlugins,
|
|
2509
|
+
z.ZodTypeDef,
|
|
2510
|
+
unknown
|
|
2511
|
+
> = z.union([
|
|
2512
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
2513
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
2514
|
+
components.PIIRedactionPluginAuto$inboundSchema,
|
|
2515
|
+
]);
|
|
2516
|
+
|
|
2517
|
+
export function getPromptVersionPluginsFromJSON(
|
|
2518
|
+
jsonString: string,
|
|
2519
|
+
): SafeParseResult<GetPromptVersionPlugins, SDKValidationError> {
|
|
2520
|
+
return safeParse(
|
|
2521
|
+
jsonString,
|
|
2522
|
+
(x) => GetPromptVersionPlugins$inboundSchema.parse(JSON.parse(x)),
|
|
2523
|
+
`Failed to parse 'GetPromptVersionPlugins' from JSON`,
|
|
2524
|
+
);
|
|
2525
|
+
}
|
|
2526
|
+
|
|
2491
2527
|
/** @internal */
|
|
2492
2528
|
export const GetPromptVersionFallbacks$inboundSchema: z.ZodType<
|
|
2493
2529
|
GetPromptVersionFallbacks,
|
|
@@ -3230,6 +3266,13 @@ export const GetPromptVersionPromptField$inboundSchema: z.ZodType<
|
|
|
3230
3266
|
.optional(),
|
|
3231
3267
|
guardrails: z.array(z.lazy(() => GetPromptVersionGuardrails$inboundSchema))
|
|
3232
3268
|
.optional(),
|
|
3269
|
+
plugins: z.array(
|
|
3270
|
+
z.union([
|
|
3271
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
3272
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
3273
|
+
components.PIIRedactionPluginAuto$inboundSchema,
|
|
3274
|
+
]),
|
|
3275
|
+
).optional(),
|
|
3233
3276
|
fallbacks: z.array(z.lazy(() => GetPromptVersionFallbacks$inboundSchema))
|
|
3234
3277
|
.optional(),
|
|
3235
3278
|
retry: z.lazy(() => GetPromptVersionRetry$inboundSchema).optional(),
|
|
@@ -140,7 +140,7 @@ export const GetV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
140
140
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
141
141
|
.optional(),
|
|
142
142
|
updated: z.string().datetime({ offset: true }).default(
|
|
143
|
-
"2026-06-
|
|
143
|
+
"2026-06-29T09:12:35.937Z",
|
|
144
144
|
).transform(v => new Date(v)),
|
|
145
145
|
filter_type: z.literal("name"),
|
|
146
146
|
filter_value: z.string(),
|
|
@@ -185,7 +185,7 @@ export const GetV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
185
185
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
186
186
|
.optional(),
|
|
187
187
|
updated: z.string().datetime({ offset: true }).default(
|
|
188
|
-
"2026-06-
|
|
188
|
+
"2026-06-29T09:12:35.937Z",
|
|
189
189
|
).transform(v => new Date(v)),
|
|
190
190
|
filter_type: z.literal("span_type"),
|
|
191
191
|
filter_values: z.array(z.string()),
|
|
@@ -141,7 +141,7 @@ export const GetV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
141
141
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
142
142
|
.optional(),
|
|
143
143
|
updated: z.string().datetime({ offset: true }).default(
|
|
144
|
-
"2026-06-
|
|
144
|
+
"2026-06-29T09:12:35.937Z",
|
|
145
145
|
).transform(v => new Date(v)),
|
|
146
146
|
filter_type: z.literal("name"),
|
|
147
147
|
filter_value: z.string(),
|
|
@@ -186,7 +186,7 @@ export const GetV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
186
186
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
187
187
|
.optional(),
|
|
188
188
|
updated: z.string().datetime({ offset: true }).default(
|
|
189
|
-
"2026-06-
|
|
189
|
+
"2026-06-29T09:12:35.937Z",
|
|
190
190
|
).transform(v => new Date(v)),
|
|
191
191
|
filter_type: z.literal("span_type"),
|
|
192
192
|
filter_values: z.array(z.string()),
|
|
@@ -34,6 +34,7 @@ export type GuardrailRuleCreateResponseBody = {
|
|
|
34
34
|
enabled: boolean;
|
|
35
35
|
expression?: components.Expression | undefined;
|
|
36
36
|
guardrails?: Array<components.GuardrailRef> | null | undefined;
|
|
37
|
+
plugins?: Array<components.Plugin> | null | undefined;
|
|
37
38
|
projectId: string;
|
|
38
39
|
timeout: number;
|
|
39
40
|
updatedAt: Date;
|
|
@@ -97,6 +98,7 @@ export const GuardrailRuleCreateResponseBody$inboundSchema: z.ZodType<
|
|
|
97
98
|
expression: components.Expression$inboundSchema.optional(),
|
|
98
99
|
guardrails: z.nullable(z.array(components.GuardrailRef$inboundSchema))
|
|
99
100
|
.optional(),
|
|
101
|
+
plugins: z.nullable(z.array(components.Plugin$inboundSchema)).optional(),
|
|
100
102
|
project_id: z.string(),
|
|
101
103
|
timeout: z.number().int(),
|
|
102
104
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
@@ -28,6 +28,7 @@ export type GuardrailRuleGetResponseBody = {
|
|
|
28
28
|
enabled: boolean;
|
|
29
29
|
expression?: components.Expression | undefined;
|
|
30
30
|
guardrails?: Array<components.GuardrailRef> | null | undefined;
|
|
31
|
+
plugins?: Array<components.Plugin> | null | undefined;
|
|
31
32
|
projectId: string;
|
|
32
33
|
timeout: number;
|
|
33
34
|
updatedAt: Date;
|
|
@@ -75,6 +76,7 @@ export const GuardrailRuleGetResponseBody$inboundSchema: z.ZodType<
|
|
|
75
76
|
expression: components.Expression$inboundSchema.optional(),
|
|
76
77
|
guardrails: z.nullable(z.array(components.GuardrailRef$inboundSchema))
|
|
77
78
|
.optional(),
|
|
79
|
+
plugins: z.nullable(z.array(components.Plugin$inboundSchema)).optional(),
|
|
78
80
|
project_id: z.string(),
|
|
79
81
|
timeout: z.number().int(),
|
|
80
82
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
@@ -38,6 +38,7 @@ export type GuardrailRuleUpdateResponseBody = {
|
|
|
38
38
|
enabled: boolean;
|
|
39
39
|
expression?: components.Expression | undefined;
|
|
40
40
|
guardrails?: Array<components.GuardrailRef> | null | undefined;
|
|
41
|
+
plugins?: Array<components.Plugin> | null | undefined;
|
|
41
42
|
projectId: string;
|
|
42
43
|
timeout: number;
|
|
43
44
|
updatedAt: Date;
|
|
@@ -126,6 +127,7 @@ export const GuardrailRuleUpdateResponseBody$inboundSchema: z.ZodType<
|
|
|
126
127
|
expression: components.Expression$inboundSchema.optional(),
|
|
127
128
|
guardrails: z.nullable(z.array(components.GuardrailRef$inboundSchema))
|
|
128
129
|
.optional(),
|
|
130
|
+
plugins: z.nullable(z.array(components.Plugin$inboundSchema)).optional(),
|
|
129
131
|
project_id: z.string(),
|
|
130
132
|
timeout: z.number().int(),
|
|
131
133
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
@@ -171,7 +171,7 @@ export type InvokeEvalResponseBodyEvalsResponseValue = {
|
|
|
171
171
|
value: number | boolean;
|
|
172
172
|
};
|
|
173
173
|
|
|
174
|
-
export type
|
|
174
|
+
export type ResponseBodyHTTP = {
|
|
175
175
|
type: "http_eval";
|
|
176
176
|
value?: InvokeEvalResponseBodyEvalsResponseValue | null | undefined;
|
|
177
177
|
};
|
|
@@ -223,7 +223,7 @@ export type InvokeEvalResponseBodyEvalsValue = {
|
|
|
223
223
|
jury?: ResponseBodyJury | undefined;
|
|
224
224
|
};
|
|
225
225
|
|
|
226
|
-
export type
|
|
226
|
+
export type ResponseBodyLLM = {
|
|
227
227
|
type: "llm_evaluator";
|
|
228
228
|
value: InvokeEvalResponseBodyEvalsValue | null;
|
|
229
229
|
};
|
|
@@ -327,8 +327,8 @@ export type InvokeEvalResponseBody =
|
|
|
327
327
|
| StringArray
|
|
328
328
|
| RougeN
|
|
329
329
|
| BERTScore
|
|
330
|
-
|
|
|
331
|
-
|
|
|
330
|
+
| ResponseBodyLLM
|
|
331
|
+
| ResponseBodyHTTP
|
|
332
332
|
| Structured;
|
|
333
333
|
|
|
334
334
|
/** @internal */
|
|
@@ -697,8 +697,8 @@ export function invokeEvalResponseBodyEvalsResponseValueFromJSON(
|
|
|
697
697
|
}
|
|
698
698
|
|
|
699
699
|
/** @internal */
|
|
700
|
-
export const
|
|
701
|
-
|
|
700
|
+
export const ResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
701
|
+
ResponseBodyHTTP,
|
|
702
702
|
z.ZodTypeDef,
|
|
703
703
|
unknown
|
|
704
704
|
> = z.object({
|
|
@@ -708,13 +708,13 @@ export const InvokeEvalResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
708
708
|
).optional(),
|
|
709
709
|
});
|
|
710
710
|
|
|
711
|
-
export function
|
|
711
|
+
export function responseBodyHTTPFromJSON(
|
|
712
712
|
jsonString: string,
|
|
713
|
-
): SafeParseResult<
|
|
713
|
+
): SafeParseResult<ResponseBodyHTTP, SDKValidationError> {
|
|
714
714
|
return safeParse(
|
|
715
715
|
jsonString,
|
|
716
|
-
(x) =>
|
|
717
|
-
`Failed to parse '
|
|
716
|
+
(x) => ResponseBodyHTTP$inboundSchema.parse(JSON.parse(x)),
|
|
717
|
+
`Failed to parse 'ResponseBodyHTTP' from JSON`,
|
|
718
718
|
);
|
|
719
719
|
}
|
|
720
720
|
|
|
@@ -887,8 +887,8 @@ export function invokeEvalResponseBodyEvalsValueFromJSON(
|
|
|
887
887
|
}
|
|
888
888
|
|
|
889
889
|
/** @internal */
|
|
890
|
-
export const
|
|
891
|
-
|
|
890
|
+
export const ResponseBodyLLM$inboundSchema: z.ZodType<
|
|
891
|
+
ResponseBodyLLM,
|
|
892
892
|
z.ZodTypeDef,
|
|
893
893
|
unknown
|
|
894
894
|
> = z.object({
|
|
@@ -898,13 +898,13 @@ export const InvokeEvalResponseBodyLLM$inboundSchema: z.ZodType<
|
|
|
898
898
|
),
|
|
899
899
|
});
|
|
900
900
|
|
|
901
|
-
export function
|
|
901
|
+
export function responseBodyLLMFromJSON(
|
|
902
902
|
jsonString: string,
|
|
903
|
-
): SafeParseResult<
|
|
903
|
+
): SafeParseResult<ResponseBodyLLM, SDKValidationError> {
|
|
904
904
|
return safeParse(
|
|
905
905
|
jsonString,
|
|
906
|
-
(x) =>
|
|
907
|
-
`Failed to parse '
|
|
906
|
+
(x) => ResponseBodyLLM$inboundSchema.parse(JSON.parse(x)),
|
|
907
|
+
`Failed to parse 'ResponseBodyLLM' from JSON`,
|
|
908
908
|
);
|
|
909
909
|
}
|
|
910
910
|
|
|
@@ -1247,8 +1247,8 @@ export const InvokeEvalResponseBody$inboundSchema: z.ZodType<
|
|
|
1247
1247
|
z.lazy(() => StringArray$inboundSchema),
|
|
1248
1248
|
z.lazy(() => RougeN$inboundSchema),
|
|
1249
1249
|
z.lazy(() => BERTScore$inboundSchema),
|
|
1250
|
-
z.lazy(() =>
|
|
1251
|
-
z.lazy(() =>
|
|
1250
|
+
z.lazy(() => ResponseBodyLLM$inboundSchema),
|
|
1251
|
+
z.lazy(() => ResponseBodyHTTP$inboundSchema),
|
|
1252
1252
|
z.lazy(() => Structured$inboundSchema),
|
|
1253
1253
|
]);
|
|
1254
1254
|
|
|
@@ -434,6 +434,11 @@ export type ListAgentsAgentsGuardrails = {
|
|
|
434
434
|
executeOn: ListAgentsAgentsResponseExecuteOn;
|
|
435
435
|
};
|
|
436
436
|
|
|
437
|
+
export type ListAgentsPlugins =
|
|
438
|
+
| components.PIIRedactionPluginEn
|
|
439
|
+
| components.PIIRedactionPluginNl
|
|
440
|
+
| components.PIIRedactionPluginAuto;
|
|
441
|
+
|
|
437
442
|
export type ListAgentsFallbacks = {
|
|
438
443
|
/**
|
|
439
444
|
* Fallback model identifier
|
|
@@ -649,6 +654,16 @@ export type ListAgentsParameters = {
|
|
|
649
654
|
* A list of guardrails to apply to the request.
|
|
650
655
|
*/
|
|
651
656
|
guardrails?: Array<ListAgentsAgentsGuardrails> | undefined;
|
|
657
|
+
/**
|
|
658
|
+
* Request-scoped transforms applied to the text exchanged with the model. Currently supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response.
|
|
659
|
+
*/
|
|
660
|
+
plugins?:
|
|
661
|
+
| Array<
|
|
662
|
+
| components.PIIRedactionPluginEn
|
|
663
|
+
| components.PIIRedactionPluginNl
|
|
664
|
+
| components.PIIRedactionPluginAuto
|
|
665
|
+
>
|
|
666
|
+
| undefined;
|
|
652
667
|
/**
|
|
653
668
|
* Array of fallback models to use if primary model fails
|
|
654
669
|
*/
|
|
@@ -881,6 +896,11 @@ export type ListAgentsFallbackModelConfigurationGuardrails = {
|
|
|
881
896
|
executeOn: ListAgentsFallbackModelConfigurationExecuteOn;
|
|
882
897
|
};
|
|
883
898
|
|
|
899
|
+
export type ListAgentsFallbackModelConfigurationPlugins =
|
|
900
|
+
| components.PIIRedactionPluginEn
|
|
901
|
+
| components.PIIRedactionPluginNl
|
|
902
|
+
| components.PIIRedactionPluginAuto;
|
|
903
|
+
|
|
884
904
|
export type ListAgentsFallbackModelConfigurationFallbacks = {
|
|
885
905
|
/**
|
|
886
906
|
* Fallback model identifier
|
|
@@ -1111,6 +1131,16 @@ export type ListAgentsFallbackModelConfigurationParameters = {
|
|
|
1111
1131
|
guardrails?:
|
|
1112
1132
|
| Array<ListAgentsFallbackModelConfigurationGuardrails>
|
|
1113
1133
|
| undefined;
|
|
1134
|
+
/**
|
|
1135
|
+
* Request-scoped transforms applied to the text exchanged with the model. Currently supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response.
|
|
1136
|
+
*/
|
|
1137
|
+
plugins?:
|
|
1138
|
+
| Array<
|
|
1139
|
+
| components.PIIRedactionPluginEn
|
|
1140
|
+
| components.PIIRedactionPluginNl
|
|
1141
|
+
| components.PIIRedactionPluginAuto
|
|
1142
|
+
>
|
|
1143
|
+
| undefined;
|
|
1114
1144
|
/**
|
|
1115
1145
|
* Array of fallback models to use if primary model fails
|
|
1116
1146
|
*/
|
|
@@ -1844,6 +1874,27 @@ export function listAgentsAgentsGuardrailsFromJSON(
|
|
|
1844
1874
|
);
|
|
1845
1875
|
}
|
|
1846
1876
|
|
|
1877
|
+
/** @internal */
|
|
1878
|
+
export const ListAgentsPlugins$inboundSchema: z.ZodType<
|
|
1879
|
+
ListAgentsPlugins,
|
|
1880
|
+
z.ZodTypeDef,
|
|
1881
|
+
unknown
|
|
1882
|
+
> = z.union([
|
|
1883
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
1884
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
1885
|
+
components.PIIRedactionPluginAuto$inboundSchema,
|
|
1886
|
+
]);
|
|
1887
|
+
|
|
1888
|
+
export function listAgentsPluginsFromJSON(
|
|
1889
|
+
jsonString: string,
|
|
1890
|
+
): SafeParseResult<ListAgentsPlugins, SDKValidationError> {
|
|
1891
|
+
return safeParse(
|
|
1892
|
+
jsonString,
|
|
1893
|
+
(x) => ListAgentsPlugins$inboundSchema.parse(JSON.parse(x)),
|
|
1894
|
+
`Failed to parse 'ListAgentsPlugins' from JSON`,
|
|
1895
|
+
);
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1847
1898
|
/** @internal */
|
|
1848
1899
|
export const ListAgentsFallbacks$inboundSchema: z.ZodType<
|
|
1849
1900
|
ListAgentsFallbacks,
|
|
@@ -2040,6 +2091,13 @@ export const ListAgentsParameters$inboundSchema: z.ZodType<
|
|
|
2040
2091
|
.optional(),
|
|
2041
2092
|
guardrails: z.array(z.lazy(() => ListAgentsAgentsGuardrails$inboundSchema))
|
|
2042
2093
|
.optional(),
|
|
2094
|
+
plugins: z.array(
|
|
2095
|
+
z.union([
|
|
2096
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
2097
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
2098
|
+
components.PIIRedactionPluginAuto$inboundSchema,
|
|
2099
|
+
]),
|
|
2100
|
+
).optional(),
|
|
2043
2101
|
fallbacks: z.array(z.lazy(() => ListAgentsFallbacks$inboundSchema))
|
|
2044
2102
|
.optional(),
|
|
2045
2103
|
cache: z.lazy(() => ListAgentsCache$inboundSchema).optional(),
|
|
@@ -2433,6 +2491,34 @@ export function listAgentsFallbackModelConfigurationGuardrailsFromJSON(
|
|
|
2433
2491
|
);
|
|
2434
2492
|
}
|
|
2435
2493
|
|
|
2494
|
+
/** @internal */
|
|
2495
|
+
export const ListAgentsFallbackModelConfigurationPlugins$inboundSchema:
|
|
2496
|
+
z.ZodType<
|
|
2497
|
+
ListAgentsFallbackModelConfigurationPlugins,
|
|
2498
|
+
z.ZodTypeDef,
|
|
2499
|
+
unknown
|
|
2500
|
+
> = z.union([
|
|
2501
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
2502
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
2503
|
+
components.PIIRedactionPluginAuto$inboundSchema,
|
|
2504
|
+
]);
|
|
2505
|
+
|
|
2506
|
+
export function listAgentsFallbackModelConfigurationPluginsFromJSON(
|
|
2507
|
+
jsonString: string,
|
|
2508
|
+
): SafeParseResult<
|
|
2509
|
+
ListAgentsFallbackModelConfigurationPlugins,
|
|
2510
|
+
SDKValidationError
|
|
2511
|
+
> {
|
|
2512
|
+
return safeParse(
|
|
2513
|
+
jsonString,
|
|
2514
|
+
(x) =>
|
|
2515
|
+
ListAgentsFallbackModelConfigurationPlugins$inboundSchema.parse(
|
|
2516
|
+
JSON.parse(x),
|
|
2517
|
+
),
|
|
2518
|
+
`Failed to parse 'ListAgentsFallbackModelConfigurationPlugins' from JSON`,
|
|
2519
|
+
);
|
|
2520
|
+
}
|
|
2521
|
+
|
|
2436
2522
|
/** @internal */
|
|
2437
2523
|
export const ListAgentsFallbackModelConfigurationFallbacks$inboundSchema:
|
|
2438
2524
|
z.ZodType<
|
|
@@ -2675,6 +2761,13 @@ export const ListAgentsFallbackModelConfigurationParameters$inboundSchema:
|
|
|
2675
2761
|
ListAgentsFallbackModelConfigurationGuardrails$inboundSchema
|
|
2676
2762
|
),
|
|
2677
2763
|
).optional(),
|
|
2764
|
+
plugins: z.array(
|
|
2765
|
+
z.union([
|
|
2766
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
2767
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
2768
|
+
components.PIIRedactionPluginAuto$inboundSchema,
|
|
2769
|
+
]),
|
|
2770
|
+
).optional(),
|
|
2678
2771
|
fallbacks: z.array(
|
|
2679
2772
|
z.lazy(() => ListAgentsFallbackModelConfigurationFallbacks$inboundSchema),
|
|
2680
2773
|
).optional(),
|
|
@@ -1522,7 +1522,7 @@ export const ListDatasetDatapointsEvaluations3$inboundSchema: z.ZodType<
|
|
|
1522
1522
|
explanation: z.string().optional(),
|
|
1523
1523
|
reviewed_by_id: z.string(),
|
|
1524
1524
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1525
|
-
"2026-06-
|
|
1525
|
+
"2026-06-29T09:12:57.318Z",
|
|
1526
1526
|
).transform(v => new Date(v)),
|
|
1527
1527
|
type: z.literal("string_array"),
|
|
1528
1528
|
values: z.array(z.string()),
|
|
@@ -1626,7 +1626,7 @@ export const ListDatasetDatapointsEvaluations2$inboundSchema: z.ZodType<
|
|
|
1626
1626
|
explanation: z.string().optional(),
|
|
1627
1627
|
reviewed_by_id: z.string(),
|
|
1628
1628
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1629
|
-
"2026-06-
|
|
1629
|
+
"2026-06-29T09:12:57.317Z",
|
|
1630
1630
|
).transform(v => new Date(v)),
|
|
1631
1631
|
type: z.literal("number"),
|
|
1632
1632
|
value: z.number(),
|
|
@@ -1726,7 +1726,7 @@ export const ListDatasetDatapointsEvaluations1$inboundSchema: z.ZodType<
|
|
|
1726
1726
|
explanation: z.string().optional(),
|
|
1727
1727
|
reviewed_by_id: z.string(),
|
|
1728
1728
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1729
|
-
"2026-06-
|
|
1729
|
+
"2026-06-29T09:12:57.316Z",
|
|
1730
1730
|
).transform(v => new Date(v)),
|
|
1731
1731
|
type: z.literal("string"),
|
|
1732
1732
|
value: z.string(),
|
|
@@ -1807,7 +1807,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
1807
1807
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1808
1808
|
.optional(),
|
|
1809
1809
|
updated: z.string().datetime({ offset: true }).default(
|
|
1810
|
-
"2026-06-
|
|
1810
|
+
"2026-06-29T09:12:35.937Z",
|
|
1811
1811
|
).transform(v => new Date(v)),
|
|
1812
1812
|
}).transform((v) => {
|
|
1813
1813
|
return remap$(v, {
|
|
@@ -169,7 +169,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
|
|
|
169
169
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
170
170
|
.optional(),
|
|
171
171
|
updated: z.string().datetime({ offset: true }).default(
|
|
172
|
-
"2026-06-
|
|
172
|
+
"2026-06-29T09:12:35.937Z",
|
|
173
173
|
).transform(v => new Date(v)),
|
|
174
174
|
}).transform((v) => {
|
|
175
175
|
return remap$(v, {
|
|
@@ -182,7 +182,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
|
|
|
182
182
|
z.ZodTypeDef,
|
|
183
183
|
unknown
|
|
184
184
|
> = z.object({
|
|
185
|
-
_id: z.string().default("
|
|
185
|
+
_id: z.string().default("01KW9AEEMX8A1G72MDNY62HG8E"),
|
|
186
186
|
display_name: z.string(),
|
|
187
187
|
description: z.nullable(z.string()).optional(),
|
|
188
188
|
status: ListDatasourcesStatus$inboundSchema,
|
|
@@ -48,6 +48,10 @@ export type ListKnowledgeBasesRequest = {
|
|
|
48
48
|
* Filter knowledge bases by type
|
|
49
49
|
*/
|
|
50
50
|
type?: ListKnowledgeBasesQueryParamType | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Filter knowledge bases by project ID
|
|
53
|
+
*/
|
|
54
|
+
projectId?: string | undefined;
|
|
51
55
|
};
|
|
52
56
|
|
|
53
57
|
export const ListKnowledgeBasesObject = {
|
|
@@ -316,6 +320,7 @@ export type ListKnowledgeBasesRequest$Outbound = {
|
|
|
316
320
|
search?: string | undefined;
|
|
317
321
|
updated_by?: string | undefined;
|
|
318
322
|
type?: string | undefined;
|
|
323
|
+
project_id?: string | undefined;
|
|
319
324
|
};
|
|
320
325
|
|
|
321
326
|
/** @internal */
|
|
@@ -330,11 +335,13 @@ export const ListKnowledgeBasesRequest$outboundSchema: z.ZodType<
|
|
|
330
335
|
search: z.string().optional(),
|
|
331
336
|
updatedBy: z.string().optional(),
|
|
332
337
|
type: ListKnowledgeBasesQueryParamType$outboundSchema.optional(),
|
|
338
|
+
projectId: z.string().optional(),
|
|
333
339
|
}).transform((v) => {
|
|
334
340
|
return remap$(v, {
|
|
335
341
|
startingAfter: "starting_after",
|
|
336
342
|
endingBefore: "ending_before",
|
|
337
343
|
updatedBy: "updated_by",
|
|
344
|
+
projectId: "project_id",
|
|
338
345
|
});
|
|
339
346
|
});
|
|
340
347
|
|
|
@@ -852,6 +852,11 @@ export type ListPromptVersionsGuardrails = {
|
|
|
852
852
|
executeOn: ListPromptVersionsExecuteOn;
|
|
853
853
|
};
|
|
854
854
|
|
|
855
|
+
export type ListPromptVersionsPlugins =
|
|
856
|
+
| components.PIIRedactionPluginEn
|
|
857
|
+
| components.PIIRedactionPluginNl
|
|
858
|
+
| components.PIIRedactionPluginAuto;
|
|
859
|
+
|
|
855
860
|
export type ListPromptVersionsFallbacks = {
|
|
856
861
|
/**
|
|
857
862
|
* Fallback model identifier
|
|
@@ -1432,6 +1437,16 @@ export type ListPromptVersionsPromptField = {
|
|
|
1432
1437
|
* A list of guardrails to apply to the request.
|
|
1433
1438
|
*/
|
|
1434
1439
|
guardrails?: Array<ListPromptVersionsGuardrails> | undefined;
|
|
1440
|
+
/**
|
|
1441
|
+
* Request-scoped transforms applied to the text exchanged with the model. Currently supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response.
|
|
1442
|
+
*/
|
|
1443
|
+
plugins?:
|
|
1444
|
+
| Array<
|
|
1445
|
+
| components.PIIRedactionPluginEn
|
|
1446
|
+
| components.PIIRedactionPluginNl
|
|
1447
|
+
| components.PIIRedactionPluginAuto
|
|
1448
|
+
>
|
|
1449
|
+
| undefined;
|
|
1435
1450
|
/**
|
|
1436
1451
|
* Array of fallback models to use if primary model fails
|
|
1437
1452
|
*/
|
|
@@ -2521,6 +2536,27 @@ export function listPromptVersionsGuardrailsFromJSON(
|
|
|
2521
2536
|
);
|
|
2522
2537
|
}
|
|
2523
2538
|
|
|
2539
|
+
/** @internal */
|
|
2540
|
+
export const ListPromptVersionsPlugins$inboundSchema: z.ZodType<
|
|
2541
|
+
ListPromptVersionsPlugins,
|
|
2542
|
+
z.ZodTypeDef,
|
|
2543
|
+
unknown
|
|
2544
|
+
> = z.union([
|
|
2545
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
2546
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
2547
|
+
components.PIIRedactionPluginAuto$inboundSchema,
|
|
2548
|
+
]);
|
|
2549
|
+
|
|
2550
|
+
export function listPromptVersionsPluginsFromJSON(
|
|
2551
|
+
jsonString: string,
|
|
2552
|
+
): SafeParseResult<ListPromptVersionsPlugins, SDKValidationError> {
|
|
2553
|
+
return safeParse(
|
|
2554
|
+
jsonString,
|
|
2555
|
+
(x) => ListPromptVersionsPlugins$inboundSchema.parse(JSON.parse(x)),
|
|
2556
|
+
`Failed to parse 'ListPromptVersionsPlugins' from JSON`,
|
|
2557
|
+
);
|
|
2558
|
+
}
|
|
2559
|
+
|
|
2524
2560
|
/** @internal */
|
|
2525
2561
|
export const ListPromptVersionsFallbacks$inboundSchema: z.ZodType<
|
|
2526
2562
|
ListPromptVersionsFallbacks,
|
|
@@ -3280,6 +3316,13 @@ export const ListPromptVersionsPromptField$inboundSchema: z.ZodType<
|
|
|
3280
3316
|
.optional(),
|
|
3281
3317
|
guardrails: z.array(z.lazy(() => ListPromptVersionsGuardrails$inboundSchema))
|
|
3282
3318
|
.optional(),
|
|
3319
|
+
plugins: z.array(
|
|
3320
|
+
z.union([
|
|
3321
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
3322
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
3323
|
+
components.PIIRedactionPluginAuto$inboundSchema,
|
|
3324
|
+
]),
|
|
3325
|
+
).optional(),
|
|
3283
3326
|
fallbacks: z.array(z.lazy(() => ListPromptVersionsFallbacks$inboundSchema))
|
|
3284
3327
|
.optional(),
|
|
3285
3328
|
retry: z.lazy(() => ListPromptVersionsRetry$inboundSchema).optional(),
|
|
@@ -318,7 +318,7 @@ export const PatchV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
318
318
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
319
319
|
.optional(),
|
|
320
320
|
updated: z.string().datetime({ offset: true }).default(
|
|
321
|
-
"2026-06-
|
|
321
|
+
"2026-06-29T09:12:35.937Z",
|
|
322
322
|
).transform(v => new Date(v)),
|
|
323
323
|
filter_type: z.literal("name"),
|
|
324
324
|
filter_value: z.string(),
|
|
@@ -364,7 +364,7 @@ export const PatchV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
364
364
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
365
365
|
.optional(),
|
|
366
366
|
updated: z.string().datetime({ offset: true }).default(
|
|
367
|
-
"2026-06-
|
|
367
|
+
"2026-06-29T09:12:35.937Z",
|
|
368
368
|
).transform(v => new Date(v)),
|
|
369
369
|
filter_type: z.literal("span_type"),
|
|
370
370
|
filter_values: z.array(z.string()),
|
|
@@ -193,7 +193,7 @@ export const RequestBody3$outboundSchema: z.ZodType<
|
|
|
193
193
|
source: PostV2FeedbackEvaluationRequestBodyFeedbackSource$outboundSchema
|
|
194
194
|
.default("orq"),
|
|
195
195
|
explanation: z.string().optional(),
|
|
196
|
-
reviewedAt: z.date().default(() => new Date("2026-06-
|
|
196
|
+
reviewedAt: z.date().default(() => new Date("2026-06-29T09:12:57.481Z"))
|
|
197
197
|
.transform(v => v.toISOString()),
|
|
198
198
|
type: z.literal("string_array"),
|
|
199
199
|
values: z.array(z.string()),
|
|
@@ -247,7 +247,7 @@ export const PostV2FeedbackEvaluationRequestBody2$outboundSchema: z.ZodType<
|
|
|
247
247
|
"orq",
|
|
248
248
|
),
|
|
249
249
|
explanation: z.string().optional(),
|
|
250
|
-
reviewedAt: z.date().default(() => new Date("2026-06-
|
|
250
|
+
reviewedAt: z.date().default(() => new Date("2026-06-29T09:12:57.481Z"))
|
|
251
251
|
.transform(v => v.toISOString()),
|
|
252
252
|
type: z.literal("number"),
|
|
253
253
|
value: z.number(),
|
|
@@ -305,7 +305,7 @@ export const PostV2FeedbackEvaluationRequestBody1$outboundSchema: z.ZodType<
|
|
|
305
305
|
humanReviewId: z.string().optional(),
|
|
306
306
|
source: RequestBodySource$outboundSchema.default("orq"),
|
|
307
307
|
explanation: z.string().optional(),
|
|
308
|
-
reviewedAt: z.date().default(() => new Date("2026-06-
|
|
308
|
+
reviewedAt: z.date().default(() => new Date("2026-06-29T09:12:57.480Z"))
|
|
309
309
|
.transform(v => v.toISOString()),
|
|
310
310
|
type: z.literal("string"),
|
|
311
311
|
value: z.string(),
|