@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
@@ -208,6 +208,61 @@ export type Timeout = {
208
208
  */
209
209
  callTimeout: number;
210
210
  };
211
+ /**
212
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
213
+ */
214
+ export declare const CreateAgentRequestModelConfigurationType: {
215
+ readonly Ephemeral: "ephemeral";
216
+ };
217
+ /**
218
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
219
+ */
220
+ export type CreateAgentRequestModelConfigurationType = ClosedEnum<typeof CreateAgentRequestModelConfigurationType>;
221
+ /**
222
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
223
+ *
224
+ * @remarks
225
+ *
226
+ * - `5m`: 5 minutes
227
+ * - `1h`: 1 hour
228
+ *
229
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
230
+ */
231
+ export declare const ModelConfigurationTtl: {
232
+ readonly Fivem: "5m";
233
+ readonly Oneh: "1h";
234
+ };
235
+ /**
236
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
237
+ *
238
+ * @remarks
239
+ *
240
+ * - `5m`: 5 minutes
241
+ * - `1h`: 1 hour
242
+ *
243
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
244
+ */
245
+ export type ModelConfigurationTtl = ClosedEnum<typeof ModelConfigurationTtl>;
246
+ /**
247
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
248
+ */
249
+ export type ModelConfigurationCacheControl = {
250
+ /**
251
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
252
+ */
253
+ type: CreateAgentRequestModelConfigurationType;
254
+ /**
255
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
256
+ *
257
+ * @remarks
258
+ *
259
+ * - `5m`: 5 minutes
260
+ * - `1h`: 1 hour
261
+ *
262
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
263
+ */
264
+ ttl?: ModelConfigurationTtl | undefined;
265
+ };
211
266
  /**
212
267
  * 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.
213
268
  */
@@ -310,6 +365,14 @@ export type ParametersT = {
310
365
  * 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.
311
366
  */
312
367
  timeout?: Timeout | undefined;
368
+ /**
369
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
370
+ */
371
+ cacheControl?: ModelConfigurationCacheControl | undefined;
372
+ /**
373
+ * Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the legacy `user` field for prompt caching.
374
+ */
375
+ promptCacheKey?: string | undefined;
313
376
  };
314
377
  /**
315
378
  * Retry configuration for model requests. Retries are triggered for specific HTTP status codes (e.g., 500, 429, 502, 503, 504). Supports configurable retry count (1-5) and custom status codes.
@@ -552,6 +615,61 @@ export type FallbackModelConfigurationTimeout = {
552
615
  */
553
616
  callTimeout: number;
554
617
  };
618
+ /**
619
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
620
+ */
621
+ export declare const CreateAgentRequestFallbackModelConfigurationType: {
622
+ readonly Ephemeral: "ephemeral";
623
+ };
624
+ /**
625
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
626
+ */
627
+ export type CreateAgentRequestFallbackModelConfigurationType = ClosedEnum<typeof CreateAgentRequestFallbackModelConfigurationType>;
628
+ /**
629
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
630
+ *
631
+ * @remarks
632
+ *
633
+ * - `5m`: 5 minutes
634
+ * - `1h`: 1 hour
635
+ *
636
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
637
+ */
638
+ export declare const FallbackModelConfigurationTtl: {
639
+ readonly Fivem: "5m";
640
+ readonly Oneh: "1h";
641
+ };
642
+ /**
643
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
644
+ *
645
+ * @remarks
646
+ *
647
+ * - `5m`: 5 minutes
648
+ * - `1h`: 1 hour
649
+ *
650
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
651
+ */
652
+ export type FallbackModelConfigurationTtl = ClosedEnum<typeof FallbackModelConfigurationTtl>;
653
+ /**
654
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
655
+ */
656
+ export type FallbackModelConfigurationCacheControl = {
657
+ /**
658
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
659
+ */
660
+ type: CreateAgentRequestFallbackModelConfigurationType;
661
+ /**
662
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
663
+ *
664
+ * @remarks
665
+ *
666
+ * - `5m`: 5 minutes
667
+ * - `1h`: 1 hour
668
+ *
669
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
670
+ */
671
+ ttl?: FallbackModelConfigurationTtl | undefined;
672
+ };
555
673
  /**
556
674
  * Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
557
675
  */
