@orq-ai/node 4.11.0-rc.52 → 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/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/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 +5 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +5 -0
- package/models/components/index.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/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/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/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/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 +6 -6
- 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/guardrailrule.ts +3 -0
- package/src/models/components/index.ts +5 -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/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/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/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 +2 -2
|
@@ -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(() =>
|
|
@@ -198,6 +198,10 @@ export type ModelConfigurationGuardrails = {
|
|
|
198
198
|
executeOn: ModelConfigurationExecuteOn;
|
|
199
199
|
};
|
|
200
200
|
|
|
201
|
+
export type ModelConfigurationPlugins =
|
|
202
|
+
| components.PIIRedactionPluginEn
|
|
203
|
+
| components.PIIRedactionPluginNl;
|
|
204
|
+
|
|
201
205
|
export type UpdateAgentModelConfigurationFallbacks = {
|
|
202
206
|
/**
|
|
203
207
|
* Fallback model identifier
|
|
@@ -417,6 +421,12 @@ export type ModelConfigurationParameters = {
|
|
|
417
421
|
* A list of guardrails to apply to the request.
|
|
418
422
|
*/
|
|
419
423
|
guardrails?: Array<ModelConfigurationGuardrails> | undefined;
|
|
424
|
+
/**
|
|
425
|
+
* 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.
|
|
426
|
+
*/
|
|
427
|
+
plugins?:
|
|
428
|
+
| Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
|
|
429
|
+
| undefined;
|
|
420
430
|
/**
|
|
421
431
|
* Array of fallback models to use if primary model fails
|
|
422
432
|
*/
|
|
@@ -676,6 +686,10 @@ export type UpdateAgentFallbackModelConfigurationGuardrails = {
|
|
|
676
686
|
executeOn: UpdateAgentFallbackModelConfigurationExecuteOn;
|
|
677
687
|
};
|
|
678
688
|
|
|
689
|
+
export type UpdateAgentFallbackModelConfigurationPlugins =
|
|
690
|
+
| components.PIIRedactionPluginEn
|
|
691
|
+
| components.PIIRedactionPluginNl;
|
|
692
|
+
|
|
679
693
|
export type UpdateAgentFallbackModelConfigurationFallbacks = {
|
|
680
694
|
/**
|
|
681
695
|
* Fallback model identifier
|
|
@@ -906,6 +920,12 @@ export type UpdateAgentFallbackModelConfigurationParameters = {
|
|
|
906
920
|
guardrails?:
|
|
907
921
|
| Array<UpdateAgentFallbackModelConfigurationGuardrails>
|
|
908
922
|
| undefined;
|
|
923
|
+
/**
|
|
924
|
+
* 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.
|
|
925
|
+
*/
|
|
926
|
+
plugins?:
|
|
927
|
+
| Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
|
|
928
|
+
| undefined;
|
|
909
929
|
/**
|
|
910
930
|
* Array of fallback models to use if primary model fails
|
|
911
931
|
*/
|
|
@@ -2028,6 +2048,10 @@ export type UpdateAgentAgentsResponseGuardrails = {
|
|
|
2028
2048
|
executeOn: UpdateAgentAgentsResponse200ApplicationJSONExecuteOn;
|
|
2029
2049
|
};
|
|
2030
2050
|
|
|
2051
|
+
export type UpdateAgentPlugins =
|
|
2052
|
+
| components.PIIRedactionPluginEn
|
|
2053
|
+
| components.PIIRedactionPluginNl;
|
|
2054
|
+
|
|
2031
2055
|
export type UpdateAgentFallbacks = {
|
|
2032
2056
|
/**
|
|
2033
2057
|
* Fallback model identifier
|
|
@@ -2246,6 +2270,12 @@ export type UpdateAgentParameters = {
|
|
|
2246
2270
|
* A list of guardrails to apply to the request.
|
|
2247
2271
|
*/
|
|
2248
2272
|
guardrails?: Array<UpdateAgentAgentsResponseGuardrails> | undefined;
|
|
2273
|
+
/**
|
|
2274
|
+
* 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.
|
|
2275
|
+
*/
|
|
2276
|
+
plugins?:
|
|
2277
|
+
| Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
|
|
2278
|
+
| undefined;
|
|
2249
2279
|
/**
|
|
2250
2280
|
* Array of fallback models to use if primary model fails
|
|
2251
2281
|
*/
|
|
@@ -2484,6 +2514,10 @@ export type UpdateAgentFallbackModelConfigurationAgentsGuardrails = {
|
|
|
2484
2514
|
executeOn: UpdateAgentFallbackModelConfigurationAgentsExecuteOn;
|
|
2485
2515
|
};
|
|
2486
2516
|
|
|
2517
|
+
export type UpdateAgentFallbackModelConfigurationAgentsPlugins =
|
|
2518
|
+
| components.PIIRedactionPluginEn
|
|
2519
|
+
| components.PIIRedactionPluginNl;
|
|
2520
|
+
|
|
2487
2521
|
export type UpdateAgentFallbackModelConfigurationAgentsFallbacks = {
|
|
2488
2522
|
/**
|
|
2489
2523
|
* Fallback model identifier
|
|
@@ -2712,6 +2746,12 @@ export type UpdateAgentFallbackModelConfigurationAgentsParameters = {
|
|
|
2712
2746
|
guardrails?:
|
|
2713
2747
|
| Array<UpdateAgentFallbackModelConfigurationAgentsGuardrails>
|
|
2714
2748
|
| undefined;
|
|
2749
|
+
/**
|
|
2750
|
+
* 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.
|
|
2751
|
+
*/
|
|
2752
|
+
plugins?:
|
|
2753
|
+
| Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
|
|
2754
|
+
| undefined;
|
|
2715
2755
|
/**
|
|
2716
2756
|
* Array of fallback models to use if primary model fails
|
|
2717
2757
|
*/
|
|
@@ -3210,6 +3250,29 @@ export function modelConfigurationGuardrailsToJSON(
|
|
|
3210
3250
|
);
|
|
3211
3251
|
}
|
|
3212
3252
|
|
|
3253
|
+
/** @internal */
|
|
3254
|
+
export type ModelConfigurationPlugins$Outbound =
|
|
3255
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
3256
|
+
| components.PIIRedactionPluginNl$Outbound;
|
|
3257
|
+
|
|
3258
|
+
/** @internal */
|
|
3259
|
+
export const ModelConfigurationPlugins$outboundSchema: z.ZodType<
|
|
3260
|
+
ModelConfigurationPlugins$Outbound,
|
|
3261
|
+
z.ZodTypeDef,
|
|
3262
|
+
ModelConfigurationPlugins
|
|
3263
|
+
> = z.union([
|
|
3264
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
3265
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
3266
|
+
]);
|
|
3267
|
+
|
|
3268
|
+
export function modelConfigurationPluginsToJSON(
|
|
3269
|
+
modelConfigurationPlugins: ModelConfigurationPlugins,
|
|
3270
|
+
): string {
|
|
3271
|
+
return JSON.stringify(
|
|
3272
|
+
ModelConfigurationPlugins$outboundSchema.parse(modelConfigurationPlugins),
|
|
3273
|
+
);
|
|
3274
|
+
}
|
|
3275
|
+
|
|
3213
3276
|
/** @internal */
|
|
3214
3277
|
export type UpdateAgentModelConfigurationFallbacks$Outbound = {
|
|
3215
3278
|
model: string;
|
|
@@ -3432,6 +3495,12 @@ export type ModelConfigurationParameters$Outbound = {
|
|
|
3432
3495
|
parallel_tool_calls?: boolean | undefined;
|
|
3433
3496
|
modalities?: Array<string> | null | undefined;
|
|
3434
3497
|
guardrails?: Array<ModelConfigurationGuardrails$Outbound> | undefined;
|
|
3498
|
+
plugins?:
|
|
3499
|
+
| Array<
|
|
3500
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
3501
|
+
| components.PIIRedactionPluginNl$Outbound
|
|
3502
|
+
>
|
|
3503
|
+
| undefined;
|
|
3435
3504
|
fallbacks?:
|
|
3436
3505
|
| Array<UpdateAgentModelConfigurationFallbacks$Outbound>
|
|
3437
3506
|
| undefined;
|
|
@@ -3481,6 +3550,12 @@ export const ModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
3481
3550
|
.optional(),
|
|
3482
3551
|
guardrails: z.array(z.lazy(() => ModelConfigurationGuardrails$outboundSchema))
|
|
3483
3552
|
.optional(),
|
|
3553
|
+
plugins: z.array(
|
|
3554
|
+
z.union([
|
|
3555
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
3556
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
3557
|
+
]),
|
|
3558
|
+
).optional(),
|
|
3484
3559
|
fallbacks: z.array(
|
|
3485
3560
|
z.lazy(() => UpdateAgentModelConfigurationFallbacks$outboundSchema),
|
|
3486
3561
|
).optional(),
|
|
@@ -3966,6 +4041,33 @@ export function updateAgentFallbackModelConfigurationGuardrailsToJSON(
|
|
|
3966
4041
|
);
|
|
3967
4042
|
}
|
|
3968
4043
|
|
|
4044
|
+
/** @internal */
|
|
4045
|
+
export type UpdateAgentFallbackModelConfigurationPlugins$Outbound =
|
|
4046
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
4047
|
+
| components.PIIRedactionPluginNl$Outbound;
|
|
4048
|
+
|
|
4049
|
+
/** @internal */
|
|
4050
|
+
export const UpdateAgentFallbackModelConfigurationPlugins$outboundSchema:
|
|
4051
|
+
z.ZodType<
|
|
4052
|
+
UpdateAgentFallbackModelConfigurationPlugins$Outbound,
|
|
4053
|
+
z.ZodTypeDef,
|
|
4054
|
+
UpdateAgentFallbackModelConfigurationPlugins
|
|
4055
|
+
> = z.union([
|
|
4056
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
4057
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
4058
|
+
]);
|
|
4059
|
+
|
|
4060
|
+
export function updateAgentFallbackModelConfigurationPluginsToJSON(
|
|
4061
|
+
updateAgentFallbackModelConfigurationPlugins:
|
|
4062
|
+
UpdateAgentFallbackModelConfigurationPlugins,
|
|
4063
|
+
): string {
|
|
4064
|
+
return JSON.stringify(
|
|
4065
|
+
UpdateAgentFallbackModelConfigurationPlugins$outboundSchema.parse(
|
|
4066
|
+
updateAgentFallbackModelConfigurationPlugins,
|
|
4067
|
+
),
|
|
4068
|
+
);
|
|
4069
|
+
}
|
|
4070
|
+
|
|
3969
4071
|
/** @internal */
|
|
3970
4072
|
export type UpdateAgentFallbackModelConfigurationFallbacks$Outbound = {
|
|
3971
4073
|
model: string;
|
|
@@ -4205,6 +4307,12 @@ export type UpdateAgentFallbackModelConfigurationParameters$Outbound = {
|
|
|
4205
4307
|
guardrails?:
|
|
4206
4308
|
| Array<UpdateAgentFallbackModelConfigurationGuardrails$Outbound>
|
|
4207
4309
|
| undefined;
|
|
4310
|
+
plugins?:
|
|
4311
|
+
| Array<
|
|
4312
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
4313
|
+
| components.PIIRedactionPluginNl$Outbound
|
|
4314
|
+
>
|
|
4315
|
+
| undefined;
|
|
4208
4316
|
fallbacks?:
|
|
4209
4317
|
| Array<UpdateAgentFallbackModelConfigurationFallbacks$Outbound>
|
|
4210
4318
|
| undefined;
|
|
@@ -4263,6 +4371,12 @@ export const UpdateAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
4263
4371
|
UpdateAgentFallbackModelConfigurationGuardrails$outboundSchema
|
|
4264
4372
|
),
|
|
4265
4373
|
).optional(),
|
|
4374
|
+
plugins: z.array(
|
|
4375
|
+
z.union([
|
|
4376
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
4377
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
4378
|
+
]),
|
|
4379
|
+
).optional(),
|
|
4266
4380
|
fallbacks: z.array(
|
|
4267
4381
|
z.lazy(() =>
|
|
4268
4382
|
UpdateAgentFallbackModelConfigurationFallbacks$outboundSchema
|
|
@@ -6023,6 +6137,26 @@ export function updateAgentAgentsResponseGuardrailsFromJSON(
|
|
|
6023
6137
|
);
|
|
6024
6138
|
}
|
|
6025
6139
|
|
|
6140
|
+
/** @internal */
|
|
6141
|
+
export const UpdateAgentPlugins$inboundSchema: z.ZodType<
|
|
6142
|
+
UpdateAgentPlugins,
|
|
6143
|
+
z.ZodTypeDef,
|
|
6144
|
+
unknown
|
|
6145
|
+
> = z.union([
|
|
6146
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
6147
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
6148
|
+
]);
|
|
6149
|
+
|
|
6150
|
+
export function updateAgentPluginsFromJSON(
|
|
6151
|
+
jsonString: string,
|
|
6152
|
+
): SafeParseResult<UpdateAgentPlugins, SDKValidationError> {
|
|
6153
|
+
return safeParse(
|
|
6154
|
+
jsonString,
|
|
6155
|
+
(x) => UpdateAgentPlugins$inboundSchema.parse(JSON.parse(x)),
|
|
6156
|
+
`Failed to parse 'UpdateAgentPlugins' from JSON`,
|
|
6157
|
+
);
|
|
6158
|
+
}
|
|
6159
|
+
|
|
6026
6160
|
/** @internal */
|
|
6027
6161
|
export const UpdateAgentFallbacks$inboundSchema: z.ZodType<
|
|
6028
6162
|
UpdateAgentFallbacks,
|
|
@@ -6234,6 +6368,12 @@ export const UpdateAgentParameters$inboundSchema: z.ZodType<
|
|
|
6234
6368
|
guardrails: z.array(
|
|
6235
6369
|
z.lazy(() => UpdateAgentAgentsResponseGuardrails$inboundSchema),
|
|
6236
6370
|
).optional(),
|
|
6371
|
+
plugins: z.array(
|
|
6372
|
+
z.union([
|
|
6373
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
6374
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
6375
|
+
]),
|
|
6376
|
+
).optional(),
|
|
6237
6377
|
fallbacks: z.array(z.lazy(() => UpdateAgentFallbacks$inboundSchema))
|
|
6238
6378
|
.optional(),
|
|
6239
6379
|
cache: z.lazy(() => UpdateAgentCache$inboundSchema).optional(),
|
|
@@ -6659,6 +6799,33 @@ export function updateAgentFallbackModelConfigurationAgentsGuardrailsFromJSON(
|
|
|
6659
6799
|
);
|
|
6660
6800
|
}
|
|
6661
6801
|
|
|
6802
|
+
/** @internal */
|
|
6803
|
+
export const UpdateAgentFallbackModelConfigurationAgentsPlugins$inboundSchema:
|
|
6804
|
+
z.ZodType<
|
|
6805
|
+
UpdateAgentFallbackModelConfigurationAgentsPlugins,
|
|
6806
|
+
z.ZodTypeDef,
|
|
6807
|
+
unknown
|
|
6808
|
+
> = z.union([
|
|
6809
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
6810
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
6811
|
+
]);
|
|
6812
|
+
|
|
6813
|
+
export function updateAgentFallbackModelConfigurationAgentsPluginsFromJSON(
|
|
6814
|
+
jsonString: string,
|
|
6815
|
+
): SafeParseResult<
|
|
6816
|
+
UpdateAgentFallbackModelConfigurationAgentsPlugins,
|
|
6817
|
+
SDKValidationError
|
|
6818
|
+
> {
|
|
6819
|
+
return safeParse(
|
|
6820
|
+
jsonString,
|
|
6821
|
+
(x) =>
|
|
6822
|
+
UpdateAgentFallbackModelConfigurationAgentsPlugins$inboundSchema.parse(
|
|
6823
|
+
JSON.parse(x),
|
|
6824
|
+
),
|
|
6825
|
+
`Failed to parse 'UpdateAgentFallbackModelConfigurationAgentsPlugins' from JSON`,
|
|
6826
|
+
);
|
|
6827
|
+
}
|
|
6828
|
+
|
|
6662
6829
|
/** @internal */
|
|
6663
6830
|
export const UpdateAgentFallbackModelConfigurationAgentsFallbacks$inboundSchema:
|
|
6664
6831
|
z.ZodType<
|
|
@@ -6923,6 +7090,12 @@ export const UpdateAgentFallbackModelConfigurationAgentsParameters$inboundSchema
|
|
|
6923
7090
|
UpdateAgentFallbackModelConfigurationAgentsGuardrails$inboundSchema
|
|
6924
7091
|
),
|
|
6925
7092
|
).optional(),
|
|
7093
|
+
plugins: z.array(
|
|
7094
|
+
z.union([
|
|
7095
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
7096
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
7097
|
+
]),
|
|
7098
|
+
).optional(),
|
|
6926
7099
|
fallbacks: z.array(
|
|
6927
7100
|
z.lazy(() =>
|
|
6928
7101
|
UpdateAgentFallbackModelConfigurationAgentsFallbacks$inboundSchema
|
|
@@ -2629,7 +2629,7 @@ export const UpdateDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
2629
2629
|
explanation: z.string().optional(),
|
|
2630
2630
|
reviewed_by_id: z.string(),
|
|
2631
2631
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2632
|
-
"2026-06-
|
|
2632
|
+
"2026-06-29T06:25:25.347Z",
|
|
2633
2633
|
).transform(v => new Date(v)),
|
|
2634
2634
|
type: z.literal("string_array"),
|
|
2635
2635
|
values: z.array(z.string()),
|
|
@@ -2726,7 +2726,7 @@ export const UpdateDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
2726
2726
|
explanation: z.string().optional(),
|
|
2727
2727
|
reviewed_by_id: z.string(),
|
|
2728
2728
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2729
|
-
"2026-06-
|
|
2729
|
+
"2026-06-29T06:25:25.346Z",
|
|
2730
2730
|
).transform(v => new Date(v)),
|
|
2731
2731
|
type: z.literal("number"),
|
|
2732
2732
|
value: z.number(),
|
|
@@ -2815,7 +2815,7 @@ export const UpdateDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
2815
2815
|
explanation: z.string().optional(),
|
|
2816
2816
|
reviewed_by_id: z.string(),
|
|
2817
2817
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2818
|
-
"2026-06-
|
|
2818
|
+
"2026-06-29T06:25:25.345Z",
|
|
2819
2819
|
).transform(v => new Date(v)),
|
|
2820
2820
|
type: z.literal("string"),
|
|
2821
2821
|
value: z.string(),
|
|
@@ -2898,7 +2898,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
2898
2898
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2899
2899
|
.optional(),
|
|
2900
2900
|
updated: z.string().datetime({ offset: true }).default(
|
|
2901
|
-
"2026-06-
|
|
2901
|
+
"2026-06-29T06:24:56.736Z",
|
|
2902
2902
|
).transform(v => new Date(v)),
|
|
2903
2903
|
}).transform((v) => {
|
|
2904
2904
|
return remap$(v, {
|
|
@@ -182,7 +182,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
182
182
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
183
183
|
.optional(),
|
|
184
184
|
updated: z.string().datetime({ offset: true }).default(
|
|
185
|
-
"2026-06-
|
|
185
|
+
"2026-06-29T06:24:56.736Z",
|
|
186
186
|
).transform(v => new Date(v)),
|
|
187
187
|
}).transform((v) => {
|
|
188
188
|
return remap$(v, {
|
|
@@ -152,7 +152,7 @@ export const UpdateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
152
152
|
z.ZodTypeDef,
|
|
153
153
|
unknown
|
|
154
154
|
> = z.object({
|
|
155
|
-
_id: z.string().default("
|
|
155
|
+
_id: z.string().default("01KW90VP70Y0ZXGKMWCNRTBF2P"),
|
|
156
156
|
display_name: z.string(),
|
|
157
157
|
description: z.nullable(z.string()).optional(),
|
|
158
158
|
status: UpdateDatasourceStatus$inboundSchema,
|