@orq-ai/node 4.11.0-rc.3 → 4.11.0-rc.5

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 (177) hide show
  1. package/hooks/types.d.ts +1 -0
  2. package/hooks/types.d.ts.map +1 -1
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +3 -3
  5. package/lib/config.js +3 -3
  6. package/lib/sdks.d.ts.map +1 -1
  7. package/lib/sdks.js +13 -4
  8. package/lib/sdks.js.map +1 -1
  9. package/models/components/modelmetadata.d.ts +2 -0
  10. package/models/components/modelmetadata.d.ts.map +1 -1
  11. package/models/components/modelmetadata.js +4 -0
  12. package/models/components/modelmetadata.js.map +1 -1
  13. package/models/components/reasoning.d.ts +40 -2
  14. package/models/components/reasoning.d.ts.map +1 -1
  15. package/models/components/reasoning.js +26 -3
  16. package/models/components/reasoning.js.map +1 -1
  17. package/models/components/reasoningparam.d.ts +40 -2
  18. package/models/components/reasoningparam.d.ts.map +1 -1
  19. package/models/components/reasoningparam.js +28 -3
  20. package/models/components/reasoningparam.js.map +1 -1
  21. package/models/components/reasoningpart.js +1 -1
  22. package/models/operations/createagentrequest.d.ts +298 -4
  23. package/models/operations/createagentrequest.d.ts.map +1 -1
  24. package/models/operations/createagentrequest.js +163 -9
  25. package/models/operations/createagentrequest.js.map +1 -1
  26. package/models/operations/createchatcompletion.d.ts +81 -4
  27. package/models/operations/createchatcompletion.d.ts.map +1 -1
  28. package/models/operations/createchatcompletion.js +45 -7
  29. package/models/operations/createchatcompletion.js.map +1 -1
  30. package/models/operations/createdataset.js +1 -1
  31. package/models/operations/createdatasetitem.js +4 -4
  32. package/models/operations/createdatasource.js +1 -1
  33. package/models/operations/createeval.js +16 -16
  34. package/models/operations/createprompt.d.ts +225 -12
  35. package/models/operations/createprompt.d.ts.map +1 -1
  36. package/models/operations/createprompt.js +124 -13
  37. package/models/operations/createprompt.js.map +1 -1
  38. package/models/operations/createrouterresponse.d.ts +353 -8
  39. package/models/operations/createrouterresponse.d.ts.map +1 -1
  40. package/models/operations/createrouterresponse.js +198 -7
  41. package/models/operations/createrouterresponse.js.map +1 -1
  42. package/models/operations/createtool.js +6 -6
  43. package/models/operations/deploymentgetconfig.d.ts +70 -4
  44. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  45. package/models/operations/deploymentgetconfig.js +43 -8
  46. package/models/operations/deploymentgetconfig.js.map +1 -1
  47. package/models/operations/deployments.d.ts +74 -8
  48. package/models/operations/deployments.d.ts.map +1 -1
  49. package/models/operations/deployments.js +43 -8
  50. package/models/operations/deployments.js.map +1 -1
  51. package/models/operations/getallprompts.d.ts +140 -4
  52. package/models/operations/getallprompts.d.ts.map +1 -1
  53. package/models/operations/getallprompts.js +79 -6
  54. package/models/operations/getallprompts.js.map +1 -1
  55. package/models/operations/getalltools.js +6 -6
  56. package/models/operations/getevals.js +16 -16
  57. package/models/operations/getoneprompt.d.ts +140 -4
  58. package/models/operations/getoneprompt.d.ts.map +1 -1
  59. package/models/operations/getoneprompt.js +79 -6
  60. package/models/operations/getoneprompt.js.map +1 -1
  61. package/models/operations/getpromptversion.d.ts +140 -4
  62. package/models/operations/getpromptversion.d.ts.map +1 -1
  63. package/models/operations/getpromptversion.js +78 -6
  64. package/models/operations/getpromptversion.js.map +1 -1
  65. package/models/operations/getv2humanevalsets.js +2 -2
  66. package/models/operations/getv2humanevalsetsid.js +2 -2
  67. package/models/operations/listagents.d.ts +140 -0
  68. package/models/operations/listagents.d.ts.map +1 -1
  69. package/models/operations/listagents.js +79 -3
  70. package/models/operations/listagents.js.map +1 -1
  71. package/models/operations/listdatasetdatapoints.js +4 -4
  72. package/models/operations/listdatasets.js +1 -1
  73. package/models/operations/listdatasources.js +1 -1
  74. package/models/operations/listknowledgebases.d.ts +3 -0
  75. package/models/operations/listknowledgebases.d.ts.map +1 -1
  76. package/models/operations/listknowledgebases.js +1 -1
  77. package/models/operations/listknowledgebases.js.map +1 -1
  78. package/models/operations/listpromptversions.d.ts +140 -4
  79. package/models/operations/listpromptversions.d.ts.map +1 -1
  80. package/models/operations/listpromptversions.js +79 -6
  81. package/models/operations/listpromptversions.js.map +1 -1
  82. package/models/operations/modelcreateawsbedrock.d.ts +4 -0
  83. package/models/operations/modelcreateawsbedrock.d.ts.map +1 -1
  84. package/models/operations/modelcreateawsbedrock.js +4 -0
  85. package/models/operations/modelcreateawsbedrock.js.map +1 -1
  86. package/models/operations/modelupdateawsbedrock.d.ts +4 -0
  87. package/models/operations/modelupdateawsbedrock.d.ts.map +1 -1
  88. package/models/operations/modelupdateawsbedrock.js +4 -0
  89. package/models/operations/modelupdateawsbedrock.js.map +1 -1
  90. package/models/operations/patchv2humanevalsetsid.js +2 -2
  91. package/models/operations/postv2feedbackevaluation.js +3 -3
  92. package/models/operations/postv2humanevalsets.js +2 -2
  93. package/models/operations/retrieveagentrequest.d.ts +140 -0
  94. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  95. package/models/operations/retrieveagentrequest.js +81 -2
  96. package/models/operations/retrieveagentrequest.js.map +1 -1
  97. package/models/operations/retrievedatapoint.js +4 -4
  98. package/models/operations/retrievedataset.js +1 -1
  99. package/models/operations/retrievedatasource.js +1 -1
  100. package/models/operations/retrievetool.js +6 -6
  101. package/models/operations/runagent.d.ts +154 -0
  102. package/models/operations/runagent.d.ts.map +1 -1
  103. package/models/operations/runagent.js +80 -5
  104. package/models/operations/runagent.js.map +1 -1
  105. package/models/operations/streamrunagent.d.ts +154 -0
  106. package/models/operations/streamrunagent.d.ts.map +1 -1
  107. package/models/operations/streamrunagent.js +82 -4
  108. package/models/operations/streamrunagent.js.map +1 -1
  109. package/models/operations/updateagent.d.ts +298 -4
  110. package/models/operations/updateagent.d.ts.map +1 -1
  111. package/models/operations/updateagent.js +162 -9
  112. package/models/operations/updateagent.js.map +1 -1
  113. package/models/operations/updatedatapoint.js +4 -4
  114. package/models/operations/updatedataset.js +1 -1
  115. package/models/operations/updatedatasource.js +1 -1
  116. package/models/operations/updateeval.js +16 -16
  117. package/models/operations/updateprompt.d.ts +225 -12
  118. package/models/operations/updateprompt.d.ts.map +1 -1
  119. package/models/operations/updateprompt.js +125 -14
  120. package/models/operations/updateprompt.js.map +1 -1
  121. package/models/operations/updatetool.js +7 -7
  122. package/package.json +8 -8
  123. package/sdk/feedback.d.ts +1 -4
  124. package/sdk/feedback.d.ts.map +1 -1
  125. package/sdk/feedback.js +1 -4
  126. package/sdk/feedback.js.map +1 -1
  127. package/src/hooks/types.ts +1 -0
  128. package/src/lib/config.ts +3 -3
  129. package/src/lib/sdks.ts +13 -4
  130. package/src/models/components/modelmetadata.ts +6 -0
  131. package/src/models/components/reasoning.ts +50 -4
  132. package/src/models/components/reasoningparam.ts +48 -4
  133. package/src/models/components/reasoningpart.ts +1 -1
  134. package/src/models/operations/createagentrequest.ts +460 -8
  135. package/src/models/operations/createchatcompletion.ts +129 -10
  136. package/src/models/operations/createdataset.ts +1 -1
  137. package/src/models/operations/createdatasetitem.ts +4 -4
  138. package/src/models/operations/createdatasource.ts +1 -1
  139. package/src/models/operations/createeval.ts +16 -16
  140. package/src/models/operations/createprompt.ts +356 -27
  141. package/src/models/operations/createrouterresponse.ts +540 -16
  142. package/src/models/operations/createtool.ts +6 -6
  143. package/src/models/operations/deploymentgetconfig.ts +105 -8
  144. package/src/models/operations/deployments.ts +113 -16
  145. package/src/models/operations/getallprompts.ts +210 -8
  146. package/src/models/operations/getalltools.ts +6 -6
  147. package/src/models/operations/getevals.ts +16 -16
  148. package/src/models/operations/getoneprompt.ts +208 -8
  149. package/src/models/operations/getpromptversion.ts +212 -8
  150. package/src/models/operations/getv2humanevalsets.ts +2 -2
  151. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  152. package/src/models/operations/listagents.ts +215 -0
  153. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  154. package/src/models/operations/listdatasets.ts +1 -1
  155. package/src/models/operations/listdatasources.ts +1 -1
  156. package/src/models/operations/listknowledgebases.ts +4 -1
  157. package/src/models/operations/listpromptversions.ts +212 -8
  158. package/src/models/operations/modelcreateawsbedrock.ts +8 -0
  159. package/src/models/operations/modelupdateawsbedrock.ts +8 -0
  160. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  161. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  162. package/src/models/operations/postv2humanevalsets.ts +2 -2
  163. package/src/models/operations/retrieveagentrequest.ts +222 -0
  164. package/src/models/operations/retrievedatapoint.ts +4 -4
  165. package/src/models/operations/retrievedataset.ts +1 -1
  166. package/src/models/operations/retrievedatasource.ts +1 -1
  167. package/src/models/operations/retrievetool.ts +6 -6
  168. package/src/models/operations/runagent.ts +236 -1
  169. package/src/models/operations/streamrunagent.ts +242 -1
  170. package/src/models/operations/updateagent.ts +464 -9
  171. package/src/models/operations/updatedatapoint.ts +4 -4
  172. package/src/models/operations/updatedataset.ts +1 -1
  173. package/src/models/operations/updatedatasource.ts +1 -1
  174. package/src/models/operations/updateeval.ts +16 -16
  175. package/src/models/operations/updateprompt.ts +356 -27
  176. package/src/models/operations/updatetool.ts +7 -7
  177. package/src/sdk/feedback.ts +1 -4