@@ -654,6 +772,14 @@ export type FallbackModelConfigurationParameters = {
654
772
  * 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.
655
773
  */
656
774
  timeout?: FallbackModelConfigurationTimeout | undefined;
775
+ /**
776
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
777
+ */
778
+ cacheControl?: FallbackModelConfigurationCacheControl | undefined;
779
+ /**
780
+ * Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the legacy `user` field for prompt caching.
781
+ */
782
+ promptCacheKey?: string | undefined;
657
783
  };
658
784
  /**
659
785
  * Retry configuration for this fallback model. Allows customizing retry count (1-5) and HTTP status codes that trigger retries.
@@ -1598,6 +1724,61 @@ export type CreateAgentRequestTimeout = {
1598
1724
  */
1599
1725
  callTimeout: number;
1600
1726
  };
1727
+ /**
1728
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1729
+ */
1730
+ export declare const CreateAgentRequestAgentsResponseType: {
1731
+ readonly Ephemeral: "ephemeral";
1732
+ };
1733
+ /**
1734
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1735
+ */
1736
+ export type CreateAgentRequestAgentsResponseType = ClosedEnum<typeof CreateAgentRequestAgentsResponseType>;
1737
+ /**
1738
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1739
+ *
1740
+ * @remarks
1741
+ *
1742
+ * - `5m`: 5 minutes
1743
+ * - `1h`: 1 hour
1744
+ *
1745
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1746
+ */
1747
+ export declare const CreateAgentRequestTtl: {
1748
+ readonly Fivem: "5m";
1749
+ readonly Oneh: "1h";
1750
+ };
1751
+ /**
1752
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1753
+ *
1754
+ * @remarks
1755
+ *
1756
+ * - `5m`: 5 minutes
1757
+ * - `1h`: 1 hour
1758
+ *
1759
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1760
+ */
1761
+ export type CreateAgentRequestTtl = ClosedEnum<typeof CreateAgentRequestTtl>;
1762
+ /**
1763
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
1764
+ */
1765
+ export type CreateAgentRequestCacheControl = {
1766
+ /**
1767
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1768
+ */
1769
+ type: CreateAgentRequestAgentsResponseType;
1770
+ /**
1771
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1772
+ *
1773
+ * @remarks
1774
+ *
1775
+ * - `5m`: 5 minutes
1776
+ * - `1h`: 1 hour
1777
+ *
1778
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1779
+ */
1780
+ ttl: CreateAgentRequestTtl;
1781
+ };
1601
1782
  /**
1602
1783
  * 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.
1603
1784
  */
@@ -1700,6 +1881,14 @@ export type CreateAgentRequestParameters = {
1700
1881
  * 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.
1701
1882
  */
1702
1883
  timeout?: CreateAgentRequestTimeout | undefined;
1884
+ /**
1885
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
1886
+ */
1887
+ cacheControl?: CreateAgentRequestCacheControl | undefined;
1888
+ /**
1889
+ * Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the legacy `user` field for prompt caching.
1890
+ */
1891
+ promptCacheKey?: string | undefined;
1703
1892
  };
1704
1893
  /**
1705
1894
  * Retry configuration for model requests. Allows customizing retry count (1-5) and HTTP status codes that trigger retries. Default codes: [429]. Common codes: 500 (internal error), 429 (rate limit), 502/503/504 (gateway errors).
@@ -1874,10 +2063,10 @@ export type CreateAgentRequestFallbackModelConfigurationFallbacks = {
1874
2063
  */
1875
2064
  model: string;
1876
2065
  };
