@orq-ai/node 3.14.37 → 3.14.38

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 (121) hide show
  1. package/bin/mcp-server.js +210 -210
  2. package/bin/mcp-server.js.map +35 -35
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +3 -3
  6. package/lib/config.js +3 -3
  7. package/mcp-server/mcp-server.js +1 -1
  8. package/mcp-server/server.js +1 -1
  9. package/models/operations/createbudget.js +2 -2
  10. package/models/operations/createcontact.js +2 -2
  11. package/models/operations/createdataset.js +2 -2
  12. package/models/operations/createdatasetitem.js +8 -8
  13. package/models/operations/createdatasource.js +2 -2
  14. package/models/operations/createeval.js +28 -28
  15. package/models/operations/createtool.js +10 -10
  16. package/models/operations/duplicatetool.js +10 -10
  17. package/models/operations/fileget.js +2 -2
  18. package/models/operations/filelist.js +2 -2
  19. package/models/operations/fileupload.js +2 -2
  20. package/models/operations/getalltools.js +10 -10
  21. package/models/operations/getbudget.js +2 -2
  22. package/models/operations/getevals.js +28 -28
  23. package/models/operations/listbudgets.js +2 -2
  24. package/models/operations/listcontacts.js +2 -2
  25. package/models/operations/listdatasetdatapoints.js +8 -8
  26. package/models/operations/listdatasets.js +2 -2
  27. package/models/operations/listdatasources.js +2 -2
  28. package/models/operations/retrievecontact.js +2 -2
  29. package/models/operations/retrievedatapoint.js +8 -8
  30. package/models/operations/retrievedataset.js +2 -2
  31. package/models/operations/retrievedatasource.js +2 -2
  32. package/models/operations/retrievetool.js +10 -10
  33. package/models/operations/updatebudget.js +2 -2
  34. package/models/operations/updatecontact.js +2 -2
  35. package/models/operations/updatedatapoint.js +8 -8
  36. package/models/operations/updatedataset.js +2 -2
  37. package/models/operations/updatedatasource.js +2 -2
  38. package/models/operations/updateeval.js +28 -28
  39. package/models/operations/updatetool.js +10 -10
  40. package/package.json +1 -1
  41. package/packages/orq-rc/docs/sdks/agents/README.md +2 -0
  42. package/packages/orq-rc/examples/package-lock.json +2 -10
  43. package/packages/orq-rc/jsr.json +1 -1
  44. package/packages/orq-rc/package-lock.json +3 -27
  45. package/packages/orq-rc/package.json +3 -6
  46. package/packages/orq-rc/src/lib/config.ts +3 -3
  47. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  48. package/packages/orq-rc/src/mcp-server/server.ts +1 -1
  49. package/packages/orq-rc/src/models/operations/createagent.ts +138 -3
  50. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  51. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  52. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  53. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -8
  54. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  55. package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
  56. package/packages/orq-rc/src/models/operations/createtool.ts +10 -10
  57. package/packages/orq-rc/src/models/operations/duplicateagent.ts +71 -0
  58. package/packages/orq-rc/src/models/operations/duplicatetool.ts +10 -10
  59. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  60. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  61. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  62. package/packages/orq-rc/src/models/operations/getagent.ts +67 -0
  63. package/packages/orq-rc/src/models/operations/getalltools.ts +10 -10
  64. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  65. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  66. package/packages/orq-rc/src/models/operations/listagents.ts +69 -0
  67. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  68. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  69. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -8
  70. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  71. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  72. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  73. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -8
  74. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  75. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  76. package/packages/orq-rc/src/models/operations/retrievetool.ts +10 -10
  77. package/packages/orq-rc/src/models/operations/runagent.ts +75 -1
  78. package/packages/orq-rc/src/models/operations/streamrunagent.ts +77 -1
  79. package/packages/orq-rc/src/models/operations/syncmcptool.ts +10 -10
  80. package/packages/orq-rc/src/models/operations/updateagent.ts +145 -3
  81. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  82. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  83. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -8
  84. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  85. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  86. package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
  87. package/packages/orq-rc/src/models/operations/updatetool.ts +10 -10
  88. package/src/lib/config.ts +3 -3
  89. package/src/mcp-server/mcp-server.ts +1 -1
  90. package/src/mcp-server/server.ts +1 -1
  91. package/src/models/operations/createbudget.ts +2 -2
  92. package/src/models/operations/createcontact.ts +2 -2
  93. package/src/models/operations/createdataset.ts +2 -2
  94. package/src/models/operations/createdatasetitem.ts +8 -8
  95. package/src/models/operations/createdatasource.ts +2 -2
  96. package/src/models/operations/createeval.ts +28 -28
  97. package/src/models/operations/createtool.ts +10 -10
  98. package/src/models/operations/duplicatetool.ts +10 -10
  99. package/src/models/operations/fileget.ts +2 -2
  100. package/src/models/operations/filelist.ts +2 -2
  101. package/src/models/operations/fileupload.ts +2 -2
  102. package/src/models/operations/getalltools.ts +10 -10
  103. package/src/models/operations/getbudget.ts +2 -2
  104. package/src/models/operations/getevals.ts +28 -28
  105. package/src/models/operations/listbudgets.ts +2 -2
  106. package/src/models/operations/listcontacts.ts +2 -2
  107. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  108. package/src/models/operations/listdatasets.ts +2 -2
  109. package/src/models/operations/listdatasources.ts +2 -2
  110. package/src/models/operations/retrievecontact.ts +2 -2
  111. package/src/models/operations/retrievedatapoint.ts +8 -8
  112. package/src/models/operations/retrievedataset.ts +2 -2
  113. package/src/models/operations/retrievedatasource.ts +2 -2
  114. package/src/models/operations/retrievetool.ts +10 -10
  115. package/src/models/operations/updatebudget.ts +2 -2
  116. package/src/models/operations/updatecontact.ts +2 -2
  117. package/src/models/operations/updatedatapoint.ts +8 -8
  118. package/src/models/operations/updatedataset.ts +2 -2
  119. package/src/models/operations/updatedatasource.ts +2 -2
  120. package/src/models/operations/updateeval.ts +28 -28
  121. package/src/models/operations/updatetool.ts +10 -10