@@ -261,6 +261,68 @@ export type ModelConfigurationTimeout = {
261
261
  callTimeout: number;
262
262
  };
263
263
 
264
+ /**
265
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
266
+ */
267
+ export const UpdateAgentModelConfigurationAgentsType = {
268
+ Ephemeral: "ephemeral",
269
+ } as const;
270
+ /**
271
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
272
+ */
273
+ export type UpdateAgentModelConfigurationAgentsType = ClosedEnum<
274
+ typeof UpdateAgentModelConfigurationAgentsType
275
+ >;
276
+
277
+ /**
278
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
279
+ *
280
+ * @remarks
281
+ *
282
+ * - `5m`: 5 minutes
283
+ * - `1h`: 1 hour
284
+ *
285
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
286
+ */
287
+ export const UpdateAgentModelConfigurationTtl = {
288
+ Fivem: "5m",
289
+ Oneh: "1h",
290
+ } as const;
291
+ /**
292
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
293
+ *
294
+ * @remarks
295
+ *
296
+ * - `5m`: 5 minutes
297
+ * - `1h`: 1 hour
298
+ *
299
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
300
+ */
301
+ export type UpdateAgentModelConfigurationTtl = ClosedEnum<
302
+ typeof UpdateAgentModelConfigurationTtl
303
+ >;
304
+
305
+ /**
306
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
307
+ */
308
+ export type UpdateAgentModelConfigurationCacheControl = {
309
+ /**
310
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
311
+ */
312
+ type: UpdateAgentModelConfigurationAgentsType;
313
+ /**
314
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
315
+ *
316
+ * @remarks
317
+ *
318
+ * - `5m`: 5 minutes
319
+ * - `1h`: 1 hour
320
+ *
321
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
322
+ */
323
+ ttl?: UpdateAgentModelConfigurationTtl | undefined;
324
+ };
325
+
264
326
  /**
265
327
  * Model behavior parameters that control how the model generates responses. Common parameters: `temperature` (0-1, randomness), `max_completion_tokens` (max output length), `top_p` (sampling diversity). Advanced: `frequency_penalty`, `presence_penalty`, `response_format` (JSON/structured), `reasoning_effort`, `seed` (reproducibility). Support varies by model - consult AI Gateway documentation.
266
328
  */
