@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
|
@@ -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;
|
|
@@ -1265,7 +1267,7 @@ export type GetPromptVersion24 = {
|
|
|
1265
1267
|
type: "file";
|
|
1266
1268
|
cacheControl?: GetPromptVersion2CacheControl | undefined;
|
|
1267
1269
|
/**
|
|
1268
|
-
* File data for the content part. Must contain
|
|
1270
|
+
* File data for the content part. Must contain exactly one of file_data, file_id or uri.
|
|
1269
1271
|
*/
|
|
1270
1272
|
file: components.FileContentPartSchema;
|
|
1271
1273
|
};
|
|
@@ -1468,6 +1470,10 @@ export type GetPromptVersionPromptField = {
|
|
|
1468
1470
|
| components.TraceScrubbingPlugin
|
|
1469
1471
|
>
|
|
1470
1472
|
| undefined;
|
|
1473
|
+
/**
|
|
1474
|
+
* HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
|
|
1475
|
+
*/
|
|
1476
|
+
fallbackOnCodes?: Array<number> | undefined;
|
|
1471
1477
|
/**
|
|
1472
1478
|
* Array of fallback models to use if primary model fails
|
|
1473
1479
|
*/
|
|
@@ -3362,6 +3368,7 @@ export const GetPromptVersionPromptField$inboundSchema: z.ZodType<
|
|
|
3362
3368
|
components.TraceScrubbingPlugin$inboundSchema,
|
|
3363
3369
|
]),
|
|
3364
3370
|
).optional(),
|
|
3371
|
+
fallback_on_codes: z.array(z.number().int()).optional(),
|
|
3365
3372
|
fallbacks: z.array(z.lazy(() => GetPromptVersionFallbacks$inboundSchema))
|
|
3366
3373
|
.optional(),
|
|
3367
3374
|
retry: z.lazy(() => GetPromptVersionRetry$inboundSchema).optional(),
|
|
@@ -3396,6 +3403,7 @@ export const GetPromptVersionPromptField$inboundSchema: z.ZodType<
|
|
|
3396
3403
|
"top_k": "topK",
|
|
3397
3404
|
"tool_choice": "toolChoice",
|
|
3398
3405
|
"parallel_tool_calls": "parallelToolCalls",
|
|
3406
|
+
"fallback_on_codes": "fallbackOnCodes",
|
|
3399
3407
|
"load_balancer": "loadBalancer",
|
|
3400
3408
|
"cache_control": "cacheControl",
|
|
3401
3409
|
"prompt_cache_key": "promptCacheKey",
|
|
@@ -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-13T11:28:18.099Z",
|
|
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-13T11:28:18.099Z",
|
|
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-13T11:28:18.099Z",
|
|
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-13T11:28:18.099Z",
|
|
190
190
|
).transform(v => new Date(v)),
|
|
191
191
|
filter_type: z.literal("span_type"),
|
|
192
192
|
filter_values: z.array(z.string()),
|
|
@@ -687,6 +687,10 @@ export type ListAgentsParameters = {
|
|
|
687
687
|
| components.TraceScrubbingPlugin
|
|
688
688
|
>
|
|
689
689
|
| undefined;
|
|
690
|
+
/**
|
|
691
|
+
* HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
|
|
692
|
+
*/
|
|
693
|
+
fallbackOnCodes?: Array<number> | undefined;
|
|
690
694
|
/**
|
|
691
695
|
* Array of fallback models to use if primary model fails
|
|
692
696
|
*/
|
|
@@ -1166,6 +1170,10 @@ export type ListAgentsFallbackModelConfigurationParameters = {
|
|
|
1166
1170
|
| components.TraceScrubbingPlugin
|
|
1167
1171
|
>
|
|
1168
1172
|
| undefined;
|
|
1173
|
+
/**
|
|
1174
|
+
* HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
|
|
1175
|
+
*/
|
|
1176
|
+
fallbackOnCodes?: Array<number> | undefined;
|
|
1169
1177
|
/**
|
|
1170
1178
|
* Array of fallback models to use if primary model fails
|
|
1171
1179
|
*/
|
|
@@ -2153,6 +2161,7 @@ export const ListAgentsParameters$inboundSchema: z.ZodType<
|
|
|
2153
2161
|
components.TraceScrubbingPlugin$inboundSchema,
|
|
2154
2162
|
]),
|
|
2155
2163
|
).optional(),
|
|
2164
|
+
fallback_on_codes: z.array(z.number().int()).optional(),
|
|
2156
2165
|
fallbacks: z.array(z.lazy(() => ListAgentsFallbacks$inboundSchema))
|
|
2157
2166
|
.optional(),
|
|
2158
2167
|
cache: z.lazy(() => ListAgentsCache$inboundSchema).optional(),
|
|
@@ -2172,6 +2181,7 @@ export const ListAgentsParameters$inboundSchema: z.ZodType<
|
|
|
2172
2181
|
"top_k": "topK",
|
|
2173
2182
|
"tool_choice": "toolChoice",
|
|
2174
2183
|
"parallel_tool_calls": "parallelToolCalls",
|
|
2184
|
+
"fallback_on_codes": "fallbackOnCodes",
|
|
2175
2185
|
"load_balancer": "loadBalancer",
|
|
2176
2186
|
"cache_control": "cacheControl",
|
|
2177
2187
|
"prompt_cache_key": "promptCacheKey",
|
|
@@ -2827,6 +2837,7 @@ export const ListAgentsFallbackModelConfigurationParameters$inboundSchema:
|
|
|
2827
2837
|
components.TraceScrubbingPlugin$inboundSchema,
|
|
2828
2838
|
]),
|
|
2829
2839
|
).optional(),
|
|
2840
|
+
fallback_on_codes: z.array(z.number().int()).optional(),
|
|
2830
2841
|
fallbacks: z.array(
|
|
2831
2842
|
z.lazy(() => ListAgentsFallbackModelConfigurationFallbacks$inboundSchema),
|
|
2832
2843
|
).optional(),
|
|
@@ -2853,6 +2864,7 @@ export const ListAgentsFallbackModelConfigurationParameters$inboundSchema:
|
|
|
2853
2864
|
"top_k": "topK",
|
|
2854
2865
|
"tool_choice": "toolChoice",
|
|
2855
2866
|
"parallel_tool_calls": "parallelToolCalls",
|
|
2867
|
+
"fallback_on_codes": "fallbackOnCodes",
|
|
2856
2868
|
"load_balancer": "loadBalancer",
|
|
2857
2869
|
"cache_control": "cacheControl",
|
|
2858
2870
|
"prompt_cache_key": "promptCacheKey",
|
|
@@ -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;
|
|
@@ -1280,7 +1282,7 @@ export type ListPromptVersions24 = {
|
|
|
1280
1282
|
type: "file";
|
|
1281
1283
|
cacheControl?: ListPromptVersions2CacheControl | undefined;
|
|
1282
1284
|
/**
|
|
1283
|
-
* File data for the content part. Must contain
|
|
1285
|
+
* File data for the content part. Must contain exactly one of file_data, file_id or uri.
|
|
1284
1286
|
*/
|
|
1285
1287
|
file: components.FileContentPartSchema;
|
|
1286
1288
|
};
|
|
@@ -1483,6 +1485,10 @@ export type ListPromptVersionsPromptField = {
|
|
|
1483
1485
|
| components.TraceScrubbingPlugin
|
|
1484
1486
|
>
|
|
1485
1487
|
| undefined;
|
|
1488
|
+
/**
|
|
1489
|
+
* HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
|
|
1490
|
+
*/
|
|
1491
|
+
fallbackOnCodes?: Array<number> | undefined;
|
|
1486
1492
|
/**
|
|
1487
1493
|
* Array of fallback models to use if primary model fails
|
|
1488
1494
|
*/
|
|
@@ -3413,6 +3419,7 @@ export const ListPromptVersionsPromptField$inboundSchema: z.ZodType<
|
|
|
3413
3419
|
components.TraceScrubbingPlugin$inboundSchema,
|
|
3414
3420
|
]),
|
|
3415
3421
|
).optional(),
|
|
3422
|
+
fallback_on_codes: z.array(z.number().int()).optional(),
|
|
3416
3423
|
fallbacks: z.array(z.lazy(() => ListPromptVersionsFallbacks$inboundSchema))
|
|
3417
3424
|
.optional(),
|
|
3418
3425
|
retry: z.lazy(() => ListPromptVersionsRetry$inboundSchema).optional(),
|
|
@@ -3447,6 +3454,7 @@ export const ListPromptVersionsPromptField$inboundSchema: z.ZodType<
|
|
|
3447
3454
|
"top_k": "topK",
|
|
3448
3455
|
"tool_choice": "toolChoice",
|
|
3449
3456
|
"parallel_tool_calls": "parallelToolCalls",
|
|
3457
|
+
"fallback_on_codes": "fallbackOnCodes",
|
|
3450
3458
|
"load_balancer": "loadBalancer",
|
|
3451
3459
|
"cache_control": "cacheControl",
|
|
3452
3460
|
"prompt_cache_key": "promptCacheKey",
|
|
@@ -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-13T11:28:18.099Z",
|
|
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-13T11:28:18.099Z",
|
|
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-13T11:28:25.084Z"))
|
|
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-13T11:28:25.083Z"))
|
|
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-13T11:28:25.083Z"))
|
|
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-13T11:28:25.083Z"))
|
|
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-13T11:28:18.099Z",
|
|
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-13T11:28:18.099Z",
|
|
320
320
|
).transform(v => new Date(v)),
|
|
321
321
|
filter_type: z.literal("span_type"),
|
|
322
322
|
filter_values: z.array(z.string()),
|
|
@@ -683,6 +683,10 @@ export type RetrieveAgentRequestParameters = {
|
|
|
683
683
|
| components.TraceScrubbingPlugin
|
|
684
684
|
>
|
|
685
685
|
| undefined;
|
|
686
|
+
/**
|
|
687
|
+
* HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
|
|
688
|
+
*/
|
|
689
|
+
fallbackOnCodes?: Array<number> | undefined;
|
|
686
690
|
/**
|
|
687
691
|
* Array of fallback models to use if primary model fails
|
|
688
692
|
*/
|
|
@@ -1164,6 +1168,10 @@ export type RetrieveAgentRequestFallbackModelConfigurationParameters = {
|
|
|
1164
1168
|
| components.TraceScrubbingPlugin
|
|
1165
1169
|
>
|
|
1166
1170
|
| undefined;
|
|
1171
|
+
/**
|
|
1172
|
+
* HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
|
|
1173
|
+
*/
|
|
1174
|
+
fallbackOnCodes?: Array<number> | undefined;
|
|
1167
1175
|
/**
|
|
1168
1176
|
* Array of fallback models to use if primary model fails
|
|
1169
1177
|
*/
|
|
@@ -2171,6 +2179,7 @@ export const RetrieveAgentRequestParameters$inboundSchema: z.ZodType<
|
|
|
2171
2179
|
components.TraceScrubbingPlugin$inboundSchema,
|
|
2172
2180
|
]),
|
|
2173
2181
|
).optional(),
|
|
2182
|
+
fallback_on_codes: z.array(z.number().int()).optional(),
|
|
2174
2183
|
fallbacks: z.array(z.lazy(() => RetrieveAgentRequestFallbacks$inboundSchema))
|
|
2175
2184
|
.optional(),
|
|
2176
2185
|
cache: z.lazy(() => RetrieveAgentRequestCache$inboundSchema).optional(),
|
|
@@ -2192,6 +2201,7 @@ export const RetrieveAgentRequestParameters$inboundSchema: z.ZodType<
|
|
|
2192
2201
|
"top_k": "topK",
|
|
2193
2202
|
"tool_choice": "toolChoice",
|
|
2194
2203
|
"parallel_tool_calls": "parallelToolCalls",
|
|
2204
|
+
"fallback_on_codes": "fallbackOnCodes",
|
|
2195
2205
|
"load_balancer": "loadBalancer",
|
|
2196
2206
|
"cache_control": "cacheControl",
|
|
2197
2207
|
"prompt_cache_key": "promptCacheKey",
|
|
@@ -2890,6 +2900,7 @@ export const RetrieveAgentRequestFallbackModelConfigurationParameters$inboundSch
|
|
|
2890
2900
|
components.TraceScrubbingPlugin$inboundSchema,
|
|
2891
2901
|
]),
|
|
2892
2902
|
).optional(),
|
|
2903
|
+
fallback_on_codes: z.array(z.number().int()).optional(),
|
|
2893
2904
|
fallbacks: z.array(
|
|
2894
2905
|
z.lazy(() =>
|
|
2895
2906
|
RetrieveAgentRequestFallbackModelConfigurationFallbacks$inboundSchema
|
|
@@ -2920,6 +2931,7 @@ export const RetrieveAgentRequestFallbackModelConfigurationParameters$inboundSch
|
|
|
2920
2931
|
"top_k": "topK",
|
|
2921
2932
|
"tool_choice": "toolChoice",
|
|
2922
2933
|
"parallel_tool_calls": "parallelToolCalls",
|
|
2934
|
+
"fallback_on_codes": "fallbackOnCodes",
|
|
2923
2935
|
"load_balancer": "loadBalancer",
|
|
2924
2936
|
"cache_control": "cacheControl",
|
|
2925
2937
|
"prompt_cache_key": "promptCacheKey",
|
|
@@ -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_01M4TGANYZJ0ANEFE25D7Q74AX"),
|
|
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_01M4TGANYYZP98MSMGWRMMM8A4"),
|
|
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_01M4TGANYYF7S8ARBA30CPS12T"),
|
|
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_01M4TGANYYES4XHCDQWAQ15S0Z"),
|
|
1026
1026
|
path: z.string(),
|
|
1027
1027
|
key: z.string(),
|
|
1028
1028
|
display_name: z.string().optional(),
|
|
@@ -432,6 +432,10 @@ export type RunAgentModelConfigurationParameters = {
|
|
|
432
432
|
| components.TraceScrubbingPlugin
|
|
433
433
|
>
|
|
434
434
|
| undefined;
|
|
435
|
+
/**
|
|
436
|
+
* HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
|
|
437
|
+
*/
|
|
438
|
+
fallbackOnCodes?: Array<number> | undefined;
|
|
435
439
|
/**
|
|
436
440
|
* Array of fallback models to use if primary model fails
|
|
437
441
|
*/
|
|
@@ -932,6 +936,10 @@ export type RunAgentFallbackModelConfigurationParameters = {
|
|
|
932
936
|
| components.TraceScrubbingPlugin
|
|
933
937
|
>
|
|
934
938
|
| undefined;
|
|
939
|
+
/**
|
|
940
|
+
* HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
|
|
941
|
+
*/
|
|
942
|
+
fallbackOnCodes?: Array<number> | undefined;
|
|
935
943
|
/**
|
|
936
944
|
* Array of fallback models to use if primary model fails
|
|
937
945
|
*/
|
|
@@ -2549,6 +2557,7 @@ export type RunAgentModelConfigurationParameters$Outbound = {
|
|
|
2549
2557
|
| components.TraceScrubbingPlugin$Outbound
|
|
2550
2558
|
>
|
|
2551
2559
|
| undefined;
|
|
2560
|
+
fallback_on_codes?: Array<number> | undefined;
|
|
2552
2561
|
fallbacks?: Array<RunAgentModelConfigurationFallbacks$Outbound> | undefined;
|
|
2553
2562
|
cache?: RunAgentModelConfigurationCache$Outbound | undefined;
|
|
2554
2563
|
load_balancer?: RunAgentLoadBalancer1$Outbound | undefined;
|
|
@@ -2606,6 +2615,7 @@ export const RunAgentModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
2606
2615
|
components.TraceScrubbingPlugin$outboundSchema,
|
|
2607
2616
|
]),
|
|
2608
2617
|
).optional(),
|
|
2618
|
+
fallbackOnCodes: z.array(z.number().int()).optional(),
|
|
2609
2619
|
fallbacks: z.array(
|
|
2610
2620
|
z.lazy(() => RunAgentModelConfigurationFallbacks$outboundSchema),
|
|
2611
2621
|
).optional(),
|
|
@@ -2630,6 +2640,7 @@ export const RunAgentModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
2630
2640
|
topK: "top_k",
|
|
2631
2641
|
toolChoice: "tool_choice",
|
|
2632
2642
|
parallelToolCalls: "parallel_tool_calls",
|
|
2643
|
+
fallbackOnCodes: "fallback_on_codes",
|
|
2633
2644
|
loadBalancer: "load_balancer",
|
|
2634
2645
|
cacheControl: "cache_control",
|
|
2635
2646
|
promptCacheKey: "prompt_cache_key",
|
|
@@ -3361,6 +3372,7 @@ export type RunAgentFallbackModelConfigurationParameters$Outbound = {
|
|
|
3361
3372
|
| components.TraceScrubbingPlugin$Outbound
|
|
3362
3373
|
>
|
|
3363
3374
|
| undefined;
|
|
3375
|
+
fallback_on_codes?: Array<number> | undefined;
|
|
3364
3376
|
fallbacks?:
|
|
3365
3377
|
| Array<RunAgentFallbackModelConfigurationFallbacks$Outbound>
|
|
3366
3378
|
| undefined;
|
|
@@ -3426,6 +3438,7 @@ export const RunAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
3426
3438
|
components.TraceScrubbingPlugin$outboundSchema,
|
|
3427
3439
|
]),
|
|
3428
3440
|
).optional(),
|
|
3441
|
+
fallbackOnCodes: z.array(z.number().int()).optional(),
|
|
3429
3442
|
fallbacks: z.array(
|
|
3430
3443
|
z.lazy(() => RunAgentFallbackModelConfigurationFallbacks$outboundSchema),
|
|
3431
3444
|
).optional(),
|
|
@@ -3452,6 +3465,7 @@ export const RunAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
3452
3465
|
topK: "top_k",
|
|
3453
3466
|
toolChoice: "tool_choice",
|
|
3454
3467
|
parallelToolCalls: "parallel_tool_calls",
|
|
3468
|
+
fallbackOnCodes: "fallback_on_codes",
|
|
3455
3469
|
loadBalancer: "load_balancer",
|
|
3456
3470
|
cacheControl: "cache_control",
|
|
3457
3471
|
promptCacheKey: "prompt_cache_key",
|
|
@@ -3890,7 +3904,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
3890
3904
|
z.ZodTypeDef,
|
|
3891
3905
|
Tools
|
|
3892
3906
|
> = z.object({
|
|
3893
|
-
id: z.string().default("
|
|
3907
|
+
id: z.string().default("01M4TGANWV68H1ZNQW7A5D23YF"),
|
|
3894
3908
|
name: z.string(),
|
|
3895
3909
|
description: z.string().optional(),
|
|
3896
3910
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|
|
@@ -443,6 +443,10 @@ export type StreamRunAgentModelConfigurationParameters = {
|
|
|
443
443
|
| components.TraceScrubbingPlugin
|
|
444
444
|
>
|
|
445
445
|
| undefined;
|
|
446
|
+
/**
|
|
447
|
+
* HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
|
|
448
|
+
*/
|
|
449
|
+
fallbackOnCodes?: Array<number> | undefined;
|
|
446
450
|
/**
|
|
447
451
|
* Array of fallback models to use if primary model fails
|
|
448
452
|
*/
|
|
@@ -952,6 +956,10 @@ export type StreamRunAgentFallbackModelConfigurationParameters = {
|
|
|
952
956
|
| components.TraceScrubbingPlugin
|
|
953
957
|
>
|
|
954
958
|
| undefined;
|
|
959
|
+
/**
|
|
960
|
+
* HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
|
|
961
|
+
*/
|
|
962
|
+
fallbackOnCodes?: Array<number> | undefined;
|
|
955
963
|
/**
|
|
956
964
|
* Array of fallback models to use if primary model fails
|
|
957
965
|
*/
|
|
@@ -2541,6 +2549,7 @@ export type StreamRunAgentModelConfigurationParameters$Outbound = {
|
|
|
2541
2549
|
| components.TraceScrubbingPlugin$Outbound
|
|
2542
2550
|
>
|
|
2543
2551
|
| undefined;
|
|
2552
|
+
fallback_on_codes?: Array<number> | undefined;
|
|
2544
2553
|
fallbacks?:
|
|
2545
2554
|
| Array<StreamRunAgentModelConfigurationFallbacks$Outbound>
|
|
2546
2555
|
| undefined;
|
|
@@ -2603,6 +2612,7 @@ export const StreamRunAgentModelConfigurationParameters$outboundSchema:
|
|
|
2603
2612
|
components.TraceScrubbingPlugin$outboundSchema,
|
|
2604
2613
|
]),
|
|
2605
2614
|
).optional(),
|
|
2615
|
+
fallbackOnCodes: z.array(z.number().int()).optional(),
|
|
2606
2616
|
fallbacks: z.array(
|
|
2607
2617
|
z.lazy(() => StreamRunAgentModelConfigurationFallbacks$outboundSchema),
|
|
2608
2618
|
).optional(),
|
|
@@ -2629,6 +2639,7 @@ export const StreamRunAgentModelConfigurationParameters$outboundSchema:
|
|
|
2629
2639
|
topK: "top_k",
|
|
2630
2640
|
toolChoice: "tool_choice",
|
|
2631
2641
|
parallelToolCalls: "parallel_tool_calls",
|
|
2642
|
+
fallbackOnCodes: "fallback_on_codes",
|
|
2632
2643
|
loadBalancer: "load_balancer",
|
|
2633
2644
|
cacheControl: "cache_control",
|
|
2634
2645
|
promptCacheKey: "prompt_cache_key",
|
|
@@ -3380,6 +3391,7 @@ export type StreamRunAgentFallbackModelConfigurationParameters$Outbound = {
|
|
|
3380
3391
|
| components.TraceScrubbingPlugin$Outbound
|
|
3381
3392
|
>
|
|
3382
3393
|
| undefined;
|
|
3394
|
+
fallback_on_codes?: Array<number> | undefined;
|
|
3383
3395
|
fallbacks?:
|
|
3384
3396
|
| Array<StreamRunAgentFallbackModelConfigurationFallbacks$Outbound>
|
|
3385
3397
|
| undefined;
|
|
@@ -3451,6 +3463,7 @@ export const StreamRunAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
3451
3463
|
components.TraceScrubbingPlugin$outboundSchema,
|
|
3452
3464
|
]),
|
|
3453
3465
|
).optional(),
|
|
3466
|
+
fallbackOnCodes: z.array(z.number().int()).optional(),
|
|
3454
3467
|
fallbacks: z.array(
|
|
3455
3468
|
z.lazy(() =>
|
|
3456
3469
|
StreamRunAgentFallbackModelConfigurationFallbacks$outboundSchema
|
|
@@ -3480,6 +3493,7 @@ export const StreamRunAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
3480
3493
|
topK: "top_k",
|
|
3481
3494
|
toolChoice: "tool_choice",
|
|
3482
3495
|
parallelToolCalls: "parallel_tool_calls",
|
|
3496
|
+
fallbackOnCodes: "fallback_on_codes",
|
|
3483
3497
|
loadBalancer: "load_balancer",
|
|
3484
3498
|
cacheControl: "cache_control",
|
|
3485
3499
|
promptCacheKey: "prompt_cache_key",
|
|
@@ -3949,7 +3963,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
|
3949
3963
|
z.ZodTypeDef,
|
|
3950
3964
|
AgentToolInputRunTools
|
|
3951
3965
|
> = z.object({
|
|
3952
|
-
id: z.string().default("
|
|
3966
|
+
id: z.string().default("01M4TGANXBQBG0A3H15QPNM1FD"),
|
|
3953
3967
|
name: z.string(),
|
|
3954
3968
|
description: z.string().optional(),
|
|
3955
3969
|
schema: z.lazy(() =>
|
|
@@ -434,6 +434,10 @@ export type ModelConfigurationParameters = {
|
|
|
434
434
|
| components.TraceScrubbingPlugin
|
|
435
435
|
>
|
|
436
436
|
| undefined;
|
|
437
|
+
/**
|
|
438
|
+
* HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
|
|
439
|
+
*/
|
|
440
|
+
fallbackOnCodes?: Array<number> | undefined;
|
|
437
441
|
/**
|
|
438
442
|
* Array of fallback models to use if primary model fails
|
|
439
443
|
*/
|
|
@@ -940,6 +944,10 @@ export type UpdateAgentFallbackModelConfigurationParameters = {
|
|
|
940
944
|
| components.TraceScrubbingPlugin
|
|
941
945
|
>
|
|
942
946
|
| undefined;
|
|
947
|
+
/**
|
|
948
|
+
* HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
|
|
949
|
+
*/
|
|
950
|
+
fallbackOnCodes?: Array<number> | undefined;
|
|
943
951
|
/**
|
|
944
952
|
* Array of fallback models to use if primary model fails
|
|
945
953
|
*/
|
|
@@ -1866,6 +1874,10 @@ export type UpdateAgentParameters = {
|
|
|
1866
1874
|
| components.TraceScrubbingPlugin
|
|
1867
1875
|
>
|
|
1868
1876
|
| undefined;
|
|
1877
|
+
/**
|
|
1878
|
+
* HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
|
|
1879
|
+
*/
|
|
1880
|
+
fallbackOnCodes?: Array<number> | undefined;
|
|
1869
1881
|
/**
|
|
1870
1882
|
* Array of fallback models to use if primary model fails
|
|
1871
1883
|
*/
|
|
@@ -2349,6 +2361,10 @@ export type UpdateAgentFallbackModelConfigurationAgentsParameters = {
|
|
|
2349
2361
|
| components.TraceScrubbingPlugin
|
|
2350
2362
|
>
|
|
2351
2363
|
| undefined;
|
|
2364
|
+
/**
|
|
2365
|
+
* HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
|
|
2366
|
+
*/
|
|
2367
|
+
fallbackOnCodes?: Array<number> | undefined;
|
|
2352
2368
|
/**
|
|
2353
2369
|
* Array of fallback models to use if primary model fails
|
|
2354
2370
|
*/
|
|
@@ -3103,6 +3119,7 @@ export type ModelConfigurationParameters$Outbound = {
|
|
|
3103
3119
|
| components.TraceScrubbingPlugin$Outbound
|
|
3104
3120
|
>
|
|
3105
3121
|
| undefined;
|
|
3122
|
+
fallback_on_codes?: Array<number> | undefined;
|
|
3106
3123
|
fallbacks?: Array<ModelConfigurationFallbacks$Outbound> | undefined;
|
|
3107
3124
|
cache?: ModelConfigurationCache$Outbound | undefined;
|
|
3108
3125
|
load_balancer?: UpdateAgentLoadBalancer1$Outbound | undefined;
|
|
@@ -3159,6 +3176,7 @@ export const ModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
3159
3176
|
components.TraceScrubbingPlugin$outboundSchema,
|
|
3160
3177
|
]),
|
|
3161
3178
|
).optional(),
|
|
3179
|
+
fallbackOnCodes: z.array(z.number().int()).optional(),
|
|
3162
3180
|
fallbacks: z.array(z.lazy(() => ModelConfigurationFallbacks$outboundSchema))
|
|
3163
3181
|
.optional(),
|
|
3164
3182
|
cache: z.lazy(() => ModelConfigurationCache$outboundSchema).optional(),
|
|
@@ -3181,6 +3199,7 @@ export const ModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
3181
3199
|
topK: "top_k",
|
|
3182
3200
|
toolChoice: "tool_choice",
|
|
3183
3201
|
parallelToolCalls: "parallel_tool_calls",
|
|
3202
|
+
fallbackOnCodes: "fallback_on_codes",
|
|
3184
3203
|
loadBalancer: "load_balancer",
|
|
3185
3204
|
cacheControl: "cache_control",
|
|
3186
3205
|
promptCacheKey: "prompt_cache_key",
|
|
@@ -3917,6 +3936,7 @@ export type UpdateAgentFallbackModelConfigurationParameters$Outbound = {
|
|
|
3917
3936
|
| components.TraceScrubbingPlugin$Outbound
|
|
3918
3937
|
>
|
|
3919
3938
|
| undefined;
|
|
3939
|
+
fallback_on_codes?: Array<number> | undefined;
|
|
3920
3940
|
fallbacks?:
|
|
3921
3941
|
| Array<UpdateAgentFallbackModelConfigurationFallbacks$Outbound>
|
|
3922
3942
|
| undefined;
|
|
@@ -3984,6 +4004,7 @@ export const UpdateAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
3984
4004
|
components.TraceScrubbingPlugin$outboundSchema,
|
|
3985
4005
|
]),
|
|
3986
4006
|
).optional(),
|
|
4007
|
+
fallbackOnCodes: z.array(z.number().int()).optional(),
|
|
3987
4008
|
fallbacks: z.array(
|
|
3988
4009
|
z.lazy(() =>
|
|
3989
4010
|
UpdateAgentFallbackModelConfigurationFallbacks$outboundSchema
|
|
@@ -4013,6 +4034,7 @@ export const UpdateAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
4013
4034
|
topK: "top_k",
|
|
4014
4035
|
toolChoice: "tool_choice",
|
|
4015
4036
|
parallelToolCalls: "parallel_tool_calls",
|
|
4037
|
+
fallbackOnCodes: "fallback_on_codes",
|
|
4016
4038
|
loadBalancer: "load_balancer",
|
|
4017
4039
|
cacheControl: "cache_control",
|
|
4018
4040
|
promptCacheKey: "prompt_cache_key",
|
|
@@ -5275,6 +5297,7 @@ export const UpdateAgentParameters$inboundSchema: z.ZodType<
|
|
|
5275
5297
|
components.TraceScrubbingPlugin$inboundSchema,
|
|
5276
5298
|
]),
|
|
5277
5299
|
).optional(),
|
|
5300
|
+
fallback_on_codes: z.array(z.number().int()).optional(),
|
|
5278
5301
|
fallbacks: z.array(z.lazy(() => UpdateAgentFallbacks$inboundSchema))
|
|
5279
5302
|
.optional(),
|
|
5280
5303
|
cache: z.lazy(() => UpdateAgentCache$inboundSchema).optional(),
|
|
@@ -5296,6 +5319,7 @@ export const UpdateAgentParameters$inboundSchema: z.ZodType<
|
|
|
5296
5319
|
"top_k": "topK",
|
|
5297
5320
|
"tool_choice": "toolChoice",
|
|
5298
5321
|
"parallel_tool_calls": "parallelToolCalls",
|
|
5322
|
+
"fallback_on_codes": "fallbackOnCodes",
|
|
5299
5323
|
"load_balancer": "loadBalancer",
|
|
5300
5324
|
"cache_control": "cacheControl",
|
|
5301
5325
|
"prompt_cache_key": "promptCacheKey",
|
|
@@ -6003,6 +6027,7 @@ export const UpdateAgentFallbackModelConfigurationAgentsParameters$inboundSchema
|
|
|
6003
6027
|
components.TraceScrubbingPlugin$inboundSchema,
|
|
6004
6028
|
]),
|
|
6005
6029
|
).optional(),
|
|
6030
|
+
fallback_on_codes: z.array(z.number().int()).optional(),
|
|
6006
6031
|
fallbacks: z.array(
|
|
6007
6032
|
z.lazy(() =>
|
|
6008
6033
|
UpdateAgentFallbackModelConfigurationAgentsFallbacks$inboundSchema
|
|
@@ -6033,6 +6058,7 @@ export const UpdateAgentFallbackModelConfigurationAgentsParameters$inboundSchema
|
|
|
6033
6058
|
"top_k": "topK",
|
|
6034
6059
|
"tool_choice": "toolChoice",
|
|
6035
6060
|
"parallel_tool_calls": "parallelToolCalls",
|
|
6061
|
+
"fallback_on_codes": "fallbackOnCodes",
|
|
6036
6062
|
"load_balancer": "loadBalancer",
|
|
6037
6063
|
"cache_control": "cacheControl",
|
|
6038
6064
|
"prompt_cache_key": "promptCacheKey",
|