@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
@@ -474,6 +474,20 @@ export type DuplicateAgentParameters = {
474
474
  modalities?: Array<DuplicateAgentModalities> | null | undefined;
475
475
  };
476
476
 
477
+ /**
478
+ * 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).
479
+ */
480
+ export type DuplicateAgentRetry = {
481
+ /**
482
+ * Number of retry attempts (1-5)
483
+ */
484
+ count?: number | undefined;
485
+ /**
486
+ * HTTP status codes that trigger retry logic
487
+ */
488
+ onCodes?: Array<number> | undefined;
489
+ };
490
+
477
491
  /**
478
492
  * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
479
493
  */
@@ -836,6 +850,10 @@ export type DuplicateAgentModel = {
836
850
  * 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.
837
851
  */
838
852
  parameters?: DuplicateAgentParameters | undefined;
853
+ /**
854
+ * 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).
855
+ */
856
+ retry?: DuplicateAgentRetry | undefined;
839
857
  /**
840
858
  * Optional array of fallback models (string IDs or config objects) that will be used automatically in order if the primary model fails
841
859
  */
@@ -2076,6 +2094,56 @@ export function duplicateAgentParametersFromJSON(
2076
2094
  );
2077
2095
  }
2078
2096
 
2097
+ /** @internal */
2098
+ export const DuplicateAgentRetry$inboundSchema: z.ZodType<
2099
+ DuplicateAgentRetry,
2100
+ z.ZodTypeDef,
2101
+ unknown
2102
+ > = z.object({
2103
+ count: z.number().default(3),
2104
+ on_codes: z.array(z.number()).optional(),
2105
+ }).transform((v) => {
2106
+ return remap$(v, {
2107
+ "on_codes": "onCodes",
2108
+ });
2109
+ });
2110
+ /** @internal */
2111
+ export type DuplicateAgentRetry$Outbound = {
2112
+ count: number;
2113
+ on_codes?: Array<number> | undefined;
2114
+ };
2115
+
2116
+ /** @internal */
2117
+ export const DuplicateAgentRetry$outboundSchema: z.ZodType<
2118
+ DuplicateAgentRetry$Outbound,
2119
+ z.ZodTypeDef,
2120
+ DuplicateAgentRetry
2121
+ > = z.object({
2122
+ count: z.number().default(3),
2123
+ onCodes: z.array(z.number()).optional(),
2124
+ }).transform((v) => {
2125
+ return remap$(v, {
2126
+ onCodes: "on_codes",
2127
+ });
2128
+ });
2129
+
2130
+ export function duplicateAgentRetryToJSON(
2131
+ duplicateAgentRetry: DuplicateAgentRetry,
2132
+ ): string {
2133
+ return JSON.stringify(
2134
+ DuplicateAgentRetry$outboundSchema.parse(duplicateAgentRetry),
2135
+ );
2136
+ }
2137
+ export function duplicateAgentRetryFromJSON(
2138
+ jsonString: string,
2139
+ ): SafeParseResult<DuplicateAgentRetry, SDKValidationError> {
2140
+ return safeParse(
2141
+ jsonString,
2142
+ (x) => DuplicateAgentRetry$inboundSchema.parse(JSON.parse(x)),
2143
+ `Failed to parse 'DuplicateAgentRetry' from JSON`,
2144
+ );
2145
+ }
2146
+
2079
2147
  /** @internal */
2080
2148
  export const DuplicateAgentFallbackModelConfigurationVoice$inboundSchema:
2081
2149
  z.ZodNativeEnum<typeof DuplicateAgentFallbackModelConfigurationVoice> = z
@@ -3112,6 +3180,7 @@ export const DuplicateAgentModel$inboundSchema: z.ZodType<
3112
3180
  id: z.string(),
3113
3181
  integration_id: z.nullable(z.string()).optional(),
3114
3182
  parameters: z.lazy(() => DuplicateAgentParameters$inboundSchema).optional(),