@@ -371,6 +433,14 @@ export type ModelConfigurationParameters = {
371
433
  * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
372
434
  */
373
435
  timeout?: ModelConfigurationTimeout | undefined;
436
+ /**
437
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
438
+ */
439
+ cacheControl?: UpdateAgentModelConfigurationCacheControl | undefined;
440
+ /**
441
+ * Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the legacy `user` field for prompt caching.
442
+ */
443
+ promptCacheKey?: string | undefined;
374
444
  };
375
445
 
376
446
  /**
@@ -670,6 +740,68 @@ export type UpdateAgentFallbackModelConfigurationTimeout = {
670
740
  callTimeout: number;
671
741
  };
672
742
 
743
+ /**
744
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
745
+ */
746
+ export const UpdateAgentFallbackModelConfigurationAgentsType = {
747
+ Ephemeral: "ephemeral",
748
+ } as const;
749
+ /**
750
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
751
+ */
752
+ export type UpdateAgentFallbackModelConfigurationAgentsType = ClosedEnum<
753
+ typeof UpdateAgentFallbackModelConfigurationAgentsType
754
+ >;
755
+
756
+ /**
757
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
758
+ *
759
+ * @remarks
760
+ *
761
+ * - `5m`: 5 minutes
762
+ * - `1h`: 1 hour
763
+ *
764
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
765
+ */
766
+ export const UpdateAgentFallbackModelConfigurationTtl = {
767
+ Fivem: "5m",
768
+ Oneh: "1h",
769
+ } as const;
770
+ /**
771
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
772
+ *
773
+ * @remarks
774
+ *
775
+ * - `5m`: 5 minutes
776
+ * - `1h`: 1 hour
777
+ *
778
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
779
+ */
780
+ export type UpdateAgentFallbackModelConfigurationTtl = ClosedEnum<
781
+ typeof UpdateAgentFallbackModelConfigurationTtl
782
+ >;
783
+
784
+ /**
785
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
786
+ */
787
+ export type UpdateAgentFallbackModelConfigurationCacheControl = {
788
+ /**
789
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
790
+ */
791
+ type: UpdateAgentFallbackModelConfigurationAgentsType;
792
+ /**
793
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
794
+ *
795
+ * @remarks
796
+ *
797
+ * - `5m`: 5 minutes
798
+ * - `1h`: 1 hour
799
+ *
800
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
801
+ */
802
+ ttl?: UpdateAgentFallbackModelConfigurationTtl | undefined;
803
+ };
804
+
673
805
  /**
674
806
  * Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
675
807
  */
