@orq-ai/node 4.13.0-rc.6 → 4.13.0-rc.8
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/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/evaluatorresponsefunction.js +2 -2
- package/models/components/evaluatorresponsehttp.js +2 -2
- package/models/components/evaluatorresponsejsonschema.js +2 -2
- package/models/components/evaluatorresponsellm.js +2 -2
- package/models/components/evaluatorresponsepython.js +2 -2
- package/models/components/evaluatorresponseragas.js +2 -2
- package/models/components/evaluatorresponsetypescript.js +2 -2
- package/models/components/index.d.ts +2 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -1
- package/models/components/index.js.map +1 -1
- package/models/components/modeldocument.d.ts +2 -2
- package/models/components/modeldocument.d.ts.map +1 -1
- package/models/components/modeldocument.js +2 -2
- package/models/components/modeldocument.js.map +1 -1
- package/models/components/plugin.d.ts +2 -0
- package/models/components/plugin.d.ts.map +1 -1
- package/models/components/plugin.js +3 -0
- package/models/components/plugin.js.map +1 -1
- package/models/components/publicplugin.d.ts +75 -0
- package/models/components/publicplugin.d.ts.map +1 -0
- package/models/components/{publicpiiredactionplugin.js → publicplugin.js} +19 -20
- package/models/components/publicplugin.js.map +1 -0
- package/models/components/reasoning.d.ts +1 -0
- package/models/components/reasoning.d.ts.map +1 -1
- package/models/components/reasoning.js +1 -0
- package/models/components/reasoning.js.map +1 -1
- package/models/components/reasoningparam.d.ts +1 -0
- package/models/components/reasoningparam.d.ts.map +1 -1
- package/models/components/reasoningparam.js +1 -0
- package/models/components/reasoningparam.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/responsehealingplugin.d.ts +35 -0
- package/models/components/responsehealingplugin.d.ts.map +1 -0
- package/models/components/responsehealingplugin.js +68 -0
- package/models/components/responsehealingplugin.js.map +1 -0
- package/models/operations/createagentrequest.d.ts +16 -16
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +8 -0
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts +5 -5
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +2 -0
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createprompt.d.ts +12 -11
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +8 -0
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createrouterresponse.d.ts +3 -3
- package/models/operations/createrouterresponse.d.ts.map +1 -1
- package/models/operations/createrouterresponse.js +2 -1
- package/models/operations/createrouterresponse.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/deploymentgetconfig.d.ts +2 -0
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +2 -0
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +2 -0
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +2 -0
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +4 -0
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +4 -0
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +2 -0
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +2 -0
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/getallprompts.d.ts +7 -6
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +6 -0
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getoneprompt.d.ts +7 -6
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +6 -0
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +7 -6
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +6 -0
- 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 +6 -6
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +4 -0
- 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/listdatasources.js +1 -1
- package/models/operations/listpromptversions.d.ts +7 -6
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +6 -0
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/modelcreate.d.ts +2 -2
- package/models/operations/modelcreate.d.ts.map +1 -1
- package/models/operations/modelcreate.js +2 -2
- package/models/operations/modelcreate.js.map +1 -1
- package/models/operations/modelcreateawsbedrock.d.ts +2 -2
- package/models/operations/modelcreateawsbedrock.d.ts.map +1 -1
- package/models/operations/modelcreateawsbedrock.js +2 -2
- package/models/operations/modelcreateawsbedrock.js.map +1 -1
- package/models/operations/modelcreateopenailike.d.ts +2 -2
- package/models/operations/modelcreateopenailike.d.ts.map +1 -1
- package/models/operations/modelcreateopenailike.js +2 -2
- package/models/operations/modelcreateopenailike.js.map +1 -1
- package/models/operations/modelcreatevertex.d.ts +2 -2
- package/models/operations/modelcreatevertex.d.ts.map +1 -1
- package/models/operations/modelcreatevertex.js +2 -2
- package/models/operations/modelcreatevertex.js.map +1 -1
- package/models/operations/modelupdate.d.ts +2 -2
- package/models/operations/modelupdate.d.ts.map +1 -1
- package/models/operations/modelupdate.js +2 -2
- package/models/operations/modelupdate.js.map +1 -1
- package/models/operations/modelupdateawsbedrock.d.ts +2 -2
- package/models/operations/modelupdateawsbedrock.d.ts.map +1 -1
- package/models/operations/modelupdateawsbedrock.js +2 -2
- package/models/operations/modelupdateawsbedrock.js.map +1 -1
- package/models/operations/modelupdateopenailike.d.ts +2 -2
- package/models/operations/modelupdateopenailike.d.ts.map +1 -1
- package/models/operations/modelupdateopenailike.js +2 -2
- package/models/operations/modelupdateopenailike.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 +6 -6
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +4 -0
- 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/retrievedatasource.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.d.ts +10 -10
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +5 -1
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +10 -10
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +5 -1
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +16 -16
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +8 -0
- 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/updatedatasource.js +1 -1
- package/models/operations/updateprompt.d.ts +12 -11
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +8 -0
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +3 -3
- 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/src/lib/config.ts +2 -2
- package/src/models/components/evaluatorresponsefunction.ts +2 -2
- package/src/models/components/evaluatorresponsehttp.ts +2 -2
- package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
- package/src/models/components/evaluatorresponsellm.ts +2 -2
- package/src/models/components/evaluatorresponsepython.ts +2 -2
- package/src/models/components/evaluatorresponseragas.ts +2 -2
- package/src/models/components/evaluatorresponsetypescript.ts +2 -2
- package/src/models/components/index.ts +2 -1
- package/src/models/components/modeldocument.ts +4 -4
- package/src/models/components/plugin.ts +7 -0
- package/src/models/components/publicplugin.ts +111 -0
- package/src/models/components/reasoning.ts +1 -0
- package/src/models/components/reasoningparam.ts +1 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/responsehealingplugin.ts +77 -0
- package/src/models/operations/createagentrequest.ts +30 -10
- package/src/models/operations/createchatcompletion.ts +9 -3
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createprompt.ts +19 -8
- package/src/models/operations/createrouterresponse.ts +5 -9
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/deploymentgetconfig.ts +2 -0
- package/src/models/operations/deploymentinvoke.ts +2 -0
- package/src/models/operations/deployments.ts +4 -0
- package/src/models/operations/deploymentstream.ts +2 -0
- package/src/models/operations/getallprompts.ts +10 -5
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getoneprompt.ts +10 -5
- package/src/models/operations/getpromptversion.ts +10 -5
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listagents.ts +12 -4
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listpromptversions.ts +10 -5
- package/src/models/operations/modelcreate.ts +4 -4
- package/src/models/operations/modelcreateawsbedrock.ts +4 -4
- package/src/models/operations/modelcreateopenailike.ts +4 -4
- package/src/models/operations/modelcreatevertex.ts +4 -4
- package/src/models/operations/modelupdate.ts +4 -4
- package/src/models/operations/modelupdateawsbedrock.ts +4 -4
- package/src/models/operations/modelupdateopenailike.ts +4 -4
- 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 +12 -4
- package/src/models/operations/retrievedatapoint.ts +5 -5
- 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 +19 -7
- package/src/models/operations/streamrunagent.ts +19 -7
- package/src/models/operations/updateagent.ts +30 -10
- package/src/models/operations/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateprompt.ts +19 -8
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/feedback.ts +4 -1
- package/models/components/publicpiiredactionplugin.d.ts +0 -79
- package/models/components/publicpiiredactionplugin.d.ts.map +0 -1
- package/models/components/publicpiiredactionplugin.js.map +0 -1
- package/src/models/components/publicpiiredactionplugin.ts +0 -127
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Plugin discriminator. pii_redaction replaces PII with placeholders before the provider sees it and restores the original values in the response. response_healing repairs malformed JSON in non-streaming model output.
|
|
11
|
+
*/
|
|
12
|
+
export const PublicPluginId = {
|
|
13
|
+
PiiRedaction: "pii_redaction",
|
|
14
|
+
ResponseHealing: "response_healing",
|
|
15
|
+
} as const;
|
|
16
|
+
/**
|
|
17
|
+
* Plugin discriminator. pii_redaction replaces PII with placeholders before the provider sees it and restores the original values in the response. response_healing repairs malformed JSON in non-streaming model output.
|
|
18
|
+
*/
|
|
19
|
+
export type PublicPluginId = ClosedEnum<typeof PublicPluginId>;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* pii_redaction only. Detector language. Defaults to en.
|
|
23
|
+
*/
|
|
24
|
+
export const PublicPluginLanguage = {
|
|
25
|
+
En: "en",
|
|
26
|
+
Nl: "nl",
|
|
27
|
+
} as const;
|
|
28
|
+
/**
|
|
29
|
+
* pii_redaction only. Detector language. Defaults to en.
|
|
30
|
+
*/
|
|
31
|
+
export type PublicPluginLanguage = ClosedEnum<typeof PublicPluginLanguage>;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* pii_redaction only. Behavior when redaction is unavailable. block (default) fails the request; passthrough sends the original text.
|
|
35
|
+
*/
|
|
36
|
+
export const PublicPluginOnFailure = {
|
|
37
|
+
Block: "block",
|
|
38
|
+
Passthrough: "passthrough",
|
|
39
|
+
} as const;
|
|
40
|
+
/**
|
|
41
|
+
* pii_redaction only. Behavior when redaction is unavailable. block (default) fails the request; passthrough sends the original text.
|
|
42
|
+
*/
|
|
43
|
+
export type PublicPluginOnFailure = ClosedEnum<typeof PublicPluginOnFailure>;
|
|
44
|
+
|
|
45
|
+
export type PublicPlugin = {
|
|
46
|
+
/**
|
|
47
|
+
* pii_redaction only. Entity types to redact (e.g. EMAIL_ADDRESS, BSN). Omit to redact every type detected for the language.
|
|
48
|
+
*/
|
|
49
|
+
entities?: Array<string> | null | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Plugin discriminator. pii_redaction replaces PII with placeholders before the provider sees it and restores the original values in the response. response_healing repairs malformed JSON in non-streaming model output.
|
|
52
|
+
*/
|
|
53
|
+
id: PublicPluginId;
|
|
54
|
+
/**
|
|
55
|
+
* pii_redaction only. Detector language. Defaults to en.
|
|
56
|
+
*/
|
|
57
|
+
language?: PublicPluginLanguage | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* pii_redaction only. Behavior when redaction is unavailable. block (default) fails the request; passthrough sends the original text.
|
|
60
|
+
*/
|
|
61
|
+
onFailure?: PublicPluginOnFailure | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* pii_redaction only. Detector confidence cutoff in [0,1].
|
|
64
|
+
*/
|
|
65
|
+
threshold?: number | undefined;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/** @internal */
|
|
69
|
+
export const PublicPluginId$outboundSchema: z.ZodNativeEnum<
|
|
70
|
+
typeof PublicPluginId
|
|
71
|
+
> = z.nativeEnum(PublicPluginId);
|
|
72
|
+
|
|
73
|
+
/** @internal */
|
|
74
|
+
export const PublicPluginLanguage$outboundSchema: z.ZodNativeEnum<
|
|
75
|
+
typeof PublicPluginLanguage
|
|
76
|
+
> = z.nativeEnum(PublicPluginLanguage);
|
|
77
|
+
|
|
78
|
+
/** @internal */
|
|
79
|
+
export const PublicPluginOnFailure$outboundSchema: z.ZodNativeEnum<
|
|
80
|
+
typeof PublicPluginOnFailure
|
|
81
|
+
> = z.nativeEnum(PublicPluginOnFailure);
|
|
82
|
+
|
|
83
|
+
/** @internal */
|
|
84
|
+
export type PublicPlugin$Outbound = {
|
|
85
|
+
entities?: Array<string> | null | undefined;
|
|
86
|
+
id: string;
|
|
87
|
+
language?: string | undefined;
|
|
88
|
+
on_failure?: string | undefined;
|
|
89
|
+
threshold?: number | undefined;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
/** @internal */
|
|
93
|
+
export const PublicPlugin$outboundSchema: z.ZodType<
|
|
94
|
+
PublicPlugin$Outbound,
|
|
95
|
+
z.ZodTypeDef,
|
|
96
|
+
PublicPlugin
|
|
97
|
+
> = z.object({
|
|
98
|
+
entities: z.nullable(z.array(z.string())).optional(),
|
|
99
|
+
id: PublicPluginId$outboundSchema,
|
|
100
|
+
language: PublicPluginLanguage$outboundSchema.optional(),
|
|
101
|
+
onFailure: PublicPluginOnFailure$outboundSchema.optional(),
|
|
102
|
+
threshold: z.number().optional(),
|
|
103
|
+
}).transform((v) => {
|
|
104
|
+
return remap$(v, {
|
|
105
|
+
onFailure: "on_failure",
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
export function publicPluginToJSON(publicPlugin: PublicPlugin): string {
|
|
110
|
+
return JSON.stringify(PublicPlugin$outboundSchema.parse(publicPlugin));
|
|
111
|
+
}
|
|
@@ -18,6 +18,7 @@ export const ReasoningEffort = {
|
|
|
18
18
|
Medium: "medium",
|
|
19
19
|
High: "high",
|
|
20
20
|
Xhigh: "xhigh",
|
|
21
|
+
Max: "max",
|
|
21
22
|
} as const;
|
|
22
23
|
/**
|
|
23
24
|
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
@@ -15,6 +15,7 @@ export const Effort = {
|
|
|
15
15
|
Medium: "medium",
|
|
16
16
|
High: "high",
|
|
17
17
|
Xhigh: "xhigh",
|
|
18
|
+
Max: "max",
|
|
18
19
|
} as const;
|
|
19
20
|
/**
|
|
20
21
|
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
|
|
|
40
40
|
z.ZodTypeDef,
|
|
41
41
|
unknown
|
|
42
42
|
> = z.object({
|
|
43
|
-
_id: z.string().default("
|
|
43
|
+
_id: z.string().default("reasoning_01kykesh5x25qze4ys16jsk53x"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Plugin discriminator. Must be `response_healing`.
|
|
13
|
+
*/
|
|
14
|
+
export const ResponseHealingPluginId = {
|
|
15
|
+
ResponseHealing: "response_healing",
|
|
16
|
+
} as const;
|
|
17
|
+
/**
|
|
18
|
+
* Plugin discriminator. Must be `response_healing`.
|
|
19
|
+
*/
|
|
20
|
+
export type ResponseHealingPluginId = ClosedEnum<
|
|
21
|
+
typeof ResponseHealingPluginId
|
|
22
|
+
>;
|
|
23
|
+
|
|
24
|
+
export type ResponseHealingPlugin = {
|
|
25
|
+
/**
|
|
26
|
+
* Plugin discriminator. Must be `response_healing`.
|
|
27
|
+
*/
|
|
28
|
+
id: ResponseHealingPluginId;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const ResponseHealingPluginId$inboundSchema: z.ZodNativeEnum<
|
|
33
|
+
typeof ResponseHealingPluginId
|
|
34
|
+
> = z.nativeEnum(ResponseHealingPluginId);
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const ResponseHealingPluginId$outboundSchema: z.ZodNativeEnum<
|
|
37
|
+
typeof ResponseHealingPluginId
|
|
38
|
+
> = ResponseHealingPluginId$inboundSchema;
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const ResponseHealingPlugin$inboundSchema: z.ZodType<
|
|
42
|
+
ResponseHealingPlugin,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
unknown
|
|
45
|
+
> = z.object({
|
|
46
|
+
id: ResponseHealingPluginId$inboundSchema,
|
|
47
|
+
});
|
|
48
|
+
/** @internal */
|
|
49
|
+
export type ResponseHealingPlugin$Outbound = {
|
|
50
|
+
id: string;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export const ResponseHealingPlugin$outboundSchema: z.ZodType<
|
|
55
|
+
ResponseHealingPlugin$Outbound,
|
|
56
|
+
z.ZodTypeDef,
|
|
57
|
+
ResponseHealingPlugin
|
|
58
|
+
> = z.object({
|
|
59
|
+
id: ResponseHealingPluginId$outboundSchema,
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
export function responseHealingPluginToJSON(
|
|
63
|
+
responseHealingPlugin: ResponseHealingPlugin,
|
|
64
|
+
): string {
|
|
65
|
+
return JSON.stringify(
|
|
66
|
+
ResponseHealingPlugin$outboundSchema.parse(responseHealingPlugin),
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
export function responseHealingPluginFromJSON(
|
|
70
|
+
jsonString: string,
|
|
71
|
+
): SafeParseResult<ResponseHealingPlugin, SDKValidationError> {
|
|
72
|
+
return safeParse(
|
|
73
|
+
jsonString,
|
|
74
|
+
(x) => ResponseHealingPlugin$inboundSchema.parse(JSON.parse(x)),
|
|
75
|
+
`Failed to parse 'ResponseHealingPlugin' from JSON`,
|
|
76
|
+
);
|
|
77
|
+
}
|
|
@@ -189,7 +189,8 @@ export type Guardrails = {
|
|
|
189
189
|
export type Plugins =
|
|
190
190
|
| components.PIIRedactionPluginEn
|
|
191
191
|
| components.PIIRedactionPluginNl
|
|
192
|
-
| components.PIIRedactionPluginAuto
|
|
192
|
+
| components.PIIRedactionPluginAuto
|
|
193
|
+
| components.ResponseHealingPlugin;
|
|
193
194
|
|
|
194
195
|
export type ModelConfigurationFallbacks = {
|
|
195
196
|
/**
|
|
@@ -401,13 +402,14 @@ export type ParametersT = {
|
|
|
401
402
|
*/
|
|
402
403
|
guardrails?: Array<Guardrails> | undefined;
|
|
403
404
|
/**
|
|
404
|
-
* Request-scoped transforms applied to the text exchanged with the model.
|
|
405
|
+
* Request-scoped transforms applied to the text exchanged with the model. Supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response, and `response_healing`, which repairs malformed JSON in non-streaming output.
|
|
405
406
|
*/
|
|
406
407
|
plugins?:
|
|
407
408
|
| Array<
|
|
408
409
|
| components.PIIRedactionPluginEn
|
|
409
410
|
| components.PIIRedactionPluginNl
|
|
410
411
|
| components.PIIRedactionPluginAuto
|
|
412
|
+
| components.ResponseHealingPlugin
|
|
411
413
|
>
|
|
412
414
|
| undefined;
|
|
413
415
|
/**
|
|
@@ -669,7 +671,8 @@ export type FallbackModelConfigurationGuardrails = {
|
|
|
669
671
|
export type FallbackModelConfigurationPlugins =
|
|
670
672
|
| components.PIIRedactionPluginEn
|
|
671
673
|
| components.PIIRedactionPluginNl
|
|
672
|
-
| components.PIIRedactionPluginAuto
|
|
674
|
+
| components.PIIRedactionPluginAuto
|
|
675
|
+
| components.ResponseHealingPlugin;
|
|
673
676
|
|
|
674
677
|
export type FallbackModelConfigurationFallbacks = {
|
|
675
678
|
/**
|
|
@@ -895,13 +898,14 @@ export type FallbackModelConfigurationParameters = {
|
|
|
895
898
|
*/
|
|
896
899
|
guardrails?: Array<FallbackModelConfigurationGuardrails> | undefined;
|
|
897
900
|
/**
|
|
898
|
-
* Request-scoped transforms applied to the text exchanged with the model.
|
|
901
|
+
* Request-scoped transforms applied to the text exchanged with the model. Supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response, and `response_healing`, which repairs malformed JSON in non-streaming output.
|
|
899
902
|
*/
|
|
900
903
|
plugins?:
|
|
901
904
|
| Array<
|
|
902
905
|
| components.PIIRedactionPluginEn
|
|
903
906
|
| components.PIIRedactionPluginNl
|
|
904
907
|
| components.PIIRedactionPluginAuto
|
|
908
|
+
| components.ResponseHealingPlugin
|
|
905
909
|
>
|
|
906
910
|
| undefined;
|
|
907
911
|
/**
|
|
@@ -1590,7 +1594,8 @@ export type CreateAgentRequestAgentsResponseGuardrails = {
|
|
|
1590
1594
|
export type CreateAgentRequestPlugins =
|
|
1591
1595
|
| components.PIIRedactionPluginEn
|
|
1592
1596
|
| components.PIIRedactionPluginNl
|
|
1593
|
-
| components.PIIRedactionPluginAuto
|
|
1597
|
+
| components.PIIRedactionPluginAuto
|
|
1598
|
+
| components.ResponseHealingPlugin;
|
|
1594
1599
|
|
|
1595
1600
|
export type CreateAgentRequestFallbacks = {
|
|
1596
1601
|
/**
|
|
@@ -1814,13 +1819,14 @@ export type CreateAgentRequestParameters = {
|
|
|
1814
1819
|
*/
|
|
1815
1820
|
guardrails?: Array<CreateAgentRequestAgentsResponseGuardrails> | undefined;
|
|
1816
1821
|
/**
|
|
1817
|
-
* Request-scoped transforms applied to the text exchanged with the model.
|
|
1822
|
+
* Request-scoped transforms applied to the text exchanged with the model. Supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response, and `response_healing`, which repairs malformed JSON in non-streaming output.
|
|
1818
1823
|
*/
|
|
1819
1824
|
plugins?:
|
|
1820
1825
|
| Array<
|
|
1821
1826
|
| components.PIIRedactionPluginEn
|
|
1822
1827
|
| components.PIIRedactionPluginNl
|
|
1823
1828
|
| components.PIIRedactionPluginAuto
|
|
1829
|
+
| components.ResponseHealingPlugin
|
|
1824
1830
|
>
|
|
1825
1831
|
| undefined;
|
|
1826
1832
|
/**
|
|
@@ -2067,7 +2073,8 @@ export type CreateAgentRequestFallbackModelConfigurationGuardrails = {
|
|
|
2067
2073
|
export type CreateAgentRequestFallbackModelConfigurationPlugins =
|
|
2068
2074
|
| components.PIIRedactionPluginEn
|
|
2069
2075
|
| components.PIIRedactionPluginNl
|
|
2070
|
-
| components.PIIRedactionPluginAuto
|
|
2076
|
+
| components.PIIRedactionPluginAuto
|
|
2077
|
+
| components.ResponseHealingPlugin;
|
|
2071
2078
|
|
|
2072
2079
|
export type CreateAgentRequestFallbackModelConfigurationFallbacks = {
|
|
2073
2080
|
/**
|
|
@@ -2301,13 +2308,14 @@ export type CreateAgentRequestFallbackModelConfigurationParameters = {
|
|
|
2301
2308
|
| Array<CreateAgentRequestFallbackModelConfigurationGuardrails>
|
|
2302
2309
|
| undefined;
|
|
2303
2310
|
/**
|
|
2304
|
-
* Request-scoped transforms applied to the text exchanged with the model.
|
|
2311
|
+
* Request-scoped transforms applied to the text exchanged with the model. Supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response, and `response_healing`, which repairs malformed JSON in non-streaming output.
|
|
2305
2312
|
*/
|
|
2306
2313
|
plugins?:
|
|
2307
2314
|
| Array<
|
|
2308
2315
|
| components.PIIRedactionPluginEn
|
|
2309
2316
|
| components.PIIRedactionPluginNl
|
|
2310
2317
|
| components.PIIRedactionPluginAuto
|
|
2318
|
+
| components.ResponseHealingPlugin
|
|
2311
2319
|
>
|
|
2312
2320
|
| undefined;
|
|
2313
2321
|
/**
|
|
@@ -2738,7 +2746,8 @@ export function guardrailsToJSON(guardrails: Guardrails): string {
|
|
|
2738
2746
|
export type Plugins$Outbound =
|
|
2739
2747
|
| components.PIIRedactionPluginEn$Outbound
|
|
2740
2748
|
| components.PIIRedactionPluginNl$Outbound
|
|
2741
|
-
| components.PIIRedactionPluginAuto$Outbound
|
|
2749
|
+
| components.PIIRedactionPluginAuto$Outbound
|
|
2750
|
+
| components.ResponseHealingPlugin$Outbound;
|
|
2742
2751
|
|
|
2743
2752
|
/** @internal */
|
|
2744
2753
|
export const Plugins$outboundSchema: z.ZodType<
|
|
@@ -2749,6 +2758,7 @@ export const Plugins$outboundSchema: z.ZodType<
|
|
|
2749
2758
|
components.PIIRedactionPluginEn$outboundSchema,
|
|
2750
2759
|
components.PIIRedactionPluginNl$outboundSchema,
|
|
2751
2760
|
components.PIIRedactionPluginAuto$outboundSchema,
|
|
2761
|
+
components.ResponseHealingPlugin$outboundSchema,
|
|
2752
2762
|
]);
|
|
2753
2763
|
|
|
2754
2764
|
export function pluginsToJSON(plugins: Plugins): string {
|
|
@@ -2954,6 +2964,7 @@ export type ParametersT$Outbound = {
|
|
|
2954
2964
|
| components.PIIRedactionPluginEn$Outbound
|
|
2955
2965
|
| components.PIIRedactionPluginNl$Outbound
|
|
2956
2966
|
| components.PIIRedactionPluginAuto$Outbound
|
|
2967
|
+
| components.ResponseHealingPlugin$Outbound
|
|
2957
2968
|
>
|
|
2958
2969
|
| undefined;
|
|
2959
2970
|
fallbacks?: Array<ModelConfigurationFallbacks$Outbound> | undefined;
|
|
@@ -3004,6 +3015,7 @@ export const ParametersT$outboundSchema: z.ZodType<
|
|
|
3004
3015
|
components.PIIRedactionPluginEn$outboundSchema,
|
|
3005
3016
|
components.PIIRedactionPluginNl$outboundSchema,
|
|
3006
3017
|
components.PIIRedactionPluginAuto$outboundSchema,
|
|
3018
|
+
components.ResponseHealingPlugin$outboundSchema,
|
|
3007
3019
|
]),
|
|
3008
3020
|
).optional(),
|
|
3009
3021
|
fallbacks: z.array(z.lazy(() => ModelConfigurationFallbacks$outboundSchema))
|
|
@@ -3454,7 +3466,8 @@ export function fallbackModelConfigurationGuardrailsToJSON(
|
|
|
3454
3466
|
export type FallbackModelConfigurationPlugins$Outbound =
|
|
3455
3467
|
| components.PIIRedactionPluginEn$Outbound
|
|
3456
3468
|
| components.PIIRedactionPluginNl$Outbound
|
|
3457
|
-
| components.PIIRedactionPluginAuto$Outbound
|
|
3469
|
+
| components.PIIRedactionPluginAuto$Outbound
|
|
3470
|
+
| components.ResponseHealingPlugin$Outbound;
|
|
3458
3471
|
|
|
3459
3472
|
/** @internal */
|
|
3460
3473
|
export const FallbackModelConfigurationPlugins$outboundSchema: z.ZodType<
|
|
@@ -3465,6 +3478,7 @@ export const FallbackModelConfigurationPlugins$outboundSchema: z.ZodType<
|
|
|
3465
3478
|
components.PIIRedactionPluginEn$outboundSchema,
|
|
3466
3479
|
components.PIIRedactionPluginNl$outboundSchema,
|
|
3467
3480
|
components.PIIRedactionPluginAuto$outboundSchema,
|
|
3481
|
+
components.ResponseHealingPlugin$outboundSchema,
|
|
3468
3482
|
]);
|
|
3469
3483
|
|
|
3470
3484
|
export function fallbackModelConfigurationPluginsToJSON(
|
|
@@ -3707,6 +3721,7 @@ export type FallbackModelConfigurationParameters$Outbound = {
|
|
|
3707
3721
|
| components.PIIRedactionPluginEn$Outbound
|
|
3708
3722
|
| components.PIIRedactionPluginNl$Outbound
|
|
3709
3723
|
| components.PIIRedactionPluginAuto$Outbound
|
|
3724
|
+
| components.ResponseHealingPlugin$Outbound
|
|
3710
3725
|
>
|
|
3711
3726
|
| undefined;
|
|
3712
3727
|
fallbacks?: Array<FallbackModelConfigurationFallbacks$Outbound> | undefined;
|
|
@@ -3762,6 +3777,7 @@ export const FallbackModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
3762
3777
|
components.PIIRedactionPluginEn$outboundSchema,
|
|
3763
3778
|
components.PIIRedactionPluginNl$outboundSchema,
|
|
3764
3779
|
components.PIIRedactionPluginAuto$outboundSchema,
|
|
3780
|
+
components.ResponseHealingPlugin$outboundSchema,
|
|
3765
3781
|
]),
|
|
3766
3782
|
).optional(),
|
|
3767
3783
|
fallbacks: z.array(
|
|
@@ -4696,6 +4712,7 @@ export const CreateAgentRequestPlugins$inboundSchema: z.ZodType<
|
|
|
4696
4712
|
components.PIIRedactionPluginEn$inboundSchema,
|
|
4697
4713
|
components.PIIRedactionPluginNl$inboundSchema,
|
|
4698
4714
|
components.PIIRedactionPluginAuto$inboundSchema,
|
|
4715
|
+
components.ResponseHealingPlugin$inboundSchema,
|
|
4699
4716
|
]);
|
|
4700
4717
|
|
|
4701
4718
|
export function createAgentRequestPluginsFromJSON(
|
|
@@ -4917,6 +4934,7 @@ export const CreateAgentRequestParameters$inboundSchema: z.ZodType<
|
|
|
4917
4934
|
components.PIIRedactionPluginEn$inboundSchema,
|
|
4918
4935
|
components.PIIRedactionPluginNl$inboundSchema,
|
|
4919
4936
|
components.PIIRedactionPluginAuto$inboundSchema,
|
|
4937
|
+
components.ResponseHealingPlugin$inboundSchema,
|
|
4920
4938
|
]),
|
|
4921
4939
|
).optional(),
|
|
4922
4940
|
fallbacks: z.array(z.lazy(() => CreateAgentRequestFallbacks$inboundSchema))
|
|
@@ -5356,6 +5374,7 @@ export const CreateAgentRequestFallbackModelConfigurationPlugins$inboundSchema:
|
|
|
5356
5374
|
components.PIIRedactionPluginEn$inboundSchema,
|
|
5357
5375
|
components.PIIRedactionPluginNl$inboundSchema,
|
|
5358
5376
|
components.PIIRedactionPluginAuto$inboundSchema,
|
|
5377
|
+
components.ResponseHealingPlugin$inboundSchema,
|
|
5359
5378
|
]);
|
|
5360
5379
|
|
|
5361
5380
|
export function createAgentRequestFallbackModelConfigurationPluginsFromJSON(
|
|
@@ -5641,6 +5660,7 @@ export const CreateAgentRequestFallbackModelConfigurationParameters$inboundSchem
|
|
|
5641
5660
|
components.PIIRedactionPluginEn$inboundSchema,
|
|
5642
5661
|
components.PIIRedactionPluginNl$inboundSchema,
|
|
5643
5662
|
components.PIIRedactionPluginAuto$inboundSchema,
|
|
5663
|
+
components.ResponseHealingPlugin$inboundSchema,
|
|
5644
5664
|
]),
|
|
5645
5665
|
).optional(),
|
|
5646
5666
|
fallbacks: z.array(
|
|
@@ -678,7 +678,8 @@ export type CreateChatCompletionGuardrails = {
|
|
|
678
678
|
export type CreateChatCompletionPlugins =
|
|
679
679
|
| components.PIIRedactionPluginEn
|
|
680
680
|
| components.PIIRedactionPluginNl
|
|
681
|
-
| components.PIIRedactionPluginAuto
|
|
681
|
+
| components.PIIRedactionPluginAuto
|
|
682
|
+
| components.ResponseHealingPlugin;
|
|
682
683
|
|
|
683
684
|
export type CreateChatCompletionFallbacks = {
|
|
684
685
|
/**
|
|
@@ -1606,13 +1607,14 @@ export type CreateChatCompletionRequestBody = {
|
|
|
1606
1607
|
*/
|
|
1607
1608
|
guardrails?: Array<CreateChatCompletionGuardrails> | undefined;
|
|
1608
1609
|
/**
|
|
1609
|
-
* Request-scoped transforms applied to the text exchanged with the model.
|
|
1610
|
+
* Request-scoped transforms applied to the text exchanged with the model. Supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response, and `response_healing`, which repairs malformed JSON in non-streaming output.
|
|
1610
1611
|
*/
|
|
1611
1612
|
plugins?:
|
|
1612
1613
|
| Array<
|
|
1613
1614
|
| components.PIIRedactionPluginEn
|
|
1614
1615
|
| components.PIIRedactionPluginNl
|
|
1615
1616
|
| components.PIIRedactionPluginAuto
|
|
1617
|
+
| components.ResponseHealingPlugin
|
|
1616
1618
|
>
|
|
1617
1619
|
| undefined;
|
|
1618
1620
|
/**
|
|
@@ -3442,7 +3444,8 @@ export function createChatCompletionGuardrailsToJSON(
|
|
|
3442
3444
|
export type CreateChatCompletionPlugins$Outbound =
|
|
3443
3445
|
| components.PIIRedactionPluginEn$Outbound
|
|
3444
3446
|
| components.PIIRedactionPluginNl$Outbound
|
|
3445
|
-
| components.PIIRedactionPluginAuto$Outbound
|
|
3447
|
+
| components.PIIRedactionPluginAuto$Outbound
|
|
3448
|
+
| components.ResponseHealingPlugin$Outbound;
|
|
3446
3449
|
|
|
3447
3450
|
/** @internal */
|
|
3448
3451
|
export const CreateChatCompletionPlugins$outboundSchema: z.ZodType<
|
|
@@ -3453,6 +3456,7 @@ export const CreateChatCompletionPlugins$outboundSchema: z.ZodType<
|
|
|
3453
3456
|
components.PIIRedactionPluginEn$outboundSchema,
|
|
3454
3457
|
components.PIIRedactionPluginNl$outboundSchema,
|
|
3455
3458
|
components.PIIRedactionPluginAuto$outboundSchema,
|
|
3459
|
+
components.ResponseHealingPlugin$outboundSchema,
|
|
3456
3460
|
]);
|
|
3457
3461
|
|
|
3458
3462
|
export function createChatCompletionPluginsToJSON(
|
|
@@ -5482,6 +5486,7 @@ export type CreateChatCompletionRequestBody$Outbound = {
|
|
|
5482
5486
|
| components.PIIRedactionPluginEn$Outbound
|
|
5483
5487
|
| components.PIIRedactionPluginNl$Outbound
|
|
5484
5488
|
| components.PIIRedactionPluginAuto$Outbound
|
|
5489
|
+
| components.ResponseHealingPlugin$Outbound
|
|
5485
5490
|
>
|
|
5486
5491
|
| undefined;
|
|
5487
5492
|
fallbacks?: Array<CreateChatCompletionFallbacks$Outbound> | undefined;
|
|
@@ -5563,6 +5568,7 @@ export const CreateChatCompletionRequestBody$outboundSchema: z.ZodType<
|
|
|
5563
5568
|
components.PIIRedactionPluginEn$outboundSchema,
|
|
5564
5569
|
components.PIIRedactionPluginNl$outboundSchema,
|
|
5565
5570
|
components.PIIRedactionPluginAuto$outboundSchema,
|
|
5571
|
+
components.ResponseHealingPlugin$outboundSchema,
|
|
5566
5572
|
]),
|
|
5567
5573
|
).optional(),
|
|
5568
5574
|
fallbacks: z.array(z.lazy(() => CreateChatCompletionFallbacks$outboundSchema))
|
|
@@ -138,7 +138,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
138
138
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
139
139
|
.optional(),
|
|
140
140
|
updated: z.string().datetime({ offset: true }).default(
|
|
141
|
-
"2026-07-
|
|
141
|
+
"2026-07-28T04:12:12.098Z",
|
|
142
142
|
).transform(v => new Date(v)),
|
|
143
143
|
}).transform((v) => {
|
|
144
144
|
return remap$(v, {
|
|
@@ -2732,7 +2732,7 @@ export const Evaluations4$inboundSchema: z.ZodType<
|
|
|
2732
2732
|
explanation: z.string().optional(),
|
|
2733
2733
|
reviewed_by_id: z.string(),
|
|
2734
2734
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2735
|
-
"2026-07-
|
|
2735
|
+
"2026-07-28T04:12:43.232Z",
|
|
2736
2736
|
).transform(v => new Date(v)),
|
|
2737
2737
|
type: z.literal("string_array"),
|
|
2738
2738
|
values: z.array(z.string()),
|
|
@@ -2822,7 +2822,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
|
|
|
2822
2822
|
explanation: z.string().optional(),
|
|
2823
2823
|
reviewed_by_id: z.string(),
|
|
2824
2824
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2825
|
-
"2026-07-
|
|
2825
|
+
"2026-07-28T04:12:43.231Z",
|
|
2826
2826
|
).transform(v => new Date(v)),
|
|
2827
2827
|
type: z.literal("boolean"),
|
|
2828
2828
|
value: z.boolean(),
|
|
@@ -2907,7 +2907,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
|
|
|
2907
2907
|
explanation: z.string().optional(),
|
|
2908
2908
|
reviewed_by_id: z.string(),
|
|
2909
2909
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2910
|
-
"2026-07-
|
|
2910
|
+
"2026-07-28T04:12:43.229Z",
|
|
2911
2911
|
).transform(v => new Date(v)),
|
|
2912
2912
|
type: z.literal("number"),
|
|
2913
2913
|
value: z.number(),
|
|
@@ -2993,7 +2993,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
|
|
|
2993
2993
|
explanation: z.string().optional(),
|
|
2994
2994
|
reviewed_by_id: z.string(),
|
|
2995
2995
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2996
|
-
"2026-07-
|
|
2996
|
+
"2026-07-28T04:12:43.228Z",
|
|
2997
2997
|
).transform(v => new Date(v)),
|
|
2998
2998
|
type: z.literal("string"),
|
|
2999
2999
|
value: z.string(),
|
|
@@ -3080,7 +3080,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
|
|
|
3080
3080
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
3081
3081
|
.optional(),
|
|
3082
3082
|
updated: z.string().datetime({ offset: true }).default(
|
|
3083
|
-
"2026-07-
|
|
3083
|
+
"2026-07-28T04:12:12.098Z",
|
|
3084
3084
|
).transform(v => new Date(v)),
|
|
3085
3085
|
}).transform((v) => {
|
|
3086
3086
|
return remap$(v, {
|
|
@@ -487,7 +487,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
487
487
|
z.ZodTypeDef,
|
|
488
488
|
unknown
|
|
489
489
|
> = z.object({
|
|
490
|
-
_id: z.string().default("
|
|
490
|
+
_id: z.string().default("01KYKESHQYWMT7MH16HYC4EGQ1"),
|
|
491
491
|
display_name: z.string(),
|
|
492
492
|
description: z.nullable(z.string()).optional(),
|
|
493
493
|
status: CreateDatasourceStatus$inboundSchema,
|
|
@@ -636,7 +636,8 @@ export type CreatePromptGuardrails = {
|
|
|
636
636
|
export type CreatePromptPlugins =
|
|
637
637
|
| components.PIIRedactionPluginEn
|
|
638
638
|
| components.PIIRedactionPluginNl
|
|
639
|
-
| components.PIIRedactionPluginAuto
|
|
639
|
+
| components.PIIRedactionPluginAuto
|
|
640
|
+
| components.ResponseHealingPlugin;
|
|
640
641
|
|
|
641
642
|
export type CreatePromptFallbacks = {
|
|
642
643
|
/**
|
|
@@ -901,13 +902,14 @@ export type PromptInput = {
|
|
|
901
902
|
*/
|
|
902
903
|
guardrails?: Array<CreatePromptGuardrails> | undefined;
|
|
903
904
|
/**
|
|
904
|
-
* Request-scoped transforms applied to the text exchanged with the model.
|
|
905
|
+
* Request-scoped transforms applied to the text exchanged with the model. Supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response, and `response_healing`, which repairs malformed JSON in non-streaming output.
|
|
905
906
|
*/
|
|
906
907
|
plugins?:
|
|
907
908
|
| Array<
|
|
908
909
|
| components.PIIRedactionPluginEn
|
|
909
910
|
| components.PIIRedactionPluginNl
|
|
910
911
|
| components.PIIRedactionPluginAuto
|
|
912
|
+
| components.ResponseHealingPlugin
|
|
911
913
|
>
|
|
912
914
|
| undefined;
|
|
913
915
|
/**
|
|
@@ -1210,6 +1212,8 @@ export const CreatePromptPromptsResponseReasoningEffort = {
|
|
|
1210
1212
|
Low: "low",
|
|
1211
1213
|
Medium: "medium",
|
|
1212
1214
|
High: "high",
|
|
1215
|
+
Xhigh: "xhigh",
|
|
1216
|
+
Max: "max",
|
|
1213
1217
|
} as const;
|
|
1214
1218
|
/**
|
|
1215
1219
|
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
@@ -1385,6 +1389,8 @@ export const CreatePromptProvider = {
|
|
|
1385
1389
|
Poolside: "poolside",
|
|
1386
1390
|
Tencent: "tencent",
|
|
1387
1391
|
Nebius: "nebius",
|
|
1392
|
+
Fireworks: "fireworks",
|
|
1393
|
+
Baseten: "baseten",
|
|
1388
1394
|
Reson8: "reson8",
|
|
1389
1395
|
Slack: "slack",
|
|
1390
1396
|
Orq: "orq",
|
|
@@ -1529,9 +1535,6 @@ export type CreatePromptPromptsMessages = {
|
|
|
1529
1535
|
export type PromptConfig = {
|
|
1530
1536
|
stream?: boolean | undefined;
|
|
1531
1537
|
model?: string | null | undefined;
|
|
1532
|
-
/**
|
|
1533
|
-
* The id of the resource
|
|
1534
|
-
*/
|
|
1535
1538
|
modelDbId?: string | null | undefined;
|
|
1536
1539
|
/**
|
|
1537
1540
|
* The modality of the model
|
|
@@ -1801,7 +1804,8 @@ export type CreatePromptPromptsGuardrails = {
|
|
|
1801
1804
|
export type CreatePromptPromptsPlugins =
|
|
1802
1805
|
| components.PIIRedactionPluginEn
|
|
1803
1806
|
| components.PIIRedactionPluginNl
|
|
1804
|
-
| components.PIIRedactionPluginAuto
|
|
1807
|
+
| components.PIIRedactionPluginAuto
|
|
1808
|
+
| components.ResponseHealingPlugin;
|
|
1805
1809
|
|
|
1806
1810
|
export type CreatePromptPromptsFallbacks = {
|
|
1807
1811
|
/**
|
|
@@ -2391,13 +2395,14 @@ export type PromptField = {
|
|
|
2391
2395
|
*/
|
|
2392
2396
|
guardrails?: Array<CreatePromptPromptsGuardrails> | undefined;
|
|
2393
2397
|
/**
|
|
2394
|
-
* Request-scoped transforms applied to the text exchanged with the model.
|
|
2398
|
+
* Request-scoped transforms applied to the text exchanged with the model. Supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response, and `response_healing`, which repairs malformed JSON in non-streaming output.
|
|
2395
2399
|
*/
|
|
2396
2400
|
plugins?:
|
|
2397
2401
|
| Array<
|
|
2398
2402
|
| components.PIIRedactionPluginEn
|
|
2399
2403
|
| components.PIIRedactionPluginNl
|
|
2400
2404
|
| components.PIIRedactionPluginAuto
|
|
2405
|
+
| components.ResponseHealingPlugin
|
|
2401
2406
|
>
|
|
2402
2407
|
| undefined;
|
|
2403
2408
|
/**
|
|
@@ -3556,7 +3561,8 @@ export function createPromptGuardrailsToJSON(
|
|
|
3556
3561
|
export type CreatePromptPlugins$Outbound =
|
|
3557
3562
|
| components.PIIRedactionPluginEn$Outbound
|
|
3558
3563
|
| components.PIIRedactionPluginNl$Outbound
|
|
3559
|
-
| components.PIIRedactionPluginAuto$Outbound
|
|
3564
|
+
| components.PIIRedactionPluginAuto$Outbound
|
|
3565
|
+
| components.ResponseHealingPlugin$Outbound;
|
|
3560
3566
|
|
|
3561
3567
|
/** @internal */
|
|
3562
3568
|
export const CreatePromptPlugins$outboundSchema: z.ZodType<
|
|
@@ -3567,6 +3573,7 @@ export const CreatePromptPlugins$outboundSchema: z.ZodType<
|
|
|
3567
3573
|
components.PIIRedactionPluginEn$outboundSchema,
|
|
3568
3574
|
components.PIIRedactionPluginNl$outboundSchema,
|
|
3569
3575
|
components.PIIRedactionPluginAuto$outboundSchema,
|
|
3576
|
+
components.ResponseHealingPlugin$outboundSchema,
|
|
3570
3577
|
]);
|
|
3571
3578
|
|
|
3572
3579
|
export function createPromptPluginsToJSON(
|
|
@@ -3835,6 +3842,7 @@ export type PromptInput$Outbound = {
|
|
|
3835
3842
|
| components.PIIRedactionPluginEn$Outbound
|
|
3836
3843
|
| components.PIIRedactionPluginNl$Outbound
|
|
3837
3844
|
| components.PIIRedactionPluginAuto$Outbound
|
|
3845
|
+
| components.ResponseHealingPlugin$Outbound
|
|
3838
3846
|
>
|
|
3839
3847
|
| undefined;
|
|
3840
3848
|
fallbacks?: Array<CreatePromptFallbacks$Outbound> | undefined;
|
|
@@ -3903,6 +3911,7 @@ export const PromptInput$outboundSchema: z.ZodType<
|
|
|
3903
3911
|
components.PIIRedactionPluginEn$outboundSchema,
|
|
3904
3912
|
components.PIIRedactionPluginNl$outboundSchema,
|
|
3905
3913
|
components.PIIRedactionPluginAuto$outboundSchema,
|
|
3914
|
+
components.ResponseHealingPlugin$outboundSchema,
|
|
3906
3915
|
]),
|
|
3907
3916
|
).optional(),
|
|
3908
3917
|
fallbacks: z.array(z.lazy(() => CreatePromptFallbacks$outboundSchema))
|
|
@@ -4924,6 +4933,7 @@ export const CreatePromptPromptsPlugins$inboundSchema: z.ZodType<
|
|
|
4924
4933
|
components.PIIRedactionPluginEn$inboundSchema,
|
|
4925
4934
|
components.PIIRedactionPluginNl$inboundSchema,
|
|
4926
4935
|
components.PIIRedactionPluginAuto$inboundSchema,
|
|
4936
|
+
components.ResponseHealingPlugin$inboundSchema,
|
|
4927
4937
|
]);
|
|
4928
4938
|
|
|
4929
4939
|
export function createPromptPromptsPluginsFromJSON(
|
|
@@ -5715,6 +5725,7 @@ export const PromptField$inboundSchema: z.ZodType<
|
|
|
5715
5725
|
components.PIIRedactionPluginEn$inboundSchema,
|
|
5716
5726
|
components.PIIRedactionPluginNl$inboundSchema,
|
|
5717
5727
|
components.PIIRedactionPluginAuto$inboundSchema,
|
|
5728
|
+
components.ResponseHealingPlugin$inboundSchema,
|
|
5718
5729
|
]),
|
|
5719
5730
|
).optional(),
|
|
5720
5731
|
fallbacks: z.array(z.lazy(() => CreatePromptPromptsFallbacks$inboundSchema))
|