@@ -478,6 +478,20 @@ export type ListAgentsParameters = {
478
478
  modalities?: Array<ListAgentsModalities> | null | undefined;
479
479
  };
480
480
 
481
+ /**
482
+ * 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).
483
+ */
484
+ export type ListAgentsRetry = {
485
+ /**
486
+ * Number of retry attempts (1-5)
487
+ */
488
+ count?: number | undefined;
489
+ /**
490
+ * HTTP status codes that trigger retry logic
491
+ */
492
+ onCodes?: Array<number> | undefined;
493
+ };
494
+
481
495
  /**
482
496
  * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
483
497
  */
@@ -837,6 +851,10 @@ export type ListAgentsModel = {
837
851
  * 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.
838
852
  */
839
853
  parameters?: ListAgentsParameters | undefined;
854
+ /**
855
+ * 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).
856
+ */
857
+ retry?: ListAgentsRetry | undefined;
840
858
  /**
841
859
  * Optional array of fallback models (string IDs or config objects) that will be used automatically in order if the primary model fails
842
860
  */
@@ -2088,6 +2106,54 @@ export function listAgentsParametersFromJSON(
2088
2106
  );
2089
2107
  }
2090
2108
 
2109
+ /** @internal */
2110
+ export const ListAgentsRetry$inboundSchema: z.ZodType<
2111
+ ListAgentsRetry,
2112
+ z.ZodTypeDef,
2113
+ unknown
2114
+ > = z.object({
2115
+ count: z.number().default(3),
2116
+ on_codes: z.array(z.number()).optional(),
2117
+ }).transform((v) => {
2118
+ return remap$(v, {
2119
+ "on_codes": "onCodes",
2120
+ });
2121
+ });
2122
+ /** @internal */
2123
+ export type ListAgentsRetry$Outbound = {
2124
+ count: number;
2125
+ on_codes?: Array<number> | undefined;
2126
+ };
2127
+
2128
+ /** @internal */
2129
+ export const ListAgentsRetry$outboundSchema: z.ZodType<
2130
+ ListAgentsRetry$Outbound,
2131
+ z.ZodTypeDef,
2132
+ ListAgentsRetry
2133
+ > = z.object({
2134
+ count: z.number().default(3),
2135
+ onCodes: z.array(z.number()).optional(),
2136
+ }).transform((v) => {
2137
+ return remap$(v, {
2138
+ onCodes: "on_codes",
2139
+ });
2140
+ });
2141
+
2142
+ export function listAgentsRetryToJSON(
2143
+ listAgentsRetry: ListAgentsRetry,
2144
+ ): string {
2145
+ return JSON.stringify(ListAgentsRetry$outboundSchema.parse(listAgentsRetry));
2146
+ }
2147
+ export function listAgentsRetryFromJSON(
2148
+ jsonString: string,
2149
+ ): SafeParseResult<ListAgentsRetry, SDKValidationError> {
2150
+ return safeParse(
2151
+ jsonString,
2152
+ (x) => ListAgentsRetry$inboundSchema.parse(JSON.parse(x)),
2153
+ `Failed to parse 'ListAgentsRetry' from JSON`,
2154
+ );
2155
+ }
2156
+
2091
2157
  /** @internal */
2092
2158
  export const ListAgentsFallbackModelConfigurationVoice$inboundSchema:
2093
2159
  z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationVoice> = z
@@ -3098,6 +3164,7 @@ export const ListAgentsModel$inboundSchema: z.ZodType<
3098
3164
  id: z.string(),
3099
3165
  integration_id: z.nullable(z.string()).optional(),
3100
3166
  parameters: z.lazy(() => ListAgentsParameters$inboundSchema).optional(),
