@orq-ai/node 4.0.0-rc.26 → 4.0.0-rc.29

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 (152) hide show
  1. package/bin/mcp-server.js +788 -281
  2. package/bin/mcp-server.js.map +50 -50
  3. package/docs/sdks/agents/README.md +2 -2
  4. package/examples/package-lock.json +1 -1
  5. package/funcs/toolsDuplicate.js +2 -1
  6. package/funcs/toolsDuplicate.js.map +1 -1
  7. package/jsr.json +1 -1
  8. package/lib/config.d.ts +3 -3
  9. package/lib/config.js +3 -3
  10. package/mcp-server/mcp-server.js +1 -1
  11. package/mcp-server/server.js +1 -1
  12. package/models/operations/createagent.d.ts +195 -11
  13. package/models/operations/createagent.d.ts.map +1 -1
  14. package/models/operations/createagent.js +189 -13
  15. package/models/operations/createagent.js.map +1 -1
  16. package/models/operations/createbudget.js +2 -2
  17. package/models/operations/createcontact.js +2 -2
  18. package/models/operations/createdataset.js +2 -2
  19. package/models/operations/createdatasetitem.js +8 -8
  20. package/models/operations/createdatasource.js +2 -2
  21. package/models/operations/createeval.d.ts +2 -0
  22. package/models/operations/createeval.d.ts.map +1 -1
  23. package/models/operations/createeval.js +30 -28
  24. package/models/operations/createeval.js.map +1 -1
  25. package/models/operations/createprompt.d.ts +0 -2
  26. package/models/operations/createprompt.d.ts.map +1 -1
  27. package/models/operations/createprompt.js +0 -4
  28. package/models/operations/createprompt.js.map +1 -1
  29. package/models/operations/createtool.js +10 -10
  30. package/models/operations/duplicateagent.d.ts +94 -0
  31. package/models/operations/duplicateagent.d.ts.map +1 -1
  32. package/models/operations/duplicateagent.js +95 -3
  33. package/models/operations/duplicateagent.js.map +1 -1
  34. package/models/operations/duplicatetool.d.ts +18 -0
  35. package/models/operations/duplicatetool.d.ts.map +1 -1
  36. package/models/operations/duplicatetool.js +40 -12
  37. package/models/operations/duplicatetool.js.map +1 -1
  38. package/models/operations/fileget.js +2 -2
  39. package/models/operations/filelist.js +2 -2
  40. package/models/operations/fileupload.js +2 -2
  41. package/models/operations/getagent.d.ts +94 -0
  42. package/models/operations/getagent.d.ts.map +1 -1
  43. package/models/operations/getagent.js +95 -3
  44. package/models/operations/getagent.js.map +1 -1
  45. package/models/operations/getallprompts.d.ts +0 -2
  46. package/models/operations/getallprompts.d.ts.map +1 -1
  47. package/models/operations/getallprompts.js +0 -4
  48. package/models/operations/getallprompts.js.map +1 -1
  49. package/models/operations/getalltools.js +10 -10
  50. package/models/operations/getbudget.js +2 -2
  51. package/models/operations/getevals.js +28 -28
  52. package/models/operations/getoneprompt.d.ts +0 -2
  53. package/models/operations/getoneprompt.d.ts.map +1 -1
  54. package/models/operations/getoneprompt.js +0 -4
  55. package/models/operations/getoneprompt.js.map +1 -1
  56. package/models/operations/getpromptversion.d.ts +0 -2
  57. package/models/operations/getpromptversion.d.ts.map +1 -1
  58. package/models/operations/getpromptversion.js +0 -4
  59. package/models/operations/getpromptversion.js.map +1 -1
  60. package/models/operations/listagents.d.ts +94 -0
  61. package/models/operations/listagents.d.ts.map +1 -1
  62. package/models/operations/listagents.js +96 -3
  63. package/models/operations/listagents.js.map +1 -1
  64. package/models/operations/listbudgets.js +2 -2
  65. package/models/operations/listcontacts.js +2 -2
  66. package/models/operations/listdatasetdatapoints.js +8 -8
  67. package/models/operations/listdatasets.js +2 -2
  68. package/models/operations/listdatasources.js +2 -2
  69. package/models/operations/listpromptversions.d.ts +0 -2
  70. package/models/operations/listpromptversions.d.ts.map +1 -1
  71. package/models/operations/listpromptversions.js +0 -4
  72. package/models/operations/listpromptversions.js.map +1 -1
  73. package/models/operations/retrievecontact.js +2 -2
  74. package/models/operations/retrievedatapoint.js +8 -8
  75. package/models/operations/retrievedataset.js +2 -2
  76. package/models/operations/retrievedatasource.js +2 -2
  77. package/models/operations/retrievetool.js +10 -10
  78. package/models/operations/runagent.d.ts +92 -0
  79. package/models/operations/runagent.d.ts.map +1 -1
  80. package/models/operations/runagent.js +97 -7
  81. package/models/operations/runagent.js.map +1 -1
  82. package/models/operations/streamrunagent.d.ts +92 -0
  83. package/models/operations/streamrunagent.d.ts.map +1 -1
  84. package/models/operations/streamrunagent.js +96 -6
  85. package/models/operations/streamrunagent.js.map +1 -1
  86. package/models/operations/updateagent.d.ts +188 -0
  87. package/models/operations/updateagent.d.ts.map +1 -1
  88. package/models/operations/updateagent.js +192 -7
  89. package/models/operations/updateagent.js.map +1 -1
  90. package/models/operations/updatebudget.js +2 -2
  91. package/models/operations/updatecontact.js +2 -2
  92. package/models/operations/updatedatapoint.js +8 -8
  93. package/models/operations/updatedataset.js +2 -2
  94. package/models/operations/updatedatasource.js +2 -2
  95. package/models/operations/updateeval.d.ts +2 -0
  96. package/models/operations/updateeval.d.ts.map +1 -1
  97. package/models/operations/updateeval.js +30 -28
  98. package/models/operations/updateeval.js.map +1 -1
  99. package/models/operations/updateprompt.d.ts +0 -4
  100. package/models/operations/updateprompt.d.ts.map +1 -1
  101. package/models/operations/updateprompt.js +0 -8
  102. package/models/operations/updateprompt.js.map +1 -1
  103. package/models/operations/updatetool.js +10 -10
  104. package/package.json +1 -1
  105. package/src/funcs/toolsDuplicate.ts +3 -2
  106. package/src/lib/config.ts +3 -3
  107. package/src/mcp-server/mcp-server.ts +1 -1
  108. package/src/mcp-server/server.ts +1 -1
  109. package/src/models/operations/createagent.ts +403 -17
  110. package/src/models/operations/createbudget.ts +2 -2
  111. package/src/models/operations/createcontact.ts +2 -2
  112. package/src/models/operations/createdataset.ts +2 -2
  113. package/src/models/operations/createdatasetitem.ts +8 -8
  114. package/src/models/operations/createdatasource.ts +2 -2
  115. package/src/models/operations/createeval.ts +30 -28
  116. package/src/models/operations/createprompt.ts +0 -6
  117. package/src/models/operations/createtool.ts +10 -10
  118. package/src/models/operations/duplicateagent.ts +206 -0
  119. package/src/models/operations/duplicatetool.ts +70 -10
  120. package/src/models/operations/fileget.ts +2 -2
  121. package/src/models/operations/filelist.ts +2 -2
  122. package/src/models/operations/fileupload.ts +2 -2
  123. package/src/models/operations/getagent.ts +204 -0
  124. package/src/models/operations/getallprompts.ts +0 -6
  125. package/src/models/operations/getalltools.ts +10 -10
  126. package/src/models/operations/getbudget.ts +2 -2
  127. package/src/models/operations/getevals.ts +28 -28
  128. package/src/models/operations/getoneprompt.ts +0 -6
  129. package/src/models/operations/getpromptversion.ts +0 -6
  130. package/src/models/operations/listagents.ts +204 -0
  131. package/src/models/operations/listbudgets.ts +2 -2
  132. package/src/models/operations/listcontacts.ts +2 -2
  133. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  134. package/src/models/operations/listdatasets.ts +2 -2
  135. package/src/models/operations/listdatasources.ts +2 -2
  136. package/src/models/operations/listpromptversions.ts +0 -6
  137. package/src/models/operations/retrievecontact.ts +2 -2
  138. package/src/models/operations/retrievedatapoint.ts +8 -8
  139. package/src/models/operations/retrievedataset.ts +2 -2
  140. package/src/models/operations/retrievedatasource.ts +2 -2
  141. package/src/models/operations/retrievetool.ts +10 -10
  142. package/src/models/operations/runagent.ts +202 -0
  143. package/src/models/operations/streamrunagent.ts +204 -0
  144. package/src/models/operations/updateagent.ts +415 -0
  145. package/src/models/operations/updatebudget.ts +2 -2
  146. package/src/models/operations/updatecontact.ts +2 -2
  147. package/src/models/operations/updatedatapoint.ts +8 -8
  148. package/src/models/operations/updatedataset.ts +2 -2
  149. package/src/models/operations/updatedatasource.ts +2 -2
  150. package/src/models/operations/updateeval.ts +30 -28
  151. package/src/models/operations/updateprompt.ts +0 -12
  152. package/src/models/operations/updatetool.ts +10 -10