@@ -790,6 +922,14 @@ export type UpdateAgentFallbackModelConfigurationParameters = {
790
922
  * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
791
923
  */
792
924
  timeout?: UpdateAgentFallbackModelConfigurationTimeout | undefined;
925
+ /**
926
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
927
+ */
928
+ cacheControl?: UpdateAgentFallbackModelConfigurationCacheControl | undefined;
929
+ /**
930
+ * Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the legacy `user` field for prompt caching.
931
+ */
932
+ promptCacheKey?: string | undefined;
793
933
  };
794
934
 
795
935
  /**
@@ -1949,6 +2089,66 @@ export type UpdateAgentTimeout = {
1949
2089
  callTimeout: number;
1950
2090
  };
1951
2091
 
2092
+ /**
2093
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
2094
+ */
2095
+ export const UpdateAgentAgentsResponseType = {
2096
+ Ephemeral: "ephemeral",
2097
+ } as const;
2098
+ /**
2099
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
2100
+ */
2101
+ export type UpdateAgentAgentsResponseType = ClosedEnum<
2102
+ typeof UpdateAgentAgentsResponseType
2103
+ >;
2104
+
2105
+ /**
2106
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
2107
+ *
2108
+ * @remarks
2109
+ *
2110
+ * - `5m`: 5 minutes
2111
+ * - `1h`: 1 hour
2112
+ *
2113
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
2114
+ */
2115
+ export const UpdateAgentTtl = {
2116
+ Fivem: "5m",
2117
+ Oneh: "1h",
2118
+ } as const;
2119
+ /**
2120
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
2121
+ *
2122
+ * @remarks
2123
+ *
2124
+ * - `5m`: 5 minutes
2125
+ * - `1h`: 1 hour
2126
+ *
2127
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
2128
+ */
2129
+ export type UpdateAgentTtl = ClosedEnum<typeof UpdateAgentTtl>;
2130
+
2131
+ /**
2132
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
2133
+ */
2134
+ export type UpdateAgentCacheControl = {
2135
+ /**
2136
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
2137
+ */
2138
+ type: UpdateAgentAgentsResponseType;
2139
+ /**
2140
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
2141
+ *
2142
+ * @remarks
2143
+ *
2144
+ * - `5m`: 5 minutes
2145
+ * - `1h`: 1 hour
2146
+ *
2147
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
2148
+ */
2149
+ ttl: UpdateAgentTtl;
2150
+ };
2151
+
1952
2152
  /**
1953
2153
  * Model behavior parameters (snake_case) stored as part of the agent configuration. These become the default parameters used when the agent is executed. Commonly used: temperature (0-1, controls randomness), max_completion_tokens (response length), top_p (nucleus sampling). Advanced: frequency_penalty, presence_penalty, response_format (JSON/structured output), reasoning_effort (for o1/thinking models), seed (reproducibility), stop sequences. Model-specific support varies. Runtime parameters in agent execution requests can override these defaults.
1954
2154
  */
@@ -2062,6 +2262,14 @@ export type UpdateAgentParameters = {
2062
2262
  * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
2063
2263
  */
2064
2264
  timeout?: UpdateAgentTimeout | undefined;
2265
+ /**
2266
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
2267
+ */
2268
+ cacheControl?: UpdateAgentCacheControl | undefined;
2269
+ /**
2270
+ * Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the legacy `user` field for prompt caching.
2271
+ */
2272
+ promptCacheKey?: string | undefined;
2065
2273
  };
2066
2274
 
2067
2275
  /**
@@ -2283,12 +2491,11 @@ export type UpdateAgentFallbackModelConfigurationAgentsFallbacks = {
2283
2491
  model: string;
2284
2492
  };
2285
2493
 
2286
- export const UpdateAgentFallbackModelConfigurationAgentsType = {
2494
+ export const UpdateAgentFallbackModelConfigurationAgentsResponseType = {
2287
2495
  ExactMatch: "exact_match",
2288
2496
  } as const;
2289
- export type UpdateAgentFallbackModelConfigurationAgentsType = ClosedEnum<
2290
- typeof UpdateAgentFallbackModelConfigurationAgentsType
2291
- >;
2497
+ export type UpdateAgentFallbackModelConfigurationAgentsResponseType =
2498
+ ClosedEnum<typeof UpdateAgentFallbackModelConfigurationAgentsResponseType>;
2292
2499
 
2293
2500
  /**
2294
2501
  * Cache configuration for the request.
@@ -2298,7 +2505,7 @@ export type UpdateAgentFallbackModelConfigurationAgentsCache = {
2298
2505
  * Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
2299
2506
  */
2300
2507
  ttl: number;
2301
- type: UpdateAgentFallbackModelConfigurationAgentsType;
2508
+ type: UpdateAgentFallbackModelConfigurationAgentsResponseType;
2302
2509
  };
2303
2510
 