1877
- export declare const CreateAgentRequestFallbackModelConfigurationType: {
2066
+ export declare const CreateAgentRequestFallbackModelConfigurationAgentsType: {
1878
2067
  readonly ExactMatch: "exact_match";
1879
2068
  };
1880
- export type CreateAgentRequestFallbackModelConfigurationType = ClosedEnum<typeof CreateAgentRequestFallbackModelConfigurationType>;
2069
+ export type CreateAgentRequestFallbackModelConfigurationAgentsType = ClosedEnum<typeof CreateAgentRequestFallbackModelConfigurationAgentsType>;
1881
2070
  /**
1882
2071
  * Cache configuration for the request.
1883
2072
  */
@@ -1886,7 +2075,7 @@ export type CreateAgentRequestFallbackModelConfigurationCache = {
1886
2075
  * Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
1887
2076
  */
1888
2077
  ttl: number;
1889
- type: CreateAgentRequestFallbackModelConfigurationType;
2078
+ type: CreateAgentRequestFallbackModelConfigurationAgentsType;
1890
2079
  };
1891
2080
  export declare const CreateAgentRequestLoadBalancerAgentsResponseType: {
1892
2081
  readonly WeightBased: "weight_based";
@@ -1919,6 +2108,61 @@ export type CreateAgentRequestFallbackModelConfigurationTimeout = {
1919
2108
  */
1920
2109
  callTimeout: number;
1921
2110
  };
2111
+ /**
2112
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
2113
+ */
2114
+ export declare const CreateAgentRequestFallbackModelConfigurationAgentsResponseType: {
2115
+ readonly Ephemeral: "ephemeral";
2116
+ };
2117
+ /**
2118
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
2119
+ */
2120
+ export type CreateAgentRequestFallbackModelConfigurationAgentsResponseType = ClosedEnum<typeof CreateAgentRequestFallbackModelConfigurationAgentsResponseType>;
2121
+ /**
2122
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
2123
+ *
2124
+ * @remarks
2125
+ *
2126
+ * - `5m`: 5 minutes
2127
+ * - `1h`: 1 hour
2128
+ *
2129
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
2130
+ */
2131
+ export declare const CreateAgentRequestFallbackModelConfigurationTtl: {
2132
+ readonly Fivem: "5m";
2133
+ readonly Oneh: "1h";
2134
+ };
2135
+ /**
2136
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
2137
+ *
2138
+ * @remarks
2139
+ *
2140
+ * - `5m`: 5 minutes
2141
+ * - `1h`: 1 hour
2142
+ *
2143
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
2144
+ */
2145
+ export type CreateAgentRequestFallbackModelConfigurationTtl = ClosedEnum<typeof CreateAgentRequestFallbackModelConfigurationTtl>;
2146
+ /**
2147
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
2148
+ */
2149
+ export type CreateAgentRequestFallbackModelConfigurationCacheControl = {
2150
+ /**
2151
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
2152
+ */
2153
+ type: CreateAgentRequestFallbackModelConfigurationAgentsResponseType;
2154
+ /**
2155
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
2156
+ *
2157
+ * @remarks
2158
+ *
2159
+ * - `5m`: 5 minutes
2160
+ * - `1h`: 1 hour
2161
+ *
2162
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
2163
+ */
2164
+ ttl: CreateAgentRequestFallbackModelConfigurationTtl;
2165
+ };
1922
2166
  /**
1923
2167
  * Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
1924
2168
  */
@@ -2021,6 +2265,14 @@ export type CreateAgentRequestFallbackModelConfigurationParameters = {
2021
2265
  * 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.
2022
2266
  */
2023
2267
  timeout?: CreateAgentRequestFallbackModelConfigurationTimeout | undefined;
2268
+ /**
2269
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
2270
+ */
2271
+ cacheControl?: CreateAgentRequestFallbackModelConfigurationCacheControl | undefined;
2272
+ /**
2273
+ * Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the legacy `user` field for prompt caching.
2274
+ */
2275
+ promptCacheKey?: string | undefined;
2024
2276
  };
2025
2277
  /**
2026
2278
  * Retry configuration for this fallback model. Allows customizing retry count (1-5) and HTTP status codes that trigger retries.
@@ -2287,6 +2539,18 @@ export type Timeout$Outbound = {
2287
2539
  export declare const Timeout$outboundSchema: z.ZodType<Timeout$Outbound, z.ZodTypeDef, Timeout>;
2288
2540
  export declare function timeoutToJSON(timeout: Timeout): string;
2289
2541
  /** @internal */
2542
+ export declare const CreateAgentRequestModelConfigurationType$outboundSchema: z.ZodNativeEnum<typeof CreateAgentRequestModelConfigurationType>;
2543
+ /** @internal */
2544
+ export declare const ModelConfigurationTtl$outboundSchema: z.ZodNativeEnum<typeof ModelConfigurationTtl>;
2545
+ /** @internal */
2546
+ export type ModelConfigurationCacheControl$Outbound = {
2547
+ type: string;
2548
+ ttl: string;
2549
+ };
2550
+ /** @internal */
2551
+ export declare const ModelConfigurationCacheControl$outboundSchema: z.ZodType<ModelConfigurationCacheControl$Outbound, z.ZodTypeDef, ModelConfigurationCacheControl>;
2552
+ export declare function modelConfigurationCacheControlToJSON(modelConfigurationCacheControl: ModelConfigurationCacheControl): string;
2553
+ /** @internal */
2290
2554
  export type ParametersT$Outbound = {
2291
2555
  name?: string | undefined;
2292
2556
  frequency_penalty?: number | null | undefined;
@@ -2310,6 +2574,8 @@ export type ParametersT$Outbound = {
2310
2574
  cache?: Cache$Outbound | undefined;
2311
2575
  load_balancer?: LoadBalancer1$Outbound | undefined;
2312
2576
  timeout?: Timeout$Outbound | undefined;
2577
+ cache_control?: ModelConfigurationCacheControl$Outbound | undefined;
2578
+ prompt_cache_key?: string | undefined;
2313
2579
  };
2314
2580
  /** @internal */
2315
2581
  export declare const ParametersT$outboundSchema: z.ZodType<ParametersT$Outbound, z.ZodTypeDef, ParametersT>;
@@ -2476,6 +2742,18 @@ export type FallbackModelConfigurationTimeout$Outbound = {
2476
2742
  export declare const FallbackModelConfigurationTimeout$outboundSchema: z.ZodType<FallbackModelConfigurationTimeout$Outbound, z.ZodTypeDef, FallbackModelConfigurationTimeout>;
2477
2743
  export declare function fallbackModelConfigurationTimeoutToJSON(fallbackModelConfigurationTimeout: FallbackModelConfigurationTimeout): string;
2478
2744
  /** @internal */
2745
+ export declare const CreateAgentRequestFallbackModelConfigurationType$outboundSchema: z.ZodNativeEnum<typeof CreateAgentRequestFallbackModelConfigurationType>;
2746
+ /** @internal */
2747
+ export declare const FallbackModelConfigurationTtl$outboundSchema: z.ZodNativeEnum<typeof FallbackModelConfigurationTtl>;
2748
+ /** @internal */
2749
+ export type FallbackModelConfigurationCacheControl$Outbound = {
2750
+ type: string;
2751
+ ttl: string;
2752
+ };
2753
+ /** @internal */
2754
+ export declare const FallbackModelConfigurationCacheControl$outboundSchema: z.ZodType<FallbackModelConfigurationCacheControl$Outbound, z.ZodTypeDef, FallbackModelConfigurationCacheControl>;
2755
+ export declare function fallbackModelConfigurationCacheControlToJSON(fallbackModelConfigurationCacheControl: FallbackModelConfigurationCacheControl): string;
2756
+ /** @internal */
2479
2757
  export type FallbackModelConfigurationParameters$Outbound = {
2480
2758
  name?: string | undefined;
2481
2759
  frequency_penalty?: number | null | undefined;
@@ -2499,6 +2777,8 @@ export type FallbackModelConfigurationParameters$Outbound = {
2499
2777
  cache?: FallbackModelConfigurationCache$Outbound | undefined;
2500
2778
  load_balancer?: CreateAgentRequestLoadBalancer1$Outbound | undefined;
2501
2779
  timeout?: FallbackModelConfigurationTimeout$Outbound | undefined;
2780
+ cache_control?: FallbackModelConfigurationCacheControl$Outbound | undefined;
2781
+ prompt_cache_key?: string | undefined;
2502
2782
  };
2503
2783
  /** @internal */
2504
2784
  export declare const FallbackModelConfigurationParameters$outboundSchema: z.ZodType<FallbackModelConfigurationParameters$Outbound, z.ZodTypeDef, FallbackModelConfigurationParameters>;
@@ -2899,6 +3179,13 @@ export declare function createAgentRequestLoadBalancerFromJSON(jsonString: strin
2899
3179
  export declare const CreateAgentRequestTimeout$inboundSchema: z.ZodType<CreateAgentRequestTimeout, z.ZodTypeDef, unknown>;
2900
3180
  export declare function createAgentRequestTimeoutFromJSON(jsonString: string): SafeParseResult<CreateAgentRequestTimeout, SDKValidationError>;
2901
3181
  /** @internal */
3182
+ export declare const CreateAgentRequestAgentsResponseType$inboundSchema: z.ZodNativeEnum<typeof CreateAgentRequestAgentsResponseType>;
3183
+ /** @internal */
3184
+ export declare const CreateAgentRequestTtl$inboundSchema: z.ZodNativeEnum<typeof CreateAgentRequestTtl>;
3185
+ /** @internal */
3186
+ export declare const CreateAgentRequestCacheControl$inboundSchema: z.ZodType<CreateAgentRequestCacheControl, z.ZodTypeDef, unknown>;
3187
+ export declare function createAgentRequestCacheControlFromJSON(jsonString: string): SafeParseResult<CreateAgentRequestCacheControl, SDKValidationError>;
3188
+ /** @internal */
2902
3189
  export declare const CreateAgentRequestParameters$inboundSchema: z.ZodType<CreateAgentRequestParameters, z.ZodTypeDef, unknown>;
2903
3190
  export declare function createAgentRequestParametersFromJSON(jsonString: string): SafeParseResult<CreateAgentRequestParameters, SDKValidationError>;
2904
3191
  /** @internal */
@@ -2956,7 +3243,7 @@ export declare function createAgentRequestFallbackModelConfigurationGuardrailsFr
2956
3243
  export declare const CreateAgentRequestFallbackModelConfigurationFallbacks$inboundSchema: z.ZodType<CreateAgentRequestFallbackModelConfigurationFallbacks, z.ZodTypeDef, unknown>;
2957
3244
  export declare function createAgentRequestFallbackModelConfigurationFallbacksFromJSON(jsonString: string): SafeParseResult<CreateAgentRequestFallbackModelConfigurationFallbacks, SDKValidationError>;
2958
3245
  /** @internal */
2959
- export declare const CreateAgentRequestFallbackModelConfigurationType$inboundSchema: z.ZodNativeEnum<typeof CreateAgentRequestFallbackModelConfigurationType>;
3246
+ export declare const CreateAgentRequestFallbackModelConfigurationAgentsType$inboundSchema: z.ZodNativeEnum<typeof CreateAgentRequestFallbackModelConfigurationAgentsType>;
2960
3247
  /** @internal */
2961
3248
  export declare const CreateAgentRequestFallbackModelConfigurationCache$inboundSchema: z.ZodType<CreateAgentRequestFallbackModelConfigurationCache, z.ZodTypeDef, unknown>;
2962
3249
  export declare function createAgentRequestFallbackModelConfigurationCacheFromJSON(jsonString: string): SafeParseResult<CreateAgentRequestFallbackModelConfigurationCache, SDKValidationError>;
@@ -2975,6 +3262,13 @@ export declare function createAgentRequestFallbackModelConfigurationLoadBalancer
2975
3262
  export declare const CreateAgentRequestFallbackModelConfigurationTimeout$inboundSchema: z.ZodType<CreateAgentRequestFallbackModelConfigurationTimeout, z.ZodTypeDef, unknown>;
2976
3263
  export declare function createAgentRequestFallbackModelConfigurationTimeoutFromJSON(jsonString: string): SafeParseResult<CreateAgentRequestFallbackModelConfigurationTimeout, SDKValidationError>;
2977
3264
  /** @internal */
3265
+ export declare const CreateAgentRequestFallbackModelConfigurationAgentsResponseType$inboundSchema: z.ZodNativeEnum<typeof CreateAgentRequestFallbackModelConfigurationAgentsResponseType>;
3266
+ /** @internal */
3267
+ export declare const CreateAgentRequestFallbackModelConfigurationTtl$inboundSchema: z.ZodNativeEnum<typeof CreateAgentRequestFallbackModelConfigurationTtl>;
3268
+ /** @internal */
3269
+ export declare const CreateAgentRequestFallbackModelConfigurationCacheControl$inboundSchema: z.ZodType<CreateAgentRequestFallbackModelConfigurationCacheControl, z.ZodTypeDef, unknown>;
3270
+ export declare function createAgentRequestFallbackModelConfigurationCacheControlFromJSON(jsonString: string): SafeParseResult<CreateAgentRequestFallbackModelConfigurationCacheControl, SDKValidationError>;
3271
+ /** @internal */
2978
3272
  export declare const CreateAgentRequestFallbackModelConfigurationParameters$inboundSchema: z.ZodType<CreateAgentRequestFallbackModelConfigurationParameters, z.ZodTypeDef, unknown>;
2979
3273
  export declare function createAgentRequestFallbackModelConfigurationParametersFromJSON(jsonString: string): SafeParseResult<CreateAgentRequestFallbackModelConfigurationParameters, SDKValidationError>;
2980
3274
  /** @internal */