@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.
Files changed (262) hide show
  1. package/README.md +5 -3
  2. package/funcs/routerClassifyCreate.d.ts +10 -2
  3. package/funcs/routerClassifyCreate.d.ts.map +1 -1
  4. package/funcs/routerClassifyCreate.js +10 -2
  5. package/funcs/routerClassifyCreate.js.map +1 -1
  6. package/funcs/routerDecisionsCreate.d.ts +10 -2
  7. package/funcs/routerDecisionsCreate.d.ts.map +1 -1
  8. package/funcs/routerDecisionsCreate.js +11 -2
  9. package/funcs/routerDecisionsCreate.js.map +1 -1
  10. package/jsr.json +1 -1
  11. package/lib/config.d.ts +3 -3
  12. package/lib/config.js +3 -3
  13. package/models/components/classifycacheconfig.d.ts +33 -0
  14. package/models/components/classifycacheconfig.d.ts.map +1 -0
  15. package/models/components/classifycacheconfig.js +58 -0
  16. package/models/components/classifycacheconfig.js.map +1 -0
  17. package/models/components/classifytimeoutconfig.d.ts +15 -0
  18. package/models/components/classifytimeoutconfig.d.ts.map +1 -0
  19. package/models/components/classifytimeoutconfig.js +54 -0
  20. package/models/components/classifytimeoutconfig.js.map +1 -0
  21. package/models/components/environment.d.ts +1 -1
  22. package/models/components/index.d.ts +7 -0
  23. package/models/components/index.d.ts.map +1 -1
  24. package/models/components/index.js +7 -0
  25. package/models/components/index.js.map +1 -1
  26. package/models/components/reasoningpart.js +1 -1
  27. package/models/components/responsefunctioncallargumentsdonestreamevent.d.ts +4 -0
  28. package/models/components/responsefunctioncallargumentsdonestreamevent.d.ts.map +1 -1
  29. package/models/components/responsefunctioncallargumentsdonestreamevent.js +1 -0
  30. package/models/components/responsefunctioncallargumentsdonestreamevent.js.map +1 -1
  31. package/models/components/responseimagegenerationcallpartialimagestreamevent.d.ts +16 -0
  32. package/models/components/responseimagegenerationcallpartialimagestreamevent.d.ts.map +1 -1
  33. package/models/components/responseimagegenerationcallpartialimagestreamevent.js +5 -0
  34. package/models/components/responseimagegenerationcallpartialimagestreamevent.js.map +1 -1
  35. package/models/components/responsereasoningsummarypartaddedstreamevent.d.ts +4 -0
  36. package/models/components/responsereasoningsummarypartaddedstreamevent.d.ts.map +1 -1
  37. package/models/components/responsereasoningsummarypartaddedstreamevent.js +1 -0
  38. package/models/components/responsereasoningsummarypartaddedstreamevent.js.map +1 -1
  39. package/models/components/responsereasoningsummarypartdonestreamevent.d.ts +4 -0
  40. package/models/components/responsereasoningsummarypartdonestreamevent.d.ts.map +1 -1
  41. package/models/components/responsereasoningsummarypartdonestreamevent.js +1 -0
  42. package/models/components/responsereasoningsummarypartdonestreamevent.js.map +1 -1
  43. package/models/components/responseshellcallcommandaddedstreamevent.d.ts +35 -0
  44. package/models/components/responseshellcallcommandaddedstreamevent.d.ts.map +1 -0
  45. package/models/components/responseshellcallcommandaddedstreamevent.js +61 -0
  46. package/models/components/responseshellcallcommandaddedstreamevent.js.map +1 -0
  47. package/models/components/responseshellcallcommanddeltastreamevent.d.ts +39 -0
  48. package/models/components/responseshellcallcommanddeltastreamevent.d.ts.map +1 -0
  49. package/models/components/responseshellcallcommanddeltastreamevent.js +62 -0
  50. package/models/components/responseshellcallcommanddeltastreamevent.js.map +1 -0
  51. package/models/components/responseshellcallcommanddonestreamevent.d.ts +35 -0
  52. package/models/components/responseshellcallcommanddonestreamevent.d.ts.map +1 -0
  53. package/models/components/responseshellcallcommanddonestreamevent.js +61 -0
  54. package/models/components/responseshellcallcommanddonestreamevent.js.map +1 -0
  55. package/models/components/responseshellcalloutputcontentdeltastreamevent.d.ts +41 -0
  56. package/models/components/responseshellcalloutputcontentdeltastreamevent.d.ts.map +1 -0
  57. package/models/components/responseshellcalloutputcontentdeltastreamevent.js +63 -0
  58. package/models/components/responseshellcalloutputcontentdeltastreamevent.js.map +1 -0
  59. package/models/components/responseshellcalloutputcontentdonestreamevent.d.ts +38 -0
  60. package/models/components/responseshellcalloutputcontentdonestreamevent.d.ts.map +1 -0
  61. package/models/components/responseshellcalloutputcontentdonestreamevent.js +63 -0
  62. package/models/components/responseshellcalloutputcontentdonestreamevent.js.map +1 -0
  63. package/models/components/responsestreamevent.d.ts +6 -1
  64. package/models/components/responsestreamevent.d.ts.map +1 -1
  65. package/models/components/responsestreamevent.js +10 -0
  66. package/models/components/responsestreamevent.js.map +1 -1
  67. package/models/errors/createclassify.d.ts +23 -2
  68. package/models/errors/createclassify.d.ts.map +1 -1
  69. package/models/errors/createclassify.js +30 -2
  70. package/models/errors/createclassify.js.map +1 -1
  71. package/models/errors/createdecisions.d.ts +23 -2
  72. package/models/errors/createdecisions.d.ts.map +1 -1
  73. package/models/errors/createdecisions.js +30 -2
  74. package/models/errors/createdecisions.js.map +1 -1
  75. package/models/operations/createclassify.d.ts +4 -0
  76. package/models/operations/createclassify.d.ts.map +1 -1
  77. package/models/operations/createclassify.js +2 -0
  78. package/models/operations/createclassify.js.map +1 -1
  79. package/models/operations/createdecisions.d.ts +4 -0
  80. package/models/operations/createdecisions.d.ts.map +1 -1
  81. package/models/operations/createdecisions.js +2 -0
  82. package/models/operations/createdecisions.js.map +1 -1
  83. package/models/operations/createprompt.d.ts +2 -0
  84. package/models/operations/createprompt.d.ts.map +1 -1
  85. package/models/operations/createprompt.js +2 -0
  86. package/models/operations/createprompt.js.map +1 -1
  87. package/models/operations/createtool.js +4 -4
  88. package/models/operations/deploymentinvoke.d.ts +2 -0
  89. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  90. package/models/operations/deploymentinvoke.js +2 -0
  91. package/models/operations/deploymentinvoke.js.map +1 -1
  92. package/models/operations/deployments.d.ts +2 -0
  93. package/models/operations/deployments.d.ts.map +1 -1
  94. package/models/operations/deployments.js +2 -0
  95. package/models/operations/deployments.js.map +1 -1
  96. package/models/operations/deploymentstream.d.ts +2 -0
  97. package/models/operations/deploymentstream.d.ts.map +1 -1
  98. package/models/operations/deploymentstream.js +2 -0
  99. package/models/operations/deploymentstream.js.map +1 -1
  100. package/models/operations/getallprompts.d.ts +2 -0
  101. package/models/operations/getallprompts.d.ts.map +1 -1
  102. package/models/operations/getallprompts.js +2 -0
  103. package/models/operations/getallprompts.js.map +1 -1
  104. package/models/operations/getalltools.js +4 -4
  105. package/models/operations/getoneprompt.d.ts +2 -0
  106. package/models/operations/getoneprompt.d.ts.map +1 -1
  107. package/models/operations/getoneprompt.js +2 -0
  108. package/models/operations/getoneprompt.js.map +1 -1
  109. package/models/operations/getpromptversion.d.ts +2 -0
  110. package/models/operations/getpromptversion.d.ts.map +1 -1
  111. package/models/operations/getpromptversion.js +2 -0
  112. package/models/operations/getpromptversion.js.map +1 -1
  113. package/models/operations/getv2humanevalsets.js +2 -2
  114. package/models/operations/getv2humanevalsetsid.js +2 -2
  115. package/models/operations/listpromptversions.d.ts +2 -0
  116. package/models/operations/listpromptversions.d.ts.map +1 -1
  117. package/models/operations/listpromptversions.js +2 -0
  118. package/models/operations/listpromptversions.js.map +1 -1
  119. package/models/operations/patchv2humanevalsetsid.js +2 -2
  120. package/models/operations/postv2feedbackevaluation.js +4 -4
  121. package/models/operations/postv2humanevalsets.js +2 -2
  122. package/models/operations/retrievetool.js +4 -4
  123. package/models/operations/runagent.js +1 -1
  124. package/models/operations/streamrunagent.js +1 -1
  125. package/models/operations/updateprompt.d.ts +2 -0
  126. package/models/operations/updateprompt.d.ts.map +1 -1
  127. package/models/operations/updateprompt.js +2 -0
  128. package/models/operations/updateprompt.js.map +1 -1
  129. package/models/operations/updatetool.js +4 -4
  130. package/package.json +6 -6
  131. package/packages/orq-rc/src/funcs/responsesCompact.ts +1 -1
  132. package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +3 -0
  133. package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +3 -0
  134. package/packages/orq-rc/src/funcs/routerClassifyCreate.ts +20 -1
  135. package/packages/orq-rc/src/funcs/routerDecisionsCreate.ts +17 -1
  136. package/packages/orq-rc/src/funcs/routerImagesEditsCreate.ts +3 -0
  137. package/packages/orq-rc/src/funcs/routerImagesVariationsCreate.ts +3 -0
  138. package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +1 -1
  139. package/packages/orq-rc/src/lib/config.ts +3 -3
  140. package/packages/orq-rc/src/models/components/classifycacheconfig.ts +59 -0
  141. package/packages/orq-rc/src/models/components/classifytimeoutconfig.ts +39 -0
  142. package/packages/orq-rc/src/models/components/environment.ts +1 -1
  143. package/packages/orq-rc/src/models/components/filecontentpartschema.ts +12 -3
  144. package/packages/orq-rc/src/models/components/index.ts +8 -1
  145. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +2 -2
  146. package/packages/orq-rc/src/models/components/mcpgatewayplugin.ts +16 -0
  147. package/packages/orq-rc/src/models/components/modelsconfig.ts +13 -0
  148. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  149. package/packages/orq-rc/src/models/components/responsefunctioncallargumentsdonestreamevent.ts +5 -0
  150. package/packages/orq-rc/src/models/components/responseimagegenerationcallpartialimagestreamevent.ts +21 -0
  151. package/packages/orq-rc/src/models/components/responsereasoningsummarypartaddedstreamevent.ts +5 -0
  152. package/packages/orq-rc/src/models/components/responsereasoningsummarypartdonestreamevent.ts +5 -0
  153. package/packages/orq-rc/src/models/components/responseshellcallcommandaddedstreamevent.ts +78 -0
  154. package/packages/orq-rc/src/models/components/responseshellcallcommanddeltastreamevent.ts +83 -0
  155. package/packages/orq-rc/src/models/components/responseshellcallcommanddonestreamevent.ts +78 -0
  156. package/packages/orq-rc/src/models/components/responseshellcalloutputcontentdeltastreamevent.ts +85 -0
  157. package/packages/orq-rc/src/models/components/responseshellcalloutputcontentdonestreamevent.ts +82 -0
  158. package/packages/orq-rc/src/models/components/responsestreamevent.ts +30 -0
  159. package/packages/orq-rc/src/models/components/routingrulemodelsconfig.ts +16 -0
  160. package/packages/orq-rc/src/models/components/routingruleplugin.ts +22 -0
  161. package/packages/orq-rc/src/models/components/signalscheck.ts +51 -0
  162. package/packages/orq-rc/src/models/components/updateworkspacerequest.ts +4 -0
  163. package/packages/orq-rc/src/models/errors/createclassify.ts +54 -2
  164. package/packages/orq-rc/src/models/errors/createdecisions.ts +54 -2
  165. package/packages/orq-rc/src/models/errors/createmoderation.ts +2 -2
  166. package/packages/orq-rc/src/models/operations/compactresponse.ts +4 -4
  167. package/packages/orq-rc/src/models/operations/createagentrequest.ts +26 -0
  168. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +15 -1
  169. package/packages/orq-rc/src/models/operations/createclassify.ts +17 -0
  170. package/packages/orq-rc/src/models/operations/createcompletion.ts +14 -0
  171. package/packages/orq-rc/src/models/operations/createdecisions.ts +17 -0
  172. package/packages/orq-rc/src/models/operations/createembedding.ts +7 -0
  173. package/packages/orq-rc/src/models/operations/createimage.ts +14 -0
  174. package/packages/orq-rc/src/models/operations/createimageedit.ts +14 -0
  175. package/packages/orq-rc/src/models/operations/createimagevariation.ts +14 -0
  176. package/packages/orq-rc/src/models/operations/createmoderation.ts +3 -3
  177. package/packages/orq-rc/src/models/operations/createprompt.ts +17 -2
  178. package/packages/orq-rc/src/models/operations/creatererank.ts +14 -0
  179. package/packages/orq-rc/src/models/operations/createrouterresponse.ts +7 -0
  180. package/packages/orq-rc/src/models/operations/createspeech.ts +14 -0
  181. package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
  182. package/packages/orq-rc/src/models/operations/createtranscription.ts +14 -0
  183. package/packages/orq-rc/src/models/operations/createtranslation.ts +14 -0
  184. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +2 -2
  185. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +2 -0
  186. package/packages/orq-rc/src/models/operations/deployments.ts +2 -0
  187. package/packages/orq-rc/src/models/operations/deploymentstream.ts +4 -2
  188. package/packages/orq-rc/src/models/operations/getallprompts.ts +9 -1
  189. package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
  190. package/packages/orq-rc/src/models/operations/getoneprompt.ts +9 -1
  191. package/packages/orq-rc/src/models/operations/getpromptversion.ts +9 -1
  192. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  193. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  194. package/packages/orq-rc/src/models/operations/listagents.ts +12 -0
  195. package/packages/orq-rc/src/models/operations/listpromptversions.ts +9 -1
  196. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  197. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +4 -4
  198. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  199. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +12 -0
  200. package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
  201. package/packages/orq-rc/src/models/operations/runagent.ts +15 -1
  202. package/packages/orq-rc/src/models/operations/streamrunagent.ts +15 -1
  203. package/packages/orq-rc/src/models/operations/tracesgetspan.ts +3 -0
  204. package/packages/orq-rc/src/models/operations/updateagent.ts +26 -0
  205. package/packages/orq-rc/src/models/operations/updateprompt.ts +17 -2
  206. package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
  207. package/packages/orq-rc/src/sdk/classify.ts +13 -1
  208. package/packages/orq-rc/src/sdk/decisions.ts +9 -1
  209. package/packages/orq-rc/src/sdk/responses.ts +1 -1
  210. package/sdk/classify.d.ts +9 -1
  211. package/sdk/classify.d.ts.map +1 -1
  212. package/sdk/classify.js +9 -1
  213. package/sdk/classify.js.map +1 -1
  214. package/sdk/decisions.d.ts +9 -1
  215. package/sdk/decisions.d.ts.map +1 -1
  216. package/sdk/decisions.js +9 -1
  217. package/sdk/decisions.js.map +1 -1
  218. package/src/funcs/routerClassifyCreate.ts +16 -1
  219. package/src/funcs/routerDecisionsCreate.ts +17 -1
  220. package/src/lib/config.ts +3 -3
  221. package/src/models/components/classifycacheconfig.ts +59 -0
  222. package/src/models/components/classifytimeoutconfig.ts +39 -0
  223. package/src/models/components/environment.ts +1 -1
  224. package/src/models/components/index.ts +7 -0
  225. package/src/models/components/reasoningpart.ts +1 -1
  226. package/src/models/components/responsefunctioncallargumentsdonestreamevent.ts +5 -0
  227. package/src/models/components/responseimagegenerationcallpartialimagestreamevent.ts +21 -0
  228. package/src/models/components/responsereasoningsummarypartaddedstreamevent.ts +5 -0
  229. package/src/models/components/responsereasoningsummarypartdonestreamevent.ts +5 -0
  230. package/src/models/components/responseshellcallcommandaddedstreamevent.ts +78 -0
  231. package/src/models/components/responseshellcallcommanddeltastreamevent.ts +83 -0
  232. package/src/models/components/responseshellcallcommanddonestreamevent.ts +78 -0
  233. package/src/models/components/responseshellcalloutputcontentdeltastreamevent.ts +85 -0
  234. package/src/models/components/responseshellcalloutputcontentdonestreamevent.ts +82 -0
  235. package/src/models/components/responsestreamevent.ts +30 -0
  236. package/src/models/errors/createclassify.ts +54 -2
  237. package/src/models/errors/createdecisions.ts +54 -2
  238. package/src/models/operations/createclassify.ts +6 -0
  239. package/src/models/operations/createdecisions.ts +6 -0
  240. package/src/models/operations/createprompt.ts +2 -0
  241. package/src/models/operations/createtool.ts +4 -4
  242. package/src/models/operations/deploymentinvoke.ts +2 -0
  243. package/src/models/operations/deployments.ts +2 -0
  244. package/src/models/operations/deploymentstream.ts +2 -0
  245. package/src/models/operations/getallprompts.ts +2 -0
  246. package/src/models/operations/getalltools.ts +4 -4
  247. package/src/models/operations/getoneprompt.ts +2 -0
  248. package/src/models/operations/getpromptversion.ts +2 -0
  249. package/src/models/operations/getv2humanevalsets.ts +2 -2
  250. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  251. package/src/models/operations/listpromptversions.ts +2 -0
  252. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  253. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  254. package/src/models/operations/postv2humanevalsets.ts +2 -2
  255. package/src/models/operations/retrievetool.ts +4 -4
  256. package/src/models/operations/runagent.ts +1 -1
  257. package/src/models/operations/streamrunagent.ts +1 -1
  258. package/src/models/operations/updateprompt.ts +2 -0
  259. package/src/models/operations/updatetool.ts +4 -4
  260. package/src/sdk/classify.ts +9 -1
  261. package/src/sdk/decisions.ts +9 -1
  262. 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("tool_01M4C67Z5C3Y7C63WQFC65K484"),
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("tool_01M4C67Z5C24ZCG9MSVSCJY3TX"),
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("tool_01M4C67Z5BKY6AGZGV71HMJEQD"),
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("tool_01M4C67Z5BT7HQMTTJ6DJ7DF6B"),
1958
+ _id: z.string().default("tool_01M4TKN0JEV9C4DSRFTPDYV6ZG"),
1959
1959
  path: z.string(),