3167
+ retry: z.lazy(() => ListAgentsRetry$inboundSchema).optional(),
3101
3168
  fallback_models: z.nullable(
3102
3169
  z.array(z.union([
3103
3170
  z.lazy(() => ListAgentsFallbackModelConfiguration2$inboundSchema),
@@ -3115,6 +3182,7 @@ export type ListAgentsModel$Outbound = {
3115
3182
  id: string;
3116
3183
  integration_id?: string | null | undefined;
3117
3184
  parameters?: ListAgentsParameters$Outbound | undefined;
3185
+ retry?: ListAgentsRetry$Outbound | undefined;
3118
3186
  fallback_models?:
3119
3187
  | Array<ListAgentsFallbackModelConfiguration2$Outbound | string>
3120
3188
  | null
@@ -3130,6 +3198,7 @@ export const ListAgentsModel$outboundSchema: z.ZodType<
3130
3198
  id: z.string(),
3131
3199
  integrationId: z.nullable(z.string()).optional(),
3132
3200
  parameters: z.lazy(() => ListAgentsParameters$outboundSchema).optional(),
3201
+ retry: z.lazy(() => ListAgentsRetry$outboundSchema).optional(),
3133
3202
  fallbackModels: z.nullable(
3134
3203
  z.array(z.union([
3135
3204
  z.lazy(() => ListAgentsFallbackModelConfiguration2$outboundSchema),
@@ -381,7 +381,7 @@ export const ListBudgetsData$inboundSchema: z.ZodType<
381
381
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
382
382
  .optional(),
383
383
  updated: z.string().datetime({ offset: true }).default(
384
- "2025-11-14T11:13:39.771Z",
384
+ "2025-11-15T09:08:59.189Z",
385
385
  ).transform(v => new Date(v)),
386
386
  }).transform((v) => {
387
387
  return remap$(v, {
@@ -415,7 +415,7 @@ export const ListBudgetsData$outboundSchema: z.ZodType<
415
415
  isActive: z.boolean(),
416
416
  consumption: z.lazy(() => ListBudgetsConsumption$outboundSchema).optional(),
417
417
  created: z.date().transform(v => v.toISOString()).optional(),
418
- updated: z.date().default(() => new Date("2025-11-14T11:13:39.771Z"))
418
+ updated: z.date().default(() => new Date("2025-11-15T09:08:59.189Z"))
419
419
  .transform(v => v.toISOString()),
420
420
  }).transform((v) => {
421
421
  return remap$(v, {
@@ -298,7 +298,7 @@ export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
298
298
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
299
299
  .optional(),
300
300
  updated: z.string().datetime({ offset: true }).default(
301
- "2025-11-14T11:13:39.457Z",
301
+ "2025-11-15T09:08:58.855Z",
302
302
  ).transform(v => new Date(v)),
303
303
  metrics: z.lazy(() => ListContactsMetrics$inboundSchema),
304
304
  }).transform((v) => {
@@ -334,7 +334,7 @@ export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
334
334
  tags: z.array(z.string()).optional(),
335
335
  metadata: z.record(z.any()).optional(),
336
336
  created: z.date().transform(v => v.toISOString()).optional(),
337
- updated: z.date().default(() => new Date("2025-11-14T11:13:39.457Z"))
337
+ updated: z.date().default(() => new Date("2025-11-15T09:08:58.855Z"))
338
338
  .transform(v => v.toISOString()),
339
339
  metrics: z.lazy(() => ListContactsMetrics$outboundSchema),
340
340
  }).transform((v) => {
@@ -2622,7 +2622,7 @@ export const ListDatasetDatapointsEvaluations3$inboundSchema: z.ZodType<
2622
2622
  source: ListDatasetDatapointsEvaluationsSource$inboundSchema.default("orq"),
2623
2623
  reviewed_by_id: z.string(),
2624
2624
  reviewed_at: z.string().datetime({ offset: true }).default(
2625
- "2025-11-14T11:13:53.954Z",
2625
+ "2025-11-15T09:09:09.908Z",
2626
2626
  ).transform(v => new Date(v)),
2627
2627
  type: ListDatasetDatapointsEvaluationsDatasetsType$inboundSchema,
2628
2628
  values: z.array(z.string()),
@@ -2657,7 +2657,7 @@ export const ListDatasetDatapointsEvaluations3$outboundSchema: z.ZodType<
2657
2657
  humanReviewId: z.string(),
2658
2658
  source: ListDatasetDatapointsEvaluationsSource$outboundSchema.default("orq"),
2659
2659
  reviewedById: z.string(),
2660
- reviewedAt: z.date().default(() => new Date("2025-11-14T11:13:53.954Z"))
2660
+ reviewedAt: z.date().default(() => new Date("2025-11-15T09:09:09.908Z"))
2661
2661
  .transform(v => v.toISOString()),
2662
2662
  type: ListDatasetDatapointsEvaluationsDatasetsType$outboundSchema,
2663
2663
  values: z.array(z.string()),
@@ -2738,7 +2738,7 @@ export const ListDatasetDatapointsEvaluations2$inboundSchema: z.ZodType<
2738
2738
  .default("orq"),
2739
2739
  reviewed_by_id: z.string(),
2740
2740
  reviewed_at: z.string().datetime({ offset: true }).default(
2741
- "2025-11-14T11:13:53.954Z",
2741
+ "2025-11-15T09:09:09.907Z",
2742
2742
  ).transform(v => new Date(v)),
2743
2743
  type: ListDatasetDatapointsEvaluationsType$inboundSchema,
2744
2744
  value: z.number(),
@@ -2775,7 +2775,7 @@ export const ListDatasetDatapointsEvaluations2$outboundSchema: z.ZodType<
2775
2775
  source: ListDatasetDatapointsEvaluationsDatasetsResponseSource$outboundSchema
2776
2776
  .default("orq"),
2777
2777
  reviewedById: z.string(),
2778
- reviewedAt: z.date().default(() => new Date("2025-11-14T11:13:53.954Z"))
2778
+ reviewedAt: z.date().default(() => new Date("2025-11-15T09:09:09.907Z"))
2779
2779
  .transform(v => v.toISOString()),
2780
2780
  type: ListDatasetDatapointsEvaluationsType$outboundSchema,
2781
2781
  value: z.number(),
@@ -2851,7 +2851,7 @@ export const ListDatasetDatapointsEvaluations1$inboundSchema: z.ZodType<
2851
2851
  ),
2852
2852
  reviewed_by_id: z.string(),
2853
2853
  reviewed_at: z.string().datetime({ offset: true }).default(
2854
- "2025-11-14T11:13:53.953Z",
2854
+ "2025-11-15T09:09:09.907Z",
2855
2855
  ).transform(v => new Date(v)),
2856
2856
  type: ListDatasetDatapointsEvaluationsDatasetsResponseType$inboundSchema,
2857
2857
  value: z.string(),
@@ -2889,7 +2889,7 @@ export const ListDatasetDatapointsEvaluations1$outboundSchema: z.ZodType<
2889
2889
  "orq",
2890
2890
  ),
2891
2891
  reviewedById: z.string(),
2892
- reviewedAt: z.date().default(() => new Date("2025-11-14T11:13:53.953Z"))
2892
+ reviewedAt: z.date().default(() => new Date("2025-11-15T09:09:09.907Z"))
2893
2893
  .transform(v => v.toISOString()),
2894
2894
  type: ListDatasetDatapointsEvaluationsDatasetsResponseType$outboundSchema,
2895
2895
  value: z.string(),
@@ -3002,7 +3002,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
3002
3002
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
3003
3003
  .optional(),
3004
3004
  updated: z.string().datetime({ offset: true }).default(
3005
- "2025-11-14T11:13:39.457Z",
3005
+ "2025-11-15T09:08:58.855Z",
3006
3006
  ).transform(v => new Date(v)),
3007
3007
  }).transform((v) => {
3008
3008
  return remap$(v, {
@@ -3082,7 +3082,7 @@ export const ListDatasetDatapointsData$outboundSchema: z.ZodType<
3082
3082
  createdById: z.string().optional(),
3083
3083
  updatedById: z.string().optional(),
3084
3084
  created: z.date().transform(v => v.toISOString()).optional(),
3085
- updated: z.date().default(() => new Date("2025-11-14T11:13:39.457Z"))
3085
+ updated: z.date().default(() => new Date("2025-11-15T09:08:58.855Z"))
3086
3086
  .transform(v => v.toISOString()),
3087
3087
  }).transform((v) => {
3088
3088
  return remap$(v, {
@@ -211,7 +211,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
211
211
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
212
212
  .optional(),
213
213
  updated: z.string().datetime({ offset: true }).default(
214
- "2025-11-14T11:13:39.457Z",
214
+ "2025-11-15T09:08:58.855Z",
215
215
  ).transform(v => new Date(v)),
216
216
  }).transform((v) => {
217
217
  return remap$(v, {
@@ -250,7 +250,7 @@ export const ListDatasetsData$outboundSchema: z.ZodType<
250
250
  createdById: z.string().optional(),
251
251
  updatedById: z.string().optional(),
252
252
  created: z.date().transform(v => v.toISOString()).optional(),
253
- updated: z.date().default(() => new Date("2025-11-14T11:13:39.457Z"))
253
+ updated: z.date().default(() => new Date("2025-11-15T09:08:58.855Z"))
254
254
  .transform(v => v.toISOString()),
255
255
  }).transform((v) => {
256
256
  return remap$(v, {
@@ -231,7 +231,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
231
231
  z.ZodTypeDef,
232
232
  unknown
233
233
  > = z.object({
234
- _id: z.string().default("01KA114R39DP4Z0CKA4AJHKMCM"),
234
+ _id: z.string().default("01KA3CD2J3Z2WKA8T1Y2FBF0AX"),
235
235
  display_name: z.string(),
236
236
  description: z.string().optional(),
237
237
  status: ListDatasourcesStatus$inboundSchema,
@@ -274,7 +274,7 @@ export const ListDatasourcesData$outboundSchema: z.ZodType<
274
274
  z.ZodTypeDef,
275
275
  ListDatasourcesData
276
276
  > = z.object({
277
- id: z.string().default("01KA114R39DP4Z0CKA4AJHKMCM"),
277
+ id: z.string().default("01KA3CD2J3Z2WKA8T1Y2FBF0AX"),
278
278
  displayName: z.string(),
279
279
  description: z.string().optional(),
280
280
  status: ListDatasourcesStatus$outboundSchema,
@@ -112,7 +112,7 @@ export const RetrieveContactResponseBody$inboundSchema: z.ZodType<
112
112
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
113
113
  .optional(),
114
114
  updated: z.string().datetime({ offset: true }).default(
115
- "2025-11-14T11:13:39.457Z",
115
+ "2025-11-15T09:08:58.855Z",
116
116
  ).transform(v => new Date(v)),
117
117
  }).transform((v) => {
118
118
  return remap$(v, {
@@ -149,7 +149,7 @@ export const RetrieveContactResponseBody$outboundSchema: z.ZodType<
149
149
  tags: z.array(z.string()).optional(),
150
150
  metadata: z.record(z.any()).optional(),
151
151
  created: z.date().transform(v => v.toISOString()).optional(),
152
- updated: z.date().default(() => new Date("2025-11-14T11:13:39.457Z"))
152
+ updated: z.date().default(() => new Date("2025-11-15T09:08:58.855Z"))
153
153
  .transform(v => v.toISOString()),
154
154
  }).transform((v) => {
155
155
  return remap$(v, {
@@ -2511,7 +2511,7 @@ export const RetrieveDatapointEvaluations3$inboundSchema: z.ZodType<
2511
2511
  .default("orq"),
2512
2512
  reviewed_by_id: z.string(),
2513
2513
  reviewed_at: z.string().datetime({ offset: true }).default(
2514
- "2025-11-14T11:13:53.961Z",
2514
+ "2025-11-15T09:09:09.926Z",
2515
2515
  ).transform(v => new Date(v)),
2516
2516
  type: RetrieveDatapointEvaluationsDatasetsResponseType$inboundSchema,
2517
2517
  values: z.array(z.string()),
@@ -2548,7 +2548,7 @@ export const RetrieveDatapointEvaluations3$outboundSchema: z.ZodType<
2548
2548
  source: RetrieveDatapointEvaluationsDatasetsResponseSource$outboundSchema
2549
2549
  .default("orq"),
2550
2550
  reviewedById: z.string(),
2551
- reviewedAt: z.date().default(() => new Date("2025-11-14T11:13:53.961Z"))
2551
+ reviewedAt: z.date().default(() => new Date("2025-11-15T09:09:09.926Z"))
2552
2552
  .transform(v => v.toISOString()),
2553
2553
  type: RetrieveDatapointEvaluationsDatasetsResponseType$outboundSchema,
2554
2554
  values: z.array(z.string()),
@@ -2622,7 +2622,7 @@ export const RetrieveDatapointEvaluations2$inboundSchema: z.ZodType<
2622
2622
  ),
2623
2623
  reviewed_by_id: z.string(),
2624
2624
  reviewed_at: z.string().datetime({ offset: true }).default(
2625
- "2025-11-14T11:13:53.960Z",
2625
+ "2025-11-15T09:09:09.925Z",
2626
2626
  ).transform(v => new Date(v)),
2627
2627
  type: RetrieveDatapointEvaluationsDatasetsType$inboundSchema,
2628
2628
  value: z.number(),
@@ -2660,7 +2660,7 @@ export const RetrieveDatapointEvaluations2$outboundSchema: z.ZodType<
2660
2660
  "orq",
2661
2661
  ),
2662
2662
  reviewedById: z.string(),
2663
- reviewedAt: z.date().default(() => new Date("2025-11-14T11:13:53.960Z"))
2663
+ reviewedAt: z.date().default(() => new Date("2025-11-15T09:09:09.925Z"))
2664
2664
  .transform(v => v.toISOString()),
2665
2665
  type: RetrieveDatapointEvaluationsDatasetsType$outboundSchema,
2666
2666
  value: z.number(),
@@ -2731,7 +2731,7 @@ export const RetrieveDatapointEvaluations1$inboundSchema: z.ZodType<
2731
2731
  source: RetrieveDatapointEvaluationsSource$inboundSchema.default("orq"),
2732
2732
  reviewed_by_id: z.string(),
2733
2733
  reviewed_at: z.string().datetime({ offset: true }).default(
2734
- "2025-11-14T11:13:53.960Z",
2734
+ "2025-11-15T09:09:09.924Z",
2735
2735
  ).transform(v => new Date(v)),
2736
2736
  type: RetrieveDatapointEvaluationsType$inboundSchema,
2737
2737
  value: z.string(),
@@ -2766,7 +2766,7 @@ export const RetrieveDatapointEvaluations1$outboundSchema: z.ZodType<
2766
2766
  humanReviewId: z.string(),
2767
2767
  source: RetrieveDatapointEvaluationsSource$outboundSchema.default("orq"),
2768
2768
  reviewedById: z.string(),
2769
- reviewedAt: z.date().default(() => new Date("2025-11-14T11:13:53.960Z"))
2769
+ reviewedAt: z.date().default(() => new Date("2025-11-15T09:09:09.924Z"))
2770
2770
  .transform(v => v.toISOString()),
2771
2771
  type: RetrieveDatapointEvaluationsType$outboundSchema,
2772
2772
  value: z.string(),
@@ -2877,7 +2877,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
2877
2877
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2878
2878
  .optional(),
2879
2879
  updated: z.string().datetime({ offset: true }).default(
2880
- "2025-11-14T11:13:39.457Z",
2880
+ "2025-11-15T09:08:58.855Z",
2881
2881
  ).transform(v => new Date(v)),
2882
2882
  }).transform((v) => {
2883
2883
  return remap$(v, {
@@ -2951,7 +2951,7 @@ export const RetrieveDatapointResponseBody$outboundSchema: z.ZodType<
2951
2951
  createdById: z.string().optional(),
2952
2952
  updatedById: z.string().optional(),
2953
2953
  created: z.date().transform(v => v.toISOString()).optional(),
2954
- updated: z.date().default(() => new Date("2025-11-14T11:13:39.457Z"))
2954
+ updated: z.date().default(() => new Date("2025-11-15T09:08:58.855Z"))
2955
2955
  .transform(v => v.toISOString()),
2956
2956
  }).transform((v) => {
2957
2957
  return remap$(v, {
@@ -174,7 +174,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
174
174
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
175
175
  .optional(),
176
176
  updated: z.string().datetime({ offset: true }).default(
177
- "2025-11-14T11:13:39.457Z",
177
+ "2025-11-15T09:08:58.855Z",
178
178
  ).transform(v => new Date(v)),
179
179
  }).transform((v) => {
180
180
  return remap$(v, {
@@ -213,7 +213,7 @@ export const RetrieveDatasetResponseBody$outboundSchema: z.ZodType<
213
213
  createdById: z.string().optional(),
214
214
  updatedById: z.string().optional(),
215
215
  created: z.date().transform(v => v.toISOString()).optional(),
216
- updated: z.date().default(() => new Date("2025-11-14T11:13:39.457Z"))
216
+ updated: z.date().default(() => new Date("2025-11-15T09:08:58.855Z"))
217
217
  .transform(v => v.toISOString()),
218
218
  }).transform((v) => {
219
219
  return remap$(v, {
@@ -145,7 +145,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
145
145
  z.ZodTypeDef,
146
146
  unknown
147
147
  > = z.object({
148
- _id: z.string().default("01KA114R3ERDEP8J4J5CADQ0BK"),
148
+ _id: z.string().default("01KA3CD2J6JXJ8YMW6S31K2SNH"),
149
149
  display_name: z.string(),
150
150
  description: z.string().optional(),
151
151
  status: RetrieveDatasourceStatus$inboundSchema,
@@ -188,7 +188,7 @@ export const RetrieveDatasourceResponseBody$outboundSchema: z.ZodType<
188
188
  z.ZodTypeDef,
189
189
  RetrieveDatasourceResponseBody
190
190
  > = z.object({
191
- id: z.string().default("01KA114R3ERDEP8J4J5CADQ0BK"),
191
+ id: z.string().default("01KA3CD2J6JXJ8YMW6S31K2SNH"),
192
192
  displayName: z.string(),
193
193
  description: z.string().optional(),
194
194
  status: RetrieveDatasourceStatus$outboundSchema,
@@ -889,7 +889,7 @@ export const RetrieveToolResponseBody5$inboundSchema: z.ZodType<
889
889
  z.ZodTypeDef,
890
890
  unknown
891
891
  > = z.object({
892
- _id: z.string().default("tool_01KA114QVFGEPZNE67ZFBC2DJE"),
892
+ _id: z.string().default("tool_01KA3CD2EMQFW9H9RV3TGY2HD5"),
893
893
  path: z.string(),
894
894
  key: z.string(),
895
895
  display_name: z.string().optional(),
@@ -944,7 +944,7 @@ export const RetrieveToolResponseBody5$outboundSchema: z.ZodType<
944
944
  z.ZodTypeDef,
945
945
  RetrieveToolResponseBody5
946
946
  > = z.object({
947
- id: z.string().default("tool_01KA114QVFGEPZNE67ZFBC2DJE"),
947
+ id: z.string().default("tool_01KA3CD2EMQFW9H9RV3TGY2HD5"),
948
948
  path: z.string(),
949
949
  key: z.string(),
950
950
  displayName: z.string().optional(),
@@ -1246,7 +1246,7 @@ export const RetrieveToolResponseBody4$inboundSchema: z.ZodType<
1246
1246
  z.ZodTypeDef,
1247
1247
  unknown
1248
1248
  > = z.object({
1249
- _id: z.string().default("tool_01KA114QVCPVGGB0HDFW8PXHAS"),
1249
+ _id: z.string().default("tool_01KA3CD2EKH6XPFACE344DGDKV"),
1250
1250
  path: z.string(),
1251
1251
  key: z.string(),
1252
1252
  display_name: z.string().optional(),
@@ -1299,7 +1299,7 @@ export const RetrieveToolResponseBody4$outboundSchema: z.ZodType<
1299
1299
  z.ZodTypeDef,
1300
1300
  RetrieveToolResponseBody4
1301
1301
  > = z.object({
1302
- id: z.string().default("tool_01KA114QVCPVGGB0HDFW8PXHAS"),
1302
+ id: z.string().default("tool_01KA3CD2EKH6XPFACE344DGDKV"),
1303
1303
  path: z.string(),
1304
1304
  key: z.string(),
1305
1305
  displayName: z.string().optional(),
@@ -1677,7 +1677,7 @@ export const RetrieveToolResponseBody3$inboundSchema: z.ZodType<
1677
1677
  z.ZodTypeDef,
1678
1678
  unknown
1679
1679
  > = z.object({
1680
- _id: z.string().default("tool_01KA114QVAEQDWA8WWPYJ85126"),
1680
+ _id: z.string().default("tool_01KA3CD2EHNYCS2027E74DWJH7"),
1681
1681
  path: z.string(),
1682
1682
  key: z.string(),
1683
1683
  display_name: z.string().optional(),
@@ -1730,7 +1730,7 @@ export const RetrieveToolResponseBody3$outboundSchema: z.ZodType<
1730
1730
  z.ZodTypeDef,
1731
1731
  RetrieveToolResponseBody3
1732
1732
  > = z.object({
1733
- id: z.string().default("tool_01KA114QVAEQDWA8WWPYJ85126"),
1733
+ id: z.string().default("tool_01KA3CD2EHNYCS2027E74DWJH7"),
1734
1734
  path: z.string(),
1735
1735
  key: z.string(),
1736
1736
  displayName: z.string().optional(),
@@ -1911,7 +1911,7 @@ export const RetrieveToolResponseBody2$inboundSchema: z.ZodType<
1911
1911
  z.ZodTypeDef,
1912
1912
  unknown
1913
1913
  > = z.object({
1914
- _id: z.string().default("tool_01KA114QV8A0P6F60954STGJBQ"),
1914
+ _id: z.string().default("tool_01KA3CD2EF0ZJ378G7ZQ8KV5DB"),
1915
1915
  path: z.string(),
1916
1916
  key: z.string(),
1917
1917
  display_name: z.string().optional(),
@@ -1963,7 +1963,7 @@ export const RetrieveToolResponseBody2$outboundSchema: z.ZodType<
1963
1963
  z.ZodTypeDef,
1964
1964
  RetrieveToolResponseBody2
1965
1965
  > = z.object({
1966
- id: z.string().default("tool_01KA114QV8A0P6F60954STGJBQ"),
1966
+ id: z.string().default("tool_01KA3CD2EF0ZJ378G7ZQ8KV5DB"),
1967
1967
  path: z.string(),
1968
1968
  key: z.string(),
1969
1969
  displayName: z.string().optional(),
@@ -2161,7 +2161,7 @@ export const RetrieveToolResponseBody1$inboundSchema: z.ZodType<
2161
2161
  z.ZodTypeDef,
2162
2162
  unknown
2163
2163
  > = z.object({
2164
- _id: z.string().default("tool_01KA114QV5K7B14H03GSG9KEJ7"),
2164
+ _id: z.string().default("tool_01KA3CD2E7Z61FK5XEGY1CW4AS"),
2165
2165
  path: z.string(),
2166
2166
  key: z.string(),
2167
2167
  display_name: z.string().optional(),
@@ -2212,7 +2212,7 @@ export const RetrieveToolResponseBody1$outboundSchema: z.ZodType<
2212
2212
  z.ZodTypeDef,
2213
2213
  RetrieveToolResponseBody1
2214
2214
  > = z.object({
2215
- id: z.string().default("tool_01KA114QV5K7B14H03GSG9KEJ7"),
2215
+ id: z.string().default("tool_01KA3CD2E7Z61FK5XEGY1CW4AS"),
2216
2216
  path: z.string(),
2217
2217
  key: z.string(),
2218
2218
  displayName: z.string().optional(),
@@ -320,10 +320,24 @@ export type RunAgentModelConfigurationParameters = {
320
320
  modalities?: Array<RunAgentModelConfigurationModalities> | null | undefined;
321
321
  };
322
322
 
323
+ /**
324
+ * 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.
325
+ */
326
+ export type RunAgentModelConfigurationRetry = {
327
+ /**
328
+ * Number of retry attempts (1-5)
329
+ */
330
+ count?: number | undefined;
331
+ /**
332
+ * HTTP status codes that trigger retry logic
333
+ */
334
+ onCodes?: Array<number> | undefined;
335
+ };
336
+
323
337
  /**
324
338
  * @remarks
325
339
  *
326
- * Model configuration with parameters.
340
+ * Model configuration with parameters and retry settings.
327
341
  */
328
342
  export type RunAgentModelConfiguration2 = {
329
343
  /**
@@ -334,6 +348,10 @@ export type RunAgentModelConfiguration2 = {
334
348
  * 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.
335
349
  */
336
350
  parameters?: RunAgentModelConfigurationParameters | undefined;
351
+ /**
352
+ * 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.
353
+ */
354
+ retry?: RunAgentModelConfigurationRetry | undefined;
337
355
  };
338
356
 
339
357
  /**
@@ -2730,6 +2748,58 @@ export function runAgentModelConfigurationParametersFromJSON(
2730
2748
  );
2731
2749
  }
2732
2750
 
2751
+ /** @internal */
2752
+ export const RunAgentModelConfigurationRetry$inboundSchema: z.ZodType<
2753
+ RunAgentModelConfigurationRetry,
2754
+ z.ZodTypeDef,
2755
+ unknown
2756
+ > = z.object({
2757
+ count: z.number().default(3),
2758
+ on_codes: z.array(z.number()).optional(),
2759
+ }).transform((v) => {
2760
+ return remap$(v, {
2761
+ "on_codes": "onCodes",
2762
+ });
2763
+ });
2764
+ /** @internal */
2765
+ export type RunAgentModelConfigurationRetry$Outbound = {
2766
+ count: number;
2767
+ on_codes?: Array<number> | undefined;
2768
+ };
2769
+
2770
+ /** @internal */
2771
+ export const RunAgentModelConfigurationRetry$outboundSchema: z.ZodType<
2772
+ RunAgentModelConfigurationRetry$Outbound,
2773
+ z.ZodTypeDef,
2774
+ RunAgentModelConfigurationRetry
2775
+ > = z.object({
2776
+ count: z.number().default(3),
2777
+ onCodes: z.array(z.number()).optional(),
2778
+ }).transform((v) => {
2779
+ return remap$(v, {
2780
+ onCodes: "on_codes",
2781
+ });
2782
+ });
2783
+
2784
+ export function runAgentModelConfigurationRetryToJSON(
2785
+ runAgentModelConfigurationRetry: RunAgentModelConfigurationRetry,
2786
+ ): string {
2787
+ return JSON.stringify(
2788
+ RunAgentModelConfigurationRetry$outboundSchema.parse(
2789
+ runAgentModelConfigurationRetry,
2790
+ ),
2791
+ );
2792
+ }
2793
+ export function runAgentModelConfigurationRetryFromJSON(
2794
+ jsonString: string,
2795
+ ): SafeParseResult<RunAgentModelConfigurationRetry, SDKValidationError> {
2796
+ return safeParse(
2797
+ jsonString,
2798
+ (x) => RunAgentModelConfigurationRetry$inboundSchema.parse(JSON.parse(x)),
2799
+ `Failed to parse 'RunAgentModelConfigurationRetry' from JSON`,
2800
+ );
2801
+ }
2802
+
2733
2803
  /** @internal */
2734
2804
  export const RunAgentModelConfiguration2$inboundSchema: z.ZodType<
2735
2805
  RunAgentModelConfiguration2,
@@ -2739,11 +2809,13 @@ export const RunAgentModelConfiguration2$inboundSchema: z.ZodType<
2739
2809
  id: z.string(),
2740
2810
  parameters: z.lazy(() => RunAgentModelConfigurationParameters$inboundSchema)
2741
2811
  .optional(),
2812
+ retry: z.lazy(() => RunAgentModelConfigurationRetry$inboundSchema).optional(),
2742
2813
  });
2743
2814
  /** @internal */
2744
2815
  export type RunAgentModelConfiguration2$Outbound = {
2745
2816
  id: string;
2746
2817
  parameters?: RunAgentModelConfigurationParameters$Outbound | undefined;
2818
+ retry?: RunAgentModelConfigurationRetry$Outbound | undefined;
2747
2819
  };
2748
2820
 
2749
2821
  /** @internal */
@@ -2755,6 +2827,8 @@ export const RunAgentModelConfiguration2$outboundSchema: z.ZodType<
2755
2827
  id: z.string(),
2756
2828
  parameters: z.lazy(() => RunAgentModelConfigurationParameters$outboundSchema)
2757
2829
  .optional(),
2830
+ retry: z.lazy(() => RunAgentModelConfigurationRetry$outboundSchema)
2831
+ .optional(),
2758
2832
  });
2759
2833
 
2760
2834
  export function runAgentModelConfiguration2ToJSON(