@orq-ai/node 4.15.0-rc.21 → 4.15.0-rc.22
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 +30 -28
- package/funcs/piiCapabilities.d.ts +17 -0
- package/funcs/piiCapabilities.d.ts.map +1 -0
- package/funcs/piiCapabilities.js +105 -0
- package/funcs/piiCapabilities.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/agentstartedstreamingevent.d.ts +13 -1
- package/models/components/agentstartedstreamingevent.d.ts.map +1 -1
- package/models/components/agentstartedstreamingevent.js +2 -0
- package/models/components/agentstartedstreamingevent.js.map +1 -1
- package/models/components/capabilitiesresponse.d.ts +62 -0
- package/models/components/capabilitiesresponse.d.ts.map +1 -0
- package/models/components/capabilitiesresponse.js +68 -0
- package/models/components/capabilitiesresponse.js.map +1 -0
- package/models/components/detectrequest.d.ts +48 -0
- package/models/components/detectrequest.d.ts.map +1 -1
- package/models/components/detectrequest.js +4 -0
- package/models/components/detectrequest.js.map +1 -1
- package/models/components/entitylist.d.ts +16 -0
- package/models/components/entitylist.d.ts.map +1 -0
- package/models/components/entitylist.js +50 -0
- package/models/components/entitylist.js.map +1 -0
- package/models/components/guardrailruleplugin.d.ts +25 -0
- package/models/components/guardrailruleplugin.d.ts.map +1 -1
- package/models/components/guardrailruleplugin.js +6 -0
- package/models/components/guardrailruleplugin.js.map +1 -1
- package/models/components/index.d.ts +3 -3
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +3 -3
- package/models/components/index.js.map +1 -1
- package/models/components/piiredactionplugin.d.ts +84 -0
- package/models/components/piiredactionplugin.d.ts.map +1 -0
- package/models/components/piiredactionplugin.js +103 -0
- package/models/components/piiredactionplugin.js.map +1 -0
- package/models/components/publicplugin.d.ts +17 -16
- package/models/components/publicplugin.d.ts.map +1 -1
- package/models/components/publicplugin.js +5 -11
- package/models/components/publicplugin.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/redactrequest.d.ts +48 -0
- package/models/components/redactrequest.d.ts.map +1 -1
- package/models/components/redactrequest.js +8 -0
- package/models/components/redactrequest.js.map +1 -1
- package/models/components/responsehealingplugin.d.ts +2 -17
- package/models/components/responsehealingplugin.d.ts.map +1 -1
- package/models/components/responsehealingplugin.js +3 -13
- package/models/components/responsehealingplugin.js.map +1 -1
- package/models/components/routingruleplugin.d.ts +25 -0
- package/models/components/routingruleplugin.d.ts.map +1 -1
- package/models/components/routingruleplugin.js +6 -0
- package/models/components/routingruleplugin.js.map +1 -1
- package/models/components/tracescrubbingplugin.d.ts +2 -16
- package/models/components/tracescrubbingplugin.d.ts.map +1 -1
- package/models/components/tracescrubbingplugin.js +3 -13
- package/models/components/tracescrubbingplugin.js.map +1 -1
- package/models/operations/createagentrequest.d.ts +67 -13
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +20 -32
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts +12 -4
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +4 -8
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createcompletion.d.ts +2 -8
- package/models/operations/createcompletion.d.ts.map +1 -1
- package/models/operations/createcompletion.js +3 -17
- package/models/operations/createcompletion.js.map +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createimage.d.ts +2 -8
- package/models/operations/createimage.d.ts.map +1 -1
- package/models/operations/createimage.js +2 -16
- package/models/operations/createimage.js.map +1 -1
- package/models/operations/createprompt.d.ts +18 -6
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +8 -16
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/creatererank.d.ts +2 -8
- package/models/operations/creatererank.d.ts.map +1 -1
- package/models/operations/creatererank.js +2 -16
- package/models/operations/creatererank.js.map +1 -1
- package/models/operations/createtool.js +4 -4
- package/models/operations/getallprompts.d.ts +6 -2
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +4 -8
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getoneprompt.d.ts +6 -2
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +4 -8
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +6 -2
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +4 -8
- 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/listagents.d.ts +25 -5
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +10 -16
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listpromptversions.d.ts +6 -2
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +4 -8
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrieveagentrequest.d.ts +25 -5
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +10 -16
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.d.ts +42 -8
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +11 -17
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +42 -8
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +11 -17
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +67 -13
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +20 -32
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updateprompt.d.ts +18 -6
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +8 -16
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +1 -1
- package/sdk/pii.d.ts +7 -0
- package/sdk/pii.d.ts.map +1 -1
- package/sdk/pii.js +10 -0
- package/sdk/pii.js.map +1 -1
- package/src/funcs/piiCapabilities.ts +144 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/agentstartedstreamingevent.ts +11 -1
- package/src/models/components/capabilitiesresponse.ts +96 -0
- package/src/models/components/detectrequest.ts +48 -0
- package/src/models/components/entitylist.ts +37 -0
- package/src/models/components/guardrailruleplugin.ts +27 -0
- package/src/models/components/index.ts +3 -3
- package/src/models/components/piiredactionplugin.ts +143 -0
- package/src/models/components/publicplugin.ts +17 -21
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/redactrequest.ts +52 -0
- package/src/models/components/responsehealingplugin.ts +4 -27
- package/src/models/components/routingruleplugin.ts +27 -0
- package/src/models/components/tracescrubbingplugin.ts +4 -24
- package/src/models/operations/createagentrequest.ts +85 -87
- package/src/models/operations/createchatcompletion.ts +18 -26
- package/src/models/operations/createcompletion.ts +3 -51
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createimage.ts +3 -51
- package/src/models/operations/createprompt.ts +31 -43
- package/src/models/operations/creatererank.ts +3 -51
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getallprompts.ts +13 -17
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getoneprompt.ts +13 -17
- package/src/models/operations/getpromptversion.ts +13 -17
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listagents.ts +37 -35
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listpromptversions.ts +13 -17
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrieveagentrequest.ts +37 -35
- package/src/models/operations/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +49 -53
- package/src/models/operations/streamrunagent.ts +49 -53
- package/src/models/operations/updateagent.ts +85 -87
- package/src/models/operations/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updateprompt.ts +31 -43
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/pii.ts +16 -0
- package/models/components/piiredactionpluginauto.d.ts +0 -126
- package/models/components/piiredactionpluginauto.d.ts.map +0 -1
- package/models/components/piiredactionpluginauto.js +0 -156
- package/models/components/piiredactionpluginauto.js.map +0 -1
- package/models/components/piiredactionpluginen.d.ts +0 -145
- package/models/components/piiredactionpluginen.d.ts.map +0 -1
- package/models/components/piiredactionpluginen.js +0 -167
- package/models/components/piiredactionpluginen.js.map +0 -1
- package/models/components/piiredactionpluginnl.d.ts +0 -137
- package/models/components/piiredactionpluginnl.d.ts.map +0 -1
- package/models/components/piiredactionpluginnl.js +0 -158
- package/models/components/piiredactionpluginnl.js.map +0 -1
- package/src/models/components/piiredactionpluginauto.ts +0 -185
- package/src/models/components/piiredactionpluginen.ts +0 -222
- package/src/models/components/piiredactionpluginnl.ts +0 -218
|
@@ -848,11 +848,9 @@ export type GetPromptVersionGuardrails = {
|
|
|
848
848
|
};
|
|
849
849
|
|
|
850
850
|
export type GetPromptVersionPlugins =
|
|
851
|
-
| components.
|
|
852
|
-
| components.
|
|
853
|
-
| components.TraceScrubbingPlugin
|
|
854
|
-
| components.PIIRedactionPluginAuto
|
|
855
|
-
| components.ResponseHealingPlugin;
|
|
851
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
852
|
+
| components.ResponseHealingPlugin
|
|
853
|
+
| components.TraceScrubbingPlugin;
|
|
856
854
|
|
|
857
855
|
export type GetPromptVersionFallbacks = {
|
|
858
856
|
/**
|
|
@@ -1444,11 +1442,9 @@ export type GetPromptVersionPromptField = {
|
|
|
1444
1442
|
*/
|
|
1445
1443
|
plugins?:
|
|
1446
1444
|
| Array<
|
|
1447
|
-
| components.
|
|
1448
|
-
| components.PIIRedactionPluginNl
|
|
1449
|
-
| components.TraceScrubbingPlugin
|
|
1450
|
-
| components.PIIRedactionPluginAuto
|
|
1445
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
1451
1446
|
| components.ResponseHealingPlugin
|
|
1447
|
+
| components.TraceScrubbingPlugin
|
|
1452
1448
|
>
|
|
1453
1449
|
| undefined;
|
|
1454
1450
|
/**
|
|
@@ -2528,11 +2524,11 @@ export const GetPromptVersionPlugins$inboundSchema: z.ZodType<
|
|
|
2528
2524
|
z.ZodTypeDef,
|
|
2529
2525
|
unknown
|
|
2530
2526
|
> = z.union([
|
|
2531
|
-
components.
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
components.PIIRedactionPluginAuto$inboundSchema,
|
|
2527
|
+
components.PIIRedactionPlugin$inboundSchema.and(
|
|
2528
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
2529
|
+
),
|
|
2535
2530
|
components.ResponseHealingPlugin$inboundSchema,
|
|
2531
|
+
components.TraceScrubbingPlugin$inboundSchema,
|
|
2536
2532
|
]);
|
|
2537
2533
|
|
|
2538
2534
|
export function getPromptVersionPluginsFromJSON(
|
|
@@ -3291,11 +3287,11 @@ export const GetPromptVersionPromptField$inboundSchema: z.ZodType<
|
|
|
3291
3287
|
.optional(),
|
|
3292
3288
|
plugins: z.array(
|
|
3293
3289
|
z.union([
|
|
3294
|
-
components.
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
components.PIIRedactionPluginAuto$inboundSchema,
|
|
3290
|
+
components.PIIRedactionPlugin$inboundSchema.and(
|
|
3291
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
3292
|
+
),
|
|
3298
3293
|
components.ResponseHealingPlugin$inboundSchema,
|
|
3294
|
+
components.TraceScrubbingPlugin$inboundSchema,
|
|
3299
3295
|
]),
|
|
3300
3296
|
).optional(),
|
|
3301
3297
|
fallbacks: z.array(z.lazy(() => GetPromptVersionFallbacks$inboundSchema))
|
|
@@ -140,7 +140,7 @@ export const GetV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
140
140
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
141
141
|
.optional(),
|
|
142
142
|
updated: z.string().datetime({ offset: true }).default(
|
|
143
|
-
"2026-09-
|
|
143
|
+
"2026-09-04T10:08:50.814Z",
|
|
144
144
|
).transform(v => new Date(v)),
|
|
145
145
|
filter_type: z.literal("name"),
|
|
146
146
|
filter_value: z.string(),
|
|
@@ -185,7 +185,7 @@ export const GetV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
185
185
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
186
186
|
.optional(),
|
|
187
187
|
updated: z.string().datetime({ offset: true }).default(
|
|
188
|
-
"2026-09-
|
|
188
|
+
"2026-09-04T10:08:50.814Z",
|
|
189
189
|
).transform(v => new Date(v)),
|
|
190
190
|
filter_type: z.literal("span_type"),
|
|
191
191
|
filter_values: z.array(z.string()),
|
|
@@ -141,7 +141,7 @@ export const GetV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
141
141
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
142
142
|
.optional(),
|
|
143
143
|
updated: z.string().datetime({ offset: true }).default(
|
|
144
|
-
"2026-09-
|
|
144
|
+
"2026-09-04T10:08:50.814Z",
|
|
145
145
|
).transform(v => new Date(v)),
|
|
146
146
|
filter_type: z.literal("name"),
|
|
147
147
|
filter_value: z.string(),
|
|
@@ -186,7 +186,7 @@ export const GetV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
186
186
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
187
187
|
.optional(),
|
|
188
188
|
updated: z.string().datetime({ offset: true }).default(
|
|
189
|
-
"2026-09-
|
|
189
|
+
"2026-09-04T10:08:50.814Z",
|
|
190
190
|
).transform(v => new Date(v)),
|
|
191
191
|
filter_type: z.literal("span_type"),
|
|
192
192
|
filter_values: z.array(z.string()),
|
|
@@ -193,6 +193,10 @@ export type ListAgentsEvaluators = {
|
|
|
193
193
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
194
194
|
*/
|
|
195
195
|
executeOn: ListAgentsExecuteOn;
|
|
196
|
+
/**
|
|
197
|
+
* Evaluator-specific configuration, passed through to the evaluator at run time. For orq_pii_detection this carries regions, entities, entity_thresholds, language and threshold, and is validated against PIIDetectionGuardrailOptions: regions and entities are two mutually exclusive coverage modes, and every entity_thresholds key must also appear in entities. on_failure is rejected: an evaluator acting as a guardrail always fails closed.
|
|
198
|
+
*/
|
|
199
|
+
options?: { [k: string]: any } | undefined;
|
|
196
200
|
};
|
|
197
201
|
|
|
198
202
|
/**
|
|
@@ -222,6 +226,10 @@ export type ListAgentsGuardrails = {
|
|
|
222
226
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
223
227
|
*/
|
|
224
228
|
executeOn: ListAgentsAgentsExecuteOn;
|
|
229
|
+
/**
|
|
230
|
+
* Evaluator-specific configuration, passed through to the evaluator at run time. For orq_pii_detection this carries regions, entities, entity_thresholds, language and threshold, and is validated against PIIDetectionGuardrailOptions: regions and entities are two mutually exclusive coverage modes, and every entity_thresholds key must also appear in entities. on_failure is rejected: an evaluator acting as a guardrail always fails closed.
|
|
231
|
+
*/
|
|
232
|
+
options?: { [k: string]: any } | undefined;
|
|
225
233
|
};
|
|
226
234
|
|
|
227
235
|
export type ListAgentsSettings = {
|
|
@@ -251,7 +259,7 @@ export type ListAgentsSettings = {
|
|
|
251
259
|
*/
|
|
252
260
|
evaluators?: Array<ListAgentsEvaluators> | undefined;
|
|
253
261
|
/**
|
|
254
|
-
* Configuration for a guardrail applied to the agent
|
|
262
|
+
* Configuration for a guardrail applied to the agent. sample_rate has no effect here: a guardrail is a gate rather than a measurement, so it runs on every request.
|
|
255
263
|
*/
|
|
256
264
|
guardrails?: Array<ListAgentsGuardrails> | undefined;
|
|
257
265
|
};
|
|
@@ -445,11 +453,9 @@ export type ListAgentsAgentsGuardrails = {
|
|
|
445
453
|
};
|
|
446
454
|
|
|
447
455
|
export type ListAgentsPlugins =
|
|
448
|
-
| components.
|
|
449
|
-
| components.
|
|
450
|
-
| components.TraceScrubbingPlugin
|
|
451
|
-
| components.PIIRedactionPluginAuto
|
|
452
|
-
| components.ResponseHealingPlugin;
|
|
456
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
457
|
+
| components.ResponseHealingPlugin
|
|
458
|
+
| components.TraceScrubbingPlugin;
|
|
453
459
|
|
|
454
460
|
export type ListAgentsFallbacks = {
|
|
455
461
|
/**
|
|
@@ -671,11 +677,9 @@ export type ListAgentsParameters = {
|
|
|
671
677
|
*/
|
|
672
678
|
plugins?:
|
|
673
679
|
| Array<
|
|
674
|
-
| components.
|
|
675
|
-
| components.PIIRedactionPluginNl
|
|
676
|
-
| components.TraceScrubbingPlugin
|
|
677
|
-
| components.PIIRedactionPluginAuto
|
|
680
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
678
681
|
| components.ResponseHealingPlugin
|
|
682
|
+
| components.TraceScrubbingPlugin
|
|
679
683
|
>
|
|
680
684
|
| undefined;
|
|
681
685
|
/**
|
|
@@ -913,11 +917,9 @@ export type ListAgentsFallbackModelConfigurationGuardrails = {
|
|
|
913
917
|
};
|
|
914
918
|
|
|
915
919
|
export type ListAgentsFallbackModelConfigurationPlugins =
|
|
916
|
-
| components.
|
|
917
|
-
| components.
|
|
918
|
-
| components.TraceScrubbingPlugin
|
|
919
|
-
| components.PIIRedactionPluginAuto
|
|
920
|
-
| components.ResponseHealingPlugin;
|
|
920
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
921
|
+
| components.ResponseHealingPlugin
|
|
922
|
+
| components.TraceScrubbingPlugin;
|
|
921
923
|
|
|
922
924
|
export type ListAgentsFallbackModelConfigurationFallbacks = {
|
|
923
925
|
/**
|
|
@@ -1154,11 +1156,9 @@ export type ListAgentsFallbackModelConfigurationParameters = {
|
|
|
1154
1156
|
*/
|
|
1155
1157
|
plugins?:
|
|
1156
1158
|
| Array<
|
|
1157
|
-
| components.
|
|
1158
|
-
| components.PIIRedactionPluginNl
|
|
1159
|
-
| components.TraceScrubbingPlugin
|
|
1160
|
-
| components.PIIRedactionPluginAuto
|
|
1159
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
1161
1160
|
| components.ResponseHealingPlugin
|
|
1161
|
+
| components.TraceScrubbingPlugin
|
|
1162
1162
|
>
|
|
1163
1163
|
| undefined;
|
|
1164
1164
|
/**
|
|
@@ -1530,6 +1530,7 @@ export const ListAgentsEvaluators$inboundSchema: z.ZodType<
|
|
|
1530
1530
|
id: z.string(),
|
|
1531
1531
|
sample_rate: z.number().default(50),
|
|
1532
1532
|
execute_on: ListAgentsExecuteOn$inboundSchema,
|
|
1533
|
+
options: z.record(z.any()).optional(),
|
|
1533
1534
|
}).transform((v) => {
|
|
1534
1535
|
return remap$(v, {
|
|
1535
1536
|
"sample_rate": "sampleRate",
|
|
@@ -1561,6 +1562,7 @@ export const ListAgentsGuardrails$inboundSchema: z.ZodType<
|
|
|
1561
1562
|
id: z.string(),
|
|
1562
1563
|
sample_rate: z.number().default(50),
|
|
1563
1564
|
execute_on: ListAgentsAgentsExecuteOn$inboundSchema,
|
|
1565
|
+
options: z.record(z.any()).optional(),
|
|
1564
1566
|
}).transform((v) => {
|
|
1565
1567
|
return remap$(v, {
|
|
1566
1568
|
"sample_rate": "sampleRate",
|
|
@@ -1903,11 +1905,11 @@ export const ListAgentsPlugins$inboundSchema: z.ZodType<
|
|
|
1903
1905
|
z.ZodTypeDef,
|
|
1904
1906
|
unknown
|
|
1905
1907
|
> = z.union([
|
|
1906
|
-
components.
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
components.PIIRedactionPluginAuto$inboundSchema,
|
|
1908
|
+
components.PIIRedactionPlugin$inboundSchema.and(
|
|
1909
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
1910
|
+
),
|
|
1910
1911
|
components.ResponseHealingPlugin$inboundSchema,
|
|
1912
|
+
components.TraceScrubbingPlugin$inboundSchema,
|
|
1911
1913
|
]);
|
|
1912
1914
|
|
|
1913
1915
|
export function listAgentsPluginsFromJSON(
|
|
@@ -2118,11 +2120,11 @@ export const ListAgentsParameters$inboundSchema: z.ZodType<
|
|
|
2118
2120
|
.optional(),
|
|
2119
2121
|
plugins: z.array(
|
|
2120
2122
|
z.union([
|
|
2121
|
-
components.
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
components.PIIRedactionPluginAuto$inboundSchema,
|
|
2123
|
+
components.PIIRedactionPlugin$inboundSchema.and(
|
|
2124
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
2125
|
+
),
|
|
2125
2126
|
components.ResponseHealingPlugin$inboundSchema,
|
|
2127
|
+
components.TraceScrubbingPlugin$inboundSchema,
|
|
2126
2128
|
]),
|
|
2127
2129
|
).optional(),
|
|
2128
2130
|
fallbacks: z.array(z.lazy(() => ListAgentsFallbacks$inboundSchema))
|
|
@@ -2525,11 +2527,11 @@ export const ListAgentsFallbackModelConfigurationPlugins$inboundSchema:
|
|
|
2525
2527
|
z.ZodTypeDef,
|
|
2526
2528
|
unknown
|
|
2527
2529
|
> = z.union([
|
|
2528
|
-
components.
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
components.PIIRedactionPluginAuto$inboundSchema,
|
|
2530
|
+
components.PIIRedactionPlugin$inboundSchema.and(
|
|
2531
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
2532
|
+
),
|
|
2532
2533
|
components.ResponseHealingPlugin$inboundSchema,
|
|
2534
|
+
components.TraceScrubbingPlugin$inboundSchema,
|
|
2533
2535
|
]);
|
|
2534
2536
|
|
|
2535
2537
|
export function listAgentsFallbackModelConfigurationPluginsFromJSON(
|
|
@@ -2792,11 +2794,11 @@ export const ListAgentsFallbackModelConfigurationParameters$inboundSchema:
|
|
|
2792
2794
|
).optional(),
|
|
2793
2795
|
plugins: z.array(
|
|
2794
2796
|
z.union([
|
|
2795
|
-
components.
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
components.PIIRedactionPluginAuto$inboundSchema,
|
|
2797
|
+
components.PIIRedactionPlugin$inboundSchema.and(
|
|
2798
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
2799
|
+
),
|
|
2799
2800
|
components.ResponseHealingPlugin$inboundSchema,
|
|
2801
|
+
components.TraceScrubbingPlugin$inboundSchema,
|
|
2800
2802
|
]),
|
|
2801
2803
|
).optional(),
|
|
2802
2804
|
fallbacks: z.array(
|
|
@@ -1653,7 +1653,7 @@ export const ListDatasetDatapointsEvaluations4$inboundSchema: z.ZodType<
|
|
|
1653
1653
|
explanation: z.string().optional(),
|
|
1654
1654
|
reviewed_by_id: z.string(),
|
|
1655
1655
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1656
|
-
"2026-09-
|
|
1656
|
+
"2026-09-04T10:08:59.600Z",
|
|
1657
1657
|
).transform(v => new Date(v)),
|
|
1658
1658
|
type: z.literal("string_array"),
|
|
1659
1659
|
values: z.array(z.string()),
|
|
@@ -1749,7 +1749,7 @@ export const ListDatasetDatapointsEvaluations3$inboundSchema: z.ZodType<
|
|
|
1749
1749
|
explanation: z.string().optional(),
|
|
1750
1750
|
reviewed_by_id: z.string(),
|
|
1751
1751
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1752
|
-
"2026-09-
|
|
1752
|
+
"2026-09-04T10:08:59.600Z",
|
|
1753
1753
|
).transform(v => new Date(v)),
|
|
1754
1754
|
type: z.literal("boolean"),
|
|
1755
1755
|
value: z.boolean(),
|
|
@@ -1853,7 +1853,7 @@ export const ListDatasetDatapointsEvaluations2$inboundSchema: z.ZodType<
|
|
|
1853
1853
|
explanation: z.string().optional(),
|
|
1854
1854
|
reviewed_by_id: z.string(),
|
|
1855
1855
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1856
|
-
"2026-09-
|
|
1856
|
+
"2026-09-04T10:08:59.599Z",
|
|
1857
1857
|
).transform(v => new Date(v)),
|
|
1858
1858
|
type: z.literal("number"),
|
|
1859
1859
|
value: z.number(),
|
|
@@ -1959,7 +1959,7 @@ export const ListDatasetDatapointsEvaluations1$inboundSchema: z.ZodType<
|
|
|
1959
1959
|
explanation: z.string().optional(),
|
|
1960
1960
|
reviewed_by_id: z.string(),
|
|
1961
1961
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1962
|
-
"2026-09-
|
|
1962
|
+
"2026-09-04T10:08:59.599Z",
|
|
1963
1963
|
).transform(v => new Date(v)),
|
|
1964
1964
|
type: z.literal("string"),
|
|
1965
1965
|
value: z.string(),
|
|
@@ -2042,7 +2042,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
2042
2042
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2043
2043
|
.optional(),
|
|
2044
2044
|
updated: z.string().datetime({ offset: true }).default(
|
|
2045
|
-
"2026-09-
|
|
2045
|
+
"2026-09-04T10:08:50.814Z",
|
|
2046
2046
|
).transform(v => new Date(v)),
|
|
2047
2047
|
}).transform((v) => {
|
|
2048
2048
|
return remap$(v, {
|
|
@@ -169,7 +169,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
|
|
|
169
169
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
170
170
|
.optional(),
|
|
171
171
|
updated: z.string().datetime({ offset: true }).default(
|
|
172
|
-
"2026-09-
|
|
172
|
+
"2026-09-04T10:08:50.814Z",
|
|
173
173
|
).transform(v => new Date(v)),
|
|
174
174
|
}).transform((v) => {
|
|
175
175
|
return remap$(v, {
|
|
@@ -864,11 +864,9 @@ export type ListPromptVersionsGuardrails = {
|
|
|
864
864
|
};
|
|
865
865
|
|
|
866
866
|
export type ListPromptVersionsPlugins =
|
|
867
|
-
| components.
|
|
868
|
-
| components.
|
|
869
|
-
| components.TraceScrubbingPlugin
|
|
870
|
-
| components.PIIRedactionPluginAuto
|
|
871
|
-
| components.ResponseHealingPlugin;
|
|
867
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
868
|
+
| components.ResponseHealingPlugin
|
|
869
|
+
| components.TraceScrubbingPlugin;
|
|
872
870
|
|
|
873
871
|
export type ListPromptVersionsFallbacks = {
|
|
874
872
|
/**
|
|
@@ -1459,11 +1457,9 @@ export type ListPromptVersionsPromptField = {
|
|
|
1459
1457
|
*/
|
|
1460
1458
|
plugins?:
|
|
1461
1459
|
| Array<
|
|
1462
|
-
| components.
|
|
1463
|
-
| components.PIIRedactionPluginNl
|
|
1464
|
-
| components.TraceScrubbingPlugin
|
|
1465
|
-
| components.PIIRedactionPluginAuto
|
|
1460
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
1466
1461
|
| components.ResponseHealingPlugin
|
|
1462
|
+
| components.TraceScrubbingPlugin
|
|
1467
1463
|
>
|
|
1468
1464
|
| undefined;
|
|
1469
1465
|
/**
|
|
@@ -2561,11 +2557,11 @@ export const ListPromptVersionsPlugins$inboundSchema: z.ZodType<
|
|
|
2561
2557
|
z.ZodTypeDef,
|
|
2562
2558
|
unknown
|
|
2563
2559
|
> = z.union([
|
|
2564
|
-
components.
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
components.PIIRedactionPluginAuto$inboundSchema,
|
|
2560
|
+
components.PIIRedactionPlugin$inboundSchema.and(
|
|
2561
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
2562
|
+
),
|
|
2568
2563
|
components.ResponseHealingPlugin$inboundSchema,
|
|
2564
|
+
components.TraceScrubbingPlugin$inboundSchema,
|
|
2569
2565
|
]);
|
|
2570
2566
|
|
|
2571
2567
|
export function listPromptVersionsPluginsFromJSON(
|
|
@@ -3341,11 +3337,11 @@ export const ListPromptVersionsPromptField$inboundSchema: z.ZodType<
|
|
|
3341
3337
|
.optional(),
|
|
3342
3338
|
plugins: z.array(
|
|
3343
3339
|
z.union([
|
|
3344
|
-
components.
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
components.PIIRedactionPluginAuto$inboundSchema,
|
|
3340
|
+
components.PIIRedactionPlugin$inboundSchema.and(
|
|
3341
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
3342
|
+
),
|
|
3348
3343
|
components.ResponseHealingPlugin$inboundSchema,
|
|
3344
|
+
components.TraceScrubbingPlugin$inboundSchema,
|
|
3349
3345
|
]),
|
|
3350
3346
|
).optional(),
|
|
3351
3347
|
fallbacks: z.array(z.lazy(() => ListPromptVersionsFallbacks$inboundSchema))
|
|
@@ -318,7 +318,7 @@ export const PatchV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
318
318
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
319
319
|
.optional(),
|
|
320
320
|
updated: z.string().datetime({ offset: true }).default(
|
|
321
|
-
"2026-09-
|
|
321
|
+
"2026-09-04T10:08:50.814Z",
|
|
322
322
|
).transform(v => new Date(v)),
|
|
323
323
|
filter_type: z.literal("name"),
|
|
324
324
|
filter_value: z.string(),
|
|
@@ -364,7 +364,7 @@ export const PatchV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
364
364
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
365
365
|
.optional(),
|
|
366
366
|
updated: z.string().datetime({ offset: true }).default(
|
|
367
|
-
"2026-09-
|
|
367
|
+
"2026-09-04T10:08:50.814Z",
|
|
368
368
|
).transform(v => new Date(v)),
|
|
369
369
|
filter_type: z.literal("span_type"),
|
|
370
370
|
filter_values: z.array(z.string()),
|
|
@@ -245,7 +245,7 @@ export const RequestBody4$outboundSchema: z.ZodType<
|
|
|
245
245
|
PostV2FeedbackEvaluationRequestBodyFeedbackRequestSource$outboundSchema
|
|
246
246
|
.default("orq"),
|
|
247
247
|
explanation: z.string().optional(),
|
|
248
|
-
reviewedAt: z.date().default(() => new Date("2026-09-
|
|
248
|
+
reviewedAt: z.date().default(() => new Date("2026-09-04T10:08:59.675Z"))
|
|
249
249
|
.transform(v => v.toISOString()),
|
|
250
250
|
type: z.literal("string_array"),
|
|
251
251
|
values: z.array(z.string()),
|
|
@@ -299,7 +299,7 @@ export const Three$outboundSchema: z.ZodType<
|
|
|
299
299
|
source: PostV2FeedbackEvaluationRequestBodyFeedbackSource$outboundSchema
|
|
300
300
|
.default("orq"),
|
|
301
301
|
explanation: z.string().optional(),
|
|
302
|
-
reviewedAt: z.date().default(() => new Date("2026-09-
|
|
302
|
+
reviewedAt: z.date().default(() => new Date("2026-09-04T10:08:59.675Z"))
|
|
303
303
|
.transform(v => v.toISOString()),
|
|
304
304
|
type: z.literal("boolean"),
|
|
305
305
|
value: z.boolean(),
|
|
@@ -353,7 +353,7 @@ export const RequestBody2$outboundSchema: z.ZodType<
|
|
|
353
353
|
"orq",
|
|
354
354
|
),
|
|
355
355
|
explanation: z.string().optional(),
|
|
356
|
-
reviewedAt: z.date().default(() => new Date("2026-09-
|
|
356
|
+
reviewedAt: z.date().default(() => new Date("2026-09-04T10:08:59.674Z"))
|
|
357
357
|
.transform(v => v.toISOString()),
|
|
358
358
|
type: z.literal("number"),
|
|
359
359
|
value: z.number(),
|
|
@@ -405,7 +405,7 @@ export const RequestBody1$outboundSchema: z.ZodType<
|
|
|
405
405
|
humanReviewId: z.string().optional(),
|
|
406
406
|
source: RequestBodySource$outboundSchema.default("orq"),
|
|
407
407
|
explanation: z.string().optional(),
|
|
408
|
-
reviewedAt: z.date().default(() => new Date("2026-09-
|
|
408
|
+
reviewedAt: z.date().default(() => new Date("2026-09-04T10:08:59.674Z"))
|
|
409
409
|
.transform(v => v.toISOString()),
|
|
410
410
|
type: z.literal("string"),
|
|
411
411
|
value: z.string(),
|
|
@@ -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-09-
|
|
274
|
+
"2026-09-04T10:08:50.814Z",
|
|
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-09-
|
|
319
|
+
"2026-09-04T10:08:50.814Z",
|
|
320
320
|
).transform(v => new Date(v)),
|
|
321
321
|
filter_type: z.literal("span_type"),
|
|
322
322
|
filter_values: z.array(z.string()),
|
|
@@ -175,6 +175,10 @@ export type RetrieveAgentRequestEvaluators = {
|
|
|
175
175
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
176
176
|
*/
|
|
177
177
|
executeOn: RetrieveAgentRequestExecuteOn;
|
|
178
|
+
/**
|
|
179
|
+
* Evaluator-specific configuration, passed through to the evaluator at run time. For orq_pii_detection this carries regions, entities, entity_thresholds, language and threshold, and is validated against PIIDetectionGuardrailOptions: regions and entities are two mutually exclusive coverage modes, and every entity_thresholds key must also appear in entities. on_failure is rejected: an evaluator acting as a guardrail always fails closed.
|
|
180
|
+
*/
|
|
181
|
+
options?: { [k: string]: any } | undefined;
|
|
178
182
|
};
|
|
179
183
|
|
|
180
184
|
/**
|
|
@@ -204,6 +208,10 @@ export type RetrieveAgentRequestGuardrails = {
|
|
|
204
208
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
205
209
|
*/
|
|
206
210
|
executeOn: RetrieveAgentRequestAgentsExecuteOn;
|
|
211
|
+
/**
|
|
212
|
+
* Evaluator-specific configuration, passed through to the evaluator at run time. For orq_pii_detection this carries regions, entities, entity_thresholds, language and threshold, and is validated against PIIDetectionGuardrailOptions: regions and entities are two mutually exclusive coverage modes, and every entity_thresholds key must also appear in entities. on_failure is rejected: an evaluator acting as a guardrail always fails closed.
|
|
213
|
+
*/
|
|
214
|
+
options?: { [k: string]: any } | undefined;
|
|
207
215
|
};
|
|
208
216
|
|
|
209
217
|
export type RetrieveAgentRequestSettings = {
|
|
@@ -233,7 +241,7 @@ export type RetrieveAgentRequestSettings = {
|
|
|
233
241
|
*/
|
|
234
242
|
evaluators?: Array<RetrieveAgentRequestEvaluators> | undefined;
|
|
235
243
|
/**
|
|
236
|
-
* Configuration for a guardrail applied to the agent
|
|
244
|
+
* Configuration for a guardrail applied to the agent. sample_rate has no effect here: a guardrail is a gate rather than a measurement, so it runs on every request.
|
|
237
245
|
*/
|
|
238
246
|
guardrails?: Array<RetrieveAgentRequestGuardrails> | undefined;
|
|
239
247
|
};
|
|
@@ -433,11 +441,9 @@ export type RetrieveAgentRequestAgentsGuardrails = {
|
|
|
433
441
|
};
|
|
434
442
|
|
|
435
443
|
export type RetrieveAgentRequestPlugins =
|
|
436
|
-
| components.
|
|
437
|
-
| components.
|
|
438
|
-
| components.TraceScrubbingPlugin
|
|
439
|
-
| components.PIIRedactionPluginAuto
|
|
440
|
-
| components.ResponseHealingPlugin;
|
|
444
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
445
|
+
| components.ResponseHealingPlugin
|
|
446
|
+
| components.TraceScrubbingPlugin;
|
|
441
447
|
|
|
442
448
|
export type RetrieveAgentRequestFallbacks = {
|
|
443
449
|
/**
|
|
@@ -667,11 +673,9 @@ export type RetrieveAgentRequestParameters = {
|
|
|
667
673
|
*/
|
|
668
674
|
plugins?:
|
|
669
675
|
| Array<
|
|
670
|
-
| components.
|
|
671
|
-
| components.PIIRedactionPluginNl
|
|
672
|
-
| components.TraceScrubbingPlugin
|
|
673
|
-
| components.PIIRedactionPluginAuto
|
|
676
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
674
677
|
| components.ResponseHealingPlugin
|
|
678
|
+
| components.TraceScrubbingPlugin
|
|
675
679
|
>
|
|
676
680
|
| undefined;
|
|
677
681
|
/**
|
|
@@ -912,11 +916,9 @@ export type RetrieveAgentRequestFallbackModelConfigurationGuardrails = {
|
|
|
912
916
|
};
|
|
913
917
|
|
|
914
918
|
export type RetrieveAgentRequestFallbackModelConfigurationPlugins =
|
|
915
|
-
| components.
|
|
916
|
-
| components.
|
|
917
|
-
| components.TraceScrubbingPlugin
|
|
918
|
-
| components.PIIRedactionPluginAuto
|
|
919
|
-
| components.ResponseHealingPlugin;
|
|
919
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
920
|
+
| components.ResponseHealingPlugin
|
|
921
|
+
| components.TraceScrubbingPlugin;
|
|
920
922
|
|
|
921
923
|
export type RetrieveAgentRequestFallbackModelConfigurationFallbacks = {
|
|
922
924
|
/**
|
|
@@ -1152,11 +1154,9 @@ export type RetrieveAgentRequestFallbackModelConfigurationParameters = {
|
|
|
1152
1154
|
*/
|
|
1153
1155
|
plugins?:
|
|
1154
1156
|
| Array<
|
|
1155
|
-
| components.
|
|
1156
|
-
| components.PIIRedactionPluginNl
|
|
1157
|
-
| components.TraceScrubbingPlugin
|
|
1158
|
-
| components.PIIRedactionPluginAuto
|
|
1157
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
1159
1158
|
| components.ResponseHealingPlugin
|
|
1159
|
+
| components.TraceScrubbingPlugin
|
|
1160
1160
|
>
|
|
1161
1161
|
| undefined;
|
|
1162
1162
|
/**
|
|
@@ -1516,6 +1516,7 @@ export const RetrieveAgentRequestEvaluators$inboundSchema: z.ZodType<
|
|
|
1516
1516
|
id: z.string(),
|
|
1517
1517
|
sample_rate: z.number().default(50),
|
|
1518
1518
|
execute_on: RetrieveAgentRequestExecuteOn$inboundSchema,
|
|
1519
|
+
options: z.record(z.any()).optional(),
|
|
1519
1520
|
}).transform((v) => {
|
|
1520
1521
|
return remap$(v, {
|
|
1521
1522
|
"sample_rate": "sampleRate",
|
|
@@ -1547,6 +1548,7 @@ export const RetrieveAgentRequestGuardrails$inboundSchema: z.ZodType<
|
|
|
1547
1548
|
id: z.string(),
|
|
1548
1549
|
sample_rate: z.number().default(50),
|
|
1549
1550
|
execute_on: RetrieveAgentRequestAgentsExecuteOn$inboundSchema,
|
|
1551
|
+
options: z.record(z.any()).optional(),
|
|
1550
1552
|
}).transform((v) => {
|
|
1551
1553
|
return remap$(v, {
|
|
1552
1554
|
"sample_rate": "sampleRate",
|
|
@@ -1912,11 +1914,11 @@ export const RetrieveAgentRequestPlugins$inboundSchema: z.ZodType<
|
|
|
1912
1914
|
z.ZodTypeDef,
|
|
1913
1915
|
unknown
|
|
1914
1916
|
> = z.union([
|
|
1915
|
-
components.
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
components.PIIRedactionPluginAuto$inboundSchema,
|
|
1917
|
+
components.PIIRedactionPlugin$inboundSchema.and(
|
|
1918
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
1919
|
+
),
|
|
1919
1920
|
components.ResponseHealingPlugin$inboundSchema,
|
|
1921
|
+
components.TraceScrubbingPlugin$inboundSchema,
|
|
1920
1922
|
]);
|
|
1921
1923
|
|
|
1922
1924
|
export function retrieveAgentRequestPluginsFromJSON(
|
|
@@ -2136,11 +2138,11 @@ export const RetrieveAgentRequestParameters$inboundSchema: z.ZodType<
|
|
|
2136
2138
|
).optional(),
|
|
2137
2139
|
plugins: z.array(
|
|
2138
2140
|
z.union([
|
|
2139
|
-
components.
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
components.PIIRedactionPluginAuto$inboundSchema,
|
|
2141
|
+
components.PIIRedactionPlugin$inboundSchema.and(
|
|
2142
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
2143
|
+
),
|
|
2143
2144
|
components.ResponseHealingPlugin$inboundSchema,
|
|
2145
|
+
components.TraceScrubbingPlugin$inboundSchema,
|
|
2144
2146
|
]),
|
|
2145
2147
|
).optional(),
|
|
2146
2148
|
fallbacks: z.array(z.lazy(() => RetrieveAgentRequestFallbacks$inboundSchema))
|
|
@@ -2571,11 +2573,11 @@ export const RetrieveAgentRequestFallbackModelConfigurationPlugins$inboundSchema
|
|
|
2571
2573
|
z.ZodTypeDef,
|
|
2572
2574
|
unknown
|
|
2573
2575
|
> = z.union([
|
|
2574
|
-
components.
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
components.PIIRedactionPluginAuto$inboundSchema,
|
|
2576
|
+
components.PIIRedactionPlugin$inboundSchema.and(
|
|
2577
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
2578
|
+
),
|
|
2578
2579
|
components.ResponseHealingPlugin$inboundSchema,
|
|
2580
|
+
components.TraceScrubbingPlugin$inboundSchema,
|
|
2579
2581
|
]);
|
|
2580
2582
|
|
|
2581
2583
|
export function retrieveAgentRequestFallbackModelConfigurationPluginsFromJSON(
|
|
@@ -2855,11 +2857,11 @@ export const RetrieveAgentRequestFallbackModelConfigurationParameters$inboundSch
|
|
|
2855
2857
|
).optional(),
|
|
2856
2858
|
plugins: z.array(
|
|
2857
2859
|
z.union([
|
|
2858
|
-
components.
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
components.PIIRedactionPluginAuto$inboundSchema,
|
|
2860
|
+
components.PIIRedactionPlugin$inboundSchema.and(
|
|
2861
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
2862
|
+
),
|
|
2862
2863
|
components.ResponseHealingPlugin$inboundSchema,
|
|
2864
|
+
components.TraceScrubbingPlugin$inboundSchema,
|
|
2863
2865
|
]),
|
|
2864
2866
|
).optional(),
|
|
2865
2867
|
fallbacks: z.array(
|
|
@@ -1585,7 +1585,7 @@ export const RetrieveDatapointEvaluations4$inboundSchema: z.ZodType<
|
|
|
1585
1585
|
explanation: z.string().optional(),
|
|
1586
1586
|
reviewed_by_id: z.string(),
|
|
1587
1587
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1588
|
-
"2026-09-
|
|
1588
|
+
"2026-09-04T10:08:59.604Z",
|
|
1589
1589
|
).transform(v => new Date(v)),
|
|
1590
1590
|
type: z.literal("string_array"),
|
|
1591
1591
|
values: z.array(z.string()),
|
|
@@ -1685,7 +1685,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
|
|
|
1685
1685
|
explanation: z.string().optional(),
|
|
1686
1686
|
reviewed_by_id: z.string(),
|
|
1687
1687
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1688
|
-
"2026-09-
|
|
1688
|
+
"2026-09-04T10:08:59.603Z",
|
|
1689
1689
|
).transform(v => new Date(v)),
|
|
1690
1690
|
type: z.literal("boolean"),
|
|
1691
1691
|
value: z.boolean(),
|
|
@@ -1783,7 +1783,7 @@ export const RetrieveDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
1783
1783
|
explanation: z.string().optional(),
|
|
1784
1784
|
reviewed_by_id: z.string(),
|
|
1785
1785
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1786
|
-
"2026-09-
|
|
1786
|
+
"2026-09-04T10:08:59.603Z",
|
|
1787
1787
|
).transform(v => new Date(v)),
|
|
1788
1788
|
type: z.literal("number"),
|
|
1789
1789
|
value: z.number(),
|
|
@@ -1871,7 +1871,7 @@ export const RetrieveDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
1871
1871
|
explanation: z.string().optional(),
|
|
1872
1872
|
reviewed_by_id: z.string(),
|
|
1873
1873
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1874
|
-
"2026-09-
|
|
1874
|
+
"2026-09-04T10:08:59.603Z",
|
|
1875
1875
|
).transform(v => new Date(v)),
|
|
1876
1876
|
type: z.literal("string"),
|
|
1877
1877
|
value: z.string(),
|
|
@@ -1952,7 +1952,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
1952
1952
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1953
1953
|
.optional(),
|
|
1954
1954
|
updated: z.string().datetime({ offset: true }).default(
|
|
1955
|
-
"2026-09-
|
|
1955
|
+
"2026-09-04T10:08:50.814Z",
|
|
1956
1956
|
).transform(v => new Date(v)),
|
|
1957
1957
|
}).transform((v) => {
|
|
1958
1958
|
return remap$(v, {
|