@orq-ai/node 4.11.0-rc.51 → 4.11.0-rc.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +51 -36
- package/funcs/knowledgeList.js +1 -0
- package/funcs/knowledgeList.js.map +1 -1
- package/funcs/managementKeysCreate.d.ts +17 -0
- package/funcs/managementKeysCreate.d.ts.map +1 -0
- package/funcs/managementKeysCreate.js +115 -0
- package/funcs/managementKeysCreate.js.map +1 -0
- package/funcs/managementKeysDelete.d.ts +18 -0
- package/funcs/managementKeysDelete.d.ts.map +1 -0
- package/funcs/managementKeysDelete.js +118 -0
- package/funcs/managementKeysDelete.js.map +1 -0
- package/funcs/managementKeysGet.d.ts +18 -0
- package/funcs/managementKeysGet.d.ts.map +1 -0
- package/funcs/managementKeysGet.js +118 -0
- package/funcs/managementKeysGet.js.map +1 -0
- package/funcs/managementKeysList.d.ts +18 -0
- package/funcs/managementKeysList.d.ts.map +1 -0
- package/funcs/managementKeysList.js +124 -0
- package/funcs/managementKeysList.js.map +1 -0
- package/funcs/managementKeysListCapabilities.d.ts +17 -0
- package/funcs/managementKeysListCapabilities.d.ts.map +1 -0
- package/funcs/managementKeysListCapabilities.js +105 -0
- package/funcs/managementKeysListCapabilities.js.map +1 -0
- package/funcs/managementKeysUpdate.d.ts +18 -0
- package/funcs/managementKeysUpdate.d.ts.map +1 -0
- package/funcs/managementKeysUpdate.js +121 -0
- package/funcs/managementKeysUpdate.js.map +1 -0
- package/funcs/memoryStoresList.js +1 -0
- package/funcs/memoryStoresList.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/createmanagementkeyrequest.d.ts +42 -0
- package/models/components/createmanagementkeyrequest.d.ts.map +1 -0
- package/models/components/createmanagementkeyrequest.js +59 -0
- package/models/components/createmanagementkeyrequest.js.map +1 -0
- package/models/components/createmanagementkeyresponse.d.ts +21 -0
- package/models/components/createmanagementkeyresponse.d.ts.map +1 -0
- package/models/components/createmanagementkeyresponse.js +57 -0
- package/models/components/createmanagementkeyresponse.js.map +1 -0
- package/models/components/deletemanagementkeyresponse.d.ts +8 -0
- package/models/components/deletemanagementkeyresponse.d.ts.map +1 -0
- package/models/components/deletemanagementkeyresponse.js +48 -0
- package/models/components/deletemanagementkeyresponse.js.map +1 -0
- package/models/components/domain.d.ts +5 -12
- package/models/components/domain.d.ts.map +1 -1
- package/models/components/domain.js +0 -2
- package/models/components/domain.js.map +1 -1
- package/models/components/getmanagementkeyresponse.d.ts +14 -0
- package/models/components/getmanagementkeyresponse.d.ts.map +1 -0
- package/models/components/getmanagementkeyresponse.js +56 -0
- package/models/components/getmanagementkeyresponse.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 +16 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +16 -0
- package/models/components/index.js.map +1 -1
- package/models/components/listmanagementcapabilitiesresponse.d.ts +14 -0
- package/models/components/listmanagementcapabilitiesresponse.d.ts.map +1 -0
- package/models/components/listmanagementcapabilitiesresponse.js +51 -0
- package/models/components/listmanagementcapabilitiesresponse.js.map +1 -0
- package/models/components/listmanagementkeysresponse.d.ts +28 -0
- package/models/components/listmanagementkeysresponse.d.ts.map +1 -0
- package/models/components/listmanagementkeysresponse.js +58 -0
- package/models/components/listmanagementkeysresponse.js.map +1 -0
- package/models/components/managementkey.d.ts +80 -0
- package/models/components/managementkey.d.ts.map +1 -0
- package/models/components/managementkey.js +77 -0
- package/models/components/managementkey.js.map +1 -0
- package/models/components/managementkeystatus.d.ts +14 -0
- package/models/components/managementkeystatus.d.ts.map +1 -0
- package/models/components/managementkeystatus.js +51 -0
- package/models/components/managementkeystatus.js.map +1 -0
- package/models/components/managementpermissionmode.d.ts +14 -0
- package/models/components/managementpermissionmode.d.ts.map +1 -0
- package/models/components/managementpermissionmode.js +51 -0
- package/models/components/managementpermissionmode.js.map +1 -0
- 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/piiredactionpluginen.d.ts +132 -0
- package/models/components/piiredactionpluginen.d.ts.map +1 -0
- package/models/components/piiredactionpluginen.js +159 -0
- package/models/components/piiredactionpluginen.js.map +1 -0
- package/models/components/piiredactionpluginnl.d.ts +124 -0
- package/models/components/piiredactionpluginnl.d.ts.map +1 -0
- package/models/components/piiredactionpluginnl.js +149 -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/updatemanagementkeyrequest.d.ts +47 -0
- package/models/components/updatemanagementkeyrequest.d.ts.map +1 -0
- package/models/components/updatemanagementkeyrequest.js +63 -0
- package/models/components/updatemanagementkeyrequest.js.map +1 -0
- package/models/components/updatemanagementkeyresponse.d.ts +14 -0
- package/models/components/updatemanagementkeyresponse.d.ts.map +1 -0
- package/models/components/updatemanagementkeyresponse.js +56 -0
- package/models/components/updatemanagementkeyresponse.js.map +1 -0
- package/models/operations/createagentrequest.d.ts +38 -0
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +57 -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 +16 -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 +16 -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.js +16 -16
- package/models/operations/createimage.d.ts +11 -0
- package/models/operations/createimage.d.ts.map +1 -1
- package/models/operations/createimage.js +14 -1
- package/models/operations/createimage.js.map +1 -1
- package/models/operations/createprompt.d.ts +19 -0
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +29 -3
- 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 +14 -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.js +6 -6
- 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 +14 -1
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getoneprompt.d.ts +8 -0
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +15 -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 +15 -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/index.d.ts +4 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +4 -0
- package/models/operations/index.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 +28 -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 +15 -2
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/managementkeydelete.d.ts +15 -0
- package/models/operations/managementkeydelete.d.ts.map +1 -0
- package/models/operations/managementkeydelete.js +54 -0
- package/models/operations/managementkeydelete.js.map +1 -0
- package/models/operations/managementkeyget.d.ts +15 -0
- package/models/operations/managementkeyget.d.ts.map +1 -0
- package/models/operations/managementkeyget.js +54 -0
- package/models/operations/managementkeyget.js.map +1 -0
- package/models/operations/managementkeylist.d.ts +53 -0
- package/models/operations/managementkeylist.d.ts.map +1 -0
- package/models/operations/managementkeylist.js +63 -0
- package/models/operations/managementkeylist.js.map +1 -0
- package/models/operations/managementkeyupdate.d.ts +18 -0
- package/models/operations/managementkeyupdate.d.ts.map +1 -0
- package/models/operations/managementkeyupdate.js +57 -0
- package/models/operations/managementkeyupdate.js.map +1 -0
- 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 +28 -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 +30 -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 +30 -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 +57 -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.js +16 -16
- package/models/operations/updateprompt.d.ts +19 -0
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +29 -3
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +5 -5
- package/sdk/feedback.d.ts +4 -1
- package/sdk/feedback.d.ts.map +1 -1
- package/sdk/feedback.js +4 -1
- package/sdk/feedback.js.map +1 -1
- package/sdk/managementkeys.d.ts +48 -0
- package/sdk/managementkeys.d.ts.map +1 -0
- package/sdk/managementkeys.js +72 -0
- package/sdk/managementkeys.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/knowledgeList.ts +1 -0
- package/src/funcs/managementKeysCreate.ts +163 -0
- package/src/funcs/managementKeysDelete.ts +172 -0
- package/src/funcs/managementKeysGet.ts +171 -0
- package/src/funcs/managementKeysList.ts +175 -0
- package/src/funcs/managementKeysListCapabilities.ts +144 -0
- package/src/funcs/managementKeysUpdate.ts +175 -0
- package/src/funcs/memoryStoresList.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/createmanagementkeyrequest.ts +69 -0
- package/src/models/components/createmanagementkeyresponse.ts +48 -0
- package/src/models/components/deletemanagementkeyresponse.ts +27 -0
- package/src/models/components/domain.ts +5 -14
- package/src/models/components/getmanagementkeyresponse.ts +40 -0
- package/src/models/components/guardrailrule.ts +3 -0
- package/src/models/components/index.ts +16 -0
- package/src/models/components/listmanagementcapabilitiesresponse.ts +36 -0
- package/src/models/components/listmanagementkeysresponse.ts +56 -0
- package/src/models/components/managementkey.ts +132 -0
- package/src/models/components/managementkeystatus.ts +23 -0
- package/src/models/components/managementpermissionmode.ts +25 -0
- package/src/models/components/piiredactionplugin.ts +44 -0
- package/src/models/components/piiredactionpluginen.ts +193 -0
- package/src/models/components/piiredactionpluginnl.ts +197 -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/updatemanagementkeyrequest.ts +80 -0
- package/src/models/components/updatemanagementkeyresponse.ts +40 -0
- package/src/models/operations/createagentrequest.ts +167 -0
- package/src/models/operations/createchatcompletion.ts +47 -0
- package/src/models/operations/createcompletion.ts +45 -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 +16 -16
- package/src/models/operations/createimage.ts +45 -0
- package/src/models/operations/createprompt.ts +81 -0
- package/src/models/operations/creatererank.ts +45 -0
- package/src/models/operations/createrouterresponse.ts +11 -0
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/getallmemorystores.ts +7 -0
- package/src/models/operations/getallprompts.ts +36 -0
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getoneprompt.ts +36 -0
- package/src/models/operations/getpromptversion.ts +36 -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/index.ts +4 -0
- package/src/models/operations/listagents.ts +79 -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 +36 -0
- package/src/models/operations/managementkeydelete.ts +39 -0
- package/src/models/operations/managementkeyget.ts +39 -0
- package/src/models/operations/managementkeylist.ts +85 -0
- package/src/models/operations/managementkeyupdate.ts +45 -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 +79 -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 +97 -1
- package/src/models/operations/streamrunagent.ts +98 -1
- package/src/models/operations/updateagent.ts +173 -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 +16 -16
- package/src/models/operations/updateprompt.ts +81 -0
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/feedback.ts +4 -1
- package/src/sdk/managementkeys.ts +116 -0
- package/src/sdk/sdk.ts +6 -0
|
@@ -422,6 +422,10 @@ export type RetrieveAgentRequestAgentsGuardrails = {
|
|
|
422
422
|
executeOn: RetrieveAgentRequestAgentsResponseExecuteOn;
|
|
423
423
|
};
|
|
424
424
|
|
|
425
|
+
export type RetrieveAgentRequestPlugins =
|
|
426
|
+
| components.PIIRedactionPluginEn
|
|
427
|
+
| components.PIIRedactionPluginNl;
|
|
428
|
+
|
|
425
429
|
export type RetrieveAgentRequestFallbacks = {
|
|
426
430
|
/**
|
|
427
431
|
* Fallback model identifier
|
|
@@ -645,6 +649,12 @@ export type RetrieveAgentRequestParameters = {
|
|
|
645
649
|
* A list of guardrails to apply to the request.
|
|
646
650
|
*/
|
|
647
651
|
guardrails?: Array<RetrieveAgentRequestAgentsGuardrails> | undefined;
|
|
652
|
+
/**
|
|
653
|
+
* 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.
|
|
654
|
+
*/
|
|
655
|
+
plugins?:
|
|
656
|
+
| Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
|
|
657
|
+
| undefined;
|
|
648
658
|
/**
|
|
649
659
|
* Array of fallback models to use if primary model fails
|
|
650
660
|
*/
|
|
@@ -880,6 +890,10 @@ export type RetrieveAgentRequestFallbackModelConfigurationGuardrails = {
|
|
|
880
890
|
executeOn: RetrieveAgentRequestFallbackModelConfigurationExecuteOn;
|
|
881
891
|
};
|
|
882
892
|
|
|
893
|
+
export type RetrieveAgentRequestFallbackModelConfigurationPlugins =
|
|
894
|
+
| components.PIIRedactionPluginEn
|
|
895
|
+
| components.PIIRedactionPluginNl;
|
|
896
|
+
|
|
883
897
|
export type RetrieveAgentRequestFallbackModelConfigurationFallbacks = {
|
|
884
898
|
/**
|
|
885
899
|
* Fallback model identifier
|
|
@@ -1109,6 +1123,12 @@ export type RetrieveAgentRequestFallbackModelConfigurationParameters = {
|
|
|
1109
1123
|
guardrails?:
|
|
1110
1124
|
| Array<RetrieveAgentRequestFallbackModelConfigurationGuardrails>
|
|
1111
1125
|
| undefined;
|
|
1126
|
+
/**
|
|
1127
|
+
* 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.
|
|
1128
|
+
*/
|
|
1129
|
+
plugins?:
|
|
1130
|
+
| Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
|
|
1131
|
+
| undefined;
|
|
1112
1132
|
/**
|
|
1113
1133
|
* Array of fallback models to use if primary model fails
|
|
1114
1134
|
*/
|
|
@@ -1853,6 +1873,26 @@ export function retrieveAgentRequestAgentsGuardrailsFromJSON(
|
|
|
1853
1873
|
);
|
|
1854
1874
|
}
|
|
1855
1875
|
|
|
1876
|
+
/** @internal */
|
|
1877
|
+
export const RetrieveAgentRequestPlugins$inboundSchema: z.ZodType<
|
|
1878
|
+
RetrieveAgentRequestPlugins,
|
|
1879
|
+
z.ZodTypeDef,
|
|
1880
|
+
unknown
|
|
1881
|
+
> = z.union([
|
|
1882
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
1883
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
1884
|
+
]);
|
|
1885
|
+
|
|
1886
|
+
export function retrieveAgentRequestPluginsFromJSON(
|
|
1887
|
+
jsonString: string,
|
|
1888
|
+
): SafeParseResult<RetrieveAgentRequestPlugins, SDKValidationError> {
|
|
1889
|
+
return safeParse(
|
|
1890
|
+
jsonString,
|
|
1891
|
+
(x) => RetrieveAgentRequestPlugins$inboundSchema.parse(JSON.parse(x)),
|
|
1892
|
+
`Failed to parse 'RetrieveAgentRequestPlugins' from JSON`,
|
|
1893
|
+
);
|
|
1894
|
+
}
|
|
1895
|
+
|
|
1856
1896
|
/** @internal */
|
|
1857
1897
|
export const RetrieveAgentRequestFallbacks$inboundSchema: z.ZodType<
|
|
1858
1898
|
RetrieveAgentRequestFallbacks,
|
|
@@ -2058,6 +2098,12 @@ export const RetrieveAgentRequestParameters$inboundSchema: z.ZodType<
|
|
|
2058
2098
|
guardrails: z.array(
|
|
2059
2099
|
z.lazy(() => RetrieveAgentRequestAgentsGuardrails$inboundSchema),
|
|
2060
2100
|
).optional(),
|
|
2101
|
+
plugins: z.array(
|
|
2102
|
+
z.union([
|
|
2103
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
2104
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
2105
|
+
]),
|
|
2106
|
+
).optional(),
|
|
2061
2107
|
fallbacks: z.array(z.lazy(() => RetrieveAgentRequestFallbacks$inboundSchema))
|
|
2062
2108
|
.optional(),
|
|
2063
2109
|
cache: z.lazy(() => RetrieveAgentRequestCache$inboundSchema).optional(),
|
|
@@ -2479,6 +2525,33 @@ export function retrieveAgentRequestFallbackModelConfigurationGuardrailsFromJSON
|
|
|
2479
2525
|
);
|
|
2480
2526
|
}
|
|
2481
2527
|
|
|
2528
|
+
/** @internal */
|
|
2529
|
+
export const RetrieveAgentRequestFallbackModelConfigurationPlugins$inboundSchema:
|
|
2530
|
+
z.ZodType<
|
|
2531
|
+
RetrieveAgentRequestFallbackModelConfigurationPlugins,
|
|
2532
|
+
z.ZodTypeDef,
|
|
2533
|
+
unknown
|
|
2534
|
+
> = z.union([
|
|
2535
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
2536
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
2537
|
+
]);
|
|
2538
|
+
|
|
2539
|
+
export function retrieveAgentRequestFallbackModelConfigurationPluginsFromJSON(
|
|
2540
|
+
jsonString: string,
|
|
2541
|
+
): SafeParseResult<
|
|
2542
|
+
RetrieveAgentRequestFallbackModelConfigurationPlugins,
|
|
2543
|
+
SDKValidationError
|
|
2544
|
+
> {
|
|
2545
|
+
return safeParse(
|
|
2546
|
+
jsonString,
|
|
2547
|
+
(x) =>
|
|
2548
|
+
RetrieveAgentRequestFallbackModelConfigurationPlugins$inboundSchema.parse(
|
|
2549
|
+
JSON.parse(x),
|
|
2550
|
+
),
|
|
2551
|
+
`Failed to parse 'RetrieveAgentRequestFallbackModelConfigurationPlugins' from JSON`,
|
|
2552
|
+
);
|
|
2553
|
+
}
|
|
2554
|
+
|
|
2482
2555
|
/** @internal */
|
|
2483
2556
|
export const RetrieveAgentRequestFallbackModelConfigurationFallbacks$inboundSchema:
|
|
2484
2557
|
z.ZodType<
|
|
@@ -2738,6 +2811,12 @@ export const RetrieveAgentRequestFallbackModelConfigurationParameters$inboundSch
|
|
|
2738
2811
|
RetrieveAgentRequestFallbackModelConfigurationGuardrails$inboundSchema
|
|
2739
2812
|
),
|
|
2740
2813
|
).optional(),
|
|
2814
|
+
plugins: z.array(
|
|
2815
|
+
z.union([
|
|
2816
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
2817
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
2818
|
+
]),
|
|
2819
|
+
).optional(),
|
|
2741
2820
|
fallbacks: z.array(
|
|
2742
2821
|
z.lazy(() =>
|
|
2743
2822
|
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-29T06:25:25.314Z",
|
|
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-29T06:25:25.313Z",
|
|
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-29T06:25:25.311Z",
|
|
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-29T06:24:56.736Z",
|
|
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-29T06:24:56.736Z",
|
|
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("01KW90VP6XG2Y4PYAVRC7NJV9P"),
|
|
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_01KW90VP402HTA3G0BCCKV30MK"),
|
|
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("01KW90VP3ZCJ0SD9MGRAFSF5PC"),
|
|
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_01KW90VP3YGM7KVD7K0VTB6GAG"),
|
|
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_01KW90VP3V05NKXTDM1MPYB7B2"),
|
|
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_01KW90VP3SZJDMZQ9NTF49V61R"),
|
|
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_01KW90VP3QV2XABXFBS4J55BXY"),
|
|
1314
1314
|
path: z.string(),
|
|
1315
1315
|
key: z.string(),
|
|
1316
1316
|
display_name: z.string().optional(),
|
|
@@ -196,6 +196,10 @@ export type RunAgentModelConfigurationGuardrails = {
|
|
|
196
196
|
executeOn: RunAgentModelConfigurationExecuteOn;
|
|
197
197
|
};
|
|
198
198
|
|
|
199
|
+
export type RunAgentModelConfigurationPlugins =
|
|
200
|
+
| components.PIIRedactionPluginEn
|
|
201
|
+
| components.PIIRedactionPluginNl;
|
|
202
|
+
|
|
199
203
|
export type RunAgentModelConfigurationFallbacks = {
|
|
200
204
|
/**
|
|
201
205
|
* Fallback model identifier
|
|
@@ -415,6 +419,12 @@ export type RunAgentModelConfigurationParameters = {
|
|
|
415
419
|
* A list of guardrails to apply to the request.
|
|
416
420
|
*/
|
|
417
421
|
guardrails?: Array<RunAgentModelConfigurationGuardrails> | undefined;
|
|
422
|
+
/**
|
|
423
|
+
* 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.
|
|
424
|
+
*/
|
|
425
|
+
plugins?:
|
|
426
|
+
| Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
|
|
427
|
+
| undefined;
|
|
418
428
|
/**
|
|
419
429
|
* Array of fallback models to use if primary model fails
|
|
420
430
|
*/
|
|
@@ -670,6 +680,10 @@ export type RunAgentFallbackModelConfigurationGuardrails = {
|
|
|
670
680
|
executeOn: RunAgentFallbackModelConfigurationExecuteOn;
|
|
671
681
|
};
|
|
672
682
|
|
|
683
|
+
export type RunAgentFallbackModelConfigurationPlugins =
|
|
684
|
+
| components.PIIRedactionPluginEn
|
|
685
|
+
| components.PIIRedactionPluginNl;
|
|
686
|
+
|
|
673
687
|
export type RunAgentFallbackModelConfigurationFallbacks = {
|
|
674
688
|
/**
|
|
675
689
|
* Fallback model identifier
|
|
@@ -898,6 +912,12 @@ export type RunAgentFallbackModelConfigurationParameters = {
|
|
|
898
912
|
* A list of guardrails to apply to the request.
|
|
899
913
|
*/
|
|
900
914
|
guardrails?: Array<RunAgentFallbackModelConfigurationGuardrails> | undefined;
|
|
915
|
+
/**
|
|
916
|
+
* 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.
|
|
917
|
+
*/
|
|
918
|
+
plugins?:
|
|
919
|
+
| Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
|
|
920
|
+
| undefined;
|
|
901
921
|
/**
|
|
902
922
|
* Array of fallback models to use if primary model fails
|
|
903
923
|
*/
|
|
@@ -2352,6 +2372,31 @@ export function runAgentModelConfigurationGuardrailsToJSON(
|
|
|
2352
2372
|
);
|
|
2353
2373
|
}
|
|
2354
2374
|
|
|
2375
|
+
/** @internal */
|
|
2376
|
+
export type RunAgentModelConfigurationPlugins$Outbound =
|
|
2377
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
2378
|
+
| components.PIIRedactionPluginNl$Outbound;
|
|
2379
|
+
|
|
2380
|
+
/** @internal */
|
|
2381
|
+
export const RunAgentModelConfigurationPlugins$outboundSchema: z.ZodType<
|
|
2382
|
+
RunAgentModelConfigurationPlugins$Outbound,
|
|
2383
|
+
z.ZodTypeDef,
|
|
2384
|
+
RunAgentModelConfigurationPlugins
|
|
2385
|
+
> = z.union([
|
|
2386
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
2387
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
2388
|
+
]);
|
|
2389
|
+
|
|
2390
|
+
export function runAgentModelConfigurationPluginsToJSON(
|
|
2391
|
+
runAgentModelConfigurationPlugins: RunAgentModelConfigurationPlugins,
|
|
2392
|
+
): string {
|
|
2393
|
+
return JSON.stringify(
|
|
2394
|
+
RunAgentModelConfigurationPlugins$outboundSchema.parse(
|
|
2395
|
+
runAgentModelConfigurationPlugins,
|
|
2396
|
+
),
|
|
2397
|
+
);
|
|
2398
|
+
}
|
|
2399
|
+
|
|
2355
2400
|
/** @internal */
|
|
2356
2401
|
export type RunAgentModelConfigurationFallbacks$Outbound = {
|
|
2357
2402
|
model: string;
|
|
@@ -2576,6 +2621,12 @@ export type RunAgentModelConfigurationParameters$Outbound = {
|
|
|
2576
2621
|
parallel_tool_calls?: boolean | undefined;
|
|
2577
2622
|
modalities?: Array<string> | null | undefined;
|
|
2578
2623
|
guardrails?: Array<RunAgentModelConfigurationGuardrails$Outbound> | undefined;
|
|
2624
|
+
plugins?:
|
|
2625
|
+
| Array<
|
|
2626
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
2627
|
+
| components.PIIRedactionPluginNl$Outbound
|
|
2628
|
+
>
|
|
2629
|
+
| undefined;
|
|
2579
2630
|
fallbacks?: Array<RunAgentModelConfigurationFallbacks$Outbound> | undefined;
|
|
2580
2631
|
cache?: RunAgentModelConfigurationCache$Outbound | undefined;
|
|
2581
2632
|
load_balancer?: RunAgentLoadBalancer1$Outbound | undefined;
|
|
@@ -2624,6 +2675,12 @@ export const RunAgentModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
2624
2675
|
guardrails: z.array(
|
|
2625
2676
|
z.lazy(() => RunAgentModelConfigurationGuardrails$outboundSchema),
|
|
2626
2677
|
).optional(),
|
|
2678
|
+
plugins: z.array(
|
|
2679
|
+
z.union([
|
|
2680
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
2681
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
2682
|
+
]),
|
|
2683
|
+
).optional(),
|
|
2627
2684
|
fallbacks: z.array(
|
|
2628
2685
|
z.lazy(() => RunAgentModelConfigurationFallbacks$outboundSchema),
|
|
2629
2686
|
).optional(),
|
|
@@ -3101,6 +3158,33 @@ export function runAgentFallbackModelConfigurationGuardrailsToJSON(
|
|
|
3101
3158
|
);
|
|
3102
3159
|
}
|
|
3103
3160
|
|
|
3161
|
+
/** @internal */
|
|
3162
|
+
export type RunAgentFallbackModelConfigurationPlugins$Outbound =
|
|
3163
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
3164
|
+
| components.PIIRedactionPluginNl$Outbound;
|
|
3165
|
+
|
|
3166
|
+
/** @internal */
|
|
3167
|
+
export const RunAgentFallbackModelConfigurationPlugins$outboundSchema:
|
|
3168
|
+
z.ZodType<
|
|
3169
|
+
RunAgentFallbackModelConfigurationPlugins$Outbound,
|
|
3170
|
+
z.ZodTypeDef,
|
|
3171
|
+
RunAgentFallbackModelConfigurationPlugins
|
|
3172
|
+
> = z.union([
|
|
3173
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
3174
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
3175
|
+
]);
|
|
3176
|
+
|
|
3177
|
+
export function runAgentFallbackModelConfigurationPluginsToJSON(
|
|
3178
|
+
runAgentFallbackModelConfigurationPlugins:
|
|
3179
|
+
RunAgentFallbackModelConfigurationPlugins,
|
|
3180
|
+
): string {
|
|
3181
|
+
return JSON.stringify(
|
|
3182
|
+
RunAgentFallbackModelConfigurationPlugins$outboundSchema.parse(
|
|
3183
|
+
runAgentFallbackModelConfigurationPlugins,
|
|
3184
|
+
),
|
|
3185
|
+
);
|
|
3186
|
+
}
|
|
3187
|
+
|
|
3104
3188
|
/** @internal */
|
|
3105
3189
|
export type RunAgentFallbackModelConfigurationFallbacks$Outbound = {
|
|
3106
3190
|
model: string;
|
|
@@ -3341,6 +3425,12 @@ export type RunAgentFallbackModelConfigurationParameters$Outbound = {
|
|
|
3341
3425
|
guardrails?:
|
|
3342
3426
|
| Array<RunAgentFallbackModelConfigurationGuardrails$Outbound>
|
|
3343
3427
|
| undefined;
|
|
3428
|
+
plugins?:
|
|
3429
|
+
| Array<
|
|
3430
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
3431
|
+
| components.PIIRedactionPluginNl$Outbound
|
|
3432
|
+
>
|
|
3433
|
+
| undefined;
|
|
3344
3434
|
fallbacks?:
|
|
3345
3435
|
| Array<RunAgentFallbackModelConfigurationFallbacks$Outbound>
|
|
3346
3436
|
| undefined;
|
|
@@ -3397,6 +3487,12 @@ export const RunAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
3397
3487
|
guardrails: z.array(
|
|
3398
3488
|
z.lazy(() => RunAgentFallbackModelConfigurationGuardrails$outboundSchema),
|
|
3399
3489
|
).optional(),
|
|
3490
|
+
plugins: z.array(
|
|
3491
|
+
z.union([
|
|
3492
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
3493
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
3494
|
+
]),
|
|
3495
|
+
).optional(),
|
|
3400
3496
|
fallbacks: z.array(
|
|
3401
3497
|
z.lazy(() => RunAgentFallbackModelConfigurationFallbacks$outboundSchema),
|
|
3402
3498
|
).optional(),
|
|
@@ -3861,7 +3957,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
3861
3957
|
z.ZodTypeDef,
|
|
3862
3958
|
Tools
|
|
3863
3959
|
> = z.object({
|
|
3864
|
-
id: z.string().default("
|
|
3960
|
+
id: z.string().default("01KW90VNVAZ8DQNANQY4RKFM32"),
|
|
3865
3961
|
name: z.string(),
|
|
3866
3962
|
description: z.string().optional(),
|
|
3867
3963
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|
|
@@ -200,6 +200,10 @@ export type StreamRunAgentModelConfigurationGuardrails = {
|
|
|
200
200
|
executeOn: StreamRunAgentModelConfigurationExecuteOn;
|
|
201
201
|
};
|
|
202
202
|
|
|
203
|
+
export type StreamRunAgentModelConfigurationPlugins =
|
|
204
|
+
| components.PIIRedactionPluginEn
|
|
205
|
+
| components.PIIRedactionPluginNl;
|
|
206
|
+
|
|
203
207
|
export type StreamRunAgentModelConfigurationFallbacks = {
|
|
204
208
|
/**
|
|
205
209
|
* Fallback model identifier
|
|
@@ -426,6 +430,12 @@ export type StreamRunAgentModelConfigurationParameters = {
|
|
|
426
430
|
* A list of guardrails to apply to the request.
|
|
427
431
|
*/
|
|
428
432
|
guardrails?: Array<StreamRunAgentModelConfigurationGuardrails> | undefined;
|
|
433
|
+
/**
|
|
434
|
+
* 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.
|
|
435
|
+
*/
|
|
436
|
+
plugins?:
|
|
437
|
+
| Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
|
|
438
|
+
| undefined;
|
|
429
439
|
/**
|
|
430
440
|
* Array of fallback models to use if primary model fails
|
|
431
441
|
*/
|
|
@@ -688,6 +698,10 @@ export type StreamRunAgentFallbackModelConfigurationGuardrails = {
|
|
|
688
698
|
executeOn: StreamRunAgentFallbackModelConfigurationExecuteOn;
|
|
689
699
|
};
|
|
690
700
|
|
|
701
|
+
export type StreamRunAgentFallbackModelConfigurationPlugins =
|
|
702
|
+
| components.PIIRedactionPluginEn
|
|
703
|
+
| components.PIIRedactionPluginNl;
|
|
704
|
+
|
|
691
705
|
export type StreamRunAgentFallbackModelConfigurationFallbacks = {
|
|
692
706
|
/**
|
|
693
707
|
* Fallback model identifier
|
|
@@ -918,6 +932,12 @@ export type StreamRunAgentFallbackModelConfigurationParameters = {
|
|
|
918
932
|
guardrails?:
|
|
919
933
|
| Array<StreamRunAgentFallbackModelConfigurationGuardrails>
|
|
920
934
|
| undefined;
|
|
935
|
+
/**
|
|
936
|
+
* 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.
|
|
937
|
+
*/
|
|
938
|
+
plugins?:
|
|
939
|
+
| Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
|
|
940
|
+
| undefined;
|
|
921
941
|
/**
|
|
922
942
|
* Array of fallback models to use if primary model fails
|
|
923
943
|
*/
|
|
@@ -2326,6 +2346,32 @@ export function streamRunAgentModelConfigurationGuardrailsToJSON(
|
|
|
2326
2346
|
);
|
|
2327
2347
|
}
|
|
2328
2348
|
|
|
2349
|
+
/** @internal */
|
|
2350
|
+
export type StreamRunAgentModelConfigurationPlugins$Outbound =
|
|
2351
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
2352
|
+
| components.PIIRedactionPluginNl$Outbound;
|
|
2353
|
+
|
|
2354
|
+
/** @internal */
|
|
2355
|
+
export const StreamRunAgentModelConfigurationPlugins$outboundSchema: z.ZodType<
|
|
2356
|
+
StreamRunAgentModelConfigurationPlugins$Outbound,
|
|
2357
|
+
z.ZodTypeDef,
|
|
2358
|
+
StreamRunAgentModelConfigurationPlugins
|
|
2359
|
+
> = z.union([
|
|
2360
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
2361
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
2362
|
+
]);
|
|
2363
|
+
|
|
2364
|
+
export function streamRunAgentModelConfigurationPluginsToJSON(
|
|
2365
|
+
streamRunAgentModelConfigurationPlugins:
|
|
2366
|
+
StreamRunAgentModelConfigurationPlugins,
|
|
2367
|
+
): string {
|
|
2368
|
+
return JSON.stringify(
|
|
2369
|
+
StreamRunAgentModelConfigurationPlugins$outboundSchema.parse(
|
|
2370
|
+
streamRunAgentModelConfigurationPlugins,
|
|
2371
|
+
),
|
|
2372
|
+
);
|
|
2373
|
+
}
|
|
2374
|
+
|
|
2329
2375
|
/** @internal */
|
|
2330
2376
|
export type StreamRunAgentModelConfigurationFallbacks$Outbound = {
|
|
2331
2377
|
model: string;
|
|
@@ -2564,6 +2610,12 @@ export type StreamRunAgentModelConfigurationParameters$Outbound = {
|
|
|
2564
2610
|
guardrails?:
|
|
2565
2611
|
| Array<StreamRunAgentModelConfigurationGuardrails$Outbound>
|
|
2566
2612
|
| undefined;
|
|
2613
|
+
plugins?:
|
|
2614
|
+
| Array<
|
|
2615
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
2616
|
+
| components.PIIRedactionPluginNl$Outbound
|
|
2617
|
+
>
|
|
2618
|
+
| undefined;
|
|
2567
2619
|
fallbacks?:
|
|
2568
2620
|
| Array<StreamRunAgentModelConfigurationFallbacks$Outbound>
|
|
2569
2621
|
| undefined;
|
|
@@ -2617,6 +2669,12 @@ export const StreamRunAgentModelConfigurationParameters$outboundSchema:
|
|
|
2617
2669
|
guardrails: z.array(
|
|
2618
2670
|
z.lazy(() => StreamRunAgentModelConfigurationGuardrails$outboundSchema),
|
|
2619
2671
|
).optional(),
|
|
2672
|
+
plugins: z.array(
|
|
2673
|
+
z.union([
|
|
2674
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
2675
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
2676
|
+
]),
|
|
2677
|
+
).optional(),
|
|
2620
2678
|
fallbacks: z.array(
|
|
2621
2679
|
z.lazy(() => StreamRunAgentModelConfigurationFallbacks$outboundSchema),
|
|
2622
2680
|
).optional(),
|
|
@@ -3113,6 +3171,33 @@ export function streamRunAgentFallbackModelConfigurationGuardrailsToJSON(
|
|
|
3113
3171
|
);
|
|
3114
3172
|
}
|
|
3115
3173
|
|
|
3174
|
+
/** @internal */
|
|
3175
|
+
export type StreamRunAgentFallbackModelConfigurationPlugins$Outbound =
|
|
3176
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
3177
|
+
| components.PIIRedactionPluginNl$Outbound;
|
|
3178
|
+
|
|
3179
|
+
/** @internal */
|
|
3180
|
+
export const StreamRunAgentFallbackModelConfigurationPlugins$outboundSchema:
|
|
3181
|
+
z.ZodType<
|
|
3182
|
+
StreamRunAgentFallbackModelConfigurationPlugins$Outbound,
|
|
3183
|
+
z.ZodTypeDef,
|
|
3184
|
+
StreamRunAgentFallbackModelConfigurationPlugins
|
|
3185
|
+
> = z.union([
|
|
3186
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
3187
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
3188
|
+
]);
|
|
3189
|
+
|
|
3190
|
+
export function streamRunAgentFallbackModelConfigurationPluginsToJSON(
|
|
3191
|
+
streamRunAgentFallbackModelConfigurationPlugins:
|
|
3192
|
+
StreamRunAgentFallbackModelConfigurationPlugins,
|
|
3193
|
+
): string {
|
|
3194
|
+
return JSON.stringify(
|
|
3195
|
+
StreamRunAgentFallbackModelConfigurationPlugins$outboundSchema.parse(
|
|
3196
|
+
streamRunAgentFallbackModelConfigurationPlugins,
|
|
3197
|
+
),
|
|
3198
|
+
);
|
|
3199
|
+
}
|
|
3200
|
+
|
|
3116
3201
|
/** @internal */
|
|
3117
3202
|
export type StreamRunAgentFallbackModelConfigurationFallbacks$Outbound = {
|
|
3118
3203
|
model: string;
|
|
@@ -3356,6 +3441,12 @@ export type StreamRunAgentFallbackModelConfigurationParameters$Outbound = {
|
|
|
3356
3441
|
guardrails?:
|
|
3357
3442
|
| Array<StreamRunAgentFallbackModelConfigurationGuardrails$Outbound>
|
|
3358
3443
|
| undefined;
|
|
3444
|
+
plugins?:
|
|
3445
|
+
| Array<
|
|
3446
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
3447
|
+
| components.PIIRedactionPluginNl$Outbound
|
|
3448
|
+
>
|
|
3449
|
+
| undefined;
|
|
3359
3450
|
fallbacks?:
|
|
3360
3451
|
| Array<StreamRunAgentFallbackModelConfigurationFallbacks$Outbound>
|
|
3361
3452
|
| undefined;
|
|
@@ -3418,6 +3509,12 @@ export const StreamRunAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
3418
3509
|
StreamRunAgentFallbackModelConfigurationGuardrails$outboundSchema
|
|
3419
3510
|
),
|
|
3420
3511
|
).optional(),
|
|
3512
|
+
plugins: z.array(
|
|
3513
|
+
z.union([
|
|
3514
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
3515
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
3516
|
+
]),
|
|
3517
|
+
).optional(),
|
|
3421
3518
|
fallbacks: z.array(
|
|
3422
3519
|
z.lazy(() =>
|
|
3423
3520
|
StreamRunAgentFallbackModelConfigurationFallbacks$outboundSchema
|
|
@@ -3916,7 +4013,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
|
3916
4013
|
z.ZodTypeDef,
|
|
3917
4014
|
AgentToolInputRunTools
|
|
3918
4015
|
> = z.object({
|
|
3919
|
-
id: z.string().default("
|
|
4016
|
+
id: z.string().default("01KW90VNX90AX1TV3ENR14H3KV"),
|
|
3920
4017
|
name: z.string(),
|
|
3921
4018
|
description: z.string().optional(),
|
|
3922
4019
|
schema: z.lazy(() =>
|