1960
1960
  key: z.string(),
1961
1961
  display_name: z.string().optional(),
@@ -66,8 +66,10 @@ export const DeploymentInvokeProvider = {
66
66
  Reson8: "reson8",
67
67
  Meta: "meta",
68
68
  Greenpt: "greenpt",
69
+ Liquid: "liquid",
69
70
  Typesafe: "typesafe",
70
71
  Berget: "berget",
72
+ Cloudflare: "cloudflare",
71
73
  Slack: "slack",
72
74
  Orq: "orq",
73
75
  } as const;
@@ -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("tool_01M4C67Z592A39MZQW43SM2KMD"),
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("tool_01M4C67Z588H22W736F5BT3TNC"),
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("tool_01M4C67Z58QRAQEMSH22NRTTWJ"),
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("tool_01M4C67Z57DCCG1XS5JY2RVFZA"),
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-07T22:02:43.125Z",
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-07T22:02:43.125Z",
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-07T22:02:43.125Z",
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-07T22:02:43.125Z",
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-07T22:02:43.125Z",
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-07T22:02:43.125Z",
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-07T22:02:48.397Z"))
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-07T22:02:48.397Z"))
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-07T22:02:48.397Z"))
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-07T22:02:48.396Z"))
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-07T22:02:43.125Z",
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-07T22:02:43.125Z",
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("tool_01M4C67Z5NJGF0Z8HET512SJXS"),
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("tool_01M4C67Z5M9SS78TBRRB262849"),
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("tool_01M4C67Z5M8NHMB7VF8EAV6ZE5"),
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("tool_01M4C67Z5MVFX49RMWZC59D1SZ"),
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("01M4C67Z3W332K24T2T292FCH1"),
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("01M4C67Z49PP25XG7RW7MKBVB1"),
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("tool_01M4C67Z5GSSTYA29MC2K62Z42"),
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("tool_01M4C67Z5GH25T0X300Y821TVA"),
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("tool_01M4C67Z5GFKPMMFT0KYVQ7NXW"),
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("tool_01M4C67Z5FQDEVW3J51Y5MN816"),
2160
+ _id: z.string().default("tool_01M4TKN0JJ7YNJK5G9A750V1N2"),
2161
2161
  path: z.string(),