2304
2511
  export const UpdateAgentLoadBalancerAgentsResponse200Type = {
@@ -2340,6 +2547,67 @@ export type UpdateAgentFallbackModelConfigurationAgentsTimeout = {
2340
2547
  callTimeout: number;
2341
2548
  };
2342
2549
 
2550
+ /**
2551
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
2552
+ */
2553
+ export const UpdateAgentFallbackModelConfigurationAgentsResponse200Type = {
2554
+ Ephemeral: "ephemeral",
2555
+ } as const;
2556
+ /**
2557
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
2558
+ */
2559
+ export type UpdateAgentFallbackModelConfigurationAgentsResponse200Type =
2560
+ ClosedEnum<typeof UpdateAgentFallbackModelConfigurationAgentsResponse200Type>;
2561
+
2562
+ /**
2563
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
2564
+ *
2565
+ * @remarks
2566
+ *
2567
+ * - `5m`: 5 minutes
2568
+ * - `1h`: 1 hour
2569
+ *
2570
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
2571
+ */
2572
+ export const UpdateAgentFallbackModelConfigurationAgentsTtl = {
2573
+ Fivem: "5m",
2574
+ Oneh: "1h",
2575
+ } as const;
2576
+ /**
2577
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
2578
+ *
2579
+ * @remarks
2580
+ *
2581
+ * - `5m`: 5 minutes
2582
+ * - `1h`: 1 hour
2583
+ *
2584
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
2585
+ */
2586
+ export type UpdateAgentFallbackModelConfigurationAgentsTtl = ClosedEnum<
2587
+ typeof UpdateAgentFallbackModelConfigurationAgentsTtl
2588
+ >;
2589
+
2590
+ /**
2591
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
2592
+ */
2593
+ export type UpdateAgentFallbackModelConfigurationAgentsCacheControl = {
2594
+ /**
2595
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
2596
+ */
2597
+ type: UpdateAgentFallbackModelConfigurationAgentsResponse200Type;
2598
+ /**
2599
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
2600
+ *
2601
+ * @remarks
2602
+ *
2603
+ * - `5m`: 5 minutes
2604
+ * - `1h`: 1 hour
2605
+ *
2606
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
2607
+ */
2608
+ ttl: UpdateAgentFallbackModelConfigurationAgentsTtl;
2609
+ };
2610
+
2343
2611
  /**
2344
2612
  * Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
2345
2613
  */
@@ -2462,6 +2730,16 @@ export type UpdateAgentFallbackModelConfigurationAgentsParameters = {
2462
2730
  * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
2463
2731
  */
2464
2732
  timeout?: UpdateAgentFallbackModelConfigurationAgentsTimeout | undefined;
2733
+ /**
2734
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
2735
+ */
2736
+ cacheControl?:
2737
+ | UpdateAgentFallbackModelConfigurationAgentsCacheControl
2738
+ | undefined;
2739
+ /**
2740
+ * Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the legacy `user` field for prompt caching.
2741
+ */
2742
+ promptCacheKey?: string | undefined;
2465
2743
  };
2466
2744
 
2467
2745
  /**
@@ -3088,6 +3366,44 @@ export function modelConfigurationTimeoutToJSON(
3088
3366
  );
3089
3367
  }
3090
3368
 
3369
+ /** @internal */
3370
+ export const UpdateAgentModelConfigurationAgentsType$outboundSchema:
3371
+ z.ZodNativeEnum<typeof UpdateAgentModelConfigurationAgentsType> = z
3372
+ .nativeEnum(UpdateAgentModelConfigurationAgentsType);
3373
+
3374
+ /** @internal */
3375
+ export const UpdateAgentModelConfigurationTtl$outboundSchema: z.ZodNativeEnum<
3376
+ typeof UpdateAgentModelConfigurationTtl
3377
+ > = z.nativeEnum(UpdateAgentModelConfigurationTtl);
3378
+
3379
+ /** @internal */
3380
+ export type UpdateAgentModelConfigurationCacheControl$Outbound = {
3381
+ type: string;
3382
+ ttl: string;
3383
+ };
3384
+
3385
+ /** @internal */
3386
+ export const UpdateAgentModelConfigurationCacheControl$outboundSchema:
3387
+ z.ZodType<
3388
+ UpdateAgentModelConfigurationCacheControl$Outbound,
3389
+ z.ZodTypeDef,
3390
+ UpdateAgentModelConfigurationCacheControl
3391
+ > = z.object({
3392
+ type: UpdateAgentModelConfigurationAgentsType$outboundSchema,
3393
+ ttl: UpdateAgentModelConfigurationTtl$outboundSchema.default("5m"),
3394
+ });
3395
+
3396
+ export function updateAgentModelConfigurationCacheControlToJSON(
3397
+ updateAgentModelConfigurationCacheControl:
3398
+ UpdateAgentModelConfigurationCacheControl,
3399
+ ): string {
3400
+ return JSON.stringify(
3401
+ UpdateAgentModelConfigurationCacheControl$outboundSchema.parse(
3402
+ updateAgentModelConfigurationCacheControl,
3403
+ ),
3404
+ );
3405
+ }
3406
+
3091
3407
  /** @internal */
3092
3408
  export type ModelConfigurationParameters$Outbound = {
3093
3409
  name?: string | undefined;
@@ -3122,6 +3438,10 @@ export type ModelConfigurationParameters$Outbound = {
3122
3438
  cache?: ModelConfigurationCache$Outbound | undefined;
3123
3439
  load_balancer?: UpdateAgentLoadBalancer1$Outbound | undefined;
3124
3440
  timeout?: ModelConfigurationTimeout$Outbound | undefined;
3441
+ cache_control?:
3442
+ | UpdateAgentModelConfigurationCacheControl$Outbound
3443
+ | undefined;
3444
+ prompt_cache_key?: string | undefined;
3125
3445
  };
3126
3446
 
3127
3447
  /** @internal */
@@ -3168,6 +3488,10 @@ export const ModelConfigurationParameters$outboundSchema: z.ZodType<
3168
3488
  loadBalancer: z.lazy(() => UpdateAgentLoadBalancer1$outboundSchema)
3169
3489
  .optional(),
3170
3490
  timeout: z.lazy(() => ModelConfigurationTimeout$outboundSchema).optional(),
3491
+ cacheControl: z.lazy(() =>
3492
+ UpdateAgentModelConfigurationCacheControl$outboundSchema
3493
+ ).optional(),
3494
+ promptCacheKey: z.string().optional(),
3171
3495
  }).transform((v) => {
3172
3496
  return remap$(v, {
3173
3497
  frequencyPenalty: "frequency_penalty",
@@ -3181,6 +3505,8 @@ export const ModelConfigurationParameters$outboundSchema: z.ZodType<
3181
3505
  toolChoice: "tool_choice",
3182
3506
  parallelToolCalls: "parallel_tool_calls",
3183
3507
  loadBalancer: "load_balancer",
3508
+ cacheControl: "cache_control",
3509
+ promptCacheKey: "prompt_cache_key",
3184
3510
  });
3185
3511
  });