3183
+ retry: z.lazy(() => DuplicateAgentRetry$inboundSchema).optional(),
3115
3184
  fallback_models: z.nullable(
3116
3185
  z.array(z.union([
3117
3186
  z.lazy(() => DuplicateAgentFallbackModelConfiguration2$inboundSchema),
@@ -3129,6 +3198,7 @@ export type DuplicateAgentModel$Outbound = {
3129
3198
  id: string;
3130
3199
  integration_id?: string | null | undefined;
3131
3200
  parameters?: DuplicateAgentParameters$Outbound | undefined;
3201
+ retry?: DuplicateAgentRetry$Outbound | undefined;
3132
3202
  fallback_models?:
3133
3203
  | Array<DuplicateAgentFallbackModelConfiguration2$Outbound | string>
3134
3204
  | null
@@ -3144,6 +3214,7 @@ export const DuplicateAgentModel$outboundSchema: z.ZodType<
3144
3214
  id: z.string(),
3145
3215
  integrationId: z.nullable(z.string()).optional(),
3146
3216
  parameters: z.lazy(() => DuplicateAgentParameters$outboundSchema).optional(),
3217
+ retry: z.lazy(() => DuplicateAgentRetry$outboundSchema).optional(),
3147
3218
  fallbackModels: z.nullable(
3148
3219
  z.array(z.union([
3149
3220
  z.lazy(() => DuplicateAgentFallbackModelConfiguration2$outboundSchema),
@@ -955,7 +955,7 @@ export const DuplicateToolResponseBody5$inboundSchema: z.ZodType<
955
955
  z.ZodTypeDef,
956
956
  unknown
957
957
  > = z.object({
958
- _id: z.string().default("tool_01KA114QTZFFRNH9KVAW56WQA2"),
958
+ _id: z.string().default("tool_01KA3CD2E5HXG99KXB4A8TJHXV"),
959
959
  path: z.string(),
960
960
  key: z.string(),
961
961
  display_name: z.string().optional(),
@@ -1010,7 +1010,7 @@ export const DuplicateToolResponseBody5$outboundSchema: z.ZodType<
1010
1010
  z.ZodTypeDef,
1011
1011
  DuplicateToolResponseBody5
1012
1012
  > = z.object({
1013
- id: z.string().default("tool_01KA114QTZFFRNH9KVAW56WQA2"),
1013
+ id: z.string().default("tool_01KA3CD2E5HXG99KXB4A8TJHXV"),
1014
1014
  path: z.string(),
1015
1015
  key: z.string(),
1016
1016
  displayName: z.string().optional(),
@@ -1312,7 +1312,7 @@ export const DuplicateToolResponseBody4$inboundSchema: z.ZodType<
1312
1312
  z.ZodTypeDef,
1313
1313
  unknown
1314
1314
  > = z.object({
1315
- _id: z.string().default("tool_01KA114QTK1KR948G6VW4CT18F"),
1315
+ _id: z.string().default("tool_01KA3CD2E3GGY3E9T4KN9RQKJ6"),
1316
1316
  path: z.string(),
1317
1317
  key: z.string(),
1318
1318
  display_name: z.string().optional(),
@@ -1365,7 +1365,7 @@ export const DuplicateToolResponseBody4$outboundSchema: z.ZodType<
1365
1365
  z.ZodTypeDef,
1366
1366
  DuplicateToolResponseBody4
1367
1367
  > = z.object({
1368
- id: z.string().default("tool_01KA114QTK1KR948G6VW4CT18F"),
1368
+ id: z.string().default("tool_01KA3CD2E3GGY3E9T4KN9RQKJ6"),
1369
1369
  path: z.string(),
1370
1370
  key: z.string(),
1371
1371
  displayName: z.string().optional(),
@@ -1746,7 +1746,7 @@ export const DuplicateToolResponseBody3$inboundSchema: z.ZodType<
1746
1746
  z.ZodTypeDef,
1747
1747
  unknown
1748
1748
  > = z.object({
1749
- _id: z.string().default("tool_01KA114QTD03Z7170CP05T3MEQ"),
1749
+ _id: z.string().default("tool_01KA3CD2E1EEQDX0QGZS8SJPBS"),
1750
1750
  path: z.string(),
1751
1751
  key: z.string(),
1752
1752
  display_name: z.string().optional(),
@@ -1799,7 +1799,7 @@ export const DuplicateToolResponseBody3$outboundSchema: z.ZodType<
1799
1799
  z.ZodTypeDef,
1800
1800
  DuplicateToolResponseBody3
1801
1801
  > = z.object({
1802
- id: z.string().default("tool_01KA114QTD03Z7170CP05T3MEQ"),
1802
+ id: z.string().default("tool_01KA3CD2E1EEQDX0QGZS8SJPBS"),
1803
1803
  path: z.string(),
1804
1804
  key: z.string(),
1805
1805
  displayName: z.string().optional(),
@@ -1981,7 +1981,7 @@ export const DuplicateToolResponseBody2$inboundSchema: z.ZodType<
1981
1981
  z.ZodTypeDef,
1982
1982
  unknown
1983
1983
  > = z.object({
1984
- _id: z.string().default("tool_01KA114QTB4JC152325A90CG51"),
1984
+ _id: z.string().default("tool_01KA3CD2DZ8R4NT2E471H1DWYC"),
1985
1985
  path: z.string(),
1986
1986
  key: z.string(),
1987
1987
  display_name: z.string().optional(),
@@ -2033,7 +2033,7 @@ export const DuplicateToolResponseBody2$outboundSchema: z.ZodType<
2033
2033
  z.ZodTypeDef,
2034
2034
  DuplicateToolResponseBody2
2035
2035
  > = z.object({
2036
- id: z.string().default("tool_01KA114QTB4JC152325A90CG51"),
2036
+ id: z.string().default("tool_01KA3CD2DZ8R4NT2E471H1DWYC"),
2037
2037
  path: z.string(),
2038
2038
  key: z.string(),
2039
2039
  displayName: z.string().optional(),
@@ -2231,7 +2231,7 @@ export const DuplicateToolResponseBody1$inboundSchema: z.ZodType<
2231
2231
  z.ZodTypeDef,
2232
2232
  unknown
2233
2233
  > = z.object({
2234
- _id: z.string().default("tool_01KA114QSKZ2362F2MHZ0JTTM0"),
2234
+ _id: z.string().default("tool_01KA3CD2DXKK4FVMADGC46XMB5"),
2235
2235
  path: z.string(),
2236
2236
  key: z.string(),
2237
2237
  display_name: z.string().optional(),
@@ -2282,7 +2282,7 @@ export const DuplicateToolResponseBody1$outboundSchema: z.ZodType<
2282
2282
  z.ZodTypeDef,
2283
2283
  DuplicateToolResponseBody1
2284
2284
  > = z.object({
2285
- id: z.string().default("tool_01KA114QSKZ2362F2MHZ0JTTM0"),
2285
+ id: z.string().default("tool_01KA3CD2DXKK4FVMADGC46XMB5"),
2286
2286
  path: z.string(),
2287
2287
  key: z.string(),
2288
2288
  displayName: z.string().optional(),
@@ -119,7 +119,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
119
119
  file_name: z.string(),
120
120
  workspace_id: z.string(),
121
121
  created: z.string().datetime({ offset: true }).default(
122
- "2025-11-14T11:13:43.130Z",
122
+ "2025-11-15T09:09:01.853Z",
123
123
  ).transform(v => new Date(v)),
124
124
  }).transform((v) => {
125
125
  return remap$(v, {
@@ -152,7 +152,7 @@ export const FileGetResponseBody$outboundSchema: z.ZodType<
152
152
  bytes: z.number(),
153
153
  fileName: z.string(),
154
154
  workspaceId: z.string(),
155
- created: z.date().default(() => new Date("2025-11-14T11:13:43.130Z"))
155
+ created: z.date().default(() => new Date("2025-11-15T09:09:01.853Z"))
156
156
  .transform(v => v.toISOString()),
157
157
  }).transform((v) => {
158
158
  return remap$(v, {
@@ -157,7 +157,7 @@ export const FileListData$inboundSchema: z.ZodType<
157
157
  file_name: z.string(),
158
158
  workspace_id: z.string(),
159
159
  created: z.string().datetime({ offset: true }).default(
160
- "2025-11-14T11:13:43.130Z",
160
+ "2025-11-15T09:09:01.853Z",
161
161
  ).transform(v => new Date(v)),
162
162
  }).transform((v) => {
163
163
  return remap$(v, {
@@ -190,7 +190,7 @@ export const FileListData$outboundSchema: z.ZodType<
190
190
  bytes: z.number(),
191
191
  fileName: z.string(),
192
192
  workspaceId: z.string(),
193
- created: z.date().default(() => new Date("2025-11-14T11:13:43.130Z"))
193
+ created: z.date().default(() => new Date("2025-11-15T09:09:01.853Z"))
194
194
  .transform(v => v.toISOString()),
195
195
  }).transform((v) => {
196
196
  return remap$(v, {
@@ -196,7 +196,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
196
196
  file_name: z.string(),
197
197
  workspace_id: z.string(),
198
198
  created: z.string().datetime({ offset: true }).default(
199
- "2025-11-14T11:13:43.130Z",
199
+ "2025-11-15T09:09:01.853Z",
200
200
  ).transform(v => new Date(v)),
201
201
  }).transform((v) => {
202
202
  return remap$(v, {
@@ -229,7 +229,7 @@ export const FileUploadResponseBody$outboundSchema: z.ZodType<
229
229
  bytes: z.number(),
230
230
  fileName: z.string(),
231
231
  workspaceId: z.string(),
232
- created: z.date().default(() => new Date("2025-11-14T11:13:43.130Z"))
232
+ created: z.date().default(() => new Date("2025-11-15T09:09:01.853Z"))
233
233
  .transform(v => v.toISOString()),
234
234
  }).transform((v) => {
235
235
  return remap$(v, {
@@ -461,6 +461,20 @@ export type GetAgentParameters = {
461
461
  modalities?: Array<GetAgentModalities> | null | undefined;
462
462
  };
463
463
 
464
+ /**
465
+ * 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).
466
+ */
467
+ export type GetAgentRetry = {
468
+ /**
469
+ * Number of retry attempts (1-5)
470
+ */
471
+ count?: number | undefined;
472
+ /**
473
+ * HTTP status codes that trigger retry logic
474
+ */
475
+ onCodes?: Array<number> | undefined;
476
+ };
477
+
464
478
  /**
465
479
  * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
466
480
  */
@@ -817,6 +831,10 @@ export type GetAgentModel = {
817
831
  * 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.
818
832
  */
819
833
  parameters?: GetAgentParameters | undefined;
834
+ /**
835
+ * 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).
836
+ */
837
+ retry?: GetAgentRetry | undefined;
820
838
  /**
821
839
  * Optional array of fallback models (string IDs or config objects) that will be used automatically in order if the primary model fails
822
840
  */
@@ -2020,6 +2038,52 @@ export function getAgentParametersFromJSON(
2020
2038
  );
2021
2039
  }
2022
2040
 
2041
+ /** @internal */
2042
+ export const GetAgentRetry$inboundSchema: z.ZodType<
2043
+ GetAgentRetry,
2044
+ z.ZodTypeDef,
2045
+ unknown
2046
+ > = z.object({
2047
+ count: z.number().default(3),
2048
+ on_codes: z.array(z.number()).optional(),
2049
+ }).transform((v) => {
2050
+ return remap$(v, {
2051
+ "on_codes": "onCodes",
2052
+ });
2053
+ });
2054
+ /** @internal */
2055
+ export type GetAgentRetry$Outbound = {
2056
+ count: number;
2057
+ on_codes?: Array<number> | undefined;
2058
+ };
2059
+
2060
+ /** @internal */
2061
+ export const GetAgentRetry$outboundSchema: z.ZodType<
2062
+ GetAgentRetry$Outbound,
2063
+ z.ZodTypeDef,
2064
+ GetAgentRetry
2065
+ > = z.object({
2066
+ count: z.number().default(3),
2067
+ onCodes: z.array(z.number()).optional(),
2068
+ }).transform((v) => {
2069
+ return remap$(v, {
2070
+ onCodes: "on_codes",
2071
+ });
2072
+ });
2073
+
2074
+ export function getAgentRetryToJSON(getAgentRetry: GetAgentRetry): string {
2075
+ return JSON.stringify(GetAgentRetry$outboundSchema.parse(getAgentRetry));
2076
+ }
2077
+ export function getAgentRetryFromJSON(
2078
+ jsonString: string,
2079
+ ): SafeParseResult<GetAgentRetry, SDKValidationError> {
2080
+ return safeParse(
2081
+ jsonString,
2082
+ (x) => GetAgentRetry$inboundSchema.parse(JSON.parse(x)),
2083
+ `Failed to parse 'GetAgentRetry' from JSON`,
2084
+ );
2085
+ }
2086
+
2023
2087
  /** @internal */
2024
2088
  export const GetAgentFallbackModelConfigurationVoice$inboundSchema:
2025
2089
  z.ZodNativeEnum<typeof GetAgentFallbackModelConfigurationVoice> = z
@@ -3010,6 +3074,7 @@ export const GetAgentModel$inboundSchema: z.ZodType<
3010
3074
  id: z.string(),
3011
3075
  integration_id: z.nullable(z.string()).optional(),
3012
3076
  parameters: z.lazy(() => GetAgentParameters$inboundSchema).optional(),
3077
+ retry: z.lazy(() => GetAgentRetry$inboundSchema).optional(),
3013
3078
  fallback_models: z.nullable(
3014
3079
  z.array(z.union([
3015
3080
  z.lazy(() => GetAgentFallbackModelConfiguration2$inboundSchema),
@@ -3027,6 +3092,7 @@ export type GetAgentModel$Outbound = {
3027
3092
  id: string;
3028
3093
  integration_id?: string | null | undefined;
3029
3094
  parameters?: GetAgentParameters$Outbound | undefined;
3095
+ retry?: GetAgentRetry$Outbound | undefined;
3030
3096
  fallback_models?:
3031
3097
  | Array<GetAgentFallbackModelConfiguration2$Outbound | string>
3032
3098
  | null
@@ -3042,6 +3108,7 @@ export const GetAgentModel$outboundSchema: z.ZodType<
3042
3108
  id: z.string(),
3043
3109
  integrationId: z.nullable(z.string()).optional(),
3044
3110
  parameters: z.lazy(() => GetAgentParameters$outboundSchema).optional(),
3111
+ retry: z.lazy(() => GetAgentRetry$outboundSchema).optional(),
3045
3112
  fallbackModels: z.nullable(
3046
3113
  z.array(z.union([
3047
3114
  z.lazy(() => GetAgentFallbackModelConfiguration2$outboundSchema),
@@ -875,7 +875,7 @@ export function dataCodeToolFromJSON(
875
875
  /** @internal */
876
876
  export const Data5$inboundSchema: z.ZodType<Data5, z.ZodTypeDef, unknown> = z
877
877
  .object({
878
- _id: z.string().default("tool_01KA114QHQPD9E6GBHFAMWPJCR"),
878
+ _id: z.string().default("tool_01KA3CD2C3AN94KEFE1PQ8NJV9"),
879
879
  path: z.string(),
880
880
  key: z.string(),
881
881
  display_name: z.string().optional(),
@@ -927,7 +927,7 @@ export const Data5$outboundSchema: z.ZodType<
927
927
  z.ZodTypeDef,
928
928
  Data5
929
929
  > = z.object({
930
- id: z.string().default("tool_01KA114QHQPD9E6GBHFAMWPJCR"),
930
+ id: z.string().default("tool_01KA3CD2C3AN94KEFE1PQ8NJV9"),
931
931
  path: z.string(),
932
932
  key: z.string(),
933
933
  displayName: z.string().optional(),
@@ -1189,7 +1189,7 @@ export function dataMcpFromJSON(
1189
1189
  /** @internal */
1190
1190
  export const Data4$inboundSchema: z.ZodType<Data4, z.ZodTypeDef, unknown> = z
1191
1191
  .object({
1192
- _id: z.string().default("tool_01KA114QHFZQ0KQED9G70KCH51"),
1192
+ _id: z.string().default("tool_01KA3CD2C0MYRZJDEB1GQ1ZDF9"),
1193
1193
  path: z.string(),
1194
1194
  key: z.string(),
1195
1195
  display_name: z.string().optional(),
@@ -1240,7 +1240,7 @@ export const Data4$outboundSchema: z.ZodType<
1240
1240
  z.ZodTypeDef,
1241
1241
  Data4
1242
1242
  > = z.object({
1243
- id: z.string().default("tool_01KA114QHFZQ0KQED9G70KCH51"),
1243
+ id: z.string().default("tool_01KA3CD2C0MYRZJDEB1GQ1ZDF9"),
1244
1244
  path: z.string(),
1245
1245
  key: z.string(),
1246
1246
  displayName: z.string().optional(),
@@ -1580,7 +1580,7 @@ export function getAllToolsDataHttpFromJSON(
1580
1580
  /** @internal */
1581
1581
  export const Data3$inboundSchema: z.ZodType<Data3, z.ZodTypeDef, unknown> = z
1582
1582
  .object({
1583
- _id: z.string().default("tool_01KA114QH21WTMX6FS7WFCKB7C"),
1583
+ _id: z.string().default("tool_01KA3CD2BV7P4V0J4YB5ER29VK"),
1584
1584
  path: z.string(),
1585
1585
  key: z.string(),
1586
1586
  display_name: z.string().optional(),
@@ -1631,7 +1631,7 @@ export const Data3$outboundSchema: z.ZodType<
1631
1631
  z.ZodTypeDef,
1632
1632
  Data3
1633
1633
  > = z.object({
1634
- id: z.string().default("tool_01KA114QH21WTMX6FS7WFCKB7C"),
1634
+ id: z.string().default("tool_01KA3CD2BV7P4V0J4YB5ER29VK"),
1635
1635
  path: z.string(),
1636
1636
  key: z.string(),
1637
1637
  displayName: z.string().optional(),
@@ -1790,7 +1790,7 @@ export function dataJsonSchemaFromJSON(
1790
1790
  /** @internal */
1791
1791
  export const Data2$inboundSchema: z.ZodType<Data2, z.ZodTypeDef, unknown> = z
1792
1792
  .object({
1793
- _id: z.string().default("tool_01KA114QGNG72BEE7TMPJESEQ5"),
1793
+ _id: z.string().default("tool_01KA3CD2BSG12XB7XYGJ1C5QN9"),
1794
1794
  path: z.string(),
1795
1795
  key: z.string(),
1796
1796
  display_name: z.string().optional(),
@@ -1842,7 +1842,7 @@ export const Data2$outboundSchema: z.ZodType<
1842
1842
  z.ZodTypeDef,
1843
1843
  Data2
1844
1844
  > = z.object({
1845
- id: z.string().default("tool_01KA114QGNG72BEE7TMPJESEQ5"),
1845
+ id: z.string().default("tool_01KA3CD2BSG12XB7XYGJ1C5QN9"),
1846
1846
  path: z.string(),
1847
1847
  key: z.string(),
1848
1848
  displayName: z.string().optional(),
@@ -2020,7 +2020,7 @@ export function getAllToolsDataFunctionFromJSON(
2020
2020
  /** @internal */
2021
2021
  export const Data1$inboundSchema: z.ZodType<Data1, z.ZodTypeDef, unknown> = z
2022
2022
  .object({
2023
- _id: z.string().default("tool_01KA114QGF84TTQBX1NS0MSFZ6"),
2023
+ _id: z.string().default("tool_01KA3CD2BRGR6YTZBZAYQ05CGA"),
2024
2024
  path: z.string(),
2025
2025
  key: z.string(),
2026
2026
  display_name: z.string().optional(),
@@ -2071,7 +2071,7 @@ export const Data1$outboundSchema: z.ZodType<
2071
2071
  z.ZodTypeDef,
2072
2072
  Data1
2073
2073
  > = z.object({
2074
- id: z.string().default("tool_01KA114QGF84TTQBX1NS0MSFZ6"),
2074
+ id: z.string().default("tool_01KA3CD2BRGR6YTZBZAYQ05CGA"),
2075
2075
  path: z.string(),
2076
2076
  key: z.string(),
2077
2077
  displayName: z.string().optional(),
@@ -291,7 +291,7 @@ export const GetBudgetResponseBody$inboundSchema: z.ZodType<
291
291
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
292
292
  .optional(),
293
293
  updated: z.string().datetime({ offset: true }).default(
294
- "2025-11-14T11:13:39.771Z",
294
+ "2025-11-15T09:08:59.189Z",
295
295
  ).transform(v => new Date(v)),
296
296
  }).transform((v) => {
297
297
  return remap$(v, {
@@ -328,7 +328,7 @@ export const GetBudgetResponseBody$outboundSchema: z.ZodType<
328
328
  isActive: z.boolean(),
329
329
  consumption: z.lazy(() => GetBudgetConsumption$outboundSchema).optional(),
330
330
  created: z.date().transform(v => v.toISOString()).optional(),
331
- updated: z.date().default(() => new Date("2025-11-14T11:13:39.771Z"))
331
+ updated: z.date().default(() => new Date("2025-11-15T09:08:59.189Z"))
332
332
  .transform(v => v.toISOString()),
333
333
  }).transform((v) => {
334
334
  return remap$(v, {
@@ -1417,8 +1417,8 @@ export const DataTypescript$inboundSchema: z.ZodType<
1417
1417
  > = z.object({
1418
1418
  _id: z.string(),
1419
1419
  description: z.string(),
1420
- created: z.string().default("2025-11-14T11:13:42.137Z"),
1421
- updated: z.string().default("2025-11-14T11:13:42.137Z"),
1420
+ created: z.string().default("2025-11-15T09:09:00.897Z"),
1421
+ updated: z.string().default("2025-11-15T09:09:00.897Z"),
1422
1422
  guardrail_config: z.union([
1423
1423
  z.lazy(() =>
1424
1424
  GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
@@ -1459,8 +1459,8 @@ export const DataTypescript$outboundSchema: z.ZodType<
1459
1459
  > = z.object({
1460
1460
  id: z.string(),
1461
1461
  description: z.string(),
1462
- created: z.string().default("2025-11-14T11:13:42.137Z"),
1463
- updated: z.string().default("2025-11-14T11:13:42.137Z"),
1462
+ created: z.string().default("2025-11-15T09:09:00.897Z"),
1463
+ updated: z.string().default("2025-11-15T09:09:00.897Z"),
1464
1464
  guardrailConfig: z.union([
1465
1465
  z.lazy(() =>
1466
1466
  GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema
@@ -1726,8 +1726,8 @@ export const DataRagas$inboundSchema: z.ZodType<
1726
1726
  > = z.object({
1727
1727
  _id: z.string(),
1728
1728
  description: z.string(),
1729
- created: z.string().default("2025-11-14T11:13:42.137Z"),
1730
- updated: z.string().default("2025-11-14T11:13:42.137Z"),
1729
+ created: z.string().default("2025-11-15T09:09:00.897Z"),
1730
+ updated: z.string().default("2025-11-15T09:09:00.897Z"),
1731
1731
  guardrail_config: z.union([
1732
1732
  z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Number$inboundSchema),
1733
1733
  z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Boolean$inboundSchema),
@@ -1767,8 +1767,8 @@ export const DataRagas$outboundSchema: z.ZodType<
1767
1767
  > = z.object({
1768
1768
  id: z.string(),
1769
1769
  description: z.string(),
1770
- created: z.string().default("2025-11-14T11:13:42.137Z"),
1771
- updated: z.string().default("2025-11-14T11:13:42.137Z"),
1770
+ created: z.string().default("2025-11-15T09:09:00.897Z"),
1771
+ updated: z.string().default("2025-11-15T09:09:00.897Z"),
1772
1772
  guardrailConfig: z.union([
1773
1773
  z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Number$outboundSchema),
1774
1774
  z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Boolean$outboundSchema),
@@ -4090,8 +4090,8 @@ export const DataFunction$inboundSchema: z.ZodType<
4090
4090
  > = z.object({
4091
4091
  _id: z.string(),
4092
4092
  description: z.string(),
4093
- created: z.string().default("2025-11-14T11:13:42.137Z"),
4094
- updated: z.string().default("2025-11-14T11:13:42.137Z"),
4093
+ created: z.string().default("2025-11-15T09:09:00.897Z"),
4094
+ updated: z.string().default("2025-11-15T09:09:00.897Z"),
4095
4095
  guardrail_config: z.union([
4096
4096
  z.lazy(() => GetEvalsGuardrailConfigEvalsResponseNumber$inboundSchema),
4097
4097
  z.lazy(() => GetEvalsGuardrailConfigEvalsResponseBoolean$inboundSchema),
@@ -4200,8 +4200,8 @@ export const DataFunction$outboundSchema: z.ZodType<
4200
4200
  > = z.object({
4201
4201
  id: z.string(),
4202
4202
  description: z.string(),
4203
- created: z.string().default("2025-11-14T11:13:42.137Z"),
4204
- updated: z.string().default("2025-11-14T11:13:42.137Z"),
4203
+ created: z.string().default("2025-11-15T09:09:00.897Z"),
4204
+ updated: z.string().default("2025-11-15T09:09:00.897Z"),
4205
4205
  guardrailConfig: z.union([
4206
4206
  z.lazy(() => GetEvalsGuardrailConfigEvalsResponseNumber$outboundSchema),
4207
4207
  z.lazy(() => GetEvalsGuardrailConfigEvalsResponseBoolean$outboundSchema),
@@ -4467,8 +4467,8 @@ export const DataPython$inboundSchema: z.ZodType<
4467
4467
  > = z.object({
4468
4468
  _id: z.string(),
4469
4469
  description: z.string(),
4470
- created: z.string().default("2025-11-14T11:13:42.137Z"),
4471
- updated: z.string().default("2025-11-14T11:13:42.137Z"),
4470
+ created: z.string().default("2025-11-15T09:09:00.897Z"),
4471
+ updated: z.string().default("2025-11-15T09:09:00.897Z"),
4472
4472
  guardrail_config: z.union([
4473
4473
  z.lazy(() => GetEvalsGuardrailConfigEvalsNumber$inboundSchema),
4474
4474
  z.lazy(() => GetEvalsGuardrailConfigEvalsBoolean$inboundSchema),
@@ -4505,8 +4505,8 @@ export const DataPython$outboundSchema: z.ZodType<
4505
4505
  > = z.object({
4506
4506
  id: z.string(),
4507
4507
  description: z.string(),
4508
- created: z.string().default("2025-11-14T11:13:42.137Z"),
4509
- updated: z.string().default("2025-11-14T11:13:42.137Z"),
4508
+ created: z.string().default("2025-11-15T09:09:00.897Z"),
4509
+ updated: z.string().default("2025-11-15T09:09:00.897Z"),
4510
4510
  guardrailConfig: z.union([
4511
4511
  z.lazy(() => GetEvalsGuardrailConfigEvalsNumber$outboundSchema),
4512
4512
  z.lazy(() => GetEvalsGuardrailConfigEvalsBoolean$outboundSchema),
@@ -4729,8 +4729,8 @@ export const DataHTTP$inboundSchema: z.ZodType<
4729
4729
  > = z.object({
4730
4730
  _id: z.string(),
4731
4731
  description: z.string(),
4732
- created: z.string().default("2025-11-14T11:13:42.137Z"),
4733
- updated: z.string().default("2025-11-14T11:13:42.137Z"),
4732
+ created: z.string().default("2025-11-15T09:09:00.897Z"),
4733
+ updated: z.string().default("2025-11-15T09:09:00.897Z"),
4734
4734
  guardrail_config: z.union([
4735
4735
  z.lazy(() => GetEvalsGuardrailConfigNumber$inboundSchema),
4736
4736
  z.lazy(() => GetEvalsGuardrailConfigBoolean$inboundSchema),
@@ -4773,8 +4773,8 @@ export const DataHTTP$outboundSchema: z.ZodType<
4773
4773
  > = z.object({
4774
4774
  id: z.string(),
4775
4775
  description: z.string(),
4776
- created: z.string().default("2025-11-14T11:13:42.137Z"),
4777
- updated: z.string().default("2025-11-14T11:13:42.137Z"),
4776
+ created: z.string().default("2025-11-15T09:09:00.897Z"),
4777
+ updated: z.string().default("2025-11-15T09:09:00.897Z"),
4778
4778
  guardrailConfig: z.union([
4779
4779
  z.lazy(() => GetEvalsGuardrailConfigNumber$outboundSchema),
4780
4780
  z.lazy(() => GetEvalsGuardrailConfigBoolean$outboundSchema),
@@ -5020,8 +5020,8 @@ export const DataJSON$inboundSchema: z.ZodType<
5020
5020
  > = z.object({
5021
5021
  _id: z.string(),
5022
5022
  description: z.string(),
5023
- created: z.string().default("2025-11-14T11:13:42.137Z"),
5024
- updated: z.string().default("2025-11-14T11:13:42.137Z"),
5023
+ created: z.string().default("2025-11-15T09:09:00.897Z"),
5024
+ updated: z.string().default("2025-11-15T09:09:00.897Z"),
5025
5025
  guardrail_config: z.union([
5026
5026
  z.lazy(() =>
5027
5027
  GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber$inboundSchema
@@ -5062,8 +5062,8 @@ export const DataJSON$outboundSchema: z.ZodType<
5062
5062
  > = z.object({
5063
5063
  id: z.string(),
5064
5064
  description: z.string(),
5065
- created: z.string().default("2025-11-14T11:13:42.137Z"),
5066
- updated: z.string().default("2025-11-14T11:13:42.137Z"),
5065
+ created: z.string().default("2025-11-15T09:09:00.897Z"),
5066
+ updated: z.string().default("2025-11-15T09:09:00.897Z"),
5067
5067
  guardrailConfig: z.union([
5068
5068
  z.lazy(() =>
5069
5069
  GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber$outboundSchema
@@ -5329,8 +5329,8 @@ export const DataLLM$inboundSchema: z.ZodType<DataLLM, z.ZodTypeDef, unknown> =
5329
5329
  z.object({
5330
5330
  _id: z.string(),
5331
5331
  description: z.string(),
5332
- created: z.string().default("2025-11-14T11:13:42.137Z"),
5333
- updated: z.string().default("2025-11-14T11:13:42.137Z"),
5332
+ created: z.string().default("2025-11-15T09:09:00.897Z"),
5333
+ updated: z.string().default("2025-11-15T09:09:00.897Z"),
5334
5334
  guardrail_config: z.union([
5335
5335
  z.lazy(() =>
5336
5336
  GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
@@ -5374,8 +5374,8 @@ export const DataLLM$outboundSchema: z.ZodType<
5374
5374
  > = z.object({
5375
5375
  id: z.string(),
5376
5376
  description: z.string(),
5377
- created: z.string().default("2025-11-14T11:13:42.137Z"),
5378
- updated: z.string().default("2025-11-14T11:13:42.137Z"),
5377
+ created: z.string().default("2025-11-15T09:09:00.897Z"),
5378
+ updated: z.string().default("2025-11-15T09:09:00.897Z"),
5379
5379
  guardrailConfig: z.union([
5380
5380
  z.lazy(() =>
5381
5381
  GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema