@orq-ai/node 4.11.0-rc.28 → 4.11.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 (206) hide show
  1. package/funcs/agentsInvoke.d.ts +1 -1
  2. package/funcs/agentsInvoke.d.ts.map +1 -1
  3. package/funcs/agentsInvoke.js.map +1 -1
  4. package/funcs/agentsResponsesCreate.d.ts +2 -1
  5. package/funcs/agentsResponsesCreate.d.ts.map +1 -1
  6. package/funcs/agentsResponsesCreate.js +7 -5
  7. package/funcs/agentsResponsesCreate.js.map +1 -1
  8. package/funcs/agentsStream.d.ts +1 -1
  9. package/funcs/agentsStream.d.ts.map +1 -1
  10. package/funcs/agentsStream.js.map +1 -1
  11. package/funcs/annotationsCreate.d.ts +1 -1
  12. package/funcs/annotationsCreate.js +1 -1
  13. package/funcs/annotationsDelete.d.ts +1 -1
  14. package/funcs/annotationsDelete.js +1 -1
  15. package/funcs/deploymentsInvoke.d.ts +2 -1
  16. package/funcs/deploymentsInvoke.d.ts.map +1 -1
  17. package/funcs/deploymentsInvoke.js +2 -1
  18. package/funcs/deploymentsInvoke.js.map +1 -1
  19. package/funcs/promptsCreate.d.ts +1 -1
  20. package/funcs/promptsCreate.d.ts.map +1 -1
  21. package/funcs/promptsCreate.js +2 -1
  22. package/funcs/promptsCreate.js.map +1 -1
  23. package/jsr.json +1 -1
  24. package/lib/config.d.ts +2 -2
  25. package/lib/config.js +2 -2
  26. package/models/components/agentresponserequest.d.ts +336 -0
  27. package/models/components/agentresponserequest.d.ts.map +1 -0
  28. package/models/components/agentresponserequest.js +210 -0
  29. package/models/components/agentresponserequest.js.map +1 -0
  30. package/models/components/agentthoughtstreamingevent.d.ts +12 -12
  31. package/models/components/agentthoughtstreamingevent.d.ts.map +1 -1
  32. package/models/components/agentthoughtstreamingevent.js +17 -17
  33. package/models/components/agentthoughtstreamingevent.js.map +1 -1
  34. package/models/components/index.d.ts +2 -0
  35. package/models/components/index.d.ts.map +1 -1
  36. package/models/components/index.js +2 -0
  37. package/models/components/index.js.map +1 -1
  38. package/models/components/invokedeploymentrequest.d.ts +1573 -0
  39. package/models/components/invokedeploymentrequest.d.ts.map +1 -0
  40. package/models/components/invokedeploymentrequest.js +1137 -0
  41. package/models/components/invokedeploymentrequest.js.map +1 -0
  42. package/models/components/reasoningpart.js +1 -1
  43. package/models/components/toolexecutionstartedstreamingevent.d.ts +4 -4
  44. package/models/components/toolexecutionstartedstreamingevent.d.ts.map +1 -1
  45. package/models/components/toolexecutionstartedstreamingevent.js +7 -7
  46. package/models/components/toolexecutionstartedstreamingevent.js.map +1 -1
  47. package/models/operations/createagentresponserequest.d.ts +2 -329
  48. package/models/operations/createagentresponserequest.d.ts.map +1 -1
  49. package/models/operations/createagentresponserequest.js +3 -166
  50. package/models/operations/createagentresponserequest.js.map +1 -1
  51. package/models/operations/createannotation.d.ts +48 -10
  52. package/models/operations/createannotation.d.ts.map +1 -1
  53. package/models/operations/createannotation.js +37 -5
  54. package/models/operations/createannotation.js.map +1 -1
  55. package/models/operations/createdataset.js +1 -1
  56. package/models/operations/createdatasetitem.d.ts +210 -12
  57. package/models/operations/createdatasetitem.d.ts.map +1 -1
  58. package/models/operations/createdatasetitem.js +136 -9
  59. package/models/operations/createdatasetitem.js.map +1 -1
  60. package/models/operations/createdatasource.d.ts +3 -0
  61. package/models/operations/createdatasource.d.ts.map +1 -1
  62. package/models/operations/createdatasource.js +1 -1
  63. package/models/operations/createdatasource.js.map +1 -1
  64. package/models/operations/createeval.js +16 -16
  65. package/models/operations/createprompt.d.ts +7 -4
  66. package/models/operations/createprompt.d.ts.map +1 -1
  67. package/models/operations/createprompt.js +5 -5
  68. package/models/operations/createprompt.js.map +1 -1
  69. package/models/operations/createtool.js +6 -6
  70. package/models/operations/deleteannotation.d.ts +19 -2
  71. package/models/operations/deleteannotation.d.ts.map +1 -1
  72. package/models/operations/deleteannotation.js +20 -2
  73. package/models/operations/deleteannotation.js.map +1 -1
  74. package/models/operations/deploymentgetconfig.d.ts +440 -440
  75. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  76. package/models/operations/deploymentgetconfig.js +484 -479
  77. package/models/operations/deploymentgetconfig.js.map +1 -1
  78. package/models/operations/deploymentinvoke.d.ts +0 -1560
  79. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  80. package/models/operations/deploymentinvoke.js +1 -1126
  81. package/models/operations/deploymentinvoke.js.map +1 -1
  82. package/models/operations/deploymentstream.d.ts +56 -56
  83. package/models/operations/deploymentstream.d.ts.map +1 -1
  84. package/models/operations/deploymentstream.js +73 -72
  85. package/models/operations/deploymentstream.js.map +1 -1
  86. package/models/operations/getalltools.js +6 -6
  87. package/models/operations/getevals.js +16 -16
  88. package/models/operations/getv2humanevalsets.js +2 -2
  89. package/models/operations/getv2humanevalsetsid.js +2 -2
  90. package/models/operations/invokeagent.d.ts +51 -48
  91. package/models/operations/invokeagent.d.ts.map +1 -1
  92. package/models/operations/invokeagent.js +43 -46
  93. package/models/operations/invokeagent.js.map +1 -1
  94. package/models/operations/listdatasetdatapoints.d.ts +210 -12
  95. package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
  96. package/models/operations/listdatasetdatapoints.js +138 -9
  97. package/models/operations/listdatasetdatapoints.js.map +1 -1
  98. package/models/operations/listdatasets.js +1 -1
  99. package/models/operations/listdatasources.js +1 -1
  100. package/models/operations/patchv2humanevalsetsid.js +2 -2
  101. package/models/operations/postv2feedbackevaluation.d.ts +33 -12
  102. package/models/operations/postv2feedbackevaluation.d.ts.map +1 -1
  103. package/models/operations/postv2feedbackevaluation.js +9 -6
  104. package/models/operations/postv2feedbackevaluation.js.map +1 -1
  105. package/models/operations/postv2humanevalsets.js +2 -2
  106. package/models/operations/retrievedatapoint.d.ts +210 -12
  107. package/models/operations/retrievedatapoint.d.ts.map +1 -1
  108. package/models/operations/retrievedatapoint.js +140 -8
  109. package/models/operations/retrievedatapoint.js.map +1 -1
  110. package/models/operations/retrievedataset.js +1 -1
  111. package/models/operations/retrievedatasource.js +1 -1
  112. package/models/operations/retrievetool.js +6 -6
  113. package/models/operations/runagent.js +1 -1
  114. package/models/operations/streamagent.d.ts +9 -6
  115. package/models/operations/streamagent.d.ts.map +1 -1
  116. package/models/operations/streamagent.js +6 -6
  117. package/models/operations/streamagent.js.map +1 -1
  118. package/models/operations/streamrunagent.js +1 -1
  119. package/models/operations/updatedatapoint.d.ts +210 -12
  120. package/models/operations/updatedatapoint.d.ts.map +1 -1
  121. package/models/operations/updatedatapoint.js +138 -9
  122. package/models/operations/updatedatapoint.js.map +1 -1
  123. package/models/operations/updatedataset.js +1 -1
  124. package/models/operations/updatedatasource.js +1 -1
  125. package/models/operations/updateeval.js +16 -16
  126. package/models/operations/updateprompt.d.ts +9 -6
  127. package/models/operations/updateprompt.d.ts.map +1 -1
  128. package/models/operations/updateprompt.js +7 -6
  129. package/models/operations/updateprompt.js.map +1 -1
  130. package/models/operations/updatetool.js +7 -7
  131. package/package.json +3 -3
  132. package/sdk/agents.d.ts +2 -2
  133. package/sdk/agents.d.ts.map +1 -1
  134. package/sdk/agents.js.map +1 -1
  135. package/sdk/annotations.d.ts +2 -2
  136. package/sdk/annotations.js +2 -2
  137. package/sdk/deployments.d.ts +2 -1
  138. package/sdk/deployments.d.ts.map +1 -1
  139. package/sdk/deployments.js.map +1 -1
  140. package/sdk/feedback.d.ts +1 -4
  141. package/sdk/feedback.d.ts.map +1 -1
  142. package/sdk/feedback.js +1 -4
  143. package/sdk/feedback.js.map +1 -1
  144. package/sdk/orqresponses.d.ts +1 -1
  145. package/sdk/orqresponses.d.ts.map +1 -1
  146. package/sdk/orqresponses.js +2 -2
  147. package/sdk/orqresponses.js.map +1 -1
  148. package/sdk/prompts.d.ts +1 -1
  149. package/sdk/prompts.d.ts.map +1 -1
  150. package/sdk/prompts.js.map +1 -1
  151. package/src/funcs/agentsInvoke.ts +2 -2
  152. package/src/funcs/agentsResponsesCreate.ts +8 -5
  153. package/src/funcs/agentsStream.ts +2 -2
  154. package/src/funcs/annotationsCreate.ts +1 -1
  155. package/src/funcs/annotationsDelete.ts +1 -1
  156. package/src/funcs/deploymentsInvoke.ts +4 -4
  157. package/src/funcs/promptsCreate.ts +4 -3
  158. package/src/lib/config.ts +2 -2
  159. package/src/models/components/agentresponserequest.ts +565 -0
  160. package/src/models/components/agentthoughtstreamingevent.ts +55 -43
  161. package/src/models/components/index.ts +2 -0
  162. package/src/models/components/invokedeploymentrequest.ts +3457 -0
  163. package/src/models/components/reasoningpart.ts +1 -1
  164. package/src/models/components/toolexecutionstartedstreamingevent.ts +24 -14
  165. package/src/models/operations/createagentresponserequest.ts +4 -550
  166. package/src/models/operations/createannotation.ts +110 -16
  167. package/src/models/operations/createdataset.ts +1 -1
  168. package/src/models/operations/createdatasetitem.ts +335 -19
  169. package/src/models/operations/createdatasource.ts +4 -1
  170. package/src/models/operations/createeval.ts +16 -16
  171. package/src/models/operations/createprompt.ts +13 -8
  172. package/src/models/operations/createtool.ts +6 -6
  173. package/src/models/operations/deleteannotation.ts +46 -3
  174. package/src/models/operations/deploymentgetconfig.ts +1156 -1606
  175. package/src/models/operations/deploymentinvoke.ts +222 -3675
  176. package/src/models/operations/deploymentstream.ts +244 -285
  177. package/src/models/operations/getalltools.ts +6 -6
  178. package/src/models/operations/getevals.ts +16 -16
  179. package/src/models/operations/getv2humanevalsets.ts +2 -2
  180. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  181. package/src/models/operations/invokeagent.ts +90 -116
  182. package/src/models/operations/listdatasetdatapoints.ts +378 -19
  183. package/src/models/operations/listdatasets.ts +1 -1
  184. package/src/models/operations/listdatasources.ts +1 -1
  185. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  186. package/src/models/operations/postv2feedbackevaluation.ts +42 -18
  187. package/src/models/operations/postv2humanevalsets.ts +2 -2
  188. package/src/models/operations/retrievedatapoint.ts +363 -19
  189. package/src/models/operations/retrievedataset.ts +1 -1
  190. package/src/models/operations/retrievedatasource.ts +1 -1
  191. package/src/models/operations/retrievetool.ts +6 -6
  192. package/src/models/operations/runagent.ts +1 -1
  193. package/src/models/operations/streamagent.ts +16 -11
  194. package/src/models/operations/streamrunagent.ts +1 -1
  195. package/src/models/operations/updatedatapoint.ts +366 -19
  196. package/src/models/operations/updatedataset.ts +1 -1
  197. package/src/models/operations/updatedatasource.ts +1 -1
  198. package/src/models/operations/updateeval.ts +16 -16
  199. package/src/models/operations/updateprompt.ts +17 -11
  200. package/src/models/operations/updatetool.ts +7 -7
  201. package/src/sdk/agents.ts +2 -2
  202. package/src/sdk/annotations.ts +2 -2
  203. package/src/sdk/deployments.ts +2 -1
  204. package/src/sdk/feedback.ts +1 -4
  205. package/src/sdk/orqresponses.ts +2 -2
  206. package/src/sdk/prompts.ts +1 -1
