@orq-ai/node 4.0.0-rc.34 → 4.0.0-rc.36

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 (112) hide show
  1. package/bin/mcp-server.js +397 -235
  2. package/bin/mcp-server.js.map +44 -44
  3. package/docs/sdks/agents/README.md +2 -0
  4. package/examples/package-lock.json +1 -1
  5. package/jsr.json +1 -1
  6. package/lib/config.d.ts +3 -3
  7. package/lib/config.js +3 -3
  8. package/mcp-server/mcp-server.js +1 -1
  9. package/mcp-server/server.js +1 -1
  10. package/models/operations/createagent.d.ts +61 -3
  11. package/models/operations/createagent.d.ts.map +1 -1
  12. package/models/operations/createagent.js +63 -6
  13. package/models/operations/createagent.js.map +1 -1
  14. package/models/operations/createbudget.js +2 -2
  15. package/models/operations/createcontact.js +2 -2
  16. package/models/operations/createdataset.js +2 -2
  17. package/models/operations/createdatasetitem.js +8 -8
  18. package/models/operations/createdatasource.js +2 -2
  19. package/models/operations/createeval.js +28 -28
  20. package/models/operations/createtool.js +10 -10
  21. package/models/operations/duplicateagent.d.ts +29 -0
  22. package/models/operations/duplicateagent.d.ts.map +1 -1
  23. package/models/operations/duplicateagent.js +30 -2
  24. package/models/operations/duplicateagent.js.map +1 -1
  25. package/models/operations/duplicatetool.js +10 -10
  26. package/models/operations/fileget.js +2 -2
  27. package/models/operations/filelist.js +2 -2
  28. package/models/operations/fileupload.js +2 -2
  29. package/models/operations/getagent.d.ts +29 -0
  30. package/models/operations/getagent.d.ts.map +1 -1
  31. package/models/operations/getagent.js +30 -2
  32. package/models/operations/getagent.js.map +1 -1
  33. package/models/operations/getalltools.js +10 -10
  34. package/models/operations/getbudget.js +2 -2
  35. package/models/operations/getevals.js +28 -28
  36. package/models/operations/listagents.d.ts +29 -0
  37. package/models/operations/listagents.d.ts.map +1 -1
  38. package/models/operations/listagents.js +31 -2
  39. package/models/operations/listagents.js.map +1 -1
  40. package/models/operations/listbudgets.js +2 -2
  41. package/models/operations/listcontacts.js +2 -2
  42. package/models/operations/listdatasetdatapoints.js +8 -8
  43. package/models/operations/listdatasets.js +2 -2
  44. package/models/operations/listdatasources.js +2 -2
  45. package/models/operations/retrievecontact.js +2 -2
  46. package/models/operations/retrievedatapoint.js +8 -8
  47. package/models/operations/retrievedataset.js +2 -2
  48. package/models/operations/retrievedatasource.js +2 -2
  49. package/models/operations/retrievetool.js +10 -10
  50. package/models/operations/runagent.d.ts +30 -1
  51. package/models/operations/runagent.d.ts.map +1 -1
  52. package/models/operations/runagent.js +35 -6
  53. package/models/operations/runagent.js.map +1 -1
  54. package/models/operations/streamrunagent.d.ts +30 -1
  55. package/models/operations/streamrunagent.d.ts.map +1 -1
  56. package/models/operations/streamrunagent.js +36 -6
  57. package/models/operations/streamrunagent.js.map +1 -1
  58. package/models/operations/syncmcptool.js +10 -10
  59. package/models/operations/updateagent.d.ts +61 -3
  60. package/models/operations/updateagent.d.ts.map +1 -1
  61. package/models/operations/updateagent.js +62 -6
  62. package/models/operations/updateagent.js.map +1 -1
  63. package/models/operations/updatebudget.js +2 -2
  64. package/models/operations/updatecontact.js +2 -2
  65. package/models/operations/updatedatapoint.js +8 -8
  66. package/models/operations/updatedataset.js +2 -2
  67. package/models/operations/updatedatasource.js +2 -2
  68. package/models/operations/updateeval.js +28 -28
  69. package/models/operations/updatetool.js +10 -10
  70. package/package.json +1 -1
  71. package/src/lib/config.ts +3 -3
  72. package/src/mcp-server/mcp-server.ts +1 -1
  73. package/src/mcp-server/server.ts +1 -1
  74. package/src/models/operations/createagent.ts +138 -3
  75. package/src/models/operations/createbudget.ts +2 -2
  76. package/src/models/operations/createcontact.ts +2 -2
  77. package/src/models/operations/createdataset.ts +2 -2
  78. package/src/models/operations/createdatasetitem.ts +8 -8
  79. package/src/models/operations/createdatasource.ts +2 -2
  80. package/src/models/operations/createeval.ts +28 -28
  81. package/src/models/operations/createtool.ts +10 -10
  82. package/src/models/operations/duplicateagent.ts +71 -0
  83. package/src/models/operations/duplicatetool.ts +10 -10
  84. package/src/models/operations/fileget.ts +2 -2
  85. package/src/models/operations/filelist.ts +2 -2
  86. package/src/models/operations/fileupload.ts +2 -2
  87. package/src/models/operations/getagent.ts +67 -0
  88. package/src/models/operations/getalltools.ts +10 -10
  89. package/src/models/operations/getbudget.ts +2 -2
  90. package/src/models/operations/getevals.ts +28 -28
  91. package/src/models/operations/listagents.ts +69 -0
  92. package/src/models/operations/listbudgets.ts +2 -2
  93. package/src/models/operations/listcontacts.ts +2 -2
  94. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  95. package/src/models/operations/listdatasets.ts +2 -2
  96. package/src/models/operations/listdatasources.ts +2 -2
  97. package/src/models/operations/retrievecontact.ts +2 -2
  98. package/src/models/operations/retrievedatapoint.ts +8 -8
  99. package/src/models/operations/retrievedataset.ts +2 -2
  100. package/src/models/operations/retrievedatasource.ts +2 -2
  101. package/src/models/operations/retrievetool.ts +10 -10
  102. package/src/models/operations/runagent.ts +75 -1
  103. package/src/models/operations/streamrunagent.ts +77 -1
  104. package/src/models/operations/syncmcptool.ts +10 -10
  105. package/src/models/operations/updateagent.ts +145 -3
  106. package/src/models/operations/updatebudget.ts +2 -2
  107. package/src/models/operations/updatecontact.ts +2 -2
  108. package/src/models/operations/updatedatapoint.ts +8 -8
  109. package/src/models/operations/updatedataset.ts +2 -2
  110. package/src/models/operations/updatedatasource.ts +2 -2
  111. package/src/models/operations/updateeval.ts +28 -28
  112. package/src/models/operations/updatetool.ts +10 -10
