@orq-ai/node 4.16.1 → 4.16.4
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 +5 -3
- package/funcs/routerClassifyCreate.d.ts +10 -2
- package/funcs/routerClassifyCreate.d.ts.map +1 -1
- package/funcs/routerClassifyCreate.js +10 -2
- package/funcs/routerClassifyCreate.js.map +1 -1
- package/funcs/routerDecisionsCreate.d.ts +10 -2
- package/funcs/routerDecisionsCreate.d.ts.map +1 -1
- package/funcs/routerDecisionsCreate.js +11 -2
- package/funcs/routerDecisionsCreate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/classifycacheconfig.d.ts +33 -0
- package/models/components/classifycacheconfig.d.ts.map +1 -0
- package/models/components/classifycacheconfig.js +58 -0
- package/models/components/classifycacheconfig.js.map +1 -0
- package/models/components/classifytimeoutconfig.d.ts +15 -0
- package/models/components/classifytimeoutconfig.d.ts.map +1 -0
- package/models/components/classifytimeoutconfig.js +54 -0
- package/models/components/classifytimeoutconfig.js.map +1 -0
- package/models/components/environment.d.ts +1 -1
- package/models/components/index.d.ts +7 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +7 -0
- package/models/components/index.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/responsefunctioncallargumentsdonestreamevent.d.ts +4 -0
- package/models/components/responsefunctioncallargumentsdonestreamevent.d.ts.map +1 -1
- package/models/components/responsefunctioncallargumentsdonestreamevent.js +1 -0
- package/models/components/responsefunctioncallargumentsdonestreamevent.js.map +1 -1
- package/models/components/responseimagegenerationcallpartialimagestreamevent.d.ts +16 -0
- package/models/components/responseimagegenerationcallpartialimagestreamevent.d.ts.map +1 -1
- package/models/components/responseimagegenerationcallpartialimagestreamevent.js +5 -0
- package/models/components/responseimagegenerationcallpartialimagestreamevent.js.map +1 -1
- package/models/components/responsereasoningsummarypartaddedstreamevent.d.ts +4 -0
- package/models/components/responsereasoningsummarypartaddedstreamevent.d.ts.map +1 -1
- package/models/components/responsereasoningsummarypartaddedstreamevent.js +1 -0
- package/models/components/responsereasoningsummarypartaddedstreamevent.js.map +1 -1
- package/models/components/responsereasoningsummarypartdonestreamevent.d.ts +4 -0
- package/models/components/responsereasoningsummarypartdonestreamevent.d.ts.map +1 -1
- package/models/components/responsereasoningsummarypartdonestreamevent.js +1 -0
- package/models/components/responsereasoningsummarypartdonestreamevent.js.map +1 -1
- package/models/components/responseshellcallcommandaddedstreamevent.d.ts +35 -0
- package/models/components/responseshellcallcommandaddedstreamevent.d.ts.map +1 -0
- package/models/components/responseshellcallcommandaddedstreamevent.js +61 -0
- package/models/components/responseshellcallcommandaddedstreamevent.js.map +1 -0
- package/models/components/responseshellcallcommanddeltastreamevent.d.ts +39 -0
- package/models/components/responseshellcallcommanddeltastreamevent.d.ts.map +1 -0
- package/models/components/responseshellcallcommanddeltastreamevent.js +62 -0
- package/models/components/responseshellcallcommanddeltastreamevent.js.map +1 -0
- package/models/components/responseshellcallcommanddonestreamevent.d.ts +35 -0
- package/models/components/responseshellcallcommanddonestreamevent.d.ts.map +1 -0
- package/models/components/responseshellcallcommanddonestreamevent.js +61 -0
- package/models/components/responseshellcallcommanddonestreamevent.js.map +1 -0
- package/models/components/responseshellcalloutputcontentdeltastreamevent.d.ts +41 -0
- package/models/components/responseshellcalloutputcontentdeltastreamevent.d.ts.map +1 -0
- package/models/components/responseshellcalloutputcontentdeltastreamevent.js +63 -0
- package/models/components/responseshellcalloutputcontentdeltastreamevent.js.map +1 -0
- package/models/components/responseshellcalloutputcontentdonestreamevent.d.ts +38 -0
- package/models/components/responseshellcalloutputcontentdonestreamevent.d.ts.map +1 -0
- package/models/components/responseshellcalloutputcontentdonestreamevent.js +63 -0
- package/models/components/responseshellcalloutputcontentdonestreamevent.js.map +1 -0
- package/models/components/responsestreamevent.d.ts +6 -1
- package/models/components/responsestreamevent.d.ts.map +1 -1
- package/models/components/responsestreamevent.js +10 -0
- package/models/components/responsestreamevent.js.map +1 -1
- package/models/errors/createclassify.d.ts +23 -2
- package/models/errors/createclassify.d.ts.map +1 -1
- package/models/errors/createclassify.js +30 -2
- package/models/errors/createclassify.js.map +1 -1
- package/models/errors/createdecisions.d.ts +23 -2
- package/models/errors/createdecisions.d.ts.map +1 -1
- package/models/errors/createdecisions.js +30 -2
- package/models/errors/createdecisions.js.map +1 -1
- package/models/operations/createclassify.d.ts +4 -0
- package/models/operations/createclassify.d.ts.map +1 -1
- package/models/operations/createclassify.js +2 -0
- package/models/operations/createclassify.js.map +1 -1
- package/models/operations/createdecisions.d.ts +4 -0
- package/models/operations/createdecisions.d.ts.map +1 -1
- package/models/operations/createdecisions.js +2 -0
- package/models/operations/createdecisions.js.map +1 -1
- package/models/operations/createprompt.d.ts +2 -0
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +2 -0
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +4 -4
- 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 +2 -0
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +2 -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 +2 -0
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +2 -0
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getoneprompt.d.ts +2 -0
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +2 -0
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +2 -0
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +2 -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/listpromptversions.d.ts +2 -0
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +2 -0
- 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/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updateprompt.d.ts +2 -0
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +2 -0
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +6 -6
- package/packages/orq-rc/src/funcs/responsesCompact.ts +1 -1
- package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +3 -0
- package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +3 -0
- package/packages/orq-rc/src/funcs/routerClassifyCreate.ts +20 -1
- package/packages/orq-rc/src/funcs/routerDecisionsCreate.ts +17 -1
- package/packages/orq-rc/src/funcs/routerImagesEditsCreate.ts +3 -0
- package/packages/orq-rc/src/funcs/routerImagesVariationsCreate.ts +3 -0
- package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +1 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/models/components/classifycacheconfig.ts +59 -0
- package/packages/orq-rc/src/models/components/classifytimeoutconfig.ts +39 -0
- package/packages/orq-rc/src/models/components/environment.ts +1 -1
- package/packages/orq-rc/src/models/components/filecontentpartschema.ts +12 -3
- package/packages/orq-rc/src/models/components/index.ts +8 -1
- package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +2 -2
- package/packages/orq-rc/src/models/components/mcpgatewayplugin.ts +16 -0
- package/packages/orq-rc/src/models/components/modelsconfig.ts +13 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/responsefunctioncallargumentsdonestreamevent.ts +5 -0
- package/packages/orq-rc/src/models/components/responseimagegenerationcallpartialimagestreamevent.ts +21 -0
- package/packages/orq-rc/src/models/components/responsereasoningsummarypartaddedstreamevent.ts +5 -0
- package/packages/orq-rc/src/models/components/responsereasoningsummarypartdonestreamevent.ts +5 -0
- package/packages/orq-rc/src/models/components/responseshellcallcommandaddedstreamevent.ts +78 -0
- package/packages/orq-rc/src/models/components/responseshellcallcommanddeltastreamevent.ts +83 -0
- package/packages/orq-rc/src/models/components/responseshellcallcommanddonestreamevent.ts +78 -0
- package/packages/orq-rc/src/models/components/responseshellcalloutputcontentdeltastreamevent.ts +85 -0
- package/packages/orq-rc/src/models/components/responseshellcalloutputcontentdonestreamevent.ts +82 -0
- package/packages/orq-rc/src/models/components/responsestreamevent.ts +30 -0
- package/packages/orq-rc/src/models/components/routingrulemodelsconfig.ts +16 -0
- package/packages/orq-rc/src/models/components/routingruleplugin.ts +22 -0
- package/packages/orq-rc/src/models/components/signalscheck.ts +51 -0
- package/packages/orq-rc/src/models/components/updateworkspacerequest.ts +4 -0
- package/packages/orq-rc/src/models/errors/createclassify.ts +54 -2
- package/packages/orq-rc/src/models/errors/createdecisions.ts +54 -2
- package/packages/orq-rc/src/models/errors/createmoderation.ts +2 -2
- package/packages/orq-rc/src/models/operations/compactresponse.ts +4 -4
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +26 -0
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +15 -1
- package/packages/orq-rc/src/models/operations/createclassify.ts +17 -0
- package/packages/orq-rc/src/models/operations/createcompletion.ts +14 -0
- package/packages/orq-rc/src/models/operations/createdecisions.ts +17 -0
- package/packages/orq-rc/src/models/operations/createembedding.ts +7 -0
- package/packages/orq-rc/src/models/operations/createimage.ts +14 -0
- package/packages/orq-rc/src/models/operations/createimageedit.ts +14 -0
- package/packages/orq-rc/src/models/operations/createimagevariation.ts +14 -0
- package/packages/orq-rc/src/models/operations/createmoderation.ts +3 -3
- package/packages/orq-rc/src/models/operations/createprompt.ts +17 -2
- package/packages/orq-rc/src/models/operations/creatererank.ts +14 -0
- package/packages/orq-rc/src/models/operations/createrouterresponse.ts +7 -0
- package/packages/orq-rc/src/models/operations/createspeech.ts +14 -0
- package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
- package/packages/orq-rc/src/models/operations/createtranscription.ts +14 -0
- package/packages/orq-rc/src/models/operations/createtranslation.ts +14 -0
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +2 -2
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +2 -0
- package/packages/orq-rc/src/models/operations/deployments.ts +2 -0
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +4 -2
- package/packages/orq-rc/src/models/operations/getallprompts.ts +9 -1
- package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +9 -1
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +9 -1
- package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/listagents.ts +12 -0
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +9 -1
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +12 -0
- package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/runagent.ts +15 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +15 -1
- package/packages/orq-rc/src/models/operations/tracesgetspan.ts +3 -0
- package/packages/orq-rc/src/models/operations/updateagent.ts +26 -0
- package/packages/orq-rc/src/models/operations/updateprompt.ts +17 -2
- package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/sdk/classify.ts +13 -1
- package/packages/orq-rc/src/sdk/decisions.ts +9 -1
- package/packages/orq-rc/src/sdk/responses.ts +1 -1
- package/sdk/classify.d.ts +9 -1
- package/sdk/classify.d.ts.map +1 -1
- package/sdk/classify.js +9 -1
- package/sdk/classify.js.map +1 -1
- package/sdk/decisions.d.ts +9 -1
- package/sdk/decisions.d.ts.map +1 -1
- package/sdk/decisions.js +9 -1
- package/sdk/decisions.js.map +1 -1
- package/src/funcs/routerClassifyCreate.ts +16 -1
- package/src/funcs/routerDecisionsCreate.ts +17 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/classifycacheconfig.ts +59 -0
- package/src/models/components/classifytimeoutconfig.ts +39 -0
- package/src/models/components/environment.ts +1 -1
- package/src/models/components/index.ts +7 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/responsefunctioncallargumentsdonestreamevent.ts +5 -0
- package/src/models/components/responseimagegenerationcallpartialimagestreamevent.ts +21 -0
- package/src/models/components/responsereasoningsummarypartaddedstreamevent.ts +5 -0
- package/src/models/components/responsereasoningsummarypartdonestreamevent.ts +5 -0
- package/src/models/components/responseshellcallcommandaddedstreamevent.ts +78 -0
- package/src/models/components/responseshellcallcommanddeltastreamevent.ts +83 -0
- package/src/models/components/responseshellcallcommanddonestreamevent.ts +78 -0
- package/src/models/components/responseshellcalloutputcontentdeltastreamevent.ts +85 -0
- package/src/models/components/responseshellcalloutputcontentdonestreamevent.ts +82 -0
- package/src/models/components/responsestreamevent.ts +30 -0
- package/src/models/errors/createclassify.ts +54 -2
- package/src/models/errors/createdecisions.ts +54 -2
- package/src/models/operations/createclassify.ts +6 -0
- package/src/models/operations/createdecisions.ts +6 -0
- package/src/models/operations/createprompt.ts +2 -0
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/deploymentinvoke.ts +2 -0
- package/src/models/operations/deployments.ts +2 -0
- package/src/models/operations/deploymentstream.ts +2 -0
- package/src/models/operations/getallprompts.ts +2 -0
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getoneprompt.ts +2 -0
- package/src/models/operations/getpromptversion.ts +2 -0
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listpromptversions.ts +2 -0
- 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/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updateprompt.ts +2 -0
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/classify.ts +9 -1
- package/src/sdk/decisions.ts +9 -1
- package/packages/orq-rc/src/models/components/publiccompactionitem.ts +0 -79
|
@@ -87,6 +87,7 @@ export type Questions = NoulQuestion | ChoiceQuestion | ScoreQuestion;
|
|
|
87
87
|
export type State = string | { [k: string]: any } | Array<any>;
|
|
88
88
|
|
|
89
89
|
export type CreateClassifyRequestBody = {
|
|
90
|
+
cache?: components.ClassifyCacheConfig | undefined;
|
|
90
91
|
/**
|
|
91
92
|
* Up to 10 fallback models in order. The gateway retries a model for matching error codes before trying the next model. Every model must support classification and satisfy access checks. Image requests require native OpenAI image-capable fallbacks.
|
|
92
93
|
*/
|
|
@@ -113,6 +114,7 @@ export type CreateClassifyRequestBody = {
|
|
|
113
114
|
* The content to evaluate. A string, an object or an array. For OpenAI GPT-6 Luna, strings are passed as text and objects or ordinary JSON arrays are serialized as text. User-message arrays accept string content or input_text/input_image parts. Images must be inline base64 data URLs, with at most 128 images across the request. Remote image URLs, file IDs, audio, non-user roles, bare content parts and tool items are rejected.
|
|
114
115
|
*/
|
|
115
116
|
state: string | { [k: string]: any } | Array<any>;
|
|
117
|
+
timeout?: components.ClassifyTimeoutConfig | undefined;
|
|
116
118
|
};
|
|
117
119
|
|
|
118
120
|
/**
|
|
@@ -311,6 +313,7 @@ export function stateToJSON(state: State): string {
|
|
|
311
313
|
|
|
312
314
|
/** @internal */
|
|
313
315
|
export type CreateClassifyRequestBody$Outbound = {
|
|
316
|
+
cache?: components.ClassifyCacheConfig$Outbound | undefined;
|
|
314
317
|
fallbacks?: Array<components.FallbackConfig$Outbound> | null | undefined;
|
|
315
318
|
identity?: components.ResponseIdentity$Outbound | undefined;
|
|
316
319
|
metadata?: { [k: string]: string } | undefined;
|
|
@@ -324,6 +327,7 @@ export type CreateClassifyRequestBody$Outbound = {
|
|
|
324
327
|
};
|
|
325
328
|
retry?: components.ClassifyRetryConfig$Outbound | undefined;
|
|
326
329
|
state: string | { [k: string]: any } | Array<any>;
|
|
330
|
+
timeout?: components.ClassifyTimeoutConfig$Outbound | undefined;
|
|
327
331
|
};
|
|
328
332
|
|
|
329
333
|
/** @internal */
|
|
@@ -332,6 +336,7 @@ export const CreateClassifyRequestBody$outboundSchema: z.ZodType<
|
|
|
332
336
|
z.ZodTypeDef,
|
|
333
337
|
CreateClassifyRequestBody
|
|
334
338
|
> = z.object({
|
|
339
|
+
cache: components.ClassifyCacheConfig$outboundSchema.optional(),
|
|
335
340
|
fallbacks: z.nullable(z.array(components.FallbackConfig$outboundSchema))
|
|
336
341
|
.optional(),
|
|
337
342
|
identity: components.ResponseIdentity$outboundSchema.optional(),
|
|
@@ -347,6 +352,7 @@ export const CreateClassifyRequestBody$outboundSchema: z.ZodType<
|
|
|
347
352
|
),
|
|
348
353
|
retry: components.ClassifyRetryConfig$outboundSchema.optional(),
|
|
349
354
|
state: z.union([z.string(), z.record(z.any()), z.array(z.any())]),
|
|
355
|
+
timeout: components.ClassifyTimeoutConfig$outboundSchema.optional(),
|
|
350
356
|
});
|
|
351
357
|
|
|
352
358
|
export function createClassifyRequestBodyToJSON(
|
|
@@ -95,6 +95,7 @@ export type CreateDecisionsQuestions =
|
|
|
95
95
|
export type CreateDecisionsState = string | { [k: string]: any } | Array<any>;
|
|
96
96
|
|
|
97
97
|
export type CreateDecisionsRequestBody = {
|
|
98
|
+
cache?: components.ClassifyCacheConfig | undefined;
|
|
98
99
|
/**
|
|
99
100
|
* Up to 10 fallback models in order. The gateway retries a model for matching error codes before trying the next model. Every model must support classification and satisfy access checks. Image requests require native OpenAI image-capable fallbacks.
|
|
100
101
|
*/
|
|
@@ -126,6 +127,7 @@ export type CreateDecisionsRequestBody = {
|
|
|
126
127
|
* The content to evaluate. A string, an object or an array. For OpenAI GPT-6 Luna, strings are passed as text and objects or ordinary JSON arrays are serialized as text. User-message arrays accept string content or input_text/input_image parts. Images must be inline base64 data URLs, with at most 128 images across the request. Remote image URLs, file IDs, audio, non-user roles, bare content parts and tool items are rejected.
|
|
127
128
|
*/
|
|
128
129
|
state: string | { [k: string]: any } | Array<any>;
|
|
130
|
+
timeout?: components.ClassifyTimeoutConfig | undefined;
|
|
129
131
|
};
|
|
130
132
|
|
|
131
133
|
/**
|
|
@@ -365,6 +367,7 @@ export function createDecisionsStateToJSON(
|
|
|
365
367
|
|
|
366
368
|
/** @internal */
|
|
367
369
|
export type CreateDecisionsRequestBody$Outbound = {
|
|
370
|
+
cache?: components.ClassifyCacheConfig$Outbound | undefined;
|
|
368
371
|
fallbacks?: Array<components.FallbackConfig$Outbound> | null | undefined;
|
|
369
372
|
identity?: components.ResponseIdentity$Outbound | undefined;
|
|
370
373
|
metadata?: { [k: string]: string } | undefined;
|
|
@@ -378,6 +381,7 @@ export type CreateDecisionsRequestBody$Outbound = {
|
|
|
378
381
|
};
|
|
379
382
|
retry?: components.ClassifyRetryConfig$Outbound | undefined;
|
|
380
383
|
state: string | { [k: string]: any } | Array<any>;
|
|
384
|
+
timeout?: components.ClassifyTimeoutConfig$Outbound | undefined;
|
|
381
385
|
};
|
|
382
386
|
|
|
383
387
|
/** @internal */
|
|
@@ -386,6 +390,7 @@ export const CreateDecisionsRequestBody$outboundSchema: z.ZodType<
|
|
|
386
390
|
z.ZodTypeDef,
|
|
387
391
|
CreateDecisionsRequestBody
|
|
388
392
|
> = z.object({
|
|
393
|
+
cache: components.ClassifyCacheConfig$outboundSchema.optional(),
|
|
389
394
|
fallbacks: z.nullable(z.array(components.FallbackConfig$outboundSchema))
|
|
390
395
|
.optional(),
|
|
391
396
|
identity: components.ResponseIdentity$outboundSchema.optional(),
|
|
@@ -401,6 +406,7 @@ export const CreateDecisionsRequestBody$outboundSchema: z.ZodType<
|
|
|
401
406
|
),
|
|
402
407
|
retry: components.ClassifyRetryConfig$outboundSchema.optional(),
|
|
403
408
|
state: z.union([z.string(), z.record(z.any()), z.array(z.any())]),
|
|
409
|
+
timeout: components.ClassifyTimeoutConfig$outboundSchema.optional(),
|
|
404
410
|
});
|
|
405
411
|
|
|
406
412
|
export function createDecisionsRequestBodyToJSON(
|
|
@@ -1416,8 +1416,10 @@ export const CreatePromptProvider = {
|
|
|
1416
1416
|
Reson8: "reson8",
|
|
1417
1417
|
Meta: "meta",
|
|
1418
1418
|
Greenpt: "greenpt",
|
|
1419
|
+
Liquid: "liquid",
|
|
1419
1420
|
Typesafe: "typesafe",
|
|
1420
1421
|
Berget: "berget",
|
|
1422
|
+
Cloudflare: "cloudflare",
|
|
1421
1423
|
Slack: "slack",
|
|
1422
1424
|
Orq: "orq",
|
|
1423
1425
|
} as const;
|
|
@@ -1575,7 +1575,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1575
1575
|
z.ZodTypeDef,
|
|
1576
1576
|
unknown
|
|
1577
1577
|
> = z.object({
|
|
1578
|
-
_id: z.string().default("
|
|
1578
|
+
_id: z.string().default("tool_01M4TKN0JGMCSY5T58G6T2KQAR"),
|
|
1579
1579
|
path: z.string(),
|
|
1580
1580
|
key: z.string(),
|
|
1581
1581
|
display_name: z.string().optional(),
|
|
@@ -1761,7 +1761,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1761
1761
|
z.ZodTypeDef,
|
|
1762
1762
|
unknown
|
|
1763
1763
|
> = z.object({
|
|
1764
|
-
_id: z.string().default("
|
|
1764
|
+
_id: z.string().default("tool_01M4TKN0JF79HVCPC1BZVA7JTH"),
|
|
1765
1765
|
path: z.string(),
|
|
1766
1766
|
key: z.string(),
|
|
1767
1767
|
display_name: z.string().optional(),
|
|
@@ -1854,7 +1854,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1854
1854
|
z.ZodTypeDef,
|
|
1855
1855
|
unknown
|
|
1856
1856
|
> = z.object({
|
|
1857
|
-
_id: z.string().default("
|
|
1857
|
+
_id: z.string().default("tool_01M4TKN0JFSZB1QHGYBT19HJKD"),
|
|
1858
1858
|
path: z.string(),
|
|
1859
1859
|
key: z.string(),
|
|
1860
1860
|
display_name: z.string().optional(),
|
|
@@ -1955,7 +1955,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1955
1955
|
z.ZodTypeDef,
|
|
1956
1956
|
unknown
|
|
1957
1957
|
> = z.object({
|
|
1958
|
-
_id: z.string().default("
|
|
1958
|
+
_id: z.string().default("tool_01M4TKN0JEV9C4DSRFTPDYV6ZG"),
|
|
1959
1959
|
path: z.string(),
|
|
1960
1960
|
key: z.string(),
|
|
1961
1961
|
display_name: z.string().optional(),
|
|
@@ -498,8 +498,10 @@ export const DeploymentsProvider = {
|
|
|
498
498
|
Reson8: "reson8",
|
|
499
499
|
Meta: "meta",
|
|
500
500
|
Greenpt: "greenpt",
|
|
501
|
+
Liquid: "liquid",
|
|
501
502
|
Typesafe: "typesafe",
|
|
502
503
|
Berget: "berget",
|
|
504
|
+
Cloudflare: "cloudflare",
|
|
503
505
|
Slack: "slack",
|
|
504
506
|
Orq: "orq",
|
|
505
507
|
} as const;
|
|
@@ -1171,8 +1171,10 @@ export const DeploymentStreamProvider = {
|
|
|
1171
1171
|
Reson8: "reson8",
|
|
1172
1172
|
Meta: "meta",
|
|
1173
1173
|
Greenpt: "greenpt",
|
|
1174
|
+
Liquid: "liquid",
|
|
1174
1175
|
Typesafe: "typesafe",
|
|
1175
1176
|
Berget: "berget",
|
|
1177
|
+
Cloudflare: "cloudflare",
|
|
1176
1178
|
Slack: "slack",
|
|
1177
1179
|
Orq: "orq",
|
|
1178
1180
|
} as const;
|
|
@@ -449,8 +449,10 @@ export const GetAllPromptsProvider = {
|
|
|
449
449
|
Reson8: "reson8",
|
|
450
450
|
Meta: "meta",
|
|
451
451
|
Greenpt: "greenpt",
|
|
452
|
+
Liquid: "liquid",
|
|
452
453
|
Typesafe: "typesafe",
|
|
453
454
|
Berget: "berget",
|
|
455
|
+
Cloudflare: "cloudflare",
|
|
454
456
|
Slack: "slack",
|
|
455
457
|
Orq: "orq",
|
|
456
458
|
} as const;
|
|
@@ -639,7 +639,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
639
639
|
z.ZodTypeDef,
|
|
640
640
|
unknown
|
|
641
641
|
> = z.object({
|
|
642
|
-
_id: z.string().default("
|
|
642
|
+
_id: z.string().default("tool_01M4TKN0JBNEMHEW049RH5AAFV"),
|
|
643
643
|
path: z.string(),
|
|
644
644
|
key: z.string(),
|
|
645
645
|
display_name: z.string().optional(),
|
|
@@ -821,7 +821,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
|
|
|
821
821
|
z.ZodTypeDef,
|
|
822
822
|
unknown
|
|
823
823
|
> = z.object({
|
|
824
|
-
_id: z.string().default("
|
|
824
|
+
_id: z.string().default("tool_01M4TKN0JA9HDHRMXETMYNCX6E"),
|
|
825
825
|
path: z.string(),
|
|
826
826
|
key: z.string(),
|
|
827
827
|
display_name: z.string().optional(),
|
|
@@ -914,7 +914,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
914
914
|
z.ZodTypeDef,
|
|
915
915
|
unknown
|
|
916
916
|
> = z.object({
|
|
917
|
-
_id: z.string().default("
|
|
917
|
+
_id: z.string().default("tool_01M4TKN0JADK03QW3FVNNAN8T1"),
|
|
918
918
|
path: z.string(),
|
|
919
919
|
key: z.string(),
|
|
920
920
|
display_name: z.string().optional(),
|
|
@@ -1012,7 +1012,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
|
|
|
1012
1012
|
z.ZodTypeDef,
|
|
1013
1013
|
unknown
|
|
1014
1014
|
> = z.object({
|
|
1015
|
-
_id: z.string().default("
|
|
1015
|
+
_id: z.string().default("tool_01M4TKN0J9G0DTBFCQ64F57J7D"),
|
|
1016
1016
|
path: z.string(),
|
|
1017
1017
|
key: z.string(),
|
|
1018
1018
|
display_name: z.string().optional(),
|
|
@@ -433,8 +433,10 @@ export const GetOnePromptProvider = {
|
|
|
433
433
|
Reson8: "reson8",
|
|
434
434
|
Meta: "meta",
|
|
435
435
|
Greenpt: "greenpt",
|
|
436
|
+
Liquid: "liquid",
|
|
436
437
|
Typesafe: "typesafe",
|
|
437
438
|
Berget: "berget",
|
|
439
|
+
Cloudflare: "cloudflare",
|
|
438
440
|
Slack: "slack",
|
|
439
441
|
Orq: "orq",
|
|
440
442
|
} as const;
|
|
@@ -439,8 +439,10 @@ export const GetPromptVersionProvider = {
|
|
|
439
439
|
Reson8: "reson8",
|
|
440
440
|
Meta: "meta",
|
|
441
441
|
Greenpt: "greenpt",
|
|
442
|
+
Liquid: "liquid",
|
|
442
443
|
Typesafe: "typesafe",
|
|
443
444
|
Berget: "berget",
|
|
445
|
+
Cloudflare: "cloudflare",
|
|
444
446
|
Slack: "slack",
|
|
445
447
|
Orq: "orq",
|
|
446
448
|
} as const;
|
|
@@ -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-10-
|
|
143
|
+
"2026-10-13T12:26:22.912Z",
|
|
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-10-
|
|
188
|
+
"2026-10-13T12:26:22.912Z",
|
|
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-10-
|
|
144
|
+
"2026-10-13T12:26:22.912Z",
|
|
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-10-
|
|
189
|
+
"2026-10-13T12:26:22.912Z",
|
|
190
190
|
).transform(v => new Date(v)),
|
|
191
191
|
filter_type: z.literal("span_type"),
|
|
192
192
|
filter_values: z.array(z.string()),
|
|
@@ -453,8 +453,10 @@ export const ListPromptVersionsProvider = {
|
|
|
453
453
|
Reson8: "reson8",
|
|
454
454
|
Meta: "meta",
|
|
455
455
|
Greenpt: "greenpt",
|
|
456
|
+
Liquid: "liquid",
|
|
456
457
|
Typesafe: "typesafe",
|
|
457
458
|
Berget: "berget",
|
|
459
|
+
Cloudflare: "cloudflare",
|
|
458
460
|
Slack: "slack",
|
|
459
461
|
Orq: "orq",
|
|
460
462
|
} as const;
|
|
@@ -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-10-
|
|
321
|
+
"2026-10-13T12:26:22.912Z",
|
|
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-10-
|
|
367
|
+
"2026-10-13T12:26:22.912Z",
|
|
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-10-
|
|
248
|
+
reviewedAt: z.date().default(() => new Date("2026-10-13T12:26:29.371Z"))
|
|
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-10-
|
|
302
|
+
reviewedAt: z.date().default(() => new Date("2026-10-13T12:26:29.371Z"))
|
|
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-10-
|
|
356
|
+
reviewedAt: z.date().default(() => new Date("2026-10-13T12:26:29.371Z"))
|
|
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-10-
|
|
408
|
+
reviewedAt: z.date().default(() => new Date("2026-10-13T12:26:29.370Z"))
|
|
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-10-
|
|
274
|
+
"2026-10-13T12:26:22.912Z",
|
|
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-10-
|
|
319
|
+
"2026-10-13T12:26:22.912Z",
|
|
320
320
|
).transform(v => new Date(v)),
|
|
321
321
|
filter_type: z.literal("span_type"),
|
|
322
322
|
filter_values: z.array(z.string()),
|
|
@@ -624,7 +624,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
624
624
|
z.ZodTypeDef,
|
|
625
625
|
unknown
|
|
626
626
|
> = z.object({
|
|
627
|
-
_id: z.string().default("
|
|
627
|
+
_id: z.string().default("tool_01M4TKN0JV762KD21GYDSH7NRQ"),
|
|
628
628
|
path: z.string(),
|
|
629
629
|
key: z.string(),
|
|
630
630
|
display_name: z.string().optional(),
|
|
@@ -820,7 +820,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
820
820
|
z.ZodTypeDef,
|
|
821
821
|
unknown
|
|
822
822
|
> = z.object({
|
|
823
|
-
_id: z.string().default("
|
|
823
|
+
_id: z.string().default("tool_01M4TKN0JV4NKJFMKXDZTF1VF4"),
|
|
824
824
|
path: z.string(),
|
|
825
825
|
key: z.string(),
|
|
826
826
|
display_name: z.string().optional(),
|
|
@@ -916,7 +916,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
916
916
|
z.ZodTypeDef,
|
|
917
917
|
unknown
|
|
918
918
|
> = z.object({
|
|
919
|
-
_id: z.string().default("
|
|
919
|
+
_id: z.string().default("tool_01M4TKN0JT1JPVKDACAA2B3479"),
|
|
920
920
|
path: z.string(),
|
|
921
921
|
key: z.string(),
|
|
922
922
|
display_name: z.string().optional(),
|
|
@@ -1022,7 +1022,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1022
1022
|
z.ZodTypeDef,
|
|
1023
1023
|
unknown
|
|
1024
1024
|
> = z.object({
|
|
1025
|
-
_id: z.string().default("
|
|
1025
|
+
_id: z.string().default("tool_01M4TKN0JTJQVCYE585QXJGSWE"),
|
|
1026
1026
|
path: z.string(),
|
|
1027
1027
|
key: z.string(),
|
|
1028
1028
|
display_name: z.string().optional(),
|
|
@@ -3890,7 +3890,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
3890
3890
|
z.ZodTypeDef,
|
|
3891
3891
|
Tools
|
|
3892
3892
|
> = z.object({
|
|
3893
|
-
id: z.string().default("
|
|
3893
|
+
id: z.string().default("01M4TKN0GK2C97B4250NS74ME3"),
|
|
3894
3894
|
name: z.string(),
|
|
3895
3895
|
description: z.string().optional(),
|
|
3896
3896
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|
|
@@ -3949,7 +3949,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
|
3949
3949
|
z.ZodTypeDef,
|
|
3950
3950
|
AgentToolInputRunTools
|
|
3951
3951
|
> = z.object({
|
|
3952
|
-
id: z.string().default("
|
|
3952
|
+
id: z.string().default("01M4TKN0H4V59DW97A0KPEJ7X2"),
|
|
3953
3953
|
name: z.string(),
|
|
3954
3954
|
description: z.string().optional(),
|
|
3955
3955
|
schema: z.lazy(() =>
|
|
@@ -1438,8 +1438,10 @@ export const UpdatePromptProvider = {
|
|
|
1438
1438
|
Reson8: "reson8",
|
|
1439
1439
|
Meta: "meta",
|
|
1440
1440
|
Greenpt: "greenpt",
|
|
1441
|
+
Liquid: "liquid",
|
|
1441
1442
|
Typesafe: "typesafe",
|
|
1442
1443
|
Berget: "berget",
|
|
1444
|
+
Cloudflare: "cloudflare",
|
|
1443
1445
|
Slack: "slack",
|
|
1444
1446
|
Orq: "orq",
|
|
1445
1447
|
} as const;
|
|
@@ -1764,7 +1764,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1764
1764
|
z.ZodTypeDef,
|
|
1765
1765
|
unknown
|
|
1766
1766
|
> = z.object({
|
|
1767
|
-
_id: z.string().default("
|
|
1767
|
+
_id: z.string().default("tool_01M4TKN0JMG55P6ZHQJN452DVZ"),
|
|
1768
1768
|
path: z.string(),
|
|
1769
1769
|
key: z.string(),
|
|
1770
1770
|
display_name: z.string().optional(),
|
|
@@ -1959,7 +1959,7 @@ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1959
1959
|
z.ZodTypeDef,
|
|
1960
1960
|
unknown
|
|
1961
1961
|
> = z.object({
|
|
1962
|
-
_id: z.string().default("
|
|
1962
|
+
_id: z.string().default("tool_01M4TKN0JK8VFN2W2A9V05M3WK"),
|
|
1963
1963
|
path: z.string(),
|
|
1964
1964
|
key: z.string(),
|
|
1965
1965
|
display_name: z.string().optional(),
|
|
@@ -2054,7 +2054,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2054
2054
|
z.ZodTypeDef,
|
|
2055
2055
|
unknown
|
|
2056
2056
|
> = z.object({
|
|
2057
|
-
_id: z.string().default("
|
|
2057
|
+
_id: z.string().default("tool_01M4TKN0JJ5G3KDSPMAYZ036AS"),
|
|
2058
2058
|
path: z.string(),
|
|
2059
2059
|
key: z.string(),
|
|
2060
2060
|
display_name: z.string().optional(),
|
|
@@ -2157,7 +2157,7 @@ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2157
2157
|
z.ZodTypeDef,
|
|
2158
2158
|
unknown
|
|
2159
2159
|
> = z.object({
|
|
2160
|
-
_id: z.string().default("
|
|
2160
|
+
_id: z.string().default("tool_01M4TKN0JJ7YNJK5G9A750V1N2"),
|
|
2161
2161
|
path: z.string(),
|
|
2162
2162
|
key: z.string(),
|
|
2163
2163
|
display_name: z.string().optional(),
|
package/src/sdk/classify.ts
CHANGED
|
@@ -14,7 +14,15 @@ export class Classify extends ClientSDK {
|
|
|
14
14
|
* @remarks
|
|
15
15
|
* **Deprecated.** Use `POST /v3/router/decisions` and `orq.router.decisions.create()` for new integrations. This endpoint remains available for backward compatibility with the same request and response contract.
|
|
16
16
|
*
|
|
17
|
-
* **Beta.**
|
|
17
|
+
* **Beta.** Evaluate content against named questions and receive structured answers, probabilities, and usage costs. Send the content as `state` and define each entry in `questions` as:
|
|
18
|
+
*
|
|
19
|
+
* - `noul`: estimate the probability that a statement is true.
|
|
20
|
+
* - `choice`: select an option from a set.
|
|
21
|
+
* - `score`: rate the content on an ordered scale.
|
|
22
|
+
*
|
|
23
|
+
* Use a native decision model or a supported chat model. Configure ordered `fallbacks`, optional `retry`, `timeout.call_timeout` in milliseconds, and an exact-match `cache`. Each retry and fallback gets a fresh timeout; omit `retry` to move directly to the next fallback on timeout. The response identifies the model that answered.
|
|
24
|
+
*
|
|
25
|
+
* Requires the `classify` API-key permission. PII plugins and guardrails are not applied. See the [Decisions guide](/ai-gateway/features/decisions) for supported models, probability interpretation, and refusals.
|
|
18
26
|
*
|
|
19
27
|
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
20
28
|
*/
|
package/src/sdk/decisions.ts
CHANGED
|
@@ -12,7 +12,15 @@ export class Decisions extends ClientSDK {
|
|
|
12
12
|
* Decisions
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* **Beta.**
|
|
15
|
+
* **Beta.** Evaluate content against named questions and receive structured answers, probabilities, and usage costs. Send the content as `state` and define each entry in `questions` as:
|
|
16
|
+
*
|
|
17
|
+
* - `noul`: estimate the probability that a statement is true.
|
|
18
|
+
* - `choice`: select an option from a set.
|
|
19
|
+
* - `score`: rate the content on an ordered scale.
|
|
20
|
+
*
|
|
21
|
+
* Use a native decision model or a supported chat model. Configure ordered `fallbacks`, optional `retry`, `timeout.call_timeout` in milliseconds, and an exact-match `cache`. Each retry and fallback gets a fresh timeout; omit `retry` to move directly to the next fallback on timeout. The response identifies the model that answered.
|
|
22
|
+
*
|
|
23
|
+
* Requires the `classify` API-key permission. PII plugins and guardrails are not applied. See the [Decisions guide](/ai-gateway/features/decisions) for supported models, probability interpretation, and refusals.
|
|
16
24
|
*/
|
|
17
25
|
async create(
|
|
18
26
|
request: operations.CreateDecisionsRequestBody,
|
|
@@ -1,79 +0,0 @@
|
|
|
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 { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Always "compaction".
|
|
14
|
-
*/
|
|
15
|
-
export const PublicCompactionItemType = {
|
|
16
|
-
Compaction: "compaction",
|
|
17
|
-
} as const;
|
|
18
|
-
/**
|
|
19
|
-
* Always "compaction".
|
|
20
|
-
*/
|
|
21
|
-
export type PublicCompactionItemType = ClosedEnum<
|
|
22
|
-
typeof PublicCompactionItemType
|
|
23
|
-
>;
|
|
24
|
-
|
|
25
|
-
export type PublicCompactionItem = {
|
|
26
|
-
/**
|
|
27
|
-
* Not populated by this endpoint.
|
|
28
|
-
*/
|
|
29
|
-
content?: string | undefined;
|
|
30
|
-
/**
|
|
31
|
-
* The model that created this summary.
|
|
32
|
-
*/
|
|
33
|
-
createdBy?: string | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* The summary content generated by the model.
|
|
36
|
-
*/
|
|
37
|
-
encryptedContent?: string | undefined;
|
|
38
|
-
/**
|
|
39
|
-
* The ID of the compaction item.
|
|
40
|
-
*/
|
|
41
|
-
id?: string | undefined;
|
|
42
|
-
/**
|
|
43
|
-
* Always "compaction".
|
|
44
|
-
*/
|
|
45
|
-
type: PublicCompactionItemType;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
/** @internal */
|
|
49
|
-
export const PublicCompactionItemType$inboundSchema: z.ZodNativeEnum<
|
|
50
|
-
typeof PublicCompactionItemType
|
|
51
|
-
> = z.nativeEnum(PublicCompactionItemType);
|
|
52
|
-
|
|
53
|
-
/** @internal */
|
|
54
|
-
export const PublicCompactionItem$inboundSchema: z.ZodType<
|
|
55
|
-
PublicCompactionItem,
|
|
56
|
-
z.ZodTypeDef,
|
|
57
|
-
unknown
|
|
58
|
-
> = z.object({
|
|
59
|
-
content: z.string().optional(),
|
|
60
|
-
created_by: z.string().optional(),
|
|
61
|
-
encrypted_content: z.string().optional(),
|
|
62
|
-
id: z.string().optional(),
|
|
63
|
-
type: PublicCompactionItemType$inboundSchema,
|
|
64
|
-
}).transform((v) => {
|
|
65
|
-
return remap$(v, {
|
|
66
|
-
"created_by": "createdBy",
|
|
67
|
-
"encrypted_content": "encryptedContent",
|
|
68
|
-
});
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
export function publicCompactionItemFromJSON(
|
|
72
|
-
jsonString: string,
|
|
73
|
-
): SafeParseResult<PublicCompactionItem, SDKValidationError> {
|
|
74
|
-
return safeParse(
|
|
75
|
-
jsonString,
|
|
76
|
-
(x) => PublicCompactionItem$inboundSchema.parse(JSON.parse(x)),
|
|
77
|
-
`Failed to parse 'PublicCompactionItem' from JSON`,
|
|
78
|
-
);
|
|
79
|
-
}
|