@@ -767,7 +767,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
767
767
  z.ZodTypeDef,
768
768
  unknown
769
769
  > = z.object({
770
- _id: z.string().default("tool_01KVAG9AENMYN4ZSXNA1F0ZJVY"),
770
+ _id: z.string().default("tool_01KVAQ6ZR7B59A074AHH2E7SKG"),
771
771
  path: z.string(),
772
772
  key: z.string(),
773
773
  display_name: z.string().optional(),
@@ -864,7 +864,7 @@ export const DataTools$inboundSchema: z.ZodType<
864
864
  z.ZodTypeDef,
865
865
  unknown
866
866
  > = z.object({
867
- id: z.string().default("01KVAG9AEMSYFC8A9EZAVCZGNQ"),
867
+ id: z.string().default("01KVAQ6ZR6CRGQ2728TECNJCE2"),
868
868
  name: z.string(),
869
869
  description: z.string().optional(),
870
870
  schema: z.lazy(() => GetAllToolsDataSchema$inboundSchema),
@@ -917,7 +917,7 @@ export const DataMCPTool$inboundSchema: z.ZodType<
917
917
  z.ZodTypeDef,
918
918
  unknown
919
919
  > = z.object({
920
- _id: z.string().default("tool_01KVAG9AEJESFHJ5J6BX62G1JE"),
920
+ _id: z.string().default("tool_01KVAQ6ZR4HAJ4W15TGZZDK3S4"),
921
921
  path: z.string(),
922
922
  key: z.string(),
923
923
  display_name: z.string().optional(),
@@ -1102,7 +1102,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
1102
1102
  z.ZodTypeDef,
1103
1103
  unknown
1104
1104
  > = z.object({
1105
- _id: z.string().default("tool_01KVAG9AEG3MRRDRC7J781HK1D"),
1105
+ _id: z.string().default("tool_01KVAQ6ZR23Q1NKD6C1Y0898G8"),
1106
1106
  path: z.string(),
1107
1107
  key: z.string(),
1108
1108
  display_name: z.string().optional(),
@@ -1195,7 +1195,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
1195
1195
  z.ZodTypeDef,
1196
1196
  unknown
1197
1197
  > = z.object({
1198
- _id: z.string().default("tool_01KVAG9AEFQY0VVFPD9RNPAWFJ"),
1198
+ _id: z.string().default("tool_01KVAQ6ZR0TFV4WAGG8DRRKX27"),
1199
1199
  path: z.string(),
1200
1200
  key: z.string(),
1201
1201
  display_name: z.string().optional(),
@@ -1297,7 +1297,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
1297
1297
  z.ZodTypeDef,
1298
1298
  unknown
1299
1299
  > = z.object({
1300
- _id: z.string().default("tool_01KVAG9AEDEKN2DGC8SS0DKSC1"),
1300
+ _id: z.string().default("tool_01KVAQ6ZQZGBSMEWRXF5G3Q8E1"),
1301
1301
  path: z.string(),
1302
1302
  key: z.string(),
1303
1303
  display_name: z.string().optional(),
@@ -1074,8 +1074,8 @@ export const DataTypescript$inboundSchema: z.ZodType<
1074
1074
  > = z.object({
1075
1075
  _id: z.string(),
1076
1076
  description: z.string(),
1077
- created: z.string().default("2026-06-17T09:58:09.760Z"),
1078
- updated: z.string().default("2026-06-17T09:58:09.760Z"),
1077
+ created: z.string().default("2026-06-17T11:59:17.654Z"),
1078
+ updated: z.string().default("2026-06-17T11:59:17.654Z"),
1079
1079
  updated_by_id: z.nullable(z.string()).optional(),
1080
1080
  guardrail_config: z.nullable(
1081
1081
  z.union([
@@ -1256,8 +1256,8 @@ export const DataRagas$inboundSchema: z.ZodType<
1256
1256
  > = z.object({
1257
1257
  _id: z.string(),
1258
1258
  description: z.string(),
1259
- created: z.string().default("2026-06-17T09:58:09.760Z"),
1260
- updated: z.string().default("2026-06-17T09:58:09.760Z"),
1259
+ created: z.string().default("2026-06-17T11:59:17.654Z"),
1260
+ updated: z.string().default("2026-06-17T11:59:17.654Z"),
1261
1261
  updated_by_id: z.nullable(z.string()).optional(),
1262
1262
  guardrail_config: z.nullable(
1263
1263
  z.union([
@@ -2088,8 +2088,8 @@ export const DataFunction$inboundSchema: z.ZodType<
2088
2088
  > = z.object({
2089
2089
  _id: z.string(),
2090
2090
  description: z.string(),
2091
- created: z.string().default("2026-06-17T09:58:09.760Z"),
2092
- updated: z.string().default("2026-06-17T09:58:09.760Z"),
2091
+ created: z.string().default("2026-06-17T11:59:17.654Z"),
2092
+ updated: z.string().default("2026-06-17T11:59:17.654Z"),
2093
2093
  updated_by_id: z.nullable(z.string()).optional(),
2094
2094
  guardrail_config: z.nullable(
2095
2095
  z.union([
@@ -2272,8 +2272,8 @@ export const DataPython$inboundSchema: z.ZodType<
2272
2272
  > = z.object({
2273
2273
  _id: z.string(),
2274
2274
  description: z.string(),
2275
- created: z.string().default("2026-06-17T09:58:09.760Z"),
2276
- updated: z.string().default("2026-06-17T09:58:09.760Z"),
2275
+ created: z.string().default("2026-06-17T11:59:17.654Z"),
2276
+ updated: z.string().default("2026-06-17T11:59:17.654Z"),
2277
2277
  updated_by_id: z.nullable(z.string()).optional(),
2278
2278
  guardrail_config: z.nullable(
2279
2279
  z.union([
@@ -2452,8 +2452,8 @@ export const DataHTTP$inboundSchema: z.ZodType<
2452
2452
  > = z.object({
2453
2453
  _id: z.string(),
2454
2454
  description: z.string(),
2455
- created: z.string().default("2026-06-17T09:58:09.760Z"),
2456
- updated: z.string().default("2026-06-17T09:58:09.760Z"),
2455
+ created: z.string().default("2026-06-17T11:59:17.654Z"),
2456
+ updated: z.string().default("2026-06-17T11:59:17.654Z"),
2457
2457
  updated_by_id: z.nullable(z.string()).optional(),
2458
2458
  guardrail_config: z.nullable(
2459
2459
  z.union([
@@ -2644,8 +2644,8 @@ export const DataJSON$inboundSchema: z.ZodType<
2644
2644
  > = z.object({
2645
2645
  _id: z.string(),
2646
2646
  description: z.string(),
2647
- created: z.string().default("2026-06-17T09:58:09.760Z"),
2648
- updated: z.string().default("2026-06-17T09:58:09.760Z"),
2647
+ created: z.string().default("2026-06-17T11:59:17.654Z"),
2648
+ updated: z.string().default("2026-06-17T11:59:17.654Z"),
2649
2649
  updated_by_id: z.nullable(z.string()).optional(),
2650
2650
  guardrail_config: z.nullable(
2651
2651
  z.union([
@@ -3012,8 +3012,8 @@ export const GetEvalsLlm2$inboundSchema: z.ZodType<
3012
3012
  > = z.object({
3013
3013
  _id: z.string(),
3014
3014
  description: z.string(),
3015
- created: z.string().default("2026-06-17T09:58:09.760Z"),
3016
- updated: z.string().default("2026-06-17T09:58:09.760Z"),
3015
+ created: z.string().default("2026-06-17T11:59:17.654Z"),
3016
+ updated: z.string().default("2026-06-17T11:59:17.654Z"),
3017
3017
  updated_by_id: z.nullable(z.string()).optional(),
3018
3018
  guardrail_config: z.nullable(
3019
3019
  z.union([
@@ -3225,8 +3225,8 @@ export const GetEvalsLlm1$inboundSchema: z.ZodType<
3225
3225
  > = z.object({
3226
3226
  _id: z.string(),
3227
3227
  description: z.string(),
3228
- created: z.string().default("2026-06-17T09:58:09.760Z"),
3229
- updated: z.string().default("2026-06-17T09:58:09.760Z"),
3228
+ created: z.string().default("2026-06-17T11:59:17.654Z"),
3229
+ updated: z.string().default("2026-06-17T11:59:17.654Z"),
3230
3230
  updated_by_id: z.nullable(z.string()).optional(),
3231
3231
  guardrail_config: z.nullable(
3232
3232
  z.union([
@@ -140,7 +140,7 @@ export const GetV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
140
140
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
141
141
  .optional(),
142
142
  updated: z.string().datetime({ offset: true }).default(
143
- "2026-06-17T09:58:08.470Z",
143
+ "2026-06-17T11:59:16.603Z",
144
144
  ).transform(v => new Date(v)),
145
145
  filter_type: z.literal("name"),
146
146
  filter_value: z.string(),
@@ -185,7 +185,7 @@ export const GetV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
185
185
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
186
186
  .optional(),
187
187
  updated: z.string().datetime({ offset: true }).default(
188
- "2026-06-17T09:58:08.470Z",
188
+ "2026-06-17T11:59:16.603Z",
189
189
  ).transform(v => new Date(v)),
190
190
  filter_type: z.literal("span_type"),
191
191
  filter_values: z.array(z.string()),
@@ -141,7 +141,7 @@ export const GetV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
141
141
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
142
142
  .optional(),
143
143
  updated: z.string().datetime({ offset: true }).default(
144
- "2026-06-17T09:58:08.470Z",
144
+ "2026-06-17T11:59:16.603Z",
145
145
  ).transform(v => new Date(v)),
146
146
  filter_type: z.literal("name"),
147
147
  filter_value: z.string(),
@@ -186,7 +186,7 @@ export const GetV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
186
186
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
187
187
  .optional(),
188
188
  updated: z.string().datetime({ offset: true }).default(
189
- "2026-06-17T09:58:08.470Z",
189
+ "2026-06-17T11:59:16.603Z",
190
190
  ).transform(v => new Date(v)),
191
191
  filter_type: z.literal("span_type"),
192
192
  filter_values: z.array(z.string()),
@@ -13,40 +13,34 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
13
13
  /**
14
14
  * Message containing tool execution results
15
15
  */
16
- export const InvokeAgentRoleToolMessage = {
16
+ export const RoleToolMessage = {
17
17
  Tool: "tool",
18
18
  } as const;
19
19
  /**
20
20
  * Message containing tool execution results
21
21
  */
22
- export type InvokeAgentRoleToolMessage = ClosedEnum<
23
- typeof InvokeAgentRoleToolMessage
24
- >;
22
+ export type RoleToolMessage = ClosedEnum<typeof RoleToolMessage>;
25
23
 
26
24
  /**
27
25
  * Message from the end user
28
26
  */
29
- export const InvokeAgentRoleUserMessage = {
27
+ export const RoleUserMessage = {
30
28
  User: "user",
31
29
  } as const;
32
30
  /**
33
31
  * Message from the end user
34
32
  */
35
- export type InvokeAgentRoleUserMessage = ClosedEnum<
36
- typeof InvokeAgentRoleUserMessage
37
- >;
33
+ export type RoleUserMessage = ClosedEnum<typeof RoleUserMessage>;
38
34
 
39
35
  /**
40
36
  * Message role (user or tool for continuing executions)
41
37
  */
42
- export type InvokeAgentRole =
43
- | InvokeAgentRoleUserMessage
44
- | InvokeAgentRoleToolMessage;
38
+ export type InvokeAgentRole = RoleUserMessage | RoleToolMessage;
45
39
 
46
40
  /**
47
41
  * Message part that can be provided by users. Use "text" for regular messages, "file" for attachments, or "tool_result" when responding to tool call requests.
48
42
  */
49
- export type InvokeAgentPublicMessagePart =
43
+ export type PublicMessagePart =
50
44
  | components.TextPart
51
45
  | components.FilePart
52
46
  | components.ToolResultPart
@@ -55,7 +49,7 @@ export type InvokeAgentPublicMessagePart =
55
49
  /**
56
50
  * The A2A message to send to the agent (user input or tool results)
57
51
  */
58
- export type InvokeAgentA2AMessage = {
52
+ export type A2AMessage = {
59
53
  /**
60
54
  * Optional A2A message ID in ULID format
61
55
  */
@@ -63,7 +57,7 @@ export type InvokeAgentA2AMessage = {
63
57
  /**
64
58
  * Message role (user or tool for continuing executions)
65
59
  */
66
- role: InvokeAgentRoleUserMessage | InvokeAgentRoleToolMessage;
60
+ role: RoleUserMessage | RoleToolMessage;
67
61
  /**
68
62
  * A2A message parts (text, file, or tool_result only). Note: Tool role messages must only contain tool_result parts.
69
63
  */
@@ -78,7 +72,7 @@ export type InvokeAgentA2AMessage = {
78
72
  /**
79
73
  * Information about the identity making the request. If the identity does not exist, it will be created automatically.
80
74
  */
81
- export type InvokeAgentIdentity = {
75
+ export type Identity = {
82
76
  /**
83
77
  * Unique identifier for the contact
84
78
  */
@@ -110,7 +104,7 @@ export type InvokeAgentIdentity = {
110
104
  *
111
105
  * @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
112
106
  */
113
- export type InvokeAgentContact = {
107
+ export type Contact = {
114
108
  /**
115
109
  * Unique identifier for the contact
116
110
  */
@@ -154,7 +148,7 @@ export type InvokeAgentThread = {
154
148
  /**
155
149
  * Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
156
150
  */
157
- export type InvokeAgentMemory = {
151
+ export type Memory = {
158
152
  /**
159
153
  * An entity ID used to link memory stores to a specific user, session, or conversation. This ID is used to isolate and retrieve memories specific to the entity across agent executions.
160
154
  */
@@ -177,14 +171,17 @@ export type InvokeAgentEngine = ClosedEnum<typeof InvokeAgentEngine>;
177
171
  /**
178
172
  * Configuration options for the agent invocation
179
173
  */
180
- export type InvokeAgentConfiguration = {
174
+ export type Configuration = {
181
175
  /**
182
176
  * Whether to block until the agent task completes. When true, the response will include the full task with messages. When false (default), returns immediately with task ID and status.
183
177
  */
184
178
  blocking?: boolean | undefined;
185
179
  };
186
180
 
187
- export type InvokeAgentRequestBody = {
181
+ /**
182
+ * Request body for invoking an existing agent (stream-task endpoint). Used to start a new task or continue an existing conversation.
183
+ */
184
+ export type InvokeAgentA2AInvokeRequest = {
188
185
  /**
189
186
  * Optional task ID to continue an existing agent execution. When provided, the agent will continue the conversation from the existing task state. The task must be in an inactive state to continue.
190
187
  */
@@ -192,7 +189,7 @@ export type InvokeAgentRequestBody = {
192
189
  /**
193
190
  * The A2A message to send to the agent (user input or tool results)
194
191
  */
195
- message: InvokeAgentA2AMessage;
192
+ message: A2AMessage;
196
193
  /**
197
194
  * Optional variables for template replacement in system prompt, instructions, and messages
198
195
  */
@@ -200,13 +197,13 @@ export type InvokeAgentRequestBody = {
200
197
  /**
201
198
  * Information about the identity making the request. If the identity does not exist, it will be created automatically.
202
199
  */
203
- identity?: InvokeAgentIdentity | undefined;
200
+ identity?: Identity | undefined;
204
201
  /**
205
202
  * @deprecated Use identity instead. Information about the contact making the request.
206
203
  *
207
204
  * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
208
205
  */
209
- contact?: InvokeAgentContact | undefined;
206
+ contact?: Contact | undefined;
210
207
  /**
211
208
  * Thread information to group related requests
212
209
  */
@@ -214,7 +211,7 @@ export type InvokeAgentRequestBody = {
214
211
  /**
215
212
  * Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
216
213
  */
217
- memory?: InvokeAgentMemory | undefined;
214
+ memory?: Memory | undefined;
218
215
  /**
219
216
  * Optional metadata for the agent invocation as key-value pairs that will be included in traces
220
217
  */
@@ -226,7 +223,7 @@ export type InvokeAgentRequestBody = {
226
223
  /**
227
224
  * Configuration options for the agent invocation
228
225
  */
229
- configuration?: InvokeAgentConfiguration | undefined;
226
+ configuration?: Configuration | undefined;
230
227
  };
231
228
 
232
229
  export type InvokeAgentRequest = {
@@ -234,7 +231,7 @@ export type InvokeAgentRequest = {
234
231
  * The key or ID of the agent to invoke
235
232
  */
236
233
  key: string;
237
- requestBody?: InvokeAgentRequestBody | undefined;
234
+ requestBody?: InvokeAgentA2AInvokeRequest | undefined;
238
235
  };
239
236
 
240
237
  /**
@@ -362,14 +359,14 @@ export type InvokeAgentA2ATaskResponse = {
362
359
  };
363
360
 
364
361
  /** @internal */
365
- export const InvokeAgentRoleToolMessage$outboundSchema: z.ZodNativeEnum<
366
- typeof InvokeAgentRoleToolMessage
367
- > = z.nativeEnum(InvokeAgentRoleToolMessage);
362
+ export const RoleToolMessage$outboundSchema: z.ZodNativeEnum<
363
+ typeof RoleToolMessage
364
+ > = z.nativeEnum(RoleToolMessage);
368
365
 
369
366
  /** @internal */
370
- export const InvokeAgentRoleUserMessage$outboundSchema: z.ZodNativeEnum<
371
- typeof InvokeAgentRoleUserMessage
372
- > = z.nativeEnum(InvokeAgentRoleUserMessage);
367
+ export const RoleUserMessage$outboundSchema: z.ZodNativeEnum<
368
+ typeof RoleUserMessage
369
+ > = z.nativeEnum(RoleUserMessage);
373
370
 
374
371
  /** @internal */
375
372
  export type InvokeAgentRole$Outbound = string | string;
@@ -379,10 +376,7 @@ export const InvokeAgentRole$outboundSchema: z.ZodType<
379
376
  InvokeAgentRole$Outbound,
380
377
  z.ZodTypeDef,
381
378
  InvokeAgentRole
382
- > = z.union([
383
- InvokeAgentRoleUserMessage$outboundSchema,
384
- InvokeAgentRoleToolMessage$outboundSchema,
385
- ]);
379
+ > = z.union([RoleUserMessage$outboundSchema, RoleToolMessage$outboundSchema]);
386
380
 
387
381
  export function invokeAgentRoleToJSON(
388
382
  invokeAgentRole: InvokeAgentRole,
@@ -391,17 +385,17 @@ export function invokeAgentRoleToJSON(
391
385
  }
392
386
 
393
387
  /** @internal */
394
- export type InvokeAgentPublicMessagePart$Outbound =
388
+ export type PublicMessagePart$Outbound =
395
389
  | components.TextPart$Outbound
396
390
  | components.FilePart$Outbound
397
391
  | components.ToolResultPart$Outbound
398
392
  | components.ErrorPart$Outbound;
399
393
 
400
394
  /** @internal */
401
- export const InvokeAgentPublicMessagePart$outboundSchema: z.ZodType<
402
- InvokeAgentPublicMessagePart$Outbound,
395
+ export const PublicMessagePart$outboundSchema: z.ZodType<
396
+ PublicMessagePart$Outbound,
403
397
  z.ZodTypeDef,
404
- InvokeAgentPublicMessagePart
398
+ PublicMessagePart
405
399
  > = z.union([
406
400
  components.TextPart$outboundSchema,
407
401
  components.FilePart$outboundSchema,
@@ -409,18 +403,16 @@ export const InvokeAgentPublicMessagePart$outboundSchema: z.ZodType<
409
403
  components.ErrorPart$outboundSchema,
410
404
  ]);
411
405
 
412
- export function invokeAgentPublicMessagePartToJSON(
413
- invokeAgentPublicMessagePart: InvokeAgentPublicMessagePart,
406
+ export function publicMessagePartToJSON(
407
+ publicMessagePart: PublicMessagePart,
414
408
  ): string {
415
409
  return JSON.stringify(
416
- InvokeAgentPublicMessagePart$outboundSchema.parse(
417
- invokeAgentPublicMessagePart,
418
- ),
410
+ PublicMessagePart$outboundSchema.parse(publicMessagePart),
419
411
  );
420
412
  }
421
413
 
422
414
  /** @internal */
423
- export type InvokeAgentA2AMessage$Outbound = {
415
+ export type A2AMessage$Outbound = {
424
416
  messageId?: string | undefined;
425
417
  role: string | string;
426
418
  parts: Array<
@@ -432,15 +424,15 @@ export type InvokeAgentA2AMessage$Outbound = {
432
424
  };
433
425
 
434
426
  /** @internal */
435
- export const InvokeAgentA2AMessage$outboundSchema: z.ZodType<
436
- InvokeAgentA2AMessage$Outbound,
427
+ export const A2AMessage$outboundSchema: z.ZodType<
428
+ A2AMessage$Outbound,
437
429
  z.ZodTypeDef,
438
- InvokeAgentA2AMessage
430
+ A2AMessage
439
431
  > = z.object({
440
432
  messageId: z.string().optional(),
441
433
  role: z.union([
442
- InvokeAgentRoleUserMessage$outboundSchema,
443
- InvokeAgentRoleToolMessage$outboundSchema,
434
+ RoleUserMessage$outboundSchema,
435
+ RoleToolMessage$outboundSchema,
444
436
  ]),
445
437
  parts: z.array(
446
438
  z.union([
@@ -452,16 +444,12 @@ export const InvokeAgentA2AMessage$outboundSchema: z.ZodType<
452
444
  ),
453
445
  });
454
446
 
455
- export function invokeAgentA2AMessageToJSON(
456
- invokeAgentA2AMessage: InvokeAgentA2AMessage,
457
- ): string {
458
- return JSON.stringify(
459
- InvokeAgentA2AMessage$outboundSchema.parse(invokeAgentA2AMessage),
460
- );
447
+ export function a2AMessageToJSON(a2AMessage: A2AMessage): string {
448
+ return JSON.stringify(A2AMessage$outboundSchema.parse(a2AMessage));
461
449
  }
462
450
 
463
451
  /** @internal */
464
- export type InvokeAgentIdentity$Outbound = {
452
+ export type Identity$Outbound = {
465
453
  id: string;
466
454
  display_name?: string | undefined;
467
455
  email?: string | undefined;
@@ -471,10 +459,10 @@ export type InvokeAgentIdentity$Outbound = {
471
459
  };
472
460
 
473
461
  /** @internal */
474
- export const InvokeAgentIdentity$outboundSchema: z.ZodType<
475
- InvokeAgentIdentity$Outbound,
462
+ export const Identity$outboundSchema: z.ZodType<
463
+ Identity$Outbound,
476
464
  z.ZodTypeDef,
477
- InvokeAgentIdentity
465
+ Identity
478
466
  > = z.object({
479
467
  id: z.string(),
480
468
  displayName: z.string().optional(),
@@ -489,16 +477,12 @@ export const InvokeAgentIdentity$outboundSchema: z.ZodType<
489
477
  });
490
478
  });
491
479
 
492
- export function invokeAgentIdentityToJSON(
493
- invokeAgentIdentity: InvokeAgentIdentity,
494
- ): string {
495
- return JSON.stringify(
496
- InvokeAgentIdentity$outboundSchema.parse(invokeAgentIdentity),
497
- );
480
+ export function identityToJSON(identity: Identity): string {
481
+ return JSON.stringify(Identity$outboundSchema.parse(identity));
498
482
  }
499
483
 
500
484
  /** @internal */
501
- export type InvokeAgentContact$Outbound = {
485
+ export type Contact$Outbound = {
502
486
  id: string;
503
487
  display_name?: string | undefined;
504
488
  email?: string | undefined;
@@ -508,10 +492,10 @@ export type InvokeAgentContact$Outbound = {
508
492
  };
509
493
 
510
494
  /** @internal */
511
- export const InvokeAgentContact$outboundSchema: z.ZodType<
512
- InvokeAgentContact$Outbound,
495
+ export const Contact$outboundSchema: z.ZodType<
496
+ Contact$Outbound,
513
497
  z.ZodTypeDef,
514
- InvokeAgentContact
498
+ Contact
515
499
  > = z.object({
516
500
  id: z.string(),
517
501
  displayName: z.string().optional(),
@@ -526,12 +510,8 @@ export const InvokeAgentContact$outboundSchema: z.ZodType<
526
510
  });
527
511
  });
528
512
 
529
- export function invokeAgentContactToJSON(
530
- invokeAgentContact: InvokeAgentContact,
531
- ): string {
532
- return JSON.stringify(
533
- InvokeAgentContact$outboundSchema.parse(invokeAgentContact),
534
- );
513
+ export function contactToJSON(contact: Contact): string {
514
+ return JSON.stringify(Contact$outboundSchema.parse(contact));
535
515
  }
536
516
 
537
517
  /** @internal */
@@ -559,15 +539,15 @@ export function invokeAgentThreadToJSON(
559
539
  }
560
540
 
561
541
  /** @internal */
562
- export type InvokeAgentMemory$Outbound = {
542
+ export type Memory$Outbound = {
563
543
  entity_id: string;
564
544
  };
565
545
 
566
546
  /** @internal */
567
- export const InvokeAgentMemory$outboundSchema: z.ZodType<
568
- InvokeAgentMemory$Outbound,
547
+ export const Memory$outboundSchema: z.ZodType<
548
+ Memory$Outbound,
569
549
  z.ZodTypeDef,
570
- InvokeAgentMemory
550
+ Memory
571
551
  > = z.object({
572
552
  entityId: z.string(),
573
553
  }).transform((v) => {
@@ -576,12 +556,8 @@ export const InvokeAgentMemory$outboundSchema: z.ZodType<
576
556
  });
577
557
  });
578
558
 
579
- export function invokeAgentMemoryToJSON(
580
- invokeAgentMemory: InvokeAgentMemory,
581
- ): string {
582
- return JSON.stringify(
583
- InvokeAgentMemory$outboundSchema.parse(invokeAgentMemory),
584
- );
559
+ export function memoryToJSON(memory: Memory): string {
560
+ return JSON.stringify(Memory$outboundSchema.parse(memory));
585
561
  }
586
562
 
587
563
  /** @internal */
@@ -590,76 +566,73 @@ export const InvokeAgentEngine$outboundSchema: z.ZodNativeEnum<
590
566
  > = z.nativeEnum(InvokeAgentEngine);
591
567
 
592
568
  /** @internal */
593
- export type InvokeAgentConfiguration$Outbound = {
569
+ export type Configuration$Outbound = {
594
570
  blocking: boolean;
595
571
  };
596
572
 
597
573
  /** @internal */
598
- export const InvokeAgentConfiguration$outboundSchema: z.ZodType<
599
- InvokeAgentConfiguration$Outbound,
574
+ export const Configuration$outboundSchema: z.ZodType<
575
+ Configuration$Outbound,
600
576
  z.ZodTypeDef,
601
- InvokeAgentConfiguration
577
+ Configuration
602
578
  > = z.object({
603
579
  blocking: z.boolean().default(false),
604
580
  });
605
581
 
606
- export function invokeAgentConfigurationToJSON(
607
- invokeAgentConfiguration: InvokeAgentConfiguration,
608
- ): string {
609
- return JSON.stringify(
610
- InvokeAgentConfiguration$outboundSchema.parse(invokeAgentConfiguration),
611
- );
582
+ export function configurationToJSON(configuration: Configuration): string {
583
+ return JSON.stringify(Configuration$outboundSchema.parse(configuration));
612
584
  }
613
585
 
614
586
  /** @internal */
615
- export type InvokeAgentRequestBody$Outbound = {
587
+ export type InvokeAgentA2AInvokeRequest$Outbound = {
616
588
  task_id?: string | undefined;
617
- message: InvokeAgentA2AMessage$Outbound;
589
+ message: A2AMessage$Outbound;
618
590
  variables?: { [k: string]: any } | undefined;
619
- identity?: InvokeAgentIdentity$Outbound | undefined;
620
- contact?: InvokeAgentContact$Outbound | undefined;
591
+ identity?: Identity$Outbound | undefined;
592
+ contact?: Contact$Outbound | undefined;
621
593
  thread?: InvokeAgentThread$Outbound | undefined;
622
- memory?: InvokeAgentMemory$Outbound | undefined;
594
+ memory?: Memory$Outbound | undefined;
623
595
  metadata?: { [k: string]: any } | undefined;
624
596
  engine?: string | undefined;
625
- configuration?: InvokeAgentConfiguration$Outbound | undefined;
597
+ configuration?: Configuration$Outbound | undefined;
626
598
  };
627
599
 
628
600
  /** @internal */
629
- export const InvokeAgentRequestBody$outboundSchema: z.ZodType<
630
- InvokeAgentRequestBody$Outbound,
601
+ export const InvokeAgentA2AInvokeRequest$outboundSchema: z.ZodType<
602
+ InvokeAgentA2AInvokeRequest$Outbound,
631
603
  z.ZodTypeDef,
632
- InvokeAgentRequestBody
604
+ InvokeAgentA2AInvokeRequest
633
605
  > = z.object({
634
606
  taskId: z.string().optional(),
635
- message: z.lazy(() => InvokeAgentA2AMessage$outboundSchema),
607
+ message: z.lazy(() => A2AMessage$outboundSchema),
636
608
  variables: z.record(z.any()).optional(),
637
- identity: z.lazy(() => InvokeAgentIdentity$outboundSchema).optional(),
638
- contact: z.lazy(() => InvokeAgentContact$outboundSchema).optional(),
609
+ identity: z.lazy(() => Identity$outboundSchema).optional(),
610
+ contact: z.lazy(() => Contact$outboundSchema).optional(),
639
611
  thread: z.lazy(() => InvokeAgentThread$outboundSchema).optional(),
640
- memory: z.lazy(() => InvokeAgentMemory$outboundSchema).optional(),
612
+ memory: z.lazy(() => Memory$outboundSchema).optional(),
641
613
  metadata: z.record(z.any()).optional(),
642
614
  engine: InvokeAgentEngine$outboundSchema.optional(),
643
- configuration: z.lazy(() => InvokeAgentConfiguration$outboundSchema)
644
- .optional(),
615
+ configuration: z.lazy(() => Configuration$outboundSchema).optional(),
645
616
  }).transform((v) => {
646
617
  return remap$(v, {
647
618
  taskId: "task_id",
648
619
  });
649
620
  });
650
621
 
651
- export function invokeAgentRequestBodyToJSON(
652
- invokeAgentRequestBody: InvokeAgentRequestBody,
622
+ export function invokeAgentA2AInvokeRequestToJSON(
623
+ invokeAgentA2AInvokeRequest: InvokeAgentA2AInvokeRequest,
653
624
  ): string {
654
625
  return JSON.stringify(
655
- InvokeAgentRequestBody$outboundSchema.parse(invokeAgentRequestBody),
626
+ InvokeAgentA2AInvokeRequest$outboundSchema.parse(
627
+ invokeAgentA2AInvokeRequest,
628
+ ),
656
629
  );
657
630
  }
658
631
 
659
632
  /** @internal */
660
633
  export type InvokeAgentRequest$Outbound = {
661
634
  key: string;
662
- RequestBody?: InvokeAgentRequestBody$Outbound | undefined;
635
+ RequestBody?: InvokeAgentA2AInvokeRequest$Outbound | undefined;
663
636
  };
664
637
 
665
638
  /** @internal */
@@ -669,7 +642,8 @@ export const InvokeAgentRequest$outboundSchema: z.ZodType<
669
642
  InvokeAgentRequest
670
643
  > = z.object({
671
644
  key: z.string(),
672
- requestBody: z.lazy(() => InvokeAgentRequestBody$outboundSchema).optional(),
645
+ requestBody: z.lazy(() => InvokeAgentA2AInvokeRequest$outboundSchema)
646
+ .optional(),
673
647
  }).transform((v) => {
674
648
  return remap$(v, {
675
649
  requestBody: "RequestBody",