@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
|
@@ -271,7 +271,7 @@ export const PostV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
271
271
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
272
272
|
.optional(),
|
|
273
273
|
updated: z.string().datetime({ offset: true }).default(
|
|
274
|
-
"2026-06-
|
|
274
|
+
"2026-06-29T09:12:35.937Z",
|
|
275
275
|
).transform(v => new Date(v)),
|
|
276
276
|
filter_type: z.literal("name"),
|
|
277
277
|
filter_value: z.string(),
|
|
@@ -316,7 +316,7 @@ export const PostV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
316
316
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
317
317
|
.optional(),
|
|
318
318
|
updated: z.string().datetime({ offset: true }).default(
|
|
319
|
-
"2026-06-
|
|
319
|
+
"2026-06-29T09:12:35.937Z",
|
|
320
320
|
).transform(v => new Date(v)),
|
|
321
321
|
filter_type: z.literal("span_type"),
|
|
322
322
|
filter_values: z.array(z.string()),
|
|
@@ -422,6 +422,11 @@ export type RetrieveAgentRequestAgentsGuardrails = {
|
|
|
422
422
|
executeOn: RetrieveAgentRequestAgentsResponseExecuteOn;
|
|
423
423
|
};
|
|
424
424
|
|
|
425
|
+
export type RetrieveAgentRequestPlugins =
|
|
426
|
+
| components.PIIRedactionPluginEn
|
|
427
|
+
| components.PIIRedactionPluginNl
|
|
428
|
+
| components.PIIRedactionPluginAuto;
|
|
429
|
+
|
|
425
430
|
export type RetrieveAgentRequestFallbacks = {
|
|
426
431
|
/**
|
|
427
432
|
* Fallback model identifier
|
|
@@ -645,6 +650,16 @@ export type RetrieveAgentRequestParameters = {
|
|
|
645
650
|
* A list of guardrails to apply to the request.
|
|
646
651
|
*/
|
|
647
652
|
guardrails?: Array<RetrieveAgentRequestAgentsGuardrails> | undefined;
|
|
653
|
+
/**
|
|
654
|
+
* 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.
|
|
655
|
+
*/
|
|
656
|
+
plugins?:
|
|
657
|
+
| Array<
|
|
658
|
+
| components.PIIRedactionPluginEn
|
|
659
|
+
| components.PIIRedactionPluginNl
|
|
660
|
+
| components.PIIRedactionPluginAuto
|
|
661
|
+
>
|
|
662
|
+
| undefined;
|
|
648
663
|
/**
|
|
649
664
|
* Array of fallback models to use if primary model fails
|
|
650
665
|
*/
|
|
@@ -880,6 +895,11 @@ export type RetrieveAgentRequestFallbackModelConfigurationGuardrails = {
|
|
|
880
895
|
executeOn: RetrieveAgentRequestFallbackModelConfigurationExecuteOn;
|
|
881
896
|
};
|
|
882
897
|
|
|
898
|
+
export type RetrieveAgentRequestFallbackModelConfigurationPlugins =
|
|
899
|
+
| components.PIIRedactionPluginEn
|
|
900
|
+
| components.PIIRedactionPluginNl
|
|
901
|
+
| components.PIIRedactionPluginAuto;
|
|
902
|
+
|
|
883
903
|
export type RetrieveAgentRequestFallbackModelConfigurationFallbacks = {
|
|
884
904
|
/**
|
|
885
905
|
* Fallback model identifier
|
|
@@ -1109,6 +1129,16 @@ export type RetrieveAgentRequestFallbackModelConfigurationParameters = {
|
|
|
1109
1129
|
guardrails?:
|
|
1110
1130
|
| Array<RetrieveAgentRequestFallbackModelConfigurationGuardrails>
|
|
1111
1131
|
| undefined;
|
|
1132
|
+
/**
|
|
1133
|
+
* 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.
|
|
1134
|
+
*/
|
|
1135
|
+
plugins?:
|
|
1136
|
+
| Array<
|
|
1137
|
+
| components.PIIRedactionPluginEn
|
|
1138
|
+
| components.PIIRedactionPluginNl
|
|
1139
|
+
| components.PIIRedactionPluginAuto
|
|
1140
|
+
>
|
|
1141
|
+
| undefined;
|
|
1112
1142
|
/**
|
|
1113
1143
|
* Array of fallback models to use if primary model fails
|
|
1114
1144
|
*/
|
|
@@ -1853,6 +1883,27 @@ export function retrieveAgentRequestAgentsGuardrailsFromJSON(
|
|
|
1853
1883
|
);
|
|
1854
1884
|
}
|
|
1855
1885
|
|
|
1886
|
+
/** @internal */
|
|
1887
|
+
export const RetrieveAgentRequestPlugins$inboundSchema: z.ZodType<
|
|
1888
|
+
RetrieveAgentRequestPlugins,
|
|
1889
|
+
z.ZodTypeDef,
|
|
1890
|
+
unknown
|
|
1891
|
+
> = z.union([
|
|
1892
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
1893
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
1894
|
+
components.PIIRedactionPluginAuto$inboundSchema,
|
|
1895
|
+
]);
|
|
1896
|
+
|
|
1897
|
+
export function retrieveAgentRequestPluginsFromJSON(
|
|
1898
|
+
jsonString: string,
|
|
1899
|
+
): SafeParseResult<RetrieveAgentRequestPlugins, SDKValidationError> {
|
|
1900
|
+
return safeParse(
|
|
1901
|
+
jsonString,
|
|
1902
|
+
(x) => RetrieveAgentRequestPlugins$inboundSchema.parse(JSON.parse(x)),
|
|
1903
|
+
`Failed to parse 'RetrieveAgentRequestPlugins' from JSON`,
|
|
1904
|
+
);
|
|
1905
|
+
}
|
|
1906
|
+
|
|
1856
1907
|
/** @internal */
|
|
1857
1908
|
export const RetrieveAgentRequestFallbacks$inboundSchema: z.ZodType<
|
|
1858
1909
|
RetrieveAgentRequestFallbacks,
|
|
@@ -2058,6 +2109,13 @@ export const RetrieveAgentRequestParameters$inboundSchema: z.ZodType<
|
|
|
2058
2109
|
guardrails: z.array(
|
|
2059
2110
|
z.lazy(() => RetrieveAgentRequestAgentsGuardrails$inboundSchema),
|
|
2060
2111
|
).optional(),
|
|
2112
|
+
plugins: z.array(
|
|
2113
|
+
z.union([
|
|
2114
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
2115
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
2116
|
+
components.PIIRedactionPluginAuto$inboundSchema,
|
|
2117
|
+
]),
|
|
2118
|
+
).optional(),
|
|
2061
2119
|
fallbacks: z.array(z.lazy(() => RetrieveAgentRequestFallbacks$inboundSchema))
|
|
2062
2120
|
.optional(),
|
|
2063
2121
|
cache: z.lazy(() => RetrieveAgentRequestCache$inboundSchema).optional(),
|
|
@@ -2479,6 +2537,34 @@ export function retrieveAgentRequestFallbackModelConfigurationGuardrailsFromJSON
|
|
|
2479
2537
|
);
|
|
2480
2538
|
}
|
|
2481
2539
|
|
|
2540
|
+
/** @internal */
|
|
2541
|
+
export const RetrieveAgentRequestFallbackModelConfigurationPlugins$inboundSchema:
|
|
2542
|
+
z.ZodType<
|
|
2543
|
+
RetrieveAgentRequestFallbackModelConfigurationPlugins,
|
|
2544
|
+
z.ZodTypeDef,
|
|
2545
|
+
unknown
|
|
2546
|
+
> = z.union([
|
|
2547
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
2548
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
2549
|
+
components.PIIRedactionPluginAuto$inboundSchema,
|
|
2550
|
+
]);
|
|
2551
|
+
|
|
2552
|
+
export function retrieveAgentRequestFallbackModelConfigurationPluginsFromJSON(
|
|
2553
|
+
jsonString: string,
|
|
2554
|
+
): SafeParseResult<
|
|
2555
|
+
RetrieveAgentRequestFallbackModelConfigurationPlugins,
|
|
2556
|
+
SDKValidationError
|
|
2557
|
+
> {
|
|
2558
|
+
return safeParse(
|
|
2559
|
+
jsonString,
|
|
2560
|
+
(x) =>
|
|
2561
|
+
RetrieveAgentRequestFallbackModelConfigurationPlugins$inboundSchema.parse(
|
|
2562
|
+
JSON.parse(x),
|
|
2563
|
+
),
|
|
2564
|
+
`Failed to parse 'RetrieveAgentRequestFallbackModelConfigurationPlugins' from JSON`,
|
|
2565
|
+
);
|
|
2566
|
+
}
|
|
2567
|
+
|
|
2482
2568
|
/** @internal */
|
|
2483
2569
|
export const RetrieveAgentRequestFallbackModelConfigurationFallbacks$inboundSchema:
|
|
2484
2570
|
z.ZodType<
|
|
@@ -2738,6 +2824,13 @@ export const RetrieveAgentRequestFallbackModelConfigurationParameters$inboundSch
|
|
|
2738
2824
|
RetrieveAgentRequestFallbackModelConfigurationGuardrails$inboundSchema
|
|
2739
2825
|
),
|
|
2740
2826
|
).optional(),
|
|
2827
|
+
plugins: z.array(
|
|
2828
|
+
z.union([
|
|
2829
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
2830
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
2831
|
+
components.PIIRedactionPluginAuto$inboundSchema,
|
|
2832
|
+
]),
|
|
2833
|
+
).optional(),
|
|
2741
2834
|
fallbacks: z.array(
|
|
2742
2835
|
z.lazy(() =>
|
|
2743
2836
|
RetrieveAgentRequestFallbackModelConfigurationFallbacks$inboundSchema
|
|
@@ -1456,7 +1456,7 @@ export const RetrieveDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
1456
1456
|
explanation: z.string().optional(),
|
|
1457
1457
|
reviewed_by_id: z.string(),
|
|
1458
1458
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1459
|
-
"2026-06-
|
|
1459
|
+
"2026-06-29T09:12:57.328Z",
|
|
1460
1460
|
).transform(v => new Date(v)),
|
|
1461
1461
|
type: z.literal("string_array"),
|
|
1462
1462
|
values: z.array(z.string()),
|
|
@@ -1554,7 +1554,7 @@ export const RetrieveDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
1554
1554
|
explanation: z.string().optional(),
|
|
1555
1555
|
reviewed_by_id: z.string(),
|
|
1556
1556
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1557
|
-
"2026-06-
|
|
1557
|
+
"2026-06-29T09:12:57.327Z",
|
|
1558
1558
|
).transform(v => new Date(v)),
|
|
1559
1559
|
type: z.literal("number"),
|
|
1560
1560
|
value: z.number(),
|
|
@@ -1642,7 +1642,7 @@ export const RetrieveDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
1642
1642
|
explanation: z.string().optional(),
|
|
1643
1643
|
reviewed_by_id: z.string(),
|
|
1644
1644
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1645
|
-
"2026-06-
|
|
1645
|
+
"2026-06-29T09:12:57.326Z",
|
|
1646
1646
|
).transform(v => new Date(v)),
|
|
1647
1647
|
type: z.literal("string"),
|
|
1648
1648
|
value: z.string(),
|
|
@@ -1721,7 +1721,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
1721
1721
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1722
1722
|
.optional(),
|
|
1723
1723
|
updated: z.string().datetime({ offset: true }).default(
|
|
1724
|
-
"2026-06-
|
|
1724
|
+
"2026-06-29T09:12:35.937Z",
|
|
1725
1725
|
).transform(v => new Date(v)),
|
|
1726
1726
|
}).transform((v) => {
|
|
1727
1727
|
return remap$(v, {
|
|
@@ -126,7 +126,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
126
126
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
127
127
|
.optional(),
|
|
128
128
|
updated: z.string().datetime({ offset: true }).default(
|
|
129
|
-
"2026-06-
|
|
129
|
+
"2026-06-29T09:12:35.937Z",
|
|
130
130
|
).transform(v => new Date(v)),
|
|
131
131
|
}).transform((v) => {
|
|
132
132
|
return remap$(v, {
|
|
@@ -118,7 +118,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
118
118
|
z.ZodTypeDef,
|
|
119
119
|
unknown
|
|
120
120
|
> = z.object({
|
|
121
|
-
_id: z.string().default("
|
|
121
|
+
_id: z.string().default("01KW9AEEMZF6DW3VJKAQ49GCPN"),
|
|
122
122
|
display_name: z.string(),
|
|
123
123
|
description: z.nullable(z.string()).optional(),
|
|
124
124
|
status: RetrieveDatasourceStatus$inboundSchema,
|
|
@@ -753,7 +753,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
753
753
|
z.ZodTypeDef,
|
|
754
754
|
unknown
|
|
755
755
|
> = z.object({
|
|
756
|
-
_id: z.string().default("
|
|
756
|
+
_id: z.string().default("tool_01KW9AEEHSKWCT10EBBQ4ANEEK"),
|
|
757
757
|
path: z.string(),
|
|
758
758
|
key: z.string(),
|
|
759
759
|
display_name: z.string().optional(),
|
|
@@ -859,7 +859,7 @@ export const RetrieveToolResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
859
859
|
z.ZodTypeDef,
|
|
860
860
|
unknown
|
|
861
861
|
> = z.object({
|
|
862
|
-
id: z.string().default("
|
|
862
|
+
id: z.string().default("01KW9AEEHRBN8PHW4VM3DVD0BM"),
|
|
863
863
|
name: z.string(),
|
|
864
864
|
description: z.string().optional(),
|
|
865
865
|
schema: z.lazy(() => RetrieveToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -917,7 +917,7 @@ export const RetrieveToolResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
917
917
|
z.ZodTypeDef,
|
|
918
918
|
unknown
|
|
919
919
|
> = z.object({
|
|
920
|
-
_id: z.string().default("
|
|
920
|
+
_id: z.string().default("tool_01KW9AEEHP3CWZ0QEFWMWQW0PD"),
|
|
921
921
|
path: z.string(),
|
|
922
922
|
key: z.string(),
|
|
923
923
|
display_name: z.string().optional(),
|
|
@@ -1108,7 +1108,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1108
1108
|
z.ZodTypeDef,
|
|
1109
1109
|
unknown
|
|
1110
1110
|
> = z.object({
|
|
1111
|
-
_id: z.string().default("
|
|
1111
|
+
_id: z.string().default("tool_01KW9AEEHKFZMB83BCXFG0FPNA"),
|
|
1112
1112
|
path: z.string(),
|
|
1113
1113
|
key: z.string(),
|
|
1114
1114
|
display_name: z.string().optional(),
|
|
@@ -1204,7 +1204,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1204
1204
|
z.ZodTypeDef,
|
|
1205
1205
|
unknown
|
|
1206
1206
|
> = z.object({
|
|
1207
|
-
_id: z.string().default("
|
|
1207
|
+
_id: z.string().default("tool_01KW9AEEHJHN57JZK8ZV08Y3T2"),
|
|
1208
1208
|
path: z.string(),
|
|
1209
1209
|
key: z.string(),
|
|
1210
1210
|
display_name: z.string().optional(),
|
|
@@ -1310,7 +1310,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1310
1310
|
z.ZodTypeDef,
|
|
1311
1311
|
unknown
|
|
1312
1312
|
> = z.object({
|
|
1313
|
-
_id: z.string().default("
|
|
1313
|
+
_id: z.string().default("tool_01KW9AEEHG40F4RPGEHY5KSKF8"),
|
|
1314
1314
|
path: z.string(),
|
|
1315
1315
|
key: z.string(),
|
|
1316
1316
|
display_name: z.string().optional(),
|
|
@@ -196,6 +196,11 @@ export type RunAgentModelConfigurationGuardrails = {
|
|
|
196
196
|
executeOn: RunAgentModelConfigurationExecuteOn;
|
|
197
197
|
};
|
|
198
198
|
|
|
199
|
+
export type RunAgentModelConfigurationPlugins =
|
|
200
|
+
| components.PIIRedactionPluginEn
|
|
201
|
+
| components.PIIRedactionPluginNl
|
|
202
|
+
| components.PIIRedactionPluginAuto;
|
|
203
|
+
|
|
199
204
|
export type RunAgentModelConfigurationFallbacks = {
|
|
200
205
|
/**
|
|
201
206
|
* Fallback model identifier
|
|
@@ -415,6 +420,16 @@ export type RunAgentModelConfigurationParameters = {
|
|
|
415
420
|
* A list of guardrails to apply to the request.
|
|
416
421
|
*/
|
|
417
422
|
guardrails?: Array<RunAgentModelConfigurationGuardrails> | undefined;
|
|
423
|
+
/**
|
|
424
|
+
* 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.
|
|
425
|
+
*/
|
|
426
|
+
plugins?:
|
|
427
|
+
| Array<
|
|
428
|
+
| components.PIIRedactionPluginEn
|
|
429
|
+
| components.PIIRedactionPluginNl
|
|
430
|
+
| components.PIIRedactionPluginAuto
|
|
431
|
+
>
|
|
432
|
+
| undefined;
|
|
418
433
|
/**
|
|
419
434
|
* Array of fallback models to use if primary model fails
|
|
420
435
|
*/
|
|
@@ -670,6 +685,11 @@ export type RunAgentFallbackModelConfigurationGuardrails = {
|
|
|
670
685
|
executeOn: RunAgentFallbackModelConfigurationExecuteOn;
|
|
671
686
|
};
|
|
672
687
|
|
|
688
|
+
export type RunAgentFallbackModelConfigurationPlugins =
|
|
689
|
+
| components.PIIRedactionPluginEn
|
|
690
|
+
| components.PIIRedactionPluginNl
|
|
691
|
+
| components.PIIRedactionPluginAuto;
|
|
692
|
+
|
|
673
693
|
export type RunAgentFallbackModelConfigurationFallbacks = {
|
|
674
694
|
/**
|
|
675
695
|
* Fallback model identifier
|
|
@@ -898,6 +918,16 @@ export type RunAgentFallbackModelConfigurationParameters = {
|
|
|
898
918
|
* A list of guardrails to apply to the request.
|
|
899
919
|
*/
|
|
900
920
|
guardrails?: Array<RunAgentFallbackModelConfigurationGuardrails> | undefined;
|
|
921
|
+
/**
|
|
922
|
+
* 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.
|
|
923
|
+
*/
|
|
924
|
+
plugins?:
|
|
925
|
+
| Array<
|
|
926
|
+
| components.PIIRedactionPluginEn
|
|
927
|
+
| components.PIIRedactionPluginNl
|
|
928
|
+
| components.PIIRedactionPluginAuto
|
|
929
|
+
>
|
|
930
|
+
| undefined;
|
|
901
931
|
/**
|
|
902
932
|
* Array of fallback models to use if primary model fails
|
|
903
933
|
*/
|
|
@@ -2352,6 +2382,33 @@ export function runAgentModelConfigurationGuardrailsToJSON(
|
|
|
2352
2382
|
);
|
|
2353
2383
|
}
|
|
2354
2384
|
|
|
2385
|
+
/** @internal */
|
|
2386
|
+
export type RunAgentModelConfigurationPlugins$Outbound =
|
|
2387
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
2388
|
+
| components.PIIRedactionPluginNl$Outbound
|
|
2389
|
+
| components.PIIRedactionPluginAuto$Outbound;
|
|
2390
|
+
|
|
2391
|
+
/** @internal */
|
|
2392
|
+
export const RunAgentModelConfigurationPlugins$outboundSchema: z.ZodType<
|
|
2393
|
+
RunAgentModelConfigurationPlugins$Outbound,
|
|
2394
|
+
z.ZodTypeDef,
|
|
2395
|
+
RunAgentModelConfigurationPlugins
|
|
2396
|
+
> = z.union([
|
|
2397
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
2398
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
2399
|
+
components.PIIRedactionPluginAuto$outboundSchema,
|
|
2400
|
+
]);
|
|
2401
|
+
|
|
2402
|
+
export function runAgentModelConfigurationPluginsToJSON(
|
|
2403
|
+
runAgentModelConfigurationPlugins: RunAgentModelConfigurationPlugins,
|
|
2404
|
+
): string {
|
|
2405
|
+
return JSON.stringify(
|
|
2406
|
+
RunAgentModelConfigurationPlugins$outboundSchema.parse(
|
|
2407
|
+
runAgentModelConfigurationPlugins,
|
|
2408
|
+
),
|
|
2409
|
+
);
|
|
2410
|
+
}
|
|
2411
|
+
|
|
2355
2412
|
/** @internal */
|
|
2356
2413
|
export type RunAgentModelConfigurationFallbacks$Outbound = {
|
|
2357
2414
|
model: string;
|
|
@@ -2576,6 +2633,13 @@ export type RunAgentModelConfigurationParameters$Outbound = {
|
|
|
2576
2633
|
parallel_tool_calls?: boolean | undefined;
|
|
2577
2634
|
modalities?: Array<string> | null | undefined;
|
|
2578
2635
|
guardrails?: Array<RunAgentModelConfigurationGuardrails$Outbound> | undefined;
|
|
2636
|
+
plugins?:
|
|
2637
|
+
| Array<
|
|
2638
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
2639
|
+
| components.PIIRedactionPluginNl$Outbound
|
|
2640
|
+
| components.PIIRedactionPluginAuto$Outbound
|
|
2641
|
+
>
|
|
2642
|
+
| undefined;
|
|
2579
2643
|
fallbacks?: Array<RunAgentModelConfigurationFallbacks$Outbound> | undefined;
|
|
2580
2644
|
cache?: RunAgentModelConfigurationCache$Outbound | undefined;
|
|
2581
2645
|
load_balancer?: RunAgentLoadBalancer1$Outbound | undefined;
|
|
@@ -2624,6 +2688,13 @@ export const RunAgentModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
2624
2688
|
guardrails: z.array(
|
|
2625
2689
|
z.lazy(() => RunAgentModelConfigurationGuardrails$outboundSchema),
|
|
2626
2690
|
).optional(),
|
|
2691
|
+
plugins: z.array(
|
|
2692
|
+
z.union([
|
|
2693
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
2694
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
2695
|
+
components.PIIRedactionPluginAuto$outboundSchema,
|
|
2696
|
+
]),
|
|
2697
|
+
).optional(),
|
|
2627
2698
|
fallbacks: z.array(
|
|
2628
2699
|
z.lazy(() => RunAgentModelConfigurationFallbacks$outboundSchema),
|
|
2629
2700
|
).optional(),
|
|
@@ -3101,6 +3172,35 @@ export function runAgentFallbackModelConfigurationGuardrailsToJSON(
|
|
|
3101
3172
|
);
|
|
3102
3173
|
}
|
|
3103
3174
|
|
|
3175
|
+
/** @internal */
|
|
3176
|
+
export type RunAgentFallbackModelConfigurationPlugins$Outbound =
|
|
3177
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
3178
|
+
| components.PIIRedactionPluginNl$Outbound
|
|
3179
|
+
| components.PIIRedactionPluginAuto$Outbound;
|
|
3180
|
+
|
|
3181
|
+
/** @internal */
|
|
3182
|
+
export const RunAgentFallbackModelConfigurationPlugins$outboundSchema:
|
|
3183
|
+
z.ZodType<
|
|
3184
|
+
RunAgentFallbackModelConfigurationPlugins$Outbound,
|
|
3185
|
+
z.ZodTypeDef,
|
|
3186
|
+
RunAgentFallbackModelConfigurationPlugins
|
|
3187
|
+
> = z.union([
|
|
3188
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
3189
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
3190
|
+
components.PIIRedactionPluginAuto$outboundSchema,
|
|
3191
|
+
]);
|
|
3192
|
+
|
|
3193
|
+
export function runAgentFallbackModelConfigurationPluginsToJSON(
|
|
3194
|
+
runAgentFallbackModelConfigurationPlugins:
|
|
3195
|
+
RunAgentFallbackModelConfigurationPlugins,
|
|
3196
|
+
): string {
|
|
3197
|
+
return JSON.stringify(
|
|
3198
|
+
RunAgentFallbackModelConfigurationPlugins$outboundSchema.parse(
|
|
3199
|
+
runAgentFallbackModelConfigurationPlugins,
|
|
3200
|
+
),
|
|
3201
|
+
);
|
|
3202
|
+
}
|
|
3203
|
+
|
|
3104
3204
|
/** @internal */
|
|
3105
3205
|
export type RunAgentFallbackModelConfigurationFallbacks$Outbound = {
|
|
3106
3206
|
model: string;
|
|
@@ -3341,6 +3441,13 @@ export type RunAgentFallbackModelConfigurationParameters$Outbound = {
|
|
|
3341
3441
|
guardrails?:
|
|
3342
3442
|
| Array<RunAgentFallbackModelConfigurationGuardrails$Outbound>
|
|
3343
3443
|
| undefined;
|
|
3444
|
+
plugins?:
|
|
3445
|
+
| Array<
|
|
3446
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
3447
|
+
| components.PIIRedactionPluginNl$Outbound
|
|
3448
|
+
| components.PIIRedactionPluginAuto$Outbound
|
|
3449
|
+
>
|
|
3450
|
+
| undefined;
|
|
3344
3451
|
fallbacks?:
|
|
3345
3452
|
| Array<RunAgentFallbackModelConfigurationFallbacks$Outbound>
|
|
3346
3453
|
| undefined;
|
|
@@ -3397,6 +3504,13 @@ export const RunAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
3397
3504
|
guardrails: z.array(
|
|
3398
3505
|
z.lazy(() => RunAgentFallbackModelConfigurationGuardrails$outboundSchema),
|
|
3399
3506
|
).optional(),
|
|
3507
|
+
plugins: z.array(
|
|
3508
|
+
z.union([
|
|
3509
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
3510
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
3511
|
+
components.PIIRedactionPluginAuto$outboundSchema,
|
|
3512
|
+
]),
|
|
3513
|
+
).optional(),
|
|
3400
3514
|
fallbacks: z.array(
|
|
3401
3515
|
z.lazy(() => RunAgentFallbackModelConfigurationFallbacks$outboundSchema),
|
|
3402
3516
|
).optional(),
|
|
@@ -3861,7 +3975,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
3861
3975
|
z.ZodTypeDef,
|
|
3862
3976
|
Tools
|
|
3863
3977
|
> = z.object({
|
|
3864
|
-
id: z.string().default("
|
|
3978
|
+
id: z.string().default("01KW9AEE92JM8FVRVZQ02KZ0A0"),
|
|
3865
3979
|
name: z.string(),
|
|
3866
3980
|
description: z.string().optional(),
|
|
3867
3981
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|
|
@@ -200,6 +200,11 @@ export type StreamRunAgentModelConfigurationGuardrails = {
|
|
|
200
200
|
executeOn: StreamRunAgentModelConfigurationExecuteOn;
|
|
201
201
|
};
|
|
202
202
|
|
|
203
|
+
export type StreamRunAgentModelConfigurationPlugins =
|
|
204
|
+
| components.PIIRedactionPluginEn
|
|
205
|
+
| components.PIIRedactionPluginNl
|
|
206
|
+
| components.PIIRedactionPluginAuto;
|
|
207
|
+
|
|
203
208
|
export type StreamRunAgentModelConfigurationFallbacks = {
|
|
204
209
|
/**
|
|
205
210
|
* Fallback model identifier
|
|
@@ -426,6 +431,16 @@ export type StreamRunAgentModelConfigurationParameters = {
|
|
|
426
431
|
* A list of guardrails to apply to the request.
|
|
427
432
|
*/
|
|
428
433
|
guardrails?: Array<StreamRunAgentModelConfigurationGuardrails> | undefined;
|
|
434
|
+
/**
|
|
435
|
+
* 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.
|
|
436
|
+
*/
|
|
437
|
+
plugins?:
|
|
438
|
+
| Array<
|
|
439
|
+
| components.PIIRedactionPluginEn
|
|
440
|
+
| components.PIIRedactionPluginNl
|
|
441
|
+
| components.PIIRedactionPluginAuto
|
|
442
|
+
>
|
|
443
|
+
| undefined;
|
|
429
444
|
/**
|
|
430
445
|
* Array of fallback models to use if primary model fails
|
|
431
446
|
*/
|
|
@@ -688,6 +703,11 @@ export type StreamRunAgentFallbackModelConfigurationGuardrails = {
|
|
|
688
703
|
executeOn: StreamRunAgentFallbackModelConfigurationExecuteOn;
|
|
689
704
|
};
|
|
690
705
|
|
|
706
|
+
export type StreamRunAgentFallbackModelConfigurationPlugins =
|
|
707
|
+
| components.PIIRedactionPluginEn
|
|
708
|
+
| components.PIIRedactionPluginNl
|
|
709
|
+
| components.PIIRedactionPluginAuto;
|
|
710
|
+
|
|
691
711
|
export type StreamRunAgentFallbackModelConfigurationFallbacks = {
|
|
692
712
|
/**
|
|
693
713
|
* Fallback model identifier
|
|
@@ -918,6 +938,16 @@ export type StreamRunAgentFallbackModelConfigurationParameters = {
|
|
|
918
938
|
guardrails?:
|
|
919
939
|
| Array<StreamRunAgentFallbackModelConfigurationGuardrails>
|
|
920
940
|
| undefined;
|
|
941
|
+
/**
|
|
942
|
+
* 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.
|
|
943
|
+
*/
|
|
944
|
+
plugins?:
|
|
945
|
+
| Array<
|
|
946
|
+
| components.PIIRedactionPluginEn
|
|
947
|
+
| components.PIIRedactionPluginNl
|
|
948
|
+
| components.PIIRedactionPluginAuto
|
|
949
|
+
>
|
|
950
|
+
| undefined;
|
|
921
951
|
/**
|
|
922
952
|
* Array of fallback models to use if primary model fails
|
|
923
953
|
*/
|
|
@@ -2326,6 +2356,34 @@ export function streamRunAgentModelConfigurationGuardrailsToJSON(
|
|
|
2326
2356
|
);
|
|
2327
2357
|
}
|
|
2328
2358
|
|
|
2359
|
+
/** @internal */
|
|
2360
|
+
export type StreamRunAgentModelConfigurationPlugins$Outbound =
|
|
2361
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
2362
|
+
| components.PIIRedactionPluginNl$Outbound
|
|
2363
|
+
| components.PIIRedactionPluginAuto$Outbound;
|
|
2364
|
+
|
|
2365
|
+
/** @internal */
|
|
2366
|
+
export const StreamRunAgentModelConfigurationPlugins$outboundSchema: z.ZodType<
|
|
2367
|
+
StreamRunAgentModelConfigurationPlugins$Outbound,
|
|
2368
|
+
z.ZodTypeDef,
|
|
2369
|
+
StreamRunAgentModelConfigurationPlugins
|
|
2370
|
+
> = z.union([
|
|
2371
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
2372
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
2373
|
+
components.PIIRedactionPluginAuto$outboundSchema,
|
|
2374
|
+
]);
|
|
2375
|
+
|
|
2376
|
+
export function streamRunAgentModelConfigurationPluginsToJSON(
|
|
2377
|
+
streamRunAgentModelConfigurationPlugins:
|
|
2378
|
+
StreamRunAgentModelConfigurationPlugins,
|
|
2379
|
+
): string {
|
|
2380
|
+
return JSON.stringify(
|
|
2381
|
+
StreamRunAgentModelConfigurationPlugins$outboundSchema.parse(
|
|
2382
|
+
streamRunAgentModelConfigurationPlugins,
|
|
2383
|
+
),
|
|
2384
|
+
);
|
|
2385
|
+
}
|
|
2386
|
+
|
|
2329
2387
|
/** @internal */
|
|
2330
2388
|
export type StreamRunAgentModelConfigurationFallbacks$Outbound = {
|
|
2331
2389
|
model: string;
|
|
@@ -2564,6 +2622,13 @@ export type StreamRunAgentModelConfigurationParameters$Outbound = {
|
|
|
2564
2622
|
guardrails?:
|
|
2565
2623
|
| Array<StreamRunAgentModelConfigurationGuardrails$Outbound>
|
|
2566
2624
|
| undefined;
|
|
2625
|
+
plugins?:
|
|
2626
|
+
| Array<
|
|
2627
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
2628
|
+
| components.PIIRedactionPluginNl$Outbound
|
|
2629
|
+
| components.PIIRedactionPluginAuto$Outbound
|
|
2630
|
+
>
|
|
2631
|
+
| undefined;
|
|
2567
2632
|
fallbacks?:
|
|
2568
2633
|
| Array<StreamRunAgentModelConfigurationFallbacks$Outbound>
|
|
2569
2634
|
| undefined;
|
|
@@ -2617,6 +2682,13 @@ export const StreamRunAgentModelConfigurationParameters$outboundSchema:
|
|
|
2617
2682
|
guardrails: z.array(
|
|
2618
2683
|
z.lazy(() => StreamRunAgentModelConfigurationGuardrails$outboundSchema),
|
|
2619
2684
|
).optional(),
|
|
2685
|
+
plugins: z.array(
|
|
2686
|
+
z.union([
|
|
2687
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
2688
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
2689
|
+
components.PIIRedactionPluginAuto$outboundSchema,
|
|
2690
|
+
]),
|
|
2691
|
+
).optional(),
|
|
2620
2692
|
fallbacks: z.array(
|
|
2621
2693
|
z.lazy(() => StreamRunAgentModelConfigurationFallbacks$outboundSchema),
|
|
2622
2694
|
).optional(),
|
|
@@ -3113,6 +3185,35 @@ export function streamRunAgentFallbackModelConfigurationGuardrailsToJSON(
|
|
|
3113
3185
|
);
|
|
3114
3186
|
}
|
|
3115
3187
|
|
|
3188
|
+
/** @internal */
|
|
3189
|
+
export type StreamRunAgentFallbackModelConfigurationPlugins$Outbound =
|
|
3190
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
3191
|
+
| components.PIIRedactionPluginNl$Outbound
|
|
3192
|
+
| components.PIIRedactionPluginAuto$Outbound;
|
|
3193
|
+
|
|
3194
|
+
/** @internal */
|
|
3195
|
+
export const StreamRunAgentFallbackModelConfigurationPlugins$outboundSchema:
|
|
3196
|
+
z.ZodType<
|
|
3197
|
+
StreamRunAgentFallbackModelConfigurationPlugins$Outbound,
|
|
3198
|
+
z.ZodTypeDef,
|
|
3199
|
+
StreamRunAgentFallbackModelConfigurationPlugins
|
|
3200
|
+
> = z.union([
|
|
3201
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
3202
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
3203
|
+
components.PIIRedactionPluginAuto$outboundSchema,
|
|
3204
|
+
]);
|
|
3205
|
+
|
|
3206
|
+
export function streamRunAgentFallbackModelConfigurationPluginsToJSON(
|
|
3207
|
+
streamRunAgentFallbackModelConfigurationPlugins:
|
|
3208
|
+
StreamRunAgentFallbackModelConfigurationPlugins,
|
|
3209
|
+
): string {
|
|
3210
|
+
return JSON.stringify(
|
|
3211
|
+
StreamRunAgentFallbackModelConfigurationPlugins$outboundSchema.parse(
|
|
3212
|
+
streamRunAgentFallbackModelConfigurationPlugins,
|
|
3213
|
+
),
|
|
3214
|
+
);
|
|
3215
|
+
}
|
|
3216
|
+
|
|
3116
3217
|
/** @internal */
|
|
3117
3218
|
export type StreamRunAgentFallbackModelConfigurationFallbacks$Outbound = {
|
|
3118
3219
|
model: string;
|
|
@@ -3356,6 +3457,13 @@ export type StreamRunAgentFallbackModelConfigurationParameters$Outbound = {
|
|
|
3356
3457
|
guardrails?:
|
|
3357
3458
|
| Array<StreamRunAgentFallbackModelConfigurationGuardrails$Outbound>
|
|
3358
3459
|
| undefined;
|
|
3460
|
+
plugins?:
|
|
3461
|
+
| Array<
|
|
3462
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
3463
|
+
| components.PIIRedactionPluginNl$Outbound
|
|
3464
|
+
| components.PIIRedactionPluginAuto$Outbound
|
|
3465
|
+
>
|
|
3466
|
+
| undefined;
|
|
3359
3467
|
fallbacks?:
|
|
3360
3468
|
| Array<StreamRunAgentFallbackModelConfigurationFallbacks$Outbound>
|
|
3361
3469
|
| undefined;
|
|
@@ -3418,6 +3526,13 @@ export const StreamRunAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
3418
3526
|
StreamRunAgentFallbackModelConfigurationGuardrails$outboundSchema
|
|
3419
3527
|
),
|
|
3420
3528
|
).optional(),
|
|
3529
|
+
plugins: z.array(
|
|
3530
|
+
z.union([
|
|
3531
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
3532
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
3533
|
+
components.PIIRedactionPluginAuto$outboundSchema,
|
|
3534
|
+
]),
|
|
3535
|
+
).optional(),
|
|
3421
3536
|
fallbacks: z.array(
|
|
3422
3537
|
z.lazy(() =>
|
|
3423
3538
|
StreamRunAgentFallbackModelConfigurationFallbacks$outboundSchema
|
|
@@ -3916,7 +4031,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
|
3916
4031
|
z.ZodTypeDef,
|
|
3917
4032
|
AgentToolInputRunTools
|
|
3918
4033
|
> = z.object({
|
|
3919
|
-
id: z.string().default("
|
|
4034
|
+
id: z.string().default("01KW9AEEAPMN6857DCTH0DV867"),
|
|
3920
4035
|
name: z.string(),
|
|
3921
4036
|
description: z.string().optional(),
|
|
3922
4037
|
schema: z.lazy(() =>
|