3186
3512
 
@@ -3811,6 +4137,44 @@ export function updateAgentFallbackModelConfigurationTimeoutToJSON(
3811
4137
  );
3812
4138
  }
3813
4139
 
4140
+ /** @internal */
4141
+ export const UpdateAgentFallbackModelConfigurationAgentsType$outboundSchema:
4142
+ z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationAgentsType> = z
4143
+ .nativeEnum(UpdateAgentFallbackModelConfigurationAgentsType);
4144
+
4145
+ /** @internal */
4146
+ export const UpdateAgentFallbackModelConfigurationTtl$outboundSchema:
4147
+ z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationTtl> = z
4148
+ .nativeEnum(UpdateAgentFallbackModelConfigurationTtl);
4149
+
4150
+ /** @internal */
4151
+ export type UpdateAgentFallbackModelConfigurationCacheControl$Outbound = {
4152
+ type: string;
4153
+ ttl: string;
4154
+ };
4155
+
4156
+ /** @internal */
4157
+ export const UpdateAgentFallbackModelConfigurationCacheControl$outboundSchema:
4158
+ z.ZodType<
4159
+ UpdateAgentFallbackModelConfigurationCacheControl$Outbound,
4160
+ z.ZodTypeDef,
4161
+ UpdateAgentFallbackModelConfigurationCacheControl
4162
+ > = z.object({
4163
+ type: UpdateAgentFallbackModelConfigurationAgentsType$outboundSchema,
4164
+ ttl: UpdateAgentFallbackModelConfigurationTtl$outboundSchema.default("5m"),
4165
+ });
4166
+
4167
+ export function updateAgentFallbackModelConfigurationCacheControlToJSON(
4168
+ updateAgentFallbackModelConfigurationCacheControl:
4169
+ UpdateAgentFallbackModelConfigurationCacheControl,
4170
+ ): string {
4171
+ return JSON.stringify(
4172
+ UpdateAgentFallbackModelConfigurationCacheControl$outboundSchema.parse(
4173
+ updateAgentFallbackModelConfigurationCacheControl,
4174
+ ),
4175
+ );
4176
+ }
4177
+
3814
4178
  /** @internal */
3815
4179
  export type UpdateAgentFallbackModelConfigurationParameters$Outbound = {
3816
4180
  name?: string | undefined;
@@ -3847,6 +4211,10 @@ export type UpdateAgentFallbackModelConfigurationParameters$Outbound = {
3847
4211
  cache?: UpdateAgentFallbackModelConfigurationCache$Outbound | undefined;
3848
4212
  load_balancer?: UpdateAgentLoadBalancerAgents1$Outbound | undefined;
3849
4213
  timeout?: UpdateAgentFallbackModelConfigurationTimeout$Outbound | undefined;
4214
+ cache_control?:
4215
+ | UpdateAgentFallbackModelConfigurationCacheControl$Outbound
4216
+ | undefined;
4217
+ prompt_cache_key?: string | undefined;
3850
4218
  };
3851
4219
 
3852
4220
  /** @internal */
@@ -3908,6 +4276,10 @@ export const UpdateAgentFallbackModelConfigurationParameters$outboundSchema:
3908
4276
  timeout: z.lazy(() =>
3909
4277
  UpdateAgentFallbackModelConfigurationTimeout$outboundSchema
3910
4278
  ).optional(),
4279
+ cacheControl: z.lazy(() =>
4280
+ UpdateAgentFallbackModelConfigurationCacheControl$outboundSchema
4281
+ ).optional(),
4282
+ promptCacheKey: z.string().optional(),
3911
4283
  }).transform((v) => {
3912
4284
  return remap$(v, {
3913
4285
  frequencyPenalty: "frequency_penalty",
@@ -3921,6 +4293,8 @@ export const UpdateAgentFallbackModelConfigurationParameters$outboundSchema:
3921
4293
  toolChoice: "tool_choice",
3922
4294
  parallelToolCalls: "parallel_tool_calls",
3923
4295
  loadBalancer: "load_balancer",
4296
+ cacheControl: "cache_control",
4297
+ promptCacheKey: "prompt_cache_key",
3924
4298
  });
3925
4299
  });
3926
4300
 
@@ -5788,6 +6162,36 @@ export function updateAgentTimeoutFromJSON(
5788
6162
  );