@@ -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-12T13:41:50.796Z"),
1421
- updated: z.string().default("2025-11-12T13:41:50.796Z"),
1420
+ created: z.string().default("2025-11-13T09:21:08.239Z"),
1421
+ updated: z.string().default("2025-11-13T09:21:08.239Z"),
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-12T13:41:50.796Z"),
1463
- updated: z.string().default("2025-11-12T13:41:50.796Z"),
1462
+ created: z.string().default("2025-11-13T09:21:08.239Z"),
1463
+ updated: z.string().default("2025-11-13T09:21:08.239Z"),
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-12T13:41:50.796Z"),
1730
- updated: z.string().default("2025-11-12T13:41:50.796Z"),
1729
+ created: z.string().default("2025-11-13T09:21:08.239Z"),
1730
+ updated: z.string().default("2025-11-13T09:21:08.239Z"),
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-12T13:41:50.796Z"),
1771
- updated: z.string().default("2025-11-12T13:41:50.796Z"),
1770
+ created: z.string().default("2025-11-13T09:21:08.239Z"),
1771
+ updated: z.string().default("2025-11-13T09:21:08.239Z"),
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-12T13:41:50.796Z"),
4094
- updated: z.string().default("2025-11-12T13:41:50.796Z"),
4093
+ created: z.string().default("2025-11-13T09:21:08.239Z"),
4094
+ updated: z.string().default("2025-11-13T09:21:08.239Z"),
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-12T13:41:50.796Z"),
4204
- updated: z.string().default("2025-11-12T13:41:50.796Z"),
4203
+ created: z.string().default("2025-11-13T09:21:08.239Z"),
4204
+ updated: z.string().default("2025-11-13T09:21:08.239Z"),
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-12T13:41:50.796Z"),
4471
- updated: z.string().default("2025-11-12T13:41:50.796Z"),
4470
+ created: z.string().default("2025-11-13T09:21:08.239Z"),
4471
+ updated: z.string().default("2025-11-13T09:21:08.239Z"),
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-12T13:41:50.796Z"),
4509
- updated: z.string().default("2025-11-12T13:41:50.796Z"),
4508
+ created: z.string().default("2025-11-13T09:21:08.239Z"),
4509
+ updated: z.string().default("2025-11-13T09:21:08.239Z"),
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-12T13:41:50.796Z"),
4733
- updated: z.string().default("2025-11-12T13:41:50.796Z"),
4732
+ created: z.string().default("2025-11-13T09:21:08.239Z"),
4733
+ updated: z.string().default("2025-11-13T09:21:08.239Z"),
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-12T13:41:50.796Z"),
4777
- updated: z.string().default("2025-11-12T13:41:50.796Z"),
4776
+ created: z.string().default("2025-11-13T09:21:08.239Z"),
4777
+ updated: z.string().default("2025-11-13T09:21:08.239Z"),
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-12T13:41:50.796Z"),
5024
- updated: z.string().default("2025-11-12T13:41:50.796Z"),
5023
+ created: z.string().default("2025-11-13T09:21:08.239Z"),
5024
+ updated: z.string().default("2025-11-13T09:21:08.239Z"),
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-12T13:41:50.796Z"),
5066
- updated: z.string().default("2025-11-12T13:41:50.796Z"),
5065
+ created: z.string().default("2025-11-13T09:21:08.239Z"),
5066
+ updated: z.string().default("2025-11-13T09:21:08.239Z"),
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-12T13:41:50.796Z"),
5333
- updated: z.string().default("2025-11-12T13:41:50.796Z"),
5332
+ created: z.string().default("2025-11-13T09:21:08.239Z"),
5333
+ updated: z.string().default("2025-11-13T09:21:08.239Z"),
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-12T13:41:50.796Z"),
5378
- updated: z.string().default("2025-11-12T13:41:50.796Z"),
5377
+ created: z.string().default("2025-11-13T09:21:08.239Z"),
5378
+ updated: z.string().default("2025-11-13T09:21:08.239Z"),
5379
5379
  guardrailConfig: z.union([
5380
5380
  z.lazy(() =>
5381
5381
  GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema
@@ -482,7 +482,6 @@ export type GetOnePromptMessages = {
482
482
  export type GetOnePromptPromptConfig = {
483
483
  stream?: boolean | undefined;
484
484
  model?: string | undefined;
485
- displayName?: string | undefined;
486
485
  /**
487
486
  * The id of the resource
488
487
  */
@@ -1664,7 +1663,6 @@ export const GetOnePromptPromptConfig$inboundSchema: z.ZodType<
1664
1663
  > = z.object({
1665
1664
  stream: z.boolean().optional(),
1666
1665
  model: z.string().optional(),
1667
- display_name: z.string().optional(),
1668
1666
  model_db_id: z.nullable(z.string()).optional(),
1669
1667
  model_type: z.nullable(GetOnePromptModelType$inboundSchema).optional(),
1670
1668
  model_parameters: z.lazy(() => GetOnePromptModelParameters$inboundSchema)
@@ -1675,7 +1673,6 @@ export const GetOnePromptPromptConfig$inboundSchema: z.ZodType<
1675
1673
  messages: z.array(z.lazy(() => GetOnePromptMessages$inboundSchema)),
1676
1674
  }).transform((v) => {
1677
1675
  return remap$(v, {
1678
- "display_name": "displayName",
1679
1676
  "model_db_id": "modelDbId",
1680
1677
  "model_type": "modelType",
1681
1678
  "model_parameters": "modelParameters",
@@ -1686,7 +1683,6 @@ export const GetOnePromptPromptConfig$inboundSchema: z.ZodType<
1686
1683
  export type GetOnePromptPromptConfig$Outbound = {
1687
1684
  stream?: boolean | undefined;
1688
1685
  model?: string | undefined;
1689
- display_name?: string | undefined;
1690
1686
  model_db_id?: string | null | undefined;
1691
1687
  model_type?: string | null | undefined;
1692
1688
  model_parameters?: GetOnePromptModelParameters$Outbound | undefined;
@@ -1704,7 +1700,6 @@ export const GetOnePromptPromptConfig$outboundSchema: z.ZodType<
1704
1700
  > = z.object({
1705
1701
  stream: z.boolean().optional(),
1706
1702
  model: z.string().optional(),
1707
- displayName: z.string().optional(),
1708
1703
  modelDbId: z.nullable(z.string()).optional(),
1709
1704
  modelType: z.nullable(GetOnePromptModelType$outboundSchema).optional(),
1710
1705
  modelParameters: z.lazy(() => GetOnePromptModelParameters$outboundSchema)
@@ -1715,7 +1710,6 @@ export const GetOnePromptPromptConfig$outboundSchema: z.ZodType<
1715
1710
  messages: z.array(z.lazy(() => GetOnePromptMessages$outboundSchema)),
1716
1711
  }).transform((v) => {
1717
1712
  return remap$(v, {
1718
- displayName: "display_name",
1719
1713
  modelDbId: "model_db_id",
1720
1714
  modelType: "model_type",
1721
1715
  modelParameters: "model_parameters",
@@ -485,7 +485,6 @@ export type GetPromptVersionMessages = {
485
485
  export type GetPromptVersionPromptConfig = {
486
486
  stream?: boolean | undefined;
487
487
  model?: string | undefined;
488
- displayName?: string | undefined;
489
488
  /**
490
489
  * The id of the resource
491
490
  */
@@ -1697,7 +1696,6 @@ export const GetPromptVersionPromptConfig$inboundSchema: z.ZodType<
1697
1696
  > = z.object({
1698
1697
  stream: z.boolean().optional(),
1699
1698
  model: z.string().optional(),
1700
- display_name: z.string().optional(),
1701
1699
  model_db_id: z.nullable(z.string()).optional(),
1702
1700
  model_type: z.nullable(GetPromptVersionModelType$inboundSchema).optional(),
1703
1701
  model_parameters: z.lazy(() => GetPromptVersionModelParameters$inboundSchema)
@@ -1708,7 +1706,6 @@ export const GetPromptVersionPromptConfig$inboundSchema: z.ZodType<
1708
1706
  messages: z.array(z.lazy(() => GetPromptVersionMessages$inboundSchema)),
1709
1707
  }).transform((v) => {
1710
1708
  return remap$(v, {
1711
- "display_name": "displayName",
1712
1709
  "model_db_id": "modelDbId",
1713
1710
  "model_type": "modelType",
1714
1711
  "model_parameters": "modelParameters",
@@ -1719,7 +1716,6 @@ export const GetPromptVersionPromptConfig$inboundSchema: z.ZodType<
1719
1716
  export type GetPromptVersionPromptConfig$Outbound = {
1720
1717
  stream?: boolean | undefined;
1721
1718
  model?: string | undefined;
1722
- display_name?: string | undefined;
1723
1719
  model_db_id?: string | null | undefined;
1724
1720
  model_type?: string | null | undefined;
1725
1721
  model_parameters?: GetPromptVersionModelParameters$Outbound | undefined;
@@ -1737,7 +1733,6 @@ export const GetPromptVersionPromptConfig$outboundSchema: z.ZodType<
1737
1733
  > = z.object({
1738
1734
  stream: z.boolean().optional(),
1739
1735
  model: z.string().optional(),
1740
- displayName: z.string().optional(),
1741
1736
  modelDbId: z.nullable(z.string()).optional(),
1742
1737
  modelType: z.nullable(GetPromptVersionModelType$outboundSchema).optional(),
1743
1738
  modelParameters: z.lazy(() => GetPromptVersionModelParameters$outboundSchema)
@@ -1748,7 +1743,6 @@ export const GetPromptVersionPromptConfig$outboundSchema: z.ZodType<
1748
1743
  messages: z.array(z.lazy(() => GetPromptVersionMessages$outboundSchema)),
1749
1744
  }).transform((v) => {
1750
1745
  return remap$(v, {
1751
- displayName: "display_name",
1752
1746
  modelDbId: "model_db_id",
1753
1747
  modelType: "model_type",
1754
1748
  modelParameters: "model_parameters",
@@ -96,6 +96,62 @@ export type ListAgentsTools = {
96
96
  timeout?: number | undefined;
97
97
  };
98
98
 
99
+ /**
100
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
101
+ */
102
+ export const ListAgentsExecuteOn = {
103
+ Input: "input",
104
+ Output: "output",
105
+ } as const;
106
+ /**
107
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
108
+ */
109
+ export type ListAgentsExecuteOn = ClosedEnum<typeof ListAgentsExecuteOn>;
110
+
111
+ export type ListAgentsEvaluators = {
112
+ /**
113
+ * Unique key or identifier of the evaluator
114
+ */
115
+ id: string;
116
+ /**
117
+ * The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
118
+ */
119
+ sampleRate?: number | undefined;
120
+ /**
121
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
122
+ */
123
+ executeOn: ListAgentsExecuteOn;
124
+ };
125
+
126
+ /**
127
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
128
+ */
129
+ export const ListAgentsAgentsExecuteOn = {
130
+ Input: "input",
131
+ Output: "output",
132
+ } as const;
133
+ /**
134
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
135
+ */
136
+ export type ListAgentsAgentsExecuteOn = ClosedEnum<
137
+ typeof ListAgentsAgentsExecuteOn
138
+ >;
139
+
140
+ export type ListAgentsGuardrails = {
141
+ /**
142
+ * Unique key or identifier of the evaluator
143
+ */
144
+ id: string;
145
+ /**
146
+ * The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
147
+ */
148
+ sampleRate?: number | undefined;
149
+ /**
150
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
151
+ */
152
+ executeOn: ListAgentsAgentsExecuteOn;
153
+ };
154
+
99
155
  export type ListAgentsSettings = {
100
156
  /**
101
157
  * Maximum iterations(llm calls) before the agent will stop executing.
@@ -110,6 +166,14 @@ export type ListAgentsSettings = {
110
166
  */
111
167
  toolApprovalRequired?: ListAgentsToolApprovalRequired | undefined;
112
168
  tools?: Array<ListAgentsTools> | undefined;
169
+ /**
170
+ * Configuration for an evaluator applied to the agent
171
+ */
172
+ evaluators?: Array<ListAgentsEvaluators> | undefined;
173
+ /**
174
+ * Configuration for a guardrail applied to the agent
175
+ */
176
+ guardrails?: Array<ListAgentsGuardrails> | undefined;
113
177
  };
114
178
 
115
179
  /**
@@ -810,6 +874,8 @@ export const ListAgentsCollapsedConfigurationSections = {
810
874
  Tools: "tools",
811
875
  Context: "context",
812
876
  RuntimeConstraints: "runtime_constraints",
877
+ Evaluators: "evaluators",
878
+ Guardrails: "guardrails",
813
879
  } as const;
814
880
  export type ListAgentsCollapsedConfigurationSections = ClosedEnum<
815
881
  typeof ListAgentsCollapsedConfigurationSections
@@ -1078,6 +1144,134 @@ export function listAgentsToolsFromJSON(
1078
1144
  );
1079
1145
  }
1080
1146
 
1147
+ /** @internal */
1148
+ export const ListAgentsExecuteOn$inboundSchema: z.ZodNativeEnum<
1149
+ typeof ListAgentsExecuteOn
1150
+ > = z.nativeEnum(ListAgentsExecuteOn);
1151
+ /** @internal */
1152
+ export const ListAgentsExecuteOn$outboundSchema: z.ZodNativeEnum<
1153
+ typeof ListAgentsExecuteOn
1154
+ > = ListAgentsExecuteOn$inboundSchema;
1155
+
1156
+ /** @internal */
1157
+ export const ListAgentsEvaluators$inboundSchema: z.ZodType<
1158
+ ListAgentsEvaluators,
1159
+ z.ZodTypeDef,
1160
+ unknown
1161
+ > = z.object({
1162
+ id: z.string(),
1163
+ sample_rate: z.number().default(50),
1164
+ execute_on: ListAgentsExecuteOn$inboundSchema,
1165
+ }).transform((v) => {
1166
+ return remap$(v, {
1167
+ "sample_rate": "sampleRate",
1168
+ "execute_on": "executeOn",
1169
+ });
1170
+ });
1171
+ /** @internal */
1172
+ export type ListAgentsEvaluators$Outbound = {
1173
+ id: string;
1174
+ sample_rate: number;
1175
+ execute_on: string;
1176
+ };
1177
+
1178
+ /** @internal */
1179
+ export const ListAgentsEvaluators$outboundSchema: z.ZodType<
1180
+ ListAgentsEvaluators$Outbound,
1181
+ z.ZodTypeDef,
1182
+ ListAgentsEvaluators
1183
+ > = z.object({
1184
+ id: z.string(),
1185
+ sampleRate: z.number().default(50),
1186
+ executeOn: ListAgentsExecuteOn$outboundSchema,
1187
+ }).transform((v) => {
1188
+ return remap$(v, {
1189
+ sampleRate: "sample_rate",
1190
+ executeOn: "execute_on",
1191
+ });
1192
+ });
1193
+
1194
+ export function listAgentsEvaluatorsToJSON(
1195
+ listAgentsEvaluators: ListAgentsEvaluators,
1196
+ ): string {
1197
+ return JSON.stringify(
1198
+ ListAgentsEvaluators$outboundSchema.parse(listAgentsEvaluators),
1199
+ );
1200
+ }
1201
+ export function listAgentsEvaluatorsFromJSON(
1202
+ jsonString: string,
1203
+ ): SafeParseResult<ListAgentsEvaluators, SDKValidationError> {
1204
+ return safeParse(
1205
+ jsonString,
1206
+ (x) => ListAgentsEvaluators$inboundSchema.parse(JSON.parse(x)),
1207
+ `Failed to parse 'ListAgentsEvaluators' from JSON`,
1208
+ );
1209
+ }
1210
+
1211
+ /** @internal */
1212
+ export const ListAgentsAgentsExecuteOn$inboundSchema: z.ZodNativeEnum<
1213
+ typeof ListAgentsAgentsExecuteOn
1214
+ > = z.nativeEnum(ListAgentsAgentsExecuteOn);
1215
+ /** @internal */
1216
+ export const ListAgentsAgentsExecuteOn$outboundSchema: z.ZodNativeEnum<
1217
+ typeof ListAgentsAgentsExecuteOn
1218
+ > = ListAgentsAgentsExecuteOn$inboundSchema;
1219
+
1220
+ /** @internal */
1221
+ export const ListAgentsGuardrails$inboundSchema: z.ZodType<
1222
+ ListAgentsGuardrails,
1223
+ z.ZodTypeDef,
1224
+ unknown
1225
+ > = z.object({
1226
+ id: z.string(),
1227
+ sample_rate: z.number().default(50),
1228
+ execute_on: ListAgentsAgentsExecuteOn$inboundSchema,
1229
+ }).transform((v) => {
1230
+ return remap$(v, {
1231
+ "sample_rate": "sampleRate",
1232
+ "execute_on": "executeOn",
1233
+ });
1234
+ });
1235
+ /** @internal */
1236
+ export type ListAgentsGuardrails$Outbound = {
1237
+ id: string;
1238
+ sample_rate: number;
1239
+ execute_on: string;
1240
+ };
1241
+
1242
+ /** @internal */
1243
+ export const ListAgentsGuardrails$outboundSchema: z.ZodType<
1244
+ ListAgentsGuardrails$Outbound,
1245
+ z.ZodTypeDef,
1246
+ ListAgentsGuardrails
1247
+ > = z.object({
1248
+ id: z.string(),
1249
+ sampleRate: z.number().default(50),
1250
+ executeOn: ListAgentsAgentsExecuteOn$outboundSchema,
1251
+ }).transform((v) => {
1252
+ return remap$(v, {
1253
+ sampleRate: "sample_rate",
1254
+ executeOn: "execute_on",
1255
+ });
1256
+ });
1257
+
1258
+ export function listAgentsGuardrailsToJSON(
1259
+ listAgentsGuardrails: ListAgentsGuardrails,
1260
+ ): string {
1261
+ return JSON.stringify(
1262
+ ListAgentsGuardrails$outboundSchema.parse(listAgentsGuardrails),
1263
+ );
1264
+ }
1265
+ export function listAgentsGuardrailsFromJSON(
1266
+ jsonString: string,
1267
+ ): SafeParseResult<ListAgentsGuardrails, SDKValidationError> {
1268
+ return safeParse(
1269
+ jsonString,
1270
+ (x) => ListAgentsGuardrails$inboundSchema.parse(JSON.parse(x)),
1271
+ `Failed to parse 'ListAgentsGuardrails' from JSON`,
1272
+ );
1273
+ }
1274
+
1081
1275
  /** @internal */
1082
1276
  export const ListAgentsSettings$inboundSchema: z.ZodType<
1083
1277
  ListAgentsSettings,
@@ -1090,6 +1284,10 @@ export const ListAgentsSettings$inboundSchema: z.ZodType<
1090
1284
  "respect_tool",
1091
1285
  ),
1092
1286
  tools: z.array(z.lazy(() => ListAgentsTools$inboundSchema)).optional(),
1287
+ evaluators: z.array(z.lazy(() => ListAgentsEvaluators$inboundSchema))
1288
+ .optional(),
1289
+ guardrails: z.array(z.lazy(() => ListAgentsGuardrails$inboundSchema))
1290
+ .optional(),
1093
1291
  }).transform((v) => {
1094
1292
  return remap$(v, {
1095
1293
  "max_iterations": "maxIterations",
@@ -1103,6 +1301,8 @@ export type ListAgentsSettings$Outbound = {
1103
1301
  max_execution_time: number;
1104
1302
  tool_approval_required: string;
1105
1303
  tools?: Array<ListAgentsTools$Outbound> | undefined;
1304
+ evaluators?: Array<ListAgentsEvaluators$Outbound> | undefined;
1305
+ guardrails?: Array<ListAgentsGuardrails$Outbound> | undefined;
1106
1306
  };
1107
1307
 
1108
1308
  /** @internal */
@@ -1117,6 +1317,10 @@ export const ListAgentsSettings$outboundSchema: z.ZodType<
1117
1317
  "respect_tool",
1118
1318
  ),
1119
1319
  tools: z.array(z.lazy(() => ListAgentsTools$outboundSchema)).optional(),
1320
+ evaluators: z.array(z.lazy(() => ListAgentsEvaluators$outboundSchema))
1321
+ .optional(),
1322
+ guardrails: z.array(z.lazy(() => ListAgentsGuardrails$outboundSchema))
1323
+ .optional(),
1120
1324
  }).transform((v) => {
1121
1325
  return remap$(v, {
1122
1326
  maxIterations: "max_iterations",
@@ -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-12T13:41:48.371Z",
384
+ "2025-11-13T09:21:06.136Z",
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-12T13:41:48.371Z"))
418
+ updated: z.date().default(() => new Date("2025-11-13T09:21:06.136Z"))
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-12T13:41:47.985Z",
301
+ "2025-11-13T09:21:05.843Z",
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-12T13:41:47.985Z"))
337
+ updated: z.date().default(() => new Date("2025-11-13T09:21:05.843Z"))
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-12T13:42:02.068Z",
2625
+ "2025-11-13T09:21:16.877Z",
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-12T13:42:02.068Z"))
2660
+ reviewedAt: z.date().default(() => new Date("2025-11-13T09:21:16.877Z"))
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-12T13:42:02.067Z",
2741
+ "2025-11-13T09:21:16.877Z",
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-12T13:42:02.067Z"))
2778
+ reviewedAt: z.date().default(() => new Date("2025-11-13T09:21:16.877Z"))
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-12T13:42:02.066Z",
2854
+ "2025-11-13T09:21:16.876Z",
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-12T13:42:02.066Z"))
2892
+ reviewedAt: z.date().default(() => new Date("2025-11-13T09:21:16.876Z"))
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-12T13:41:47.985Z",
3005
+ "2025-11-13T09:21:05.843Z",
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-12T13:41:47.985Z"))
3085
+ updated: z.date().default(() => new Date("2025-11-13T09:21:05.843Z"))
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-12T13:41:47.985Z",
214
+ "2025-11-13T09:21:05.843Z",
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-12T13:41:47.985Z"))
253
+ updated: z.date().default(() => new Date("2025-11-13T09:21:05.843Z"))
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("01K9W4THZ2E1RYSFTY0G1GJGK6"),
234
+ _id: z.string().default("01K9Y89TFQQTATTJVMA5574XST"),
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("01K9W4THZ2E1RYSFTY0G1GJGK6"),
277
+ id: z.string().default("01K9Y89TFQQTATTJVMA5574XST"),
278
278
  displayName: z.string(),
279
279
  description: z.string().optional(),
280
280
  status: ListDatasourcesStatus$outboundSchema,