@@ -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_01KA1AV0QQC20SS6VA9FYMZEJ7"),
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_01KA1AV0QQC20SS6VA9FYMZEJ7"),
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_01KA1AV0QMVA91RYRT2D6SHGYJ"),
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_01KA1AV0QMVA91RYRT2D6SHGYJ"),
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_01KA1AV0QH9EZ36KGHTG3GMY23"),
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_01KA1AV0QH9EZ36KGHTG3GMY23"),
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_01KA1AV0QGHBW1NVA2HXFBRRQM"),
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_01KA1AV0QGHBW1NVA2HXFBRRQM"),
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_01KA1AV0QE4Z8YXK541ANXVKMT"),
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_01KA1AV0QE4Z8YXK541ANXVKMT"),
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-14T14:03:09.655Z",
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-14T14:03:09.655Z"))
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-14T14:03:11.889Z"),
1421
- updated: z.string().default("2025-11-14T14:03:11.889Z"),
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-14T14:03:11.889Z"),
1463
- updated: z.string().default("2025-11-14T14:03:11.889Z"),
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-14T14:03:11.889Z"),
1730
- updated: z.string().default("2025-11-14T14:03:11.889Z"),
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-14T14:03:11.889Z"),
1771
- updated: z.string().default("2025-11-14T14:03:11.889Z"),
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-14T14:03:11.889Z"),
4094
- updated: z.string().default("2025-11-14T14:03:11.889Z"),
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-14T14:03:11.889Z"),
4204
- updated: z.string().default("2025-11-14T14:03:11.889Z"),
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-14T14:03:11.889Z"),
4471
- updated: z.string().default("2025-11-14T14:03:11.889Z"),
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-14T14:03:11.889Z"),
4509
- updated: z.string().default("2025-11-14T14:03:11.889Z"),
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-14T14:03:11.889Z"),
4733
- updated: z.string().default("2025-11-14T14:03:11.889Z"),
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-14T14:03:11.889Z"),
4777
- updated: z.string().default("2025-11-14T14:03:11.889Z"),
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-14T14:03:11.889Z"),
5024
- updated: z.string().default("2025-11-14T14:03:11.889Z"),
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-14T14:03:11.889Z"),
5066
- updated: z.string().default("2025-11-14T14:03:11.889Z"),
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-14T14:03:11.889Z"),
5333
- updated: z.string().default("2025-11-14T14:03:11.889Z"),
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-14T14:03:11.889Z"),
5378
- updated: z.string().default("2025-11-14T14:03:11.889Z"),
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
@@ -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-14T14:03:09.655Z",
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-14T14:03:09.655Z"))
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-14T14:03:09.284Z",
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-14T14:03:09.284Z"))
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-14T14:03:20.968Z",
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-14T14:03:20.968Z"))
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-14T14:03:20.968Z",
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-14T14:03:20.968Z"))
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-14T14:03:20.967Z",
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-14T14:03:20.967Z"))
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-14T14:03:09.284Z",
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-14T14:03:09.284Z"))
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-14T14:03:09.284Z",
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-14T14:03:09.284Z"))
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("01KA1AV0XRYWJ8DHSQ4QPY7MQV"),
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("01KA1AV0XRYWJ8DHSQ4QPY7MQV"),
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-14T14:03:09.284Z",
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-14T14:03:09.284Z"))
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, {