5789
6163
  }
5790
6164
 
6165
+ /** @internal */
6166
+ export const UpdateAgentAgentsResponseType$inboundSchema: z.ZodNativeEnum<
6167
+ typeof UpdateAgentAgentsResponseType
6168
+ > = z.nativeEnum(UpdateAgentAgentsResponseType);
6169
+
6170
+ /** @internal */
6171
+ export const UpdateAgentTtl$inboundSchema: z.ZodNativeEnum<
6172
+ typeof UpdateAgentTtl
6173
+ > = z.nativeEnum(UpdateAgentTtl);
6174
+
6175
+ /** @internal */
6176
+ export const UpdateAgentCacheControl$inboundSchema: z.ZodType<
6177
+ UpdateAgentCacheControl,
6178
+ z.ZodTypeDef,
6179
+ unknown
6180
+ > = z.object({
6181
+ type: UpdateAgentAgentsResponseType$inboundSchema,
6182
+ ttl: UpdateAgentTtl$inboundSchema.default("5m"),
6183
+ });
6184
+
6185
+ export function updateAgentCacheControlFromJSON(
6186
+ jsonString: string,
6187
+ ): SafeParseResult<UpdateAgentCacheControl, SDKValidationError> {
6188
+ return safeParse(
6189
+ jsonString,
6190
+ (x) => UpdateAgentCacheControl$inboundSchema.parse(JSON.parse(x)),
6191
+ `Failed to parse 'UpdateAgentCacheControl' from JSON`,
6192
+ );
6193
+ }
6194
+
5791
6195
  /** @internal */
5792
6196
  export const UpdateAgentParameters$inboundSchema: z.ZodType<
5793
6197
  UpdateAgentParameters,
@@ -5837,6 +6241,8 @@ export const UpdateAgentParameters$inboundSchema: z.ZodType<
5837
6241
  UpdateAgentLoadBalancerAgentsResponse1$inboundSchema
5838
6242
  ).optional(),
5839
6243
  timeout: z.lazy(() => UpdateAgentTimeout$inboundSchema).optional(),
6244
+ cache_control: z.lazy(() => UpdateAgentCacheControl$inboundSchema).optional(),
6245
+ prompt_cache_key: z.string().optional(),
5840
6246
  }).transform((v) => {
5841
6247
  return remap$(v, {
5842
6248
  "frequency_penalty": "frequencyPenalty",
@@ -5850,6 +6256,8 @@ export const UpdateAgentParameters$inboundSchema: z.ZodType<
5850
6256
  "tool_choice": "toolChoice",
5851
6257
  "parallel_tool_calls": "parallelToolCalls",
5852
6258
  "load_balancer": "loadBalancer",
6259
+ "cache_control": "cacheControl",
6260
+ "prompt_cache_key": "promptCacheKey",
5853
6261
  });
5854
6262
  });
5855
6263
 
@@ -6278,9 +6686,10 @@ export function updateAgentFallbackModelConfigurationAgentsFallbacksFromJSON(
6278
6686
  }
6279
6687
 
6280
6688
  /** @internal */
6281
- export const UpdateAgentFallbackModelConfigurationAgentsType$inboundSchema:
6282
- z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationAgentsType> = z
6283
- .nativeEnum(UpdateAgentFallbackModelConfigurationAgentsType);
6689
+ export const UpdateAgentFallbackModelConfigurationAgentsResponseType$inboundSchema:
6690
+ z.ZodNativeEnum<
6691
+ typeof UpdateAgentFallbackModelConfigurationAgentsResponseType
6692
+ > = z.nativeEnum(UpdateAgentFallbackModelConfigurationAgentsResponseType);
6284
6693
 
6285
6694
  /** @internal */
6286
6695
  export const UpdateAgentFallbackModelConfigurationAgentsCache$inboundSchema:
@@ -6290,7 +6699,7 @@ export const UpdateAgentFallbackModelConfigurationAgentsCache$inboundSchema:
6290
6699
  unknown
6291
6700
  > = z.object({
6292
6701
  ttl: z.number().default(1800),
6293
- type: UpdateAgentFallbackModelConfigurationAgentsType$inboundSchema,
6702
+ type: UpdateAgentFallbackModelConfigurationAgentsResponseType$inboundSchema,
6294
6703
  });
6295
6704
 
6296
6705
  export function updateAgentFallbackModelConfigurationAgentsCacheFromJSON(
@@ -6422,6 +6831,46 @@ export function updateAgentFallbackModelConfigurationAgentsTimeoutFromJSON(
6422
6831
  );
6423
6832
  }
6424
6833
 