2162
2162
  key: z.string(),
2163
2163
  display_name: z.string().optional(),
@@ -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.** Runs typed classification questions (`noul`, `choice`, `score`) against a native classify provider, including OpenAI Decisions with `openai/gpt-6-luna`, or a chat model that supports classify emulation. Emulated models answer through one structured-output call and their probabilities are model-reported rather than calibrated. Native providers can return `refusal` for individual questions; refused answers contain only `type`. The request and response follow the TypeSafe classification contract; `model` in the response identifies the primary or fallback model that answered and `usage` carries the computed cost like the Responses API. Both `/v3/router/classify` and `/v3/router/decisions` use this contract, including ordered `fallbacks`, request-level `retry`, and `identity` attribution. Both require `classify.execute`. This endpoint currently does not apply PII plugins or guardrails.
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
  */
@@ -12,7 +12,15 @@ export class Decisions extends ClientSDK {
12
12
  * Decisions
13
13
  *
14
14
  * @remarks
15
- * **Beta.** Runs typed classification questions (`noul`, `choice`, `score`) against a native classify provider, including OpenAI Decisions with `openai/gpt-6-luna`, or a chat model that supports classify emulation. Emulated models answer through one structured-output call and their probabilities are model-reported rather than calibrated. Native providers can return `refusal` for individual questions; refused answers contain only `type`. The request and response follow the TypeSafe classification contract; `model` in the response identifies the primary or fallback model that answered and `usage` carries the computed cost like the Responses API. Both `/v3/router/classify` and `/v3/router/decisions` use this contract, including ordered `fallbacks`, request-level `retry`, and `identity` attribution. Both require `classify.execute`. This endpoint currently does not apply PII plugins or guardrails.
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
- }