6834
+ /** @internal */
6835
+ export const UpdateAgentFallbackModelConfigurationAgentsResponse200Type$inboundSchema:
6836
+ z.ZodNativeEnum<
6837
+ typeof UpdateAgentFallbackModelConfigurationAgentsResponse200Type
6838
+ > = z.nativeEnum(UpdateAgentFallbackModelConfigurationAgentsResponse200Type);
6839
+
6840
+ /** @internal */
6841
+ export const UpdateAgentFallbackModelConfigurationAgentsTtl$inboundSchema:
6842
+ z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationAgentsTtl> = z
6843
+ .nativeEnum(UpdateAgentFallbackModelConfigurationAgentsTtl);
6844
+
6845
+ /** @internal */
6846
+ export const UpdateAgentFallbackModelConfigurationAgentsCacheControl$inboundSchema:
6847
+ z.ZodType<
6848
+ UpdateAgentFallbackModelConfigurationAgentsCacheControl,
6849
+ z.ZodTypeDef,
6850
+ unknown
6851
+ > = z.object({
6852
+ type:
6853
+ UpdateAgentFallbackModelConfigurationAgentsResponse200Type$inboundSchema,
6854
+ ttl: UpdateAgentFallbackModelConfigurationAgentsTtl$inboundSchema.default(
6855
+ "5m",
6856
+ ),
6857
+ });
6858
+
6859
+ export function updateAgentFallbackModelConfigurationAgentsCacheControlFromJSON(
6860
+ jsonString: string,
6861
+ ): SafeParseResult<
6862
+ UpdateAgentFallbackModelConfigurationAgentsCacheControl,
6863
+ SDKValidationError
6864
+ > {
6865
+ return safeParse(
6866
+ jsonString,
6867
+ (x) =>
6868
+ UpdateAgentFallbackModelConfigurationAgentsCacheControl$inboundSchema
6869
+ .parse(JSON.parse(x)),
6870
+ `Failed to parse 'UpdateAgentFallbackModelConfigurationAgentsCacheControl' from JSON`,
6871
+ );
6872
+ }
6873
+
6425
6874
  /** @internal */
6426
6875
  export const UpdateAgentFallbackModelConfigurationAgentsParameters$inboundSchema:
6427
6876
  z.ZodType<
@@ -6488,6 +6937,10 @@ export const UpdateAgentFallbackModelConfigurationAgentsParameters$inboundSchema
6488
6937
  timeout: z.lazy(() =>
6489
6938
  UpdateAgentFallbackModelConfigurationAgentsTimeout$inboundSchema
6490
6939
  ).optional(),
6940
+ cache_control: z.lazy(() =>
6941
+ UpdateAgentFallbackModelConfigurationAgentsCacheControl$inboundSchema
6942
+ ).optional(),
6943
+ prompt_cache_key: z.string().optional(),
6491
6944
  }).transform((v) => {
6492
6945
  return remap$(v, {
6493
6946
  "frequency_penalty": "frequencyPenalty",
@@ -6501,6 +6954,8 @@ export const UpdateAgentFallbackModelConfigurationAgentsParameters$inboundSchema
6501
6954
  "tool_choice": "toolChoice",
6502
6955
  "parallel_tool_calls": "parallelToolCalls",
6503
6956
  "load_balancer": "loadBalancer",
6957
+ "cache_control": "cacheControl",
6958
+ "prompt_cache_key": "promptCacheKey",
6504
6959
  });
6505
6960
  });
6506
6961
 
@@ -2358,7 +2358,7 @@ export const UpdateDatapointEvaluations3$inboundSchema: z.ZodType<
2358
2358
  .default("orq"),
2359
2359
  reviewed_by_id: z.string(),
2360
2360
  reviewed_at: z.string().datetime({ offset: true }).default(
2361
- "2026-06-08T13:07:39.464Z",
2361
+ "2026-06-09T13:49:51.225Z",
2362
2362
  ).transform(v => new Date(v)),
2363
2363
  type: z.literal("string_array"),
2364
2364
  values: z.array(z.string()),
@@ -2404,7 +2404,7 @@ export const UpdateDatapointEvaluations2$inboundSchema: z.ZodType<
2404
2404
  source: UpdateDatapointEvaluationsDatasetsSource$inboundSchema.default("orq"),
2405
2405
  reviewed_by_id: z.string(),
2406
2406
  reviewed_at: z.string().datetime({ offset: true }).default(
2407
- "2026-06-08T13:07:39.463Z",
2407
+ "2026-06-09T13:49:51.224Z",
2408
2408
  ).transform(v => new Date(v)),
2409
2409
  type: z.literal("number"),
2410
2410
  value: z.number(),
@@ -2449,7 +2449,7 @@ export const UpdateDatapointEvaluations1$inboundSchema: z.ZodType<
2449
2449
  source: UpdateDatapointEvaluationsSource$inboundSchema.default("orq"),
2450
2450
  reviewed_by_id: z.string(),
2451
2451
  reviewed_at: z.string().datetime({ offset: true }).default(
2452
- "2026-06-08T13:07:39.462Z",
2452
+ "2026-06-09T13:49:51.224Z",
2453
2453
  ).transform(v => new Date(v)),
2454
2454
  type: z.literal("string"),
2455
2455
  value: z.string(),
@@ -2530,7 +2530,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
2530
2530
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2531
2531
  .optional(),
2532
2532
  updated: z.string().datetime({ offset: true }).default(
2533
- "2026-06-08T13:07:17.066Z",
2533
+ "2026-06-09T13:49:27.367Z",
2534
2534
  ).transform(v => new Date(v)),
2535
2535
  }).transform((v) => {
2536
2536
  return remap$(v, {
@@ -182,7 +182,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
182
182
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
183
183
  .optional(),
184
184
  updated: z.string().datetime({ offset: true }).default(
185
- "2026-06-08T13:07:17.066Z",
185
+ "2026-06-09T13:49:27.367Z",
186
186
  ).transform(v => new Date(v)),
187
187
  }).transform((v) => {
188
188
  return remap$(v, {