@orq-ai/node 3.13.6 → 3.13.8

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 (667) hide show
  1. package/README.md +0 -1
  2. package/RUNTIMES.md +6 -6
  3. package/bin/mcp-server.js +330 -330
  4. package/bin/mcp-server.js.map +168 -168
  5. package/examples/package-lock.json +1 -1
  6. package/funcs/agentsList.js +1 -1
  7. package/funcs/agentsList.js.map +1 -1
  8. package/funcs/agentsListActions.js +1 -1
  9. package/funcs/agentsListActions.js.map +1 -1
  10. package/funcs/agentsListTasks.js +1 -1
  11. package/funcs/agentsListTasks.js.map +1 -1
  12. package/funcs/agentsRetrieve.js +1 -1
  13. package/funcs/agentsRetrieve.js.map +1 -1
  14. package/funcs/agentsRetrieveAction.js +1 -1
  15. package/funcs/agentsRetrieveAction.js.map +1 -1
  16. package/funcs/agentsRetrieveTask.js +1 -1
  17. package/funcs/agentsRetrieveTask.js.map +1 -1
  18. package/funcs/agentsRun.js +1 -1
  19. package/funcs/agentsRun.js.map +1 -1
  20. package/funcs/agentsStreamRun.js +1 -1
  21. package/funcs/agentsStreamRun.js.map +1 -1
  22. package/funcs/budgetsCreate.js +1 -1
  23. package/funcs/budgetsCreate.js.map +1 -1
  24. package/funcs/budgetsDelete.js +1 -1
  25. package/funcs/budgetsDelete.js.map +1 -1
  26. package/funcs/budgetsGet.js +1 -1
  27. package/funcs/budgetsGet.js.map +1 -1
  28. package/funcs/budgetsList.js +1 -1
  29. package/funcs/budgetsList.js.map +1 -1
  30. package/funcs/budgetsUpdate.js +1 -1
  31. package/funcs/budgetsUpdate.js.map +1 -1
  32. package/funcs/chunkingParse.js +1 -1
  33. package/funcs/chunkingParse.js.map +1 -1
  34. package/funcs/contactsCreate.js +1 -1
  35. package/funcs/contactsCreate.js.map +1 -1
  36. package/funcs/contactsDelete.js +1 -1
  37. package/funcs/contactsDelete.js.map +1 -1
  38. package/funcs/contactsList.js +1 -1
  39. package/funcs/contactsList.js.map +1 -1
  40. package/funcs/contactsRetrieve.js +1 -1
  41. package/funcs/contactsRetrieve.js.map +1 -1
  42. package/funcs/contactsUpdate.js +1 -1
  43. package/funcs/contactsUpdate.js.map +1 -1
  44. package/funcs/datasetsClear.js +1 -1
  45. package/funcs/datasetsClear.js.map +1 -1
  46. package/funcs/datasetsCreate.js +1 -1
  47. package/funcs/datasetsCreate.js.map +1 -1
  48. package/funcs/datasetsCreateDatapoint.js +1 -1
  49. package/funcs/datasetsCreateDatapoint.js.map +1 -1
  50. package/funcs/datasetsDelete.js +1 -1
  51. package/funcs/datasetsDelete.js.map +1 -1
  52. package/funcs/datasetsDeleteDatapoint.js +1 -1
  53. package/funcs/datasetsDeleteDatapoint.js.map +1 -1
  54. package/funcs/datasetsList.js +1 -1
  55. package/funcs/datasetsList.js.map +1 -1
  56. package/funcs/datasetsListDatapoints.js +1 -1
  57. package/funcs/datasetsListDatapoints.js.map +1 -1
  58. package/funcs/datasetsRetrieve.js +1 -1
  59. package/funcs/datasetsRetrieve.js.map +1 -1
  60. package/funcs/datasetsRetrieveDatapoint.js +1 -1
  61. package/funcs/datasetsRetrieveDatapoint.js.map +1 -1
  62. package/funcs/datasetsUpdate.js +1 -1
  63. package/funcs/datasetsUpdate.js.map +1 -1
  64. package/funcs/datasetsUpdateDatapoint.js +1 -1
  65. package/funcs/datasetsUpdateDatapoint.js.map +1 -1
  66. package/funcs/deploymentsGetConfig.js +1 -1
  67. package/funcs/deploymentsGetConfig.js.map +1 -1
  68. package/funcs/deploymentsInvoke.js +1 -1
  69. package/funcs/deploymentsInvoke.js.map +1 -1
  70. package/funcs/deploymentsList.js +1 -1
  71. package/funcs/deploymentsList.js.map +1 -1
  72. package/funcs/deploymentsMetricsCreate.js +1 -1
  73. package/funcs/deploymentsMetricsCreate.js.map +1 -1
  74. package/funcs/deploymentsStream.js +1 -1
  75. package/funcs/deploymentsStream.js.map +1 -1
  76. package/funcs/evalsAgeAppropriate.js +1 -1
  77. package/funcs/evalsAgeAppropriate.js.map +1 -1
  78. package/funcs/evalsAll.js +1 -1
  79. package/funcs/evalsAll.js.map +1 -1
  80. package/funcs/evalsBertScore.js +1 -1
  81. package/funcs/evalsBertScore.js.map +1 -1
  82. package/funcs/evalsBleuScore.js +1 -1
  83. package/funcs/evalsBleuScore.js.map +1 -1
  84. package/funcs/evalsBotDetection.js +1 -1
  85. package/funcs/evalsBotDetection.js.map +1 -1
  86. package/funcs/evalsContains.js +1 -1
  87. package/funcs/evalsContains.js.map +1 -1
  88. package/funcs/evalsContainsAll.js +1 -1
  89. package/funcs/evalsContainsAll.js.map +1 -1
  90. package/funcs/evalsContainsAny.js +1 -1
  91. package/funcs/evalsContainsAny.js.map +1 -1
  92. package/funcs/evalsContainsEmail.js +1 -1
  93. package/funcs/evalsContainsEmail.js.map +1 -1
  94. package/funcs/evalsContainsNone.js +1 -1
  95. package/funcs/evalsContainsNone.js.map +1 -1
  96. package/funcs/evalsContainsUrl.js +1 -1
  97. package/funcs/evalsContainsUrl.js.map +1 -1
  98. package/funcs/evalsContainsValidLink.js +1 -1
  99. package/funcs/evalsContainsValidLink.js.map +1 -1
  100. package/funcs/evalsCreate.js +1 -1
  101. package/funcs/evalsCreate.js.map +1 -1
  102. package/funcs/evalsDelete.js +1 -1
  103. package/funcs/evalsDelete.js.map +1 -1
  104. package/funcs/evalsEndsWith.js +1 -1
  105. package/funcs/evalsEndsWith.js.map +1 -1
  106. package/funcs/evalsExactMatch.js +1 -1
  107. package/funcs/evalsExactMatch.js.map +1 -1
  108. package/funcs/evalsFactCheckingKnowledgeBase.js +1 -1
  109. package/funcs/evalsFactCheckingKnowledgeBase.js.map +1 -1
  110. package/funcs/evalsGrammar.js +1 -1
  111. package/funcs/evalsGrammar.js.map +1 -1
  112. package/funcs/evalsInvoke.js +1 -1
  113. package/funcs/evalsInvoke.js.map +1 -1
  114. package/funcs/evalsLengthBetween.js +1 -1
  115. package/funcs/evalsLengthBetween.js.map +1 -1
  116. package/funcs/evalsLengthGreaterThan.js +1 -1
  117. package/funcs/evalsLengthGreaterThan.js.map +1 -1
  118. package/funcs/evalsLengthLessThan.js +1 -1
  119. package/funcs/evalsLengthLessThan.js.map +1 -1
  120. package/funcs/evalsLocalization.js +1 -1
  121. package/funcs/evalsLocalization.js.map +1 -1
  122. package/funcs/evalsPii.js +1 -1
  123. package/funcs/evalsPii.js.map +1 -1
  124. package/funcs/evalsRagasCoherence.js +1 -1
  125. package/funcs/evalsRagasCoherence.js.map +1 -1
  126. package/funcs/evalsRagasConciseness.js +1 -1
  127. package/funcs/evalsRagasConciseness.js.map +1 -1
  128. package/funcs/evalsRagasContextEntitiesRecall.js +1 -1
  129. package/funcs/evalsRagasContextEntitiesRecall.js.map +1 -1
  130. package/funcs/evalsRagasContextPrecision.js +1 -1
  131. package/funcs/evalsRagasContextPrecision.js.map +1 -1
  132. package/funcs/evalsRagasContextRecall.js +1 -1
  133. package/funcs/evalsRagasContextRecall.js.map +1 -1
  134. package/funcs/evalsRagasCorrectness.js +1 -1
  135. package/funcs/evalsRagasCorrectness.js.map +1 -1
  136. package/funcs/evalsRagasFaithfulness.js +1 -1
  137. package/funcs/evalsRagasFaithfulness.js.map +1 -1
  138. package/funcs/evalsRagasHarmfulness.js +1 -1
  139. package/funcs/evalsRagasHarmfulness.js.map +1 -1
  140. package/funcs/evalsRagasMaliciousness.js +1 -1
  141. package/funcs/evalsRagasMaliciousness.js.map +1 -1
  142. package/funcs/evalsRagasNoiseSensitivity.js +1 -1
  143. package/funcs/evalsRagasNoiseSensitivity.js.map +1 -1
  144. package/funcs/evalsRagasResponseRelevancy.js +1 -1
  145. package/funcs/evalsRagasResponseRelevancy.js.map +1 -1
  146. package/funcs/evalsRagasSummarization.js +1 -1
  147. package/funcs/evalsRagasSummarization.js.map +1 -1
  148. package/funcs/evalsSentimentClassification.js +1 -1
  149. package/funcs/evalsSentimentClassification.js.map +1 -1
  150. package/funcs/evalsSummarization.js +1 -1
  151. package/funcs/evalsSummarization.js.map +1 -1
  152. package/funcs/evalsToneOfVoice.js +1 -1
  153. package/funcs/evalsToneOfVoice.js.map +1 -1
  154. package/funcs/evalsTranslation.js +1 -1
  155. package/funcs/evalsTranslation.js.map +1 -1
  156. package/funcs/evalsUpdate.js +1 -1
  157. package/funcs/evalsUpdate.js.map +1 -1
  158. package/funcs/evalsValidJson.js +1 -1
  159. package/funcs/evalsValidJson.js.map +1 -1
  160. package/funcs/feedbackCreate.js +1 -1
  161. package/funcs/feedbackCreate.js.map +1 -1
  162. package/funcs/filesCreate.js +1 -1
  163. package/funcs/filesCreate.js.map +1 -1
  164. package/funcs/filesDelete.js +1 -1
  165. package/funcs/filesDelete.js.map +1 -1
  166. package/funcs/filesGet.js +1 -1
  167. package/funcs/filesGet.js.map +1 -1
  168. package/funcs/filesList.js +1 -1
  169. package/funcs/filesList.js.map +1 -1
  170. package/funcs/knowledgeCreate.js +1 -1
  171. package/funcs/knowledgeCreate.js.map +1 -1
  172. package/funcs/knowledgeCreateChunks.js +1 -1
  173. package/funcs/knowledgeCreateChunks.js.map +1 -1
  174. package/funcs/knowledgeCreateDatasource.js +1 -1
  175. package/funcs/knowledgeCreateDatasource.js.map +1 -1
  176. package/funcs/knowledgeDelete.js +1 -1
  177. package/funcs/knowledgeDelete.js.map +1 -1
  178. package/funcs/knowledgeDeleteChunk.js +1 -1
  179. package/funcs/knowledgeDeleteChunk.js.map +1 -1
  180. package/funcs/knowledgeDeleteDatasource.js +1 -1
  181. package/funcs/knowledgeDeleteDatasource.js.map +1 -1
  182. package/funcs/knowledgeList.js +1 -1
  183. package/funcs/knowledgeList.js.map +1 -1
  184. package/funcs/knowledgeListChunks.js +1 -1
  185. package/funcs/knowledgeListChunks.js.map +1 -1
  186. package/funcs/knowledgeListDatasources.js +1 -1
  187. package/funcs/knowledgeListDatasources.js.map +1 -1
  188. package/funcs/knowledgeRetrieve.js +1 -1
  189. package/funcs/knowledgeRetrieve.js.map +1 -1
  190. package/funcs/knowledgeRetrieveChunk.js +1 -1
  191. package/funcs/knowledgeRetrieveChunk.js.map +1 -1
  192. package/funcs/knowledgeRetrieveDatasource.js +1 -1
  193. package/funcs/knowledgeRetrieveDatasource.js.map +1 -1
  194. package/funcs/knowledgeSearch.js +1 -1
  195. package/funcs/knowledgeSearch.js.map +1 -1
  196. package/funcs/knowledgeUpdate.js +1 -1
  197. package/funcs/knowledgeUpdate.js.map +1 -1
  198. package/funcs/knowledgeUpdateChunk.js +1 -1
  199. package/funcs/knowledgeUpdateChunk.js.map +1 -1
  200. package/funcs/knowledgeUpdateDatasource.js +1 -1
  201. package/funcs/knowledgeUpdateDatasource.js.map +1 -1
  202. package/funcs/memoryStoresCreate.js +1 -1
  203. package/funcs/memoryStoresCreate.js.map +1 -1
  204. package/funcs/memoryStoresCreateDocument.js +1 -1
  205. package/funcs/memoryStoresCreateDocument.js.map +1 -1
  206. package/funcs/memoryStoresCreateMemory.js +1 -1
  207. package/funcs/memoryStoresCreateMemory.js.map +1 -1
  208. package/funcs/memoryStoresDelete.js +1 -1
  209. package/funcs/memoryStoresDelete.js.map +1 -1
  210. package/funcs/memoryStoresDeleteDocument.js +1 -1
  211. package/funcs/memoryStoresDeleteDocument.js.map +1 -1
  212. package/funcs/memoryStoresDeleteMemory.js +1 -1
  213. package/funcs/memoryStoresDeleteMemory.js.map +1 -1
  214. package/funcs/memoryStoresList.js +1 -1
  215. package/funcs/memoryStoresList.js.map +1 -1
  216. package/funcs/memoryStoresListDocuments.js +1 -1
  217. package/funcs/memoryStoresListDocuments.js.map +1 -1
  218. package/funcs/memoryStoresListMemories.js +1 -1
  219. package/funcs/memoryStoresListMemories.js.map +1 -1
  220. package/funcs/memoryStoresRetrieve.js +1 -1
  221. package/funcs/memoryStoresRetrieve.js.map +1 -1
  222. package/funcs/memoryStoresRetrieveDocument.js +1 -1
  223. package/funcs/memoryStoresRetrieveDocument.js.map +1 -1
  224. package/funcs/memoryStoresRetrieveMemory.js +1 -1
  225. package/funcs/memoryStoresRetrieveMemory.js.map +1 -1
  226. package/funcs/memoryStoresUpdate.js +1 -1
  227. package/funcs/memoryStoresUpdate.js.map +1 -1
  228. package/funcs/memoryStoresUpdateDocument.js +1 -1
  229. package/funcs/memoryStoresUpdateDocument.js.map +1 -1
  230. package/funcs/memoryStoresUpdateMemory.js +1 -1
  231. package/funcs/memoryStoresUpdateMemory.js.map +1 -1
  232. package/funcs/modelsList.js +1 -1
  233. package/funcs/modelsList.js.map +1 -1
  234. package/funcs/promptsCreate.js +1 -1
  235. package/funcs/promptsCreate.js.map +1 -1
  236. package/funcs/promptsDelete.js +1 -1
  237. package/funcs/promptsDelete.js.map +1 -1
  238. package/funcs/promptsGetVersion.js +1 -1
  239. package/funcs/promptsGetVersion.js.map +1 -1
  240. package/funcs/promptsList.js +1 -1
  241. package/funcs/promptsList.js.map +1 -1
  242. package/funcs/promptsListVersions.js +1 -1
  243. package/funcs/promptsListVersions.js.map +1 -1
  244. package/funcs/promptsRetrieve.js +1 -1
  245. package/funcs/promptsRetrieve.js.map +1 -1
  246. package/funcs/promptsUpdate.js +1 -1
  247. package/funcs/promptsUpdate.js.map +1 -1
  248. package/funcs/remoteconfigsRetrieve.js +1 -1
  249. package/funcs/remoteconfigsRetrieve.js.map +1 -1
  250. package/funcs/toolsCreate.js +1 -1
  251. package/funcs/toolsCreate.js.map +1 -1
  252. package/funcs/toolsDelete.js +1 -1
  253. package/funcs/toolsDelete.js.map +1 -1
  254. package/funcs/toolsDuplicate.js +1 -1
  255. package/funcs/toolsDuplicate.js.map +1 -1
  256. package/funcs/toolsList.js +1 -1
  257. package/funcs/toolsList.js.map +1 -1
  258. package/funcs/toolsRetrieve.js +1 -1
  259. package/funcs/toolsRetrieve.js.map +1 -1
  260. package/funcs/toolsUpdate.js +1 -1
  261. package/funcs/toolsUpdate.js.map +1 -1
  262. package/jsr.json +1 -1
  263. package/lib/config.d.ts +3 -3
  264. package/lib/config.js +3 -3
  265. package/lib/config.js.map +1 -1
  266. package/mcp-server/mcp-server.js +1 -1
  267. package/mcp-server/server.js +1 -1
  268. package/models/operations/createbudget.js +2 -2
  269. package/models/operations/createcontact.js +2 -2
  270. package/models/operations/createdataset.js +2 -2
  271. package/models/operations/createdatasetitem.js +2 -2
  272. package/models/operations/createdatasource.js +2 -2
  273. package/models/operations/createeval.js +28 -28
  274. package/models/operations/createtool.js +14 -14
  275. package/models/operations/duplicatetool.js +10 -10
  276. package/models/operations/fileget.js +2 -2
  277. package/models/operations/filelist.js +2 -2
  278. package/models/operations/fileupload.js +2 -2
  279. package/models/operations/getagent.js +2 -2
  280. package/models/operations/getalltools.js +10 -10
  281. package/models/operations/getbudget.js +2 -2
  282. package/models/operations/getevals.js +28 -28
  283. package/models/operations/listagents.js +2 -2
  284. package/models/operations/listbudgets.js +2 -2
  285. package/models/operations/listcontacts.js +2 -2
  286. package/models/operations/listdatasetdatapoints.js +2 -2
  287. package/models/operations/listdatasets.js +2 -2
  288. package/models/operations/listdatasources.js +2 -2
  289. package/models/operations/retrievecontact.js +2 -2
  290. package/models/operations/retrievedatapoint.js +2 -2
  291. package/models/operations/retrievedataset.js +2 -2
  292. package/models/operations/retrievedatasource.js +2 -2
  293. package/models/operations/retrievetool.js +10 -10
  294. package/models/operations/runagent.js +2 -2
  295. package/models/operations/streamrunagent.js +2 -2
  296. package/models/operations/updatebudget.js +2 -2
  297. package/models/operations/updatecontact.js +2 -2
  298. package/models/operations/updatedatapoint.js +2 -2
  299. package/models/operations/updatedataset.js +2 -2
  300. package/models/operations/updatedatasource.js +2 -2
  301. package/models/operations/updateeval.js +28 -28
  302. package/models/operations/updatetool.js +14 -14
  303. package/package.json +1 -1
  304. package/packages/orq-rc/README.md +98 -94
  305. package/packages/orq-rc/RUNTIMES.md +6 -6
  306. package/packages/orq-rc/docs/sdks/agents/README.md +269 -0
  307. package/packages/orq-rc/examples/package-lock.json +1 -1
  308. package/packages/orq-rc/jsr.json +1 -1
  309. package/packages/orq-rc/package-lock.json +2 -2
  310. package/packages/orq-rc/package.json +1 -1
  311. package/packages/orq-rc/src/funcs/agentsInvoke.ts +167 -0
  312. package/packages/orq-rc/src/funcs/agentsList.ts +1 -1
  313. package/packages/orq-rc/src/funcs/agentsListActions.ts +1 -1
  314. package/packages/orq-rc/src/funcs/agentsListTasks.ts +1 -1
  315. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +1 -1
  316. package/packages/orq-rc/src/funcs/agentsRetrieveAction.ts +1 -1
  317. package/packages/orq-rc/src/funcs/agentsRetrieveTask.ts +1 -1
  318. package/packages/orq-rc/src/funcs/agentsRun.ts +1 -1
  319. package/packages/orq-rc/src/funcs/agentsStream.ts +191 -0
  320. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +1 -1
  321. package/packages/orq-rc/src/funcs/budgetsCreate.ts +1 -1
  322. package/packages/orq-rc/src/funcs/budgetsDelete.ts +1 -1
  323. package/packages/orq-rc/src/funcs/budgetsGet.ts +1 -1
  324. package/packages/orq-rc/src/funcs/budgetsList.ts +1 -1
  325. package/packages/orq-rc/src/funcs/budgetsUpdate.ts +1 -1
  326. package/packages/orq-rc/src/funcs/chunkingParse.ts +1 -1
  327. package/packages/orq-rc/src/funcs/contactsCreate.ts +1 -1
  328. package/packages/orq-rc/src/funcs/contactsDelete.ts +1 -1
  329. package/packages/orq-rc/src/funcs/contactsList.ts +1 -1
  330. package/packages/orq-rc/src/funcs/contactsRetrieve.ts +1 -1
  331. package/packages/orq-rc/src/funcs/contactsUpdate.ts +1 -1
  332. package/packages/orq-rc/src/funcs/datasetsClear.ts +1 -1
  333. package/packages/orq-rc/src/funcs/datasetsCreate.ts +1 -1
  334. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +1 -1
  335. package/packages/orq-rc/src/funcs/datasetsDelete.ts +1 -1
  336. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +1 -1
  337. package/packages/orq-rc/src/funcs/datasetsList.ts +1 -1
  338. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +1 -1
  339. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +1 -1
  340. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +1 -1
  341. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +1 -1
  342. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +1 -1
  343. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +1 -1
  344. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +1 -1
  345. package/packages/orq-rc/src/funcs/deploymentsList.ts +1 -1
  346. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +1 -1
  347. package/packages/orq-rc/src/funcs/deploymentsStream.ts +1 -1
  348. package/packages/orq-rc/src/funcs/evalsAgeAppropriate.ts +1 -1
  349. package/packages/orq-rc/src/funcs/evalsAll.ts +1 -1
  350. package/packages/orq-rc/src/funcs/evalsBertScore.ts +1 -1
  351. package/packages/orq-rc/src/funcs/evalsBleuScore.ts +1 -1
  352. package/packages/orq-rc/src/funcs/evalsBotDetection.ts +1 -1
  353. package/packages/orq-rc/src/funcs/evalsContains.ts +1 -1
  354. package/packages/orq-rc/src/funcs/evalsContainsAll.ts +1 -1
  355. package/packages/orq-rc/src/funcs/evalsContainsAny.ts +1 -1
  356. package/packages/orq-rc/src/funcs/evalsContainsEmail.ts +1 -1
  357. package/packages/orq-rc/src/funcs/evalsContainsNone.ts +1 -1
  358. package/packages/orq-rc/src/funcs/evalsContainsUrl.ts +1 -1
  359. package/packages/orq-rc/src/funcs/evalsContainsValidLink.ts +1 -1
  360. package/packages/orq-rc/src/funcs/evalsCreate.ts +1 -1
  361. package/packages/orq-rc/src/funcs/evalsDelete.ts +1 -1
  362. package/packages/orq-rc/src/funcs/evalsEndsWith.ts +1 -1
  363. package/packages/orq-rc/src/funcs/evalsExactMatch.ts +1 -1
  364. package/packages/orq-rc/src/funcs/evalsFactCheckingKnowledgeBase.ts +1 -1
  365. package/packages/orq-rc/src/funcs/evalsGrammar.ts +1 -1
  366. package/packages/orq-rc/src/funcs/evalsInvoke.ts +1 -1
  367. package/packages/orq-rc/src/funcs/evalsLengthBetween.ts +1 -1
  368. package/packages/orq-rc/src/funcs/evalsLengthGreaterThan.ts +1 -1
  369. package/packages/orq-rc/src/funcs/evalsLengthLessThan.ts +1 -1
  370. package/packages/orq-rc/src/funcs/evalsLocalization.ts +1 -1
  371. package/packages/orq-rc/src/funcs/evalsPii.ts +1 -1
  372. package/packages/orq-rc/src/funcs/evalsRagasCoherence.ts +1 -1
  373. package/packages/orq-rc/src/funcs/evalsRagasConciseness.ts +1 -1
  374. package/packages/orq-rc/src/funcs/evalsRagasContextEntitiesRecall.ts +1 -1
  375. package/packages/orq-rc/src/funcs/evalsRagasContextPrecision.ts +1 -1
  376. package/packages/orq-rc/src/funcs/evalsRagasContextRecall.ts +1 -1
  377. package/packages/orq-rc/src/funcs/evalsRagasCorrectness.ts +1 -1
  378. package/packages/orq-rc/src/funcs/evalsRagasFaithfulness.ts +1 -1
  379. package/packages/orq-rc/src/funcs/evalsRagasHarmfulness.ts +1 -1
  380. package/packages/orq-rc/src/funcs/evalsRagasMaliciousness.ts +1 -1
  381. package/packages/orq-rc/src/funcs/evalsRagasNoiseSensitivity.ts +1 -1
  382. package/packages/orq-rc/src/funcs/evalsRagasResponseRelevancy.ts +1 -1
  383. package/packages/orq-rc/src/funcs/evalsRagasSummarization.ts +1 -1
  384. package/packages/orq-rc/src/funcs/evalsSentimentClassification.ts +1 -1
  385. package/packages/orq-rc/src/funcs/evalsSummarization.ts +1 -1
  386. package/packages/orq-rc/src/funcs/evalsToneOfVoice.ts +1 -1
  387. package/packages/orq-rc/src/funcs/evalsTranslation.ts +1 -1
  388. package/packages/orq-rc/src/funcs/evalsUpdate.ts +1 -1
  389. package/packages/orq-rc/src/funcs/evalsValidJson.ts +1 -1
  390. package/packages/orq-rc/src/funcs/feedbackCreate.ts +1 -1
  391. package/packages/orq-rc/src/funcs/filesCreate.ts +1 -1
  392. package/packages/orq-rc/src/funcs/filesDelete.ts +1 -1
  393. package/packages/orq-rc/src/funcs/filesGet.ts +1 -1
  394. package/packages/orq-rc/src/funcs/filesList.ts +1 -1
  395. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +1 -1
  396. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +1 -1
  397. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +1 -1
  398. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +1 -1
  399. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +1 -1
  400. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +1 -1
  401. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +1 -1
  402. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +1 -1
  403. package/packages/orq-rc/src/funcs/knowledgeList.ts +1 -1
  404. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +1 -1
  405. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +1 -1
  406. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +1 -1
  407. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +1 -1
  408. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +1 -1
  409. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +1 -1
  410. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +1 -1
  411. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +1 -1
  412. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +1 -1
  413. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +1 -1
  414. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +1 -1
  415. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +1 -1
  416. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +1 -1
  417. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +1 -1
  418. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +1 -1
  419. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +1 -1
  420. package/packages/orq-rc/src/funcs/memoryStoresList.ts +1 -1
  421. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +1 -1
  422. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +1 -1
  423. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +1 -1
  424. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +1 -1
  425. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +1 -1
  426. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +1 -1
  427. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +1 -1
  428. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +1 -1
  429. package/packages/orq-rc/src/funcs/modelsList.ts +1 -1
  430. package/packages/orq-rc/src/funcs/promptsCreate.ts +1 -1
  431. package/packages/orq-rc/src/funcs/promptsDelete.ts +1 -1
  432. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +1 -1
  433. package/packages/orq-rc/src/funcs/promptsList.ts +1 -1
  434. package/packages/orq-rc/src/funcs/promptsListVersions.ts +1 -1
  435. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +1 -1
  436. package/packages/orq-rc/src/funcs/promptsUpdate.ts +1 -1
  437. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +1 -1
  438. package/packages/orq-rc/src/funcs/toolsCreate.ts +1 -1
  439. package/packages/orq-rc/src/funcs/toolsDelete.ts +1 -1
  440. package/packages/orq-rc/src/funcs/toolsDuplicate.ts +1 -1
  441. package/packages/orq-rc/src/funcs/toolsList.ts +1 -1
  442. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +1 -1
  443. package/packages/orq-rc/src/funcs/toolsUpdate.ts +1 -1
  444. package/packages/orq-rc/src/lib/config.ts +3 -3
  445. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  446. package/packages/orq-rc/src/mcp-server/server.ts +5 -1
  447. package/packages/orq-rc/src/mcp-server/tools/agentsInvoke.ts +37 -0
  448. package/packages/orq-rc/src/mcp-server/tools/agentsStream.ts +37 -0
  449. package/packages/orq-rc/src/models/errors/index.ts +1 -0
  450. package/packages/orq-rc/src/models/errors/streamagent.ts +80 -0
  451. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  452. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  453. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  454. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -8
  455. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  456. package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
  457. package/packages/orq-rc/src/models/operations/createprompt.ts +2 -0
  458. package/packages/orq-rc/src/models/operations/createtool.ts +10 -10
  459. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +1 -0
  460. package/packages/orq-rc/src/models/operations/deployments.ts +1 -0
  461. package/packages/orq-rc/src/models/operations/deploymentstream.ts +1 -0
  462. package/packages/orq-rc/src/models/operations/duplicatetool.ts +10 -10
  463. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  464. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  465. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  466. package/packages/orq-rc/src/models/operations/getagent.ts +2 -2
  467. package/packages/orq-rc/src/models/operations/getallprompts.ts +1 -0
  468. package/packages/orq-rc/src/models/operations/getalltools.ts +10 -10
  469. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  470. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  471. package/packages/orq-rc/src/models/operations/getoneprompt.ts +1 -0
  472. package/packages/orq-rc/src/models/operations/getpromptversion.ts +1 -0
  473. package/packages/orq-rc/src/models/operations/index.ts +2 -0
  474. package/packages/orq-rc/src/models/operations/invokeagent.ts +1561 -0
  475. package/packages/orq-rc/src/models/operations/listagents.ts +2 -2
  476. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  477. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  478. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -8
  479. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  480. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  481. package/packages/orq-rc/src/models/operations/listpromptversions.ts +1 -0
  482. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  483. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -8
  484. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  485. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  486. package/packages/orq-rc/src/models/operations/retrievetool.ts +10 -10
  487. package/packages/orq-rc/src/models/operations/runagent.ts +443 -374
  488. package/packages/orq-rc/src/models/operations/streamagent.ts +1365 -0
  489. package/packages/orq-rc/src/models/operations/streamrunagent.ts +207 -165
  490. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  491. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  492. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -8
  493. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  494. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  495. package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
  496. package/packages/orq-rc/src/models/operations/updatememorystore.ts +1 -0
  497. package/packages/orq-rc/src/models/operations/updateprompt.ts +2 -0
  498. package/packages/orq-rc/src/models/operations/updatetool.ts +10 -10
  499. package/packages/orq-rc/src/sdk/agents.ts +36 -0
  500. package/src/funcs/agentsList.ts +1 -1
  501. package/src/funcs/agentsListActions.ts +1 -1
  502. package/src/funcs/agentsListTasks.ts +1 -1
  503. package/src/funcs/agentsRetrieve.ts +1 -1
  504. package/src/funcs/agentsRetrieveAction.ts +1 -1
  505. package/src/funcs/agentsRetrieveTask.ts +1 -1
  506. package/src/funcs/agentsRun.ts +1 -1
  507. package/src/funcs/agentsStreamRun.ts +1 -1
  508. package/src/funcs/budgetsCreate.ts +1 -1
  509. package/src/funcs/budgetsDelete.ts +1 -1
  510. package/src/funcs/budgetsGet.ts +1 -1
  511. package/src/funcs/budgetsList.ts +1 -1
  512. package/src/funcs/budgetsUpdate.ts +1 -1
  513. package/src/funcs/chunkingParse.ts +1 -1
  514. package/src/funcs/contactsCreate.ts +1 -1
  515. package/src/funcs/contactsDelete.ts +1 -1
  516. package/src/funcs/contactsList.ts +1 -1
  517. package/src/funcs/contactsRetrieve.ts +1 -1
  518. package/src/funcs/contactsUpdate.ts +1 -1
  519. package/src/funcs/datasetsClear.ts +1 -1
  520. package/src/funcs/datasetsCreate.ts +1 -1
  521. package/src/funcs/datasetsCreateDatapoint.ts +1 -1
  522. package/src/funcs/datasetsDelete.ts +1 -1
  523. package/src/funcs/datasetsDeleteDatapoint.ts +1 -1
  524. package/src/funcs/datasetsList.ts +1 -1
  525. package/src/funcs/datasetsListDatapoints.ts +1 -1
  526. package/src/funcs/datasetsRetrieve.ts +1 -1
  527. package/src/funcs/datasetsRetrieveDatapoint.ts +1 -1
  528. package/src/funcs/datasetsUpdate.ts +1 -1
  529. package/src/funcs/datasetsUpdateDatapoint.ts +1 -1
  530. package/src/funcs/deploymentsGetConfig.ts +1 -1
  531. package/src/funcs/deploymentsInvoke.ts +1 -1
  532. package/src/funcs/deploymentsList.ts +1 -1
  533. package/src/funcs/deploymentsMetricsCreate.ts +1 -1
  534. package/src/funcs/deploymentsStream.ts +1 -1
  535. package/src/funcs/evalsAgeAppropriate.ts +1 -1
  536. package/src/funcs/evalsAll.ts +1 -1
  537. package/src/funcs/evalsBertScore.ts +1 -1
  538. package/src/funcs/evalsBleuScore.ts +1 -1
  539. package/src/funcs/evalsBotDetection.ts +1 -1
  540. package/src/funcs/evalsContains.ts +1 -1
  541. package/src/funcs/evalsContainsAll.ts +1 -1
  542. package/src/funcs/evalsContainsAny.ts +1 -1
  543. package/src/funcs/evalsContainsEmail.ts +1 -1
  544. package/src/funcs/evalsContainsNone.ts +1 -1
  545. package/src/funcs/evalsContainsUrl.ts +1 -1
  546. package/src/funcs/evalsContainsValidLink.ts +1 -1
  547. package/src/funcs/evalsCreate.ts +1 -1
  548. package/src/funcs/evalsDelete.ts +1 -1
  549. package/src/funcs/evalsEndsWith.ts +1 -1
  550. package/src/funcs/evalsExactMatch.ts +1 -1
  551. package/src/funcs/evalsFactCheckingKnowledgeBase.ts +1 -1
  552. package/src/funcs/evalsGrammar.ts +1 -1
  553. package/src/funcs/evalsInvoke.ts +1 -1
  554. package/src/funcs/evalsLengthBetween.ts +1 -1
  555. package/src/funcs/evalsLengthGreaterThan.ts +1 -1
  556. package/src/funcs/evalsLengthLessThan.ts +1 -1
  557. package/src/funcs/evalsLocalization.ts +1 -1
  558. package/src/funcs/evalsPii.ts +1 -1
  559. package/src/funcs/evalsRagasCoherence.ts +1 -1
  560. package/src/funcs/evalsRagasConciseness.ts +1 -1
  561. package/src/funcs/evalsRagasContextEntitiesRecall.ts +1 -1
  562. package/src/funcs/evalsRagasContextPrecision.ts +1 -1
  563. package/src/funcs/evalsRagasContextRecall.ts +1 -1
  564. package/src/funcs/evalsRagasCorrectness.ts +1 -1
  565. package/src/funcs/evalsRagasFaithfulness.ts +1 -1
  566. package/src/funcs/evalsRagasHarmfulness.ts +1 -1
  567. package/src/funcs/evalsRagasMaliciousness.ts +1 -1
  568. package/src/funcs/evalsRagasNoiseSensitivity.ts +1 -1
  569. package/src/funcs/evalsRagasResponseRelevancy.ts +1 -1
  570. package/src/funcs/evalsRagasSummarization.ts +1 -1
  571. package/src/funcs/evalsSentimentClassification.ts +1 -1
  572. package/src/funcs/evalsSummarization.ts +1 -1
  573. package/src/funcs/evalsToneOfVoice.ts +1 -1
  574. package/src/funcs/evalsTranslation.ts +1 -1
  575. package/src/funcs/evalsUpdate.ts +1 -1
  576. package/src/funcs/evalsValidJson.ts +1 -1
  577. package/src/funcs/feedbackCreate.ts +1 -1
  578. package/src/funcs/filesCreate.ts +1 -1
  579. package/src/funcs/filesDelete.ts +1 -1
  580. package/src/funcs/filesGet.ts +1 -1
  581. package/src/funcs/filesList.ts +1 -1
  582. package/src/funcs/knowledgeCreate.ts +1 -1
  583. package/src/funcs/knowledgeCreateChunks.ts +1 -1
  584. package/src/funcs/knowledgeCreateDatasource.ts +1 -1
  585. package/src/funcs/knowledgeDelete.ts +1 -1
  586. package/src/funcs/knowledgeDeleteChunk.ts +1 -1
  587. package/src/funcs/knowledgeDeleteDatasource.ts +1 -1
  588. package/src/funcs/knowledgeList.ts +1 -1
  589. package/src/funcs/knowledgeListChunks.ts +1 -1
  590. package/src/funcs/knowledgeListDatasources.ts +1 -1
  591. package/src/funcs/knowledgeRetrieve.ts +1 -1
  592. package/src/funcs/knowledgeRetrieveChunk.ts +1 -1
  593. package/src/funcs/knowledgeRetrieveDatasource.ts +1 -1
  594. package/src/funcs/knowledgeSearch.ts +1 -1
  595. package/src/funcs/knowledgeUpdate.ts +1 -1
  596. package/src/funcs/knowledgeUpdateChunk.ts +1 -1
  597. package/src/funcs/knowledgeUpdateDatasource.ts +1 -1
  598. package/src/funcs/memoryStoresCreate.ts +1 -1
  599. package/src/funcs/memoryStoresCreateDocument.ts +1 -1
  600. package/src/funcs/memoryStoresCreateMemory.ts +1 -1
  601. package/src/funcs/memoryStoresDelete.ts +1 -1
  602. package/src/funcs/memoryStoresDeleteDocument.ts +1 -1
  603. package/src/funcs/memoryStoresDeleteMemory.ts +1 -1
  604. package/src/funcs/memoryStoresList.ts +1 -1
  605. package/src/funcs/memoryStoresListDocuments.ts +1 -1
  606. package/src/funcs/memoryStoresListMemories.ts +1 -1
  607. package/src/funcs/memoryStoresRetrieve.ts +1 -1
  608. package/src/funcs/memoryStoresRetrieveDocument.ts +1 -1
  609. package/src/funcs/memoryStoresRetrieveMemory.ts +1 -1
  610. package/src/funcs/memoryStoresUpdate.ts +1 -1
  611. package/src/funcs/memoryStoresUpdateDocument.ts +1 -1
  612. package/src/funcs/memoryStoresUpdateMemory.ts +1 -1
  613. package/src/funcs/modelsList.ts +1 -1
  614. package/src/funcs/promptsCreate.ts +1 -1
  615. package/src/funcs/promptsDelete.ts +1 -1
  616. package/src/funcs/promptsGetVersion.ts +1 -1
  617. package/src/funcs/promptsList.ts +1 -1
  618. package/src/funcs/promptsListVersions.ts +1 -1
  619. package/src/funcs/promptsRetrieve.ts +1 -1
  620. package/src/funcs/promptsUpdate.ts +1 -1
  621. package/src/funcs/remoteconfigsRetrieve.ts +1 -1
  622. package/src/funcs/toolsCreate.ts +1 -1
  623. package/src/funcs/toolsDelete.ts +1 -1
  624. package/src/funcs/toolsDuplicate.ts +1 -1
  625. package/src/funcs/toolsList.ts +1 -1
  626. package/src/funcs/toolsRetrieve.ts +1 -1
  627. package/src/funcs/toolsUpdate.ts +1 -1
  628. package/src/lib/config.ts +3 -3
  629. package/src/mcp-server/mcp-server.ts +1 -1
  630. package/src/mcp-server/server.ts +1 -1
  631. package/src/models/operations/createbudget.ts +2 -2
  632. package/src/models/operations/createcontact.ts +2 -2
  633. package/src/models/operations/createdataset.ts +2 -2
  634. package/src/models/operations/createdatasetitem.ts +2 -2
  635. package/src/models/operations/createdatasource.ts +2 -2
  636. package/src/models/operations/createeval.ts +28 -28
  637. package/src/models/operations/createtool.ts +14 -14
  638. package/src/models/operations/duplicatetool.ts +10 -10
  639. package/src/models/operations/fileget.ts +2 -2
  640. package/src/models/operations/filelist.ts +2 -2
  641. package/src/models/operations/fileupload.ts +2 -2
  642. package/src/models/operations/getagent.ts +2 -2
  643. package/src/models/operations/getalltools.ts +10 -10
  644. package/src/models/operations/getbudget.ts +2 -2
  645. package/src/models/operations/getevals.ts +28 -28
  646. package/src/models/operations/listagents.ts +2 -2
  647. package/src/models/operations/listbudgets.ts +2 -2
  648. package/src/models/operations/listcontacts.ts +2 -2
  649. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  650. package/src/models/operations/listdatasets.ts +2 -2
  651. package/src/models/operations/listdatasources.ts +2 -2
  652. package/src/models/operations/retrievecontact.ts +2 -2
  653. package/src/models/operations/retrievedatapoint.ts +2 -2
  654. package/src/models/operations/retrievedataset.ts +2 -2
  655. package/src/models/operations/retrievedatasource.ts +2 -2
  656. package/src/models/operations/retrievetool.ts +10 -10
  657. package/src/models/operations/runagent.ts +2 -2
  658. package/src/models/operations/streamrunagent.ts +2 -2
  659. package/src/models/operations/updatebudget.ts +2 -2
  660. package/src/models/operations/updatecontact.ts +2 -2
  661. package/src/models/operations/updatedatapoint.ts +2 -2
  662. package/src/models/operations/updatedataset.ts +2 -2
  663. package/src/models/operations/updatedatasource.ts +2 -2
  664. package/src/models/operations/updateeval.ts +28 -28
  665. package/src/models/operations/updatetool.ts +14 -14
  666. package/docs/sdks/orq/README.md +0 -10
  667. package/packages/orq-rc/docs/sdks/orq/README.md +0 -10
@@ -12,56 +12,62 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
12
  /**
13
13
  * Tool message
14
14
  */
15
- export const RoleToolMessage = {
15
+ export const RunAgentRoleToolMessage = {
16
16
  Tool: "tool",
17
17
  } as const;
18
18
  /**
19
19
  * Tool message
20
20
  */
21
- export type RoleToolMessage = ClosedEnum<typeof RoleToolMessage>;
21
+ export type RunAgentRoleToolMessage = ClosedEnum<
22
+ typeof RunAgentRoleToolMessage
23
+ >;
22
24
 
23
25
  /**
24
26
  * User message
25
27
  */
26
- export const RoleUserMessage = {
28
+ export const RunAgentRoleUserMessage = {
27
29
  User: "user",
28
30
  } as const;
29
31
  /**
30
32
  * User message
31
33
  */
32
- export type RoleUserMessage = ClosedEnum<typeof RoleUserMessage>;
34
+ export type RunAgentRoleUserMessage = ClosedEnum<
35
+ typeof RunAgentRoleUserMessage
36
+ >;
33
37
 
34
38
  /**
35
39
  * Message role (user or tool for continuing executions)
36
40
  */
37
- export type RunAgentRole = RoleUserMessage | RoleToolMessage;
41
+ export type RunAgentRole = RunAgentRoleUserMessage | RunAgentRoleToolMessage;
38
42
 
39
- export const RunAgentPublicMessagePartKind = {
43
+ export const RunAgentPublicMessagePartAgentsRequestKind = {
40
44
  ToolResult: "tool_result",
41
45
  } as const;
42
- export type RunAgentPublicMessagePartKind = ClosedEnum<
43
- typeof RunAgentPublicMessagePartKind
46
+ export type RunAgentPublicMessagePartAgentsRequestKind = ClosedEnum<
47
+ typeof RunAgentPublicMessagePartAgentsRequestKind
44
48
  >;
45
49
 
46
50
  /**
47
51
  * Tool execution result part. Use this ONLY when providing results for a pending tool call from the agent. The tool_call_id must match the ID from the agent's tool call request.
48
52
  */
49
- export type ToolResultPart = {
50
- kind: RunAgentPublicMessagePartKind;
53
+ export type PublicMessagePartToolResultPart = {
54
+ kind: RunAgentPublicMessagePartAgentsRequestKind;
51
55
  toolCallId: string;
52
56
  result?: any | undefined;
53
57
  metadata?: { [k: string]: any } | undefined;
54
58
  };
55
59
 
56
- export const PublicMessagePartKind = {
60
+ export const RunAgentPublicMessagePartAgentsKind = {
57
61
  File: "file",
58
62
  } as const;
59
- export type PublicMessagePartKind = ClosedEnum<typeof PublicMessagePartKind>;
63
+ export type RunAgentPublicMessagePartAgentsKind = ClosedEnum<
64
+ typeof RunAgentPublicMessagePartAgentsKind
65
+ >;
60
66
 
61
67
  /**
62
68
  * File in URI format. Check in the model's documentation for the supported mime types for the URI format
63
69
  */
64
- export type FileInURIFormat = {
70
+ export type FileFileInURIFormat = {
65
71
  /**
66
72
  * URL for the File content
67
73
  */
@@ -79,7 +85,7 @@ export type FileInURIFormat = {
79
85
  /**
80
86
  * Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
81
87
  */
82
- export type BinaryFormat = {
88
+ export type FileBinaryFormat = {
83
89
  /**
84
90
  * base64 encoded content of the file
85
91
  */
@@ -94,39 +100,46 @@ export type BinaryFormat = {
94
100
  name?: string | undefined;
95
101
  };
96
102
 
97
- export type PublicMessagePartFile = BinaryFormat | FileInURIFormat;
103
+ export type RunAgentPublicMessagePartFile =
104
+ | FileBinaryFormat
105
+ | FileFileInURIFormat;
98
106
 
99
107
  /**
100
108
  * File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
101
109
  */
102
- export type FilePart = {
103
- kind: PublicMessagePartKind;
104
- file: BinaryFormat | FileInURIFormat;
110
+ export type PublicMessagePartFilePart = {
111
+ kind: RunAgentPublicMessagePartAgentsKind;
112
+ file: FileBinaryFormat | FileFileInURIFormat;
105
113
  metadata?: { [k: string]: any } | undefined;
106
114
  };
107
115
 
108
- export const Kind = {
116
+ export const RunAgentPublicMessagePartKind = {
109
117
  Text: "text",
110
118
  } as const;
111
- export type Kind = ClosedEnum<typeof Kind>;
119
+ export type RunAgentPublicMessagePartKind = ClosedEnum<
120
+ typeof RunAgentPublicMessagePartKind
121
+ >;
112
122
 
113
123
  /**
114
124
  * Text content part. Use this to send text messages to the agent.
115
125
  */
116
- export type TextPart = {
117
- kind: Kind;
126
+ export type PublicMessagePartTextPart = {
127
+ kind: RunAgentPublicMessagePartKind;
118
128
  text: string;
119
129
  };
120
130
 
121
131
  /**
122
132
  * 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.
123
133
  */
124
- export type PublicMessagePart = TextPart | FilePart | ToolResultPart;
134
+ export type RunAgentPublicMessagePart =
135
+ | PublicMessagePartTextPart
136
+ | PublicMessagePartFilePart
137
+ | PublicMessagePartToolResultPart;
125
138
 
126
139
  /**
127
140
  * The A2A format message containing the task for the agent to perform.
128
141
  */
129
- export type Message = {
142
+ export type RunAgentMessage = {
130
143
  /**
131
144
  * Optional A2A message ID in ULID format
132
145
  */
@@ -134,17 +147,21 @@ export type Message = {
134
147
  /**
135
148
  * Message role (user or tool for continuing executions)
136
149
  */
137
- role: RoleUserMessage | RoleToolMessage;
150
+ role: RunAgentRoleUserMessage | RunAgentRoleToolMessage;
138
151
  /**
139
152
  * A2A message parts (text, file, or tool_result only)
140
153
  */
141
- parts: Array<TextPart | FilePart | ToolResultPart>;
154
+ parts: Array<
155
+ | PublicMessagePartTextPart
156
+ | PublicMessagePartFilePart
157
+ | PublicMessagePartToolResultPart
158
+ >;
142
159
  };
143
160
 
144
161
  /**
145
162
  * Information about the contact making the request. If the contact does not exist, it will be created automatically.
146
163
  */
147
- export type Contact = {
164
+ export type RunAgentContact = {
148
165
  /**
149
166
  * Unique identifier for the contact
150
167
  */
@@ -188,7 +205,7 @@ export type RunAgentThread = {
188
205
  /**
189
206
  * Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
190
207
  */
191
- export type Memory = {
208
+ export type RunAgentMemory = {
192
209
  /**
193
210
  * 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.
194
211
  */
@@ -714,7 +731,7 @@ export type RunAgentRequestBody = {
714
731
  /**
715
732
  * The A2A format message containing the task for the agent to perform.
716
733
  */
717
- message: Message;
734
+ message: RunAgentMessage;
718
735
  /**
719
736
  * Optional variables for template replacement in system prompt, instructions, and messages
720
737
  */
@@ -722,7 +739,7 @@ export type RunAgentRequestBody = {
722
739
  /**
723
740
  * Information about the contact making the request. If the contact does not exist, it will be created automatically.
724
741
  */
725
- contact?: Contact | undefined;
742
+ contact?: RunAgentContact | undefined;
726
743
  /**
727
744
  * Thread information to group related requests
728
745
  */
@@ -730,7 +747,7 @@ export type RunAgentRequestBody = {
730
747
  /**
731
748
  * Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
732
749
  */
733
- memory?: Memory | undefined;
750
+ memory?: RunAgentMemory | undefined;
734
751
  /**
735
752
  * The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
736
753
  */
@@ -811,7 +828,7 @@ export type RunAgentAgentsRole = ClosedEnum<typeof RunAgentAgentsRole>;
811
828
  /**
812
829
  * Optional status message
813
830
  */
814
- export type RunAgentMessage = {
831
+ export type RunAgentAgentsMessage = {
815
832
  kind: RunAgentAgentsKind;
816
833
  messageId: string;
817
834
  /**
@@ -836,7 +853,7 @@ export type RunAgentStatus = {
836
853
  /**
837
854
  * Optional status message
838
855
  */
839
- message?: RunAgentMessage | undefined;
856
+ message?: RunAgentAgentsMessage | undefined;
840
857
  };
841
858
 
842
859
  /**
@@ -866,45 +883,45 @@ export type RunAgentResponseBody = {
866
883
  };
867
884
 
868
885
  /** @internal */
869
- export const RoleToolMessage$inboundSchema: z.ZodNativeEnum<
870
- typeof RoleToolMessage
871
- > = z.nativeEnum(RoleToolMessage);
886
+ export const RunAgentRoleToolMessage$inboundSchema: z.ZodNativeEnum<
887
+ typeof RunAgentRoleToolMessage
888
+ > = z.nativeEnum(RunAgentRoleToolMessage);
872
889
 
873
890
  /** @internal */
874
- export const RoleToolMessage$outboundSchema: z.ZodNativeEnum<
875
- typeof RoleToolMessage
876
- > = RoleToolMessage$inboundSchema;
891
+ export const RunAgentRoleToolMessage$outboundSchema: z.ZodNativeEnum<
892
+ typeof RunAgentRoleToolMessage
893
+ > = RunAgentRoleToolMessage$inboundSchema;
877
894
 
878
895
  /**
879
896
  * @internal
880
897
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
881
898
  */
882
- export namespace RoleToolMessage$ {
883
- /** @deprecated use `RoleToolMessage$inboundSchema` instead. */
884
- export const inboundSchema = RoleToolMessage$inboundSchema;
885
- /** @deprecated use `RoleToolMessage$outboundSchema` instead. */
886
- export const outboundSchema = RoleToolMessage$outboundSchema;
899
+ export namespace RunAgentRoleToolMessage$ {
900
+ /** @deprecated use `RunAgentRoleToolMessage$inboundSchema` instead. */
901
+ export const inboundSchema = RunAgentRoleToolMessage$inboundSchema;
902
+ /** @deprecated use `RunAgentRoleToolMessage$outboundSchema` instead. */
903
+ export const outboundSchema = RunAgentRoleToolMessage$outboundSchema;
887
904
  }
888
905
 
889
906
  /** @internal */
890
- export const RoleUserMessage$inboundSchema: z.ZodNativeEnum<
891
- typeof RoleUserMessage
892
- > = z.nativeEnum(RoleUserMessage);
907
+ export const RunAgentRoleUserMessage$inboundSchema: z.ZodNativeEnum<
908
+ typeof RunAgentRoleUserMessage
909
+ > = z.nativeEnum(RunAgentRoleUserMessage);
893
910
 
894
911
  /** @internal */
895
- export const RoleUserMessage$outboundSchema: z.ZodNativeEnum<
896
- typeof RoleUserMessage
897
- > = RoleUserMessage$inboundSchema;
912
+ export const RunAgentRoleUserMessage$outboundSchema: z.ZodNativeEnum<
913
+ typeof RunAgentRoleUserMessage
914
+ > = RunAgentRoleUserMessage$inboundSchema;
898
915
 
899
916
  /**
900
917
  * @internal
901
918
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
902
919
  */
903
- export namespace RoleUserMessage$ {
904
- /** @deprecated use `RoleUserMessage$inboundSchema` instead. */
905
- export const inboundSchema = RoleUserMessage$inboundSchema;
906
- /** @deprecated use `RoleUserMessage$outboundSchema` instead. */
907
- export const outboundSchema = RoleUserMessage$outboundSchema;
920
+ export namespace RunAgentRoleUserMessage$ {
921
+ /** @deprecated use `RunAgentRoleUserMessage$inboundSchema` instead. */
922
+ export const inboundSchema = RunAgentRoleUserMessage$inboundSchema;
923
+ /** @deprecated use `RunAgentRoleUserMessage$outboundSchema` instead. */
924
+ export const outboundSchema = RunAgentRoleUserMessage$outboundSchema;
908
925
  }
909
926
 
910
927
  /** @internal */
@@ -912,7 +929,10 @@ export const RunAgentRole$inboundSchema: z.ZodType<
912
929
  RunAgentRole,
913
930
  z.ZodTypeDef,
914
931
  unknown
915
- > = z.union([RoleUserMessage$inboundSchema, RoleToolMessage$inboundSchema]);
932
+ > = z.union([
933
+ RunAgentRoleUserMessage$inboundSchema,
934
+ RunAgentRoleToolMessage$inboundSchema,
935
+ ]);
916
936
 
917
937
  /** @internal */
918
938
  export type RunAgentRole$Outbound = string | string;
@@ -922,7 +942,10 @@ export const RunAgentRole$outboundSchema: z.ZodType<
922
942
  RunAgentRole$Outbound,
923
943
  z.ZodTypeDef,
924
944
  RunAgentRole
925
- > = z.union([RoleUserMessage$outboundSchema, RoleToolMessage$outboundSchema]);
945
+ > = z.union([
946
+ RunAgentRoleUserMessage$outboundSchema,
947
+ RunAgentRoleToolMessage$outboundSchema,
948
+ ]);
926
949
 
927
950
  /**
928
951
  * @internal
@@ -952,33 +975,35 @@ export function runAgentRoleFromJSON(
952
975
  }
953
976
 
954
977
  /** @internal */
955
- export const RunAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<
956
- typeof RunAgentPublicMessagePartKind
957
- > = z.nativeEnum(RunAgentPublicMessagePartKind);
978
+ export const RunAgentPublicMessagePartAgentsRequestKind$inboundSchema:
979
+ z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsRequestKind> = z
980
+ .nativeEnum(RunAgentPublicMessagePartAgentsRequestKind);
958
981
 
959
982
  /** @internal */
960
- export const RunAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<
961
- typeof RunAgentPublicMessagePartKind
962
- > = RunAgentPublicMessagePartKind$inboundSchema;
983
+ export const RunAgentPublicMessagePartAgentsRequestKind$outboundSchema:
984
+ z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsRequestKind> =
985
+ RunAgentPublicMessagePartAgentsRequestKind$inboundSchema;
963
986
 
964
987
  /**
965
988
  * @internal
966
989
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
967
990
  */
968
- export namespace RunAgentPublicMessagePartKind$ {
969
- /** @deprecated use `RunAgentPublicMessagePartKind$inboundSchema` instead. */
970
- export const inboundSchema = RunAgentPublicMessagePartKind$inboundSchema;
971
- /** @deprecated use `RunAgentPublicMessagePartKind$outboundSchema` instead. */
972
- export const outboundSchema = RunAgentPublicMessagePartKind$outboundSchema;
991
+ export namespace RunAgentPublicMessagePartAgentsRequestKind$ {
992
+ /** @deprecated use `RunAgentPublicMessagePartAgentsRequestKind$inboundSchema` instead. */
993
+ export const inboundSchema =
994
+ RunAgentPublicMessagePartAgentsRequestKind$inboundSchema;
995
+ /** @deprecated use `RunAgentPublicMessagePartAgentsRequestKind$outboundSchema` instead. */
996
+ export const outboundSchema =
997
+ RunAgentPublicMessagePartAgentsRequestKind$outboundSchema;
973
998
  }
974
999
 
975
1000
  /** @internal */
976
- export const ToolResultPart$inboundSchema: z.ZodType<
977
- ToolResultPart,
1001
+ export const PublicMessagePartToolResultPart$inboundSchema: z.ZodType<
1002
+ PublicMessagePartToolResultPart,
978
1003
  z.ZodTypeDef,
979
1004
  unknown
980
1005
  > = z.object({
981
- kind: RunAgentPublicMessagePartKind$inboundSchema,
1006
+ kind: RunAgentPublicMessagePartAgentsRequestKind$inboundSchema,
982
1007
  tool_call_id: z.string(),
983
1008
  result: z.any().optional(),
984
1009
  metadata: z.record(z.any()).optional(),
@@ -989,7 +1014,7 @@ export const ToolResultPart$inboundSchema: z.ZodType<
989
1014
  });
990
1015
 
991
1016
  /** @internal */
992
- export type ToolResultPart$Outbound = {
1017
+ export type PublicMessagePartToolResultPart$Outbound = {
993
1018
  kind: string;
994
1019
  tool_call_id: string;
995
1020
  result?: any | undefined;
@@ -997,12 +1022,12 @@ export type ToolResultPart$Outbound = {
997
1022
  };
998
1023
 
999
1024
  /** @internal */
1000
- export const ToolResultPart$outboundSchema: z.ZodType<
1001
- ToolResultPart$Outbound,
1025
+ export const PublicMessagePartToolResultPart$outboundSchema: z.ZodType<
1026
+ PublicMessagePartToolResultPart$Outbound,
1002
1027
  z.ZodTypeDef,
1003
- ToolResultPart
1028
+ PublicMessagePartToolResultPart
1004
1029
  > = z.object({
1005
- kind: RunAgentPublicMessagePartKind$outboundSchema,
1030
+ kind: RunAgentPublicMessagePartAgentsRequestKind$outboundSchema,
1006
1031
  toolCallId: z.string(),
1007
1032
  result: z.any().optional(),
1008
1033
  metadata: z.record(z.any()).optional(),
@@ -1016,53 +1041,61 @@ export const ToolResultPart$outboundSchema: z.ZodType<
1016
1041
  * @internal
1017
1042
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1018
1043
  */
1019
- export namespace ToolResultPart$ {
1020
- /** @deprecated use `ToolResultPart$inboundSchema` instead. */
1021
- export const inboundSchema = ToolResultPart$inboundSchema;
1022
- /** @deprecated use `ToolResultPart$outboundSchema` instead. */
1023
- export const outboundSchema = ToolResultPart$outboundSchema;
1024
- /** @deprecated use `ToolResultPart$Outbound` instead. */
1025
- export type Outbound = ToolResultPart$Outbound;
1044
+ export namespace PublicMessagePartToolResultPart$ {
1045
+ /** @deprecated use `PublicMessagePartToolResultPart$inboundSchema` instead. */
1046
+ export const inboundSchema = PublicMessagePartToolResultPart$inboundSchema;
1047
+ /** @deprecated use `PublicMessagePartToolResultPart$outboundSchema` instead. */
1048
+ export const outboundSchema = PublicMessagePartToolResultPart$outboundSchema;
1049
+ /** @deprecated use `PublicMessagePartToolResultPart$Outbound` instead. */
1050
+ export type Outbound = PublicMessagePartToolResultPart$Outbound;
1026
1051
  }
1027
1052
 
1028
- export function toolResultPartToJSON(toolResultPart: ToolResultPart): string {
1029
- return JSON.stringify(ToolResultPart$outboundSchema.parse(toolResultPart));
1053
+ export function publicMessagePartToolResultPartToJSON(
1054
+ publicMessagePartToolResultPart: PublicMessagePartToolResultPart,
1055
+ ): string {
1056
+ return JSON.stringify(
1057
+ PublicMessagePartToolResultPart$outboundSchema.parse(
1058
+ publicMessagePartToolResultPart,
1059
+ ),
1060
+ );
1030
1061
  }
1031
1062
 
1032
- export function toolResultPartFromJSON(
1063
+ export function publicMessagePartToolResultPartFromJSON(
1033
1064
  jsonString: string,
1034
- ): SafeParseResult<ToolResultPart, SDKValidationError> {
1065
+ ): SafeParseResult<PublicMessagePartToolResultPart, SDKValidationError> {
1035
1066
  return safeParse(
1036
1067
  jsonString,
1037
- (x) => ToolResultPart$inboundSchema.parse(JSON.parse(x)),
1038
- `Failed to parse 'ToolResultPart' from JSON`,
1068
+ (x) => PublicMessagePartToolResultPart$inboundSchema.parse(JSON.parse(x)),
1069
+ `Failed to parse 'PublicMessagePartToolResultPart' from JSON`,
1039
1070
  );
1040
1071
  }
1041
1072
 
1042
1073
  /** @internal */
1043
- export const PublicMessagePartKind$inboundSchema: z.ZodNativeEnum<
1044
- typeof PublicMessagePartKind
1045
- > = z.nativeEnum(PublicMessagePartKind);
1074
+ export const RunAgentPublicMessagePartAgentsKind$inboundSchema: z.ZodNativeEnum<
1075
+ typeof RunAgentPublicMessagePartAgentsKind
1076
+ > = z.nativeEnum(RunAgentPublicMessagePartAgentsKind);
1046
1077
 
1047
1078
  /** @internal */
1048
- export const PublicMessagePartKind$outboundSchema: z.ZodNativeEnum<
1049
- typeof PublicMessagePartKind
1050
- > = PublicMessagePartKind$inboundSchema;
1079
+ export const RunAgentPublicMessagePartAgentsKind$outboundSchema:
1080
+ z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsKind> =
1081
+ RunAgentPublicMessagePartAgentsKind$inboundSchema;
1051
1082
 
1052
1083
  /**
1053
1084
  * @internal
1054
1085
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1055
1086
  */
1056
- export namespace PublicMessagePartKind$ {
1057
- /** @deprecated use `PublicMessagePartKind$inboundSchema` instead. */
1058
- export const inboundSchema = PublicMessagePartKind$inboundSchema;
1059
- /** @deprecated use `PublicMessagePartKind$outboundSchema` instead. */
1060
- export const outboundSchema = PublicMessagePartKind$outboundSchema;
1087
+ export namespace RunAgentPublicMessagePartAgentsKind$ {
1088
+ /** @deprecated use `RunAgentPublicMessagePartAgentsKind$inboundSchema` instead. */
1089
+ export const inboundSchema =
1090
+ RunAgentPublicMessagePartAgentsKind$inboundSchema;
1091
+ /** @deprecated use `RunAgentPublicMessagePartAgentsKind$outboundSchema` instead. */
1092
+ export const outboundSchema =
1093
+ RunAgentPublicMessagePartAgentsKind$outboundSchema;
1061
1094
  }
1062
1095
 
1063
1096
  /** @internal */
1064
- export const FileInURIFormat$inboundSchema: z.ZodType<
1065
- FileInURIFormat,
1097
+ export const FileFileInURIFormat$inboundSchema: z.ZodType<
1098
+ FileFileInURIFormat,
1066
1099
  z.ZodTypeDef,
1067
1100
  unknown
1068
1101
  > = z.object({
@@ -1072,17 +1105,17 @@ export const FileInURIFormat$inboundSchema: z.ZodType<
1072
1105
  });
1073
1106
 
1074
1107
  /** @internal */
1075
- export type FileInURIFormat$Outbound = {
1108
+ export type FileFileInURIFormat$Outbound = {
1076
1109
  uri: string;
1077
1110
  mimeType?: string | undefined;
1078
1111
  name?: string | undefined;
1079
1112
  };
1080
1113
 
1081
1114
  /** @internal */
1082
- export const FileInURIFormat$outboundSchema: z.ZodType<
1083
- FileInURIFormat$Outbound,
1115
+ export const FileFileInURIFormat$outboundSchema: z.ZodType<
1116
+ FileFileInURIFormat$Outbound,
1084
1117
  z.ZodTypeDef,
1085
- FileInURIFormat
1118
+ FileFileInURIFormat
1086
1119
  > = z.object({
1087
1120
  uri: z.string(),
1088
1121
  mimeType: z.string().optional(),
@@ -1093,34 +1126,36 @@ export const FileInURIFormat$outboundSchema: z.ZodType<
1093
1126
  * @internal
1094
1127
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1095
1128
  */
1096
- export namespace FileInURIFormat$ {
1097
- /** @deprecated use `FileInURIFormat$inboundSchema` instead. */
1098
- export const inboundSchema = FileInURIFormat$inboundSchema;
1099
- /** @deprecated use `FileInURIFormat$outboundSchema` instead. */
1100
- export const outboundSchema = FileInURIFormat$outboundSchema;
1101
- /** @deprecated use `FileInURIFormat$Outbound` instead. */
1102
- export type Outbound = FileInURIFormat$Outbound;
1129
+ export namespace FileFileInURIFormat$ {
1130
+ /** @deprecated use `FileFileInURIFormat$inboundSchema` instead. */
1131
+ export const inboundSchema = FileFileInURIFormat$inboundSchema;
1132
+ /** @deprecated use `FileFileInURIFormat$outboundSchema` instead. */
1133
+ export const outboundSchema = FileFileInURIFormat$outboundSchema;
1134
+ /** @deprecated use `FileFileInURIFormat$Outbound` instead. */
1135
+ export type Outbound = FileFileInURIFormat$Outbound;
1103
1136
  }
1104
1137
 
1105
- export function fileInURIFormatToJSON(
1106
- fileInURIFormat: FileInURIFormat,
1138
+ export function fileFileInURIFormatToJSON(
1139
+ fileFileInURIFormat: FileFileInURIFormat,
1107
1140
  ): string {
1108
- return JSON.stringify(FileInURIFormat$outboundSchema.parse(fileInURIFormat));
1141
+ return JSON.stringify(
1142
+ FileFileInURIFormat$outboundSchema.parse(fileFileInURIFormat),
1143
+ );
1109
1144
  }
1110
1145
 
1111
- export function fileInURIFormatFromJSON(
1146
+ export function fileFileInURIFormatFromJSON(
1112
1147
  jsonString: string,
1113
- ): SafeParseResult<FileInURIFormat, SDKValidationError> {
1148
+ ): SafeParseResult<FileFileInURIFormat, SDKValidationError> {
1114
1149
  return safeParse(
1115
1150
  jsonString,
1116
- (x) => FileInURIFormat$inboundSchema.parse(JSON.parse(x)),
1117
- `Failed to parse 'FileInURIFormat' from JSON`,
1151
+ (x) => FileFileInURIFormat$inboundSchema.parse(JSON.parse(x)),
1152
+ `Failed to parse 'FileFileInURIFormat' from JSON`,
1118
1153
  );
1119
1154
  }
1120
1155
 
1121
1156
  /** @internal */
1122
- export const BinaryFormat$inboundSchema: z.ZodType<
1123
- BinaryFormat,
1157
+ export const FileBinaryFormat$inboundSchema: z.ZodType<
1158
+ FileBinaryFormat,
1124
1159
  z.ZodTypeDef,
1125
1160
  unknown
1126
1161
  > = z.object({
@@ -1130,17 +1165,17 @@ export const BinaryFormat$inboundSchema: z.ZodType<
1130
1165
  });
1131
1166
 
1132
1167
  /** @internal */
1133
- export type BinaryFormat$Outbound = {
1168
+ export type FileBinaryFormat$Outbound = {
1134
1169
  bytes: string;
1135
1170
  mimeType?: string | undefined;
1136
1171
  name?: string | undefined;
1137
1172
  };
1138
1173
 
1139
1174
  /** @internal */
1140
- export const BinaryFormat$outboundSchema: z.ZodType<
1141
- BinaryFormat$Outbound,
1175
+ export const FileBinaryFormat$outboundSchema: z.ZodType<
1176
+ FileBinaryFormat$Outbound,
1142
1177
  z.ZodTypeDef,
1143
- BinaryFormat
1178
+ FileBinaryFormat
1144
1179
  > = z.object({
1145
1180
  bytes: z.string(),
1146
1181
  mimeType: z.string().optional(),
@@ -1151,116 +1186,122 @@ export const BinaryFormat$outboundSchema: z.ZodType<
1151
1186
  * @internal
1152
1187
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1153
1188
  */
1154
- export namespace BinaryFormat$ {
1155
- /** @deprecated use `BinaryFormat$inboundSchema` instead. */
1156
- export const inboundSchema = BinaryFormat$inboundSchema;
1157
- /** @deprecated use `BinaryFormat$outboundSchema` instead. */
1158
- export const outboundSchema = BinaryFormat$outboundSchema;
1159
- /** @deprecated use `BinaryFormat$Outbound` instead. */
1160
- export type Outbound = BinaryFormat$Outbound;
1189
+ export namespace FileBinaryFormat$ {
1190
+ /** @deprecated use `FileBinaryFormat$inboundSchema` instead. */
1191
+ export const inboundSchema = FileBinaryFormat$inboundSchema;
1192
+ /** @deprecated use `FileBinaryFormat$outboundSchema` instead. */
1193
+ export const outboundSchema = FileBinaryFormat$outboundSchema;
1194
+ /** @deprecated use `FileBinaryFormat$Outbound` instead. */
1195
+ export type Outbound = FileBinaryFormat$Outbound;
1161
1196
  }
1162
1197
 
1163
- export function binaryFormatToJSON(binaryFormat: BinaryFormat): string {
1164
- return JSON.stringify(BinaryFormat$outboundSchema.parse(binaryFormat));
1198
+ export function fileBinaryFormatToJSON(
1199
+ fileBinaryFormat: FileBinaryFormat,
1200
+ ): string {
1201
+ return JSON.stringify(
1202
+ FileBinaryFormat$outboundSchema.parse(fileBinaryFormat),
1203
+ );
1165
1204
  }
1166
1205
 
1167
- export function binaryFormatFromJSON(
1206
+ export function fileBinaryFormatFromJSON(
1168
1207
  jsonString: string,
1169
- ): SafeParseResult<BinaryFormat, SDKValidationError> {
1208
+ ): SafeParseResult<FileBinaryFormat, SDKValidationError> {
1170
1209
  return safeParse(
1171
1210
  jsonString,
1172
- (x) => BinaryFormat$inboundSchema.parse(JSON.parse(x)),
1173
- `Failed to parse 'BinaryFormat' from JSON`,
1211
+ (x) => FileBinaryFormat$inboundSchema.parse(JSON.parse(x)),
1212
+ `Failed to parse 'FileBinaryFormat' from JSON`,
1174
1213
  );
1175
1214
  }
1176
1215
 
1177
1216
  /** @internal */
1178
- export const PublicMessagePartFile$inboundSchema: z.ZodType<
1179
- PublicMessagePartFile,
1217
+ export const RunAgentPublicMessagePartFile$inboundSchema: z.ZodType<
1218
+ RunAgentPublicMessagePartFile,
1180
1219
  z.ZodTypeDef,
1181
1220
  unknown
1182
1221
  > = z.union([
1183
- z.lazy(() => BinaryFormat$inboundSchema),
1184
- z.lazy(() => FileInURIFormat$inboundSchema),
1222
+ z.lazy(() => FileBinaryFormat$inboundSchema),
1223
+ z.lazy(() => FileFileInURIFormat$inboundSchema),
1185
1224
  ]);
1186
1225
 
1187
1226
  /** @internal */
1188
- export type PublicMessagePartFile$Outbound =
1189
- | BinaryFormat$Outbound
1190
- | FileInURIFormat$Outbound;
1227
+ export type RunAgentPublicMessagePartFile$Outbound =
1228
+ | FileBinaryFormat$Outbound
1229
+ | FileFileInURIFormat$Outbound;
1191
1230
 
1192
1231
  /** @internal */
1193
- export const PublicMessagePartFile$outboundSchema: z.ZodType<
1194
- PublicMessagePartFile$Outbound,
1232
+ export const RunAgentPublicMessagePartFile$outboundSchema: z.ZodType<
1233
+ RunAgentPublicMessagePartFile$Outbound,
1195
1234
  z.ZodTypeDef,
1196
- PublicMessagePartFile
1235
+ RunAgentPublicMessagePartFile
1197
1236
  > = z.union([
1198
- z.lazy(() => BinaryFormat$outboundSchema),
1199
- z.lazy(() => FileInURIFormat$outboundSchema),
1237
+ z.lazy(() => FileBinaryFormat$outboundSchema),
1238
+ z.lazy(() => FileFileInURIFormat$outboundSchema),
1200
1239
  ]);
1201
1240
 
1202
1241
  /**
1203
1242
  * @internal
1204
1243
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1205
1244
  */
1206
- export namespace PublicMessagePartFile$ {
1207
- /** @deprecated use `PublicMessagePartFile$inboundSchema` instead. */
1208
- export const inboundSchema = PublicMessagePartFile$inboundSchema;
1209
- /** @deprecated use `PublicMessagePartFile$outboundSchema` instead. */
1210
- export const outboundSchema = PublicMessagePartFile$outboundSchema;
1211
- /** @deprecated use `PublicMessagePartFile$Outbound` instead. */
1212
- export type Outbound = PublicMessagePartFile$Outbound;
1245
+ export namespace RunAgentPublicMessagePartFile$ {
1246
+ /** @deprecated use `RunAgentPublicMessagePartFile$inboundSchema` instead. */
1247
+ export const inboundSchema = RunAgentPublicMessagePartFile$inboundSchema;
1248
+ /** @deprecated use `RunAgentPublicMessagePartFile$outboundSchema` instead. */
1249
+ export const outboundSchema = RunAgentPublicMessagePartFile$outboundSchema;
1250
+ /** @deprecated use `RunAgentPublicMessagePartFile$Outbound` instead. */
1251
+ export type Outbound = RunAgentPublicMessagePartFile$Outbound;
1213
1252
  }
1214
1253
 
1215
- export function publicMessagePartFileToJSON(
1216
- publicMessagePartFile: PublicMessagePartFile,
1254
+ export function runAgentPublicMessagePartFileToJSON(
1255
+ runAgentPublicMessagePartFile: RunAgentPublicMessagePartFile,
1217
1256
  ): string {
1218
1257
  return JSON.stringify(
1219
- PublicMessagePartFile$outboundSchema.parse(publicMessagePartFile),
1258
+ RunAgentPublicMessagePartFile$outboundSchema.parse(
1259
+ runAgentPublicMessagePartFile,
1260
+ ),
1220
1261
  );
1221
1262
  }
1222
1263
 
1223
- export function publicMessagePartFileFromJSON(
1264
+ export function runAgentPublicMessagePartFileFromJSON(
1224
1265
  jsonString: string,
1225
- ): SafeParseResult<PublicMessagePartFile, SDKValidationError> {
1266
+ ): SafeParseResult<RunAgentPublicMessagePartFile, SDKValidationError> {
1226
1267
  return safeParse(
1227
1268
  jsonString,
1228
- (x) => PublicMessagePartFile$inboundSchema.parse(JSON.parse(x)),
1229
- `Failed to parse 'PublicMessagePartFile' from JSON`,
1269
+ (x) => RunAgentPublicMessagePartFile$inboundSchema.parse(JSON.parse(x)),
1270
+ `Failed to parse 'RunAgentPublicMessagePartFile' from JSON`,
1230
1271
  );
1231
1272
  }
1232
1273
 
1233
1274
  /** @internal */
1234
- export const FilePart$inboundSchema: z.ZodType<
1235
- FilePart,
1275
+ export const PublicMessagePartFilePart$inboundSchema: z.ZodType<
1276
+ PublicMessagePartFilePart,
1236
1277
  z.ZodTypeDef,
1237
1278
  unknown
1238
1279
  > = z.object({
1239
- kind: PublicMessagePartKind$inboundSchema,
1280
+ kind: RunAgentPublicMessagePartAgentsKind$inboundSchema,
1240
1281
  file: z.union([
1241
- z.lazy(() => BinaryFormat$inboundSchema),
1242
- z.lazy(() => FileInURIFormat$inboundSchema),
1282
+ z.lazy(() => FileBinaryFormat$inboundSchema),
1283
+ z.lazy(() => FileFileInURIFormat$inboundSchema),
1243
1284
  ]),
1244
1285
  metadata: z.record(z.any()).optional(),
1245
1286
  });
1246
1287
 
1247
1288
  /** @internal */
1248
- export type FilePart$Outbound = {
1289
+ export type PublicMessagePartFilePart$Outbound = {
1249
1290
  kind: string;
1250
- file: BinaryFormat$Outbound | FileInURIFormat$Outbound;
1291
+ file: FileBinaryFormat$Outbound | FileFileInURIFormat$Outbound;
1251
1292
  metadata?: { [k: string]: any } | undefined;
1252
1293
  };
1253
1294
 
1254
1295
  /** @internal */
1255
- export const FilePart$outboundSchema: z.ZodType<
1256
- FilePart$Outbound,
1296
+ export const PublicMessagePartFilePart$outboundSchema: z.ZodType<
1297
+ PublicMessagePartFilePart$Outbound,
1257
1298
  z.ZodTypeDef,
1258
- FilePart
1299
+ PublicMessagePartFilePart
1259
1300
  > = z.object({
1260
- kind: PublicMessagePartKind$outboundSchema,
1301
+ kind: RunAgentPublicMessagePartAgentsKind$outboundSchema,
1261
1302
  file: z.union([
1262
- z.lazy(() => BinaryFormat$outboundSchema),
1263
- z.lazy(() => FileInURIFormat$outboundSchema),
1303
+ z.lazy(() => FileBinaryFormat$outboundSchema),
1304
+ z.lazy(() => FileFileInURIFormat$outboundSchema),
1264
1305
  ]),
1265
1306
  metadata: z.record(z.any()).optional(),
1266
1307
  });
@@ -1269,72 +1310,77 @@ export const FilePart$outboundSchema: z.ZodType<
1269
1310
  * @internal
1270
1311
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1271
1312
  */
1272
- export namespace FilePart$ {
1273
- /** @deprecated use `FilePart$inboundSchema` instead. */
1274
- export const inboundSchema = FilePart$inboundSchema;
1275
- /** @deprecated use `FilePart$outboundSchema` instead. */
1276
- export const outboundSchema = FilePart$outboundSchema;
1277
- /** @deprecated use `FilePart$Outbound` instead. */
1278
- export type Outbound = FilePart$Outbound;
1313
+ export namespace PublicMessagePartFilePart$ {
1314
+ /** @deprecated use `PublicMessagePartFilePart$inboundSchema` instead. */
1315
+ export const inboundSchema = PublicMessagePartFilePart$inboundSchema;
1316
+ /** @deprecated use `PublicMessagePartFilePart$outboundSchema` instead. */
1317
+ export const outboundSchema = PublicMessagePartFilePart$outboundSchema;
1318
+ /** @deprecated use `PublicMessagePartFilePart$Outbound` instead. */
1319
+ export type Outbound = PublicMessagePartFilePart$Outbound;
1279
1320
  }
1280
1321
 
1281
- export function filePartToJSON(filePart: FilePart): string {
1282
- return JSON.stringify(FilePart$outboundSchema.parse(filePart));
1322
+ export function publicMessagePartFilePartToJSON(
1323
+ publicMessagePartFilePart: PublicMessagePartFilePart,
1324
+ ): string {
1325
+ return JSON.stringify(
1326
+ PublicMessagePartFilePart$outboundSchema.parse(publicMessagePartFilePart),
1327
+ );
1283
1328
  }
1284
1329
 
1285
- export function filePartFromJSON(
1330
+ export function publicMessagePartFilePartFromJSON(
1286
1331
  jsonString: string,
1287
- ): SafeParseResult<FilePart, SDKValidationError> {
1332
+ ): SafeParseResult<PublicMessagePartFilePart, SDKValidationError> {
1288
1333
  return safeParse(
1289
1334
  jsonString,
1290
- (x) => FilePart$inboundSchema.parse(JSON.parse(x)),
1291
- `Failed to parse 'FilePart' from JSON`,
1335
+ (x) => PublicMessagePartFilePart$inboundSchema.parse(JSON.parse(x)),
1336
+ `Failed to parse 'PublicMessagePartFilePart' from JSON`,
1292
1337
  );
1293
1338
  }
1294
1339
 
1295
1340
  /** @internal */
1296
- export const Kind$inboundSchema: z.ZodNativeEnum<typeof Kind> = z.nativeEnum(
1297
- Kind,
1298
- );
1341
+ export const RunAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<
1342
+ typeof RunAgentPublicMessagePartKind
1343
+ > = z.nativeEnum(RunAgentPublicMessagePartKind);
1299
1344
 
1300
1345
  /** @internal */
1301
- export const Kind$outboundSchema: z.ZodNativeEnum<typeof Kind> =
1302
- Kind$inboundSchema;
1346
+ export const RunAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<
1347
+ typeof RunAgentPublicMessagePartKind
1348
+ > = RunAgentPublicMessagePartKind$inboundSchema;
1303
1349
 
1304
1350
  /**
1305
1351
  * @internal
1306
1352
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1307
1353
  */
1308
- export namespace Kind$ {
1309
- /** @deprecated use `Kind$inboundSchema` instead. */
1310
- export const inboundSchema = Kind$inboundSchema;
1311
- /** @deprecated use `Kind$outboundSchema` instead. */
1312
- export const outboundSchema = Kind$outboundSchema;
1354
+ export namespace RunAgentPublicMessagePartKind$ {
1355
+ /** @deprecated use `RunAgentPublicMessagePartKind$inboundSchema` instead. */
1356
+ export const inboundSchema = RunAgentPublicMessagePartKind$inboundSchema;
1357
+ /** @deprecated use `RunAgentPublicMessagePartKind$outboundSchema` instead. */
1358
+ export const outboundSchema = RunAgentPublicMessagePartKind$outboundSchema;
1313
1359
  }
1314
1360
 
1315
1361
  /** @internal */
1316
- export const TextPart$inboundSchema: z.ZodType<
1317
- TextPart,
1362
+ export const PublicMessagePartTextPart$inboundSchema: z.ZodType<
1363
+ PublicMessagePartTextPart,
1318
1364
  z.ZodTypeDef,
1319
1365
  unknown
1320
1366
  > = z.object({
1321
- kind: Kind$inboundSchema,
1367
+ kind: RunAgentPublicMessagePartKind$inboundSchema,
1322
1368
  text: z.string(),
1323
1369
  });
1324
1370
 
1325
1371
  /** @internal */
1326
- export type TextPart$Outbound = {
1372
+ export type PublicMessagePartTextPart$Outbound = {
1327
1373
  kind: string;
1328
1374
  text: string;
1329
1375
  };
1330
1376
 
1331
1377
  /** @internal */
1332
- export const TextPart$outboundSchema: z.ZodType<
1333
- TextPart$Outbound,
1378
+ export const PublicMessagePartTextPart$outboundSchema: z.ZodType<
1379
+ PublicMessagePartTextPart$Outbound,
1334
1380
  z.ZodTypeDef,
1335
- TextPart
1381
+ PublicMessagePartTextPart
1336
1382
  > = z.object({
1337
- kind: Kind$outboundSchema,
1383
+ kind: RunAgentPublicMessagePartKind$outboundSchema,
1338
1384
  text: z.string(),
1339
1385
  });
1340
1386
 
@@ -1342,128 +1388,139 @@ export const TextPart$outboundSchema: z.ZodType<
1342
1388
  * @internal
1343
1389
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1344
1390
  */
1345
- export namespace TextPart$ {
1346
- /** @deprecated use `TextPart$inboundSchema` instead. */
1347
- export const inboundSchema = TextPart$inboundSchema;
1348
- /** @deprecated use `TextPart$outboundSchema` instead. */
1349
- export const outboundSchema = TextPart$outboundSchema;
1350
- /** @deprecated use `TextPart$Outbound` instead. */
1351
- export type Outbound = TextPart$Outbound;
1391
+ export namespace PublicMessagePartTextPart$ {
1392
+ /** @deprecated use `PublicMessagePartTextPart$inboundSchema` instead. */
1393
+ export const inboundSchema = PublicMessagePartTextPart$inboundSchema;
1394
+ /** @deprecated use `PublicMessagePartTextPart$outboundSchema` instead. */
1395
+ export const outboundSchema = PublicMessagePartTextPart$outboundSchema;
1396
+ /** @deprecated use `PublicMessagePartTextPart$Outbound` instead. */
1397
+ export type Outbound = PublicMessagePartTextPart$Outbound;
1352
1398
  }
1353
1399
 
1354
- export function textPartToJSON(textPart: TextPart): string {
1355
- return JSON.stringify(TextPart$outboundSchema.parse(textPart));
1400
+ export function publicMessagePartTextPartToJSON(
1401
+ publicMessagePartTextPart: PublicMessagePartTextPart,
1402
+ ): string {
1403
+ return JSON.stringify(
1404
+ PublicMessagePartTextPart$outboundSchema.parse(publicMessagePartTextPart),
1405
+ );
1356
1406
  }
1357
1407
 
1358
- export function textPartFromJSON(
1408
+ export function publicMessagePartTextPartFromJSON(
1359
1409
  jsonString: string,
1360
- ): SafeParseResult<TextPart, SDKValidationError> {
1410
+ ): SafeParseResult<PublicMessagePartTextPart, SDKValidationError> {
1361
1411
  return safeParse(
1362
1412
  jsonString,
1363
- (x) => TextPart$inboundSchema.parse(JSON.parse(x)),
1364
- `Failed to parse 'TextPart' from JSON`,
1413
+ (x) => PublicMessagePartTextPart$inboundSchema.parse(JSON.parse(x)),
1414
+ `Failed to parse 'PublicMessagePartTextPart' from JSON`,
1365
1415
  );
1366
1416
  }
1367
1417
 
1368
1418
  /** @internal */
1369
- export const PublicMessagePart$inboundSchema: z.ZodType<
1370
- PublicMessagePart,
1419
+ export const RunAgentPublicMessagePart$inboundSchema: z.ZodType<
1420
+ RunAgentPublicMessagePart,
1371
1421
  z.ZodTypeDef,
1372
1422
  unknown
1373
1423
  > = z.union([
1374
- z.lazy(() => TextPart$inboundSchema),
1375
- z.lazy(() => FilePart$inboundSchema),
1376
- z.lazy(() => ToolResultPart$inboundSchema),
1424
+ z.lazy(() => PublicMessagePartTextPart$inboundSchema),
1425
+ z.lazy(() => PublicMessagePartFilePart$inboundSchema),
1426
+ z.lazy(() => PublicMessagePartToolResultPart$inboundSchema),
1377
1427
  ]);
1378
1428
 
1379
1429
  /** @internal */
1380
- export type PublicMessagePart$Outbound =
1381
- | TextPart$Outbound
1382
- | FilePart$Outbound
1383
- | ToolResultPart$Outbound;
1430
+ export type RunAgentPublicMessagePart$Outbound =
1431
+ | PublicMessagePartTextPart$Outbound
1432
+ | PublicMessagePartFilePart$Outbound
1433
+ | PublicMessagePartToolResultPart$Outbound;
1384
1434
 
1385
1435
  /** @internal */
1386
- export const PublicMessagePart$outboundSchema: z.ZodType<
1387
- PublicMessagePart$Outbound,
1436
+ export const RunAgentPublicMessagePart$outboundSchema: z.ZodType<
1437
+ RunAgentPublicMessagePart$Outbound,
1388
1438
  z.ZodTypeDef,
1389
- PublicMessagePart
1439
+ RunAgentPublicMessagePart
1390
1440
  > = z.union([
1391
- z.lazy(() => TextPart$outboundSchema),
1392
- z.lazy(() => FilePart$outboundSchema),
1393
- z.lazy(() => ToolResultPart$outboundSchema),
1441
+ z.lazy(() => PublicMessagePartTextPart$outboundSchema),
1442
+ z.lazy(() => PublicMessagePartFilePart$outboundSchema),
1443
+ z.lazy(() => PublicMessagePartToolResultPart$outboundSchema),
1394
1444
  ]);
1395
1445
 
1396
1446
  /**
1397
1447
  * @internal
1398
1448
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1399
1449
  */
1400
- export namespace PublicMessagePart$ {
1401
- /** @deprecated use `PublicMessagePart$inboundSchema` instead. */
1402
- export const inboundSchema = PublicMessagePart$inboundSchema;
1403
- /** @deprecated use `PublicMessagePart$outboundSchema` instead. */
1404
- export const outboundSchema = PublicMessagePart$outboundSchema;
1405
- /** @deprecated use `PublicMessagePart$Outbound` instead. */
1406
- export type Outbound = PublicMessagePart$Outbound;
1450
+ export namespace RunAgentPublicMessagePart$ {
1451
+ /** @deprecated use `RunAgentPublicMessagePart$inboundSchema` instead. */
1452
+ export const inboundSchema = RunAgentPublicMessagePart$inboundSchema;
1453
+ /** @deprecated use `RunAgentPublicMessagePart$outboundSchema` instead. */
1454
+ export const outboundSchema = RunAgentPublicMessagePart$outboundSchema;
1455
+ /** @deprecated use `RunAgentPublicMessagePart$Outbound` instead. */
1456
+ export type Outbound = RunAgentPublicMessagePart$Outbound;
1407
1457
  }
1408
1458
 
1409
- export function publicMessagePartToJSON(
1410
- publicMessagePart: PublicMessagePart,
1459
+ export function runAgentPublicMessagePartToJSON(
1460
+ runAgentPublicMessagePart: RunAgentPublicMessagePart,
1411
1461
  ): string {
1412
1462
  return JSON.stringify(
1413
- PublicMessagePart$outboundSchema.parse(publicMessagePart),
1463
+ RunAgentPublicMessagePart$outboundSchema.parse(runAgentPublicMessagePart),
1414
1464
  );
1415
1465
  }
1416
1466
 
1417
- export function publicMessagePartFromJSON(
1467
+ export function runAgentPublicMessagePartFromJSON(
1418
1468
  jsonString: string,
1419
- ): SafeParseResult<PublicMessagePart, SDKValidationError> {
1469
+ ): SafeParseResult<RunAgentPublicMessagePart, SDKValidationError> {
1420
1470
  return safeParse(
1421
1471
  jsonString,
1422
- (x) => PublicMessagePart$inboundSchema.parse(JSON.parse(x)),
1423
- `Failed to parse 'PublicMessagePart' from JSON`,
1472
+ (x) => RunAgentPublicMessagePart$inboundSchema.parse(JSON.parse(x)),
1473
+ `Failed to parse 'RunAgentPublicMessagePart' from JSON`,
1424
1474
  );
1425
1475
  }
1426
1476
 
1427
1477
  /** @internal */
1428
- export const Message$inboundSchema: z.ZodType<Message, z.ZodTypeDef, unknown> =
1429
- z.object({
1430
- messageId: z.string().optional(),
1431
- role: z.union([
1432
- RoleUserMessage$inboundSchema,
1433
- RoleToolMessage$inboundSchema,
1478
+ export const RunAgentMessage$inboundSchema: z.ZodType<
1479
+ RunAgentMessage,
1480
+ z.ZodTypeDef,
1481
+ unknown
1482
+ > = z.object({
1483
+ messageId: z.string().optional(),
1484
+ role: z.union([
1485
+ RunAgentRoleUserMessage$inboundSchema,
1486
+ RunAgentRoleToolMessage$inboundSchema,
1487
+ ]),
1488
+ parts: z.array(
1489
+ z.union([
1490
+ z.lazy(() => PublicMessagePartTextPart$inboundSchema),
1491
+ z.lazy(() => PublicMessagePartFilePart$inboundSchema),
1492
+ z.lazy(() => PublicMessagePartToolResultPart$inboundSchema),
1434
1493
  ]),
1435
- parts: z.array(
1436
- z.union([
1437
- z.lazy(() => TextPart$inboundSchema),
1438
- z.lazy(() => FilePart$inboundSchema),
1439
- z.lazy(() => ToolResultPart$inboundSchema),
1440
- ]),
1441
- ),
1442
- });
1494
+ ),
1495
+ });
1443
1496
 
1444
1497
  /** @internal */
1445
- export type Message$Outbound = {
1498
+ export type RunAgentMessage$Outbound = {
1446
1499
  messageId?: string | undefined;
1447
1500
  role: string | string;
1448
- parts: Array<TextPart$Outbound | FilePart$Outbound | ToolResultPart$Outbound>;
1501
+ parts: Array<
1502
+ | PublicMessagePartTextPart$Outbound
1503
+ | PublicMessagePartFilePart$Outbound
1504
+ | PublicMessagePartToolResultPart$Outbound
1505
+ >;
1449
1506
  };
1450
1507
 
1451
1508
  /** @internal */
1452
- export const Message$outboundSchema: z.ZodType<
1453
- Message$Outbound,
1509
+ export const RunAgentMessage$outboundSchema: z.ZodType<
1510
+ RunAgentMessage$Outbound,
1454
1511
  z.ZodTypeDef,
1455
- Message
1512
+ RunAgentMessage
1456
1513
  > = z.object({
1457
1514
  messageId: z.string().optional(),
1458
1515
  role: z.union([
1459
- RoleUserMessage$outboundSchema,
1460
- RoleToolMessage$outboundSchema,
1516
+ RunAgentRoleUserMessage$outboundSchema,
1517
+ RunAgentRoleToolMessage$outboundSchema,
1461
1518
  ]),
1462
1519
  parts: z.array(
1463
1520
  z.union([
1464
- z.lazy(() => TextPart$outboundSchema),
1465
- z.lazy(() => FilePart$outboundSchema),
1466
- z.lazy(() => ToolResultPart$outboundSchema),
1521
+ z.lazy(() => PublicMessagePartTextPart$outboundSchema),
1522
+ z.lazy(() => PublicMessagePartFilePart$outboundSchema),
1523
+ z.lazy(() => PublicMessagePartToolResultPart$outboundSchema),
1467
1524
  ]),
1468
1525
  ),
1469
1526
  });
@@ -1472,47 +1529,52 @@ export const Message$outboundSchema: z.ZodType<
1472
1529
  * @internal
1473
1530
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1474
1531
  */
1475
- export namespace Message$ {
1476
- /** @deprecated use `Message$inboundSchema` instead. */
1477
- export const inboundSchema = Message$inboundSchema;
1478
- /** @deprecated use `Message$outboundSchema` instead. */
1479
- export const outboundSchema = Message$outboundSchema;
1480
- /** @deprecated use `Message$Outbound` instead. */
1481
- export type Outbound = Message$Outbound;
1532
+ export namespace RunAgentMessage$ {
1533
+ /** @deprecated use `RunAgentMessage$inboundSchema` instead. */
1534
+ export const inboundSchema = RunAgentMessage$inboundSchema;
1535
+ /** @deprecated use `RunAgentMessage$outboundSchema` instead. */
1536
+ export const outboundSchema = RunAgentMessage$outboundSchema;
1537
+ /** @deprecated use `RunAgentMessage$Outbound` instead. */
1538
+ export type Outbound = RunAgentMessage$Outbound;
1482
1539
  }
1483
1540
 
1484
- export function messageToJSON(message: Message): string {
1485
- return JSON.stringify(Message$outboundSchema.parse(message));
1541
+ export function runAgentMessageToJSON(
1542
+ runAgentMessage: RunAgentMessage,
1543
+ ): string {
1544
+ return JSON.stringify(RunAgentMessage$outboundSchema.parse(runAgentMessage));
1486
1545
  }
1487
1546
 
1488
- export function messageFromJSON(
1547
+ export function runAgentMessageFromJSON(
1489
1548
  jsonString: string,
1490
- ): SafeParseResult<Message, SDKValidationError> {
1549
+ ): SafeParseResult<RunAgentMessage, SDKValidationError> {
1491
1550
  return safeParse(
1492
1551
  jsonString,
1493
- (x) => Message$inboundSchema.parse(JSON.parse(x)),
1494
- `Failed to parse 'Message' from JSON`,
1552
+ (x) => RunAgentMessage$inboundSchema.parse(JSON.parse(x)),
1553
+ `Failed to parse 'RunAgentMessage' from JSON`,
1495
1554
  );
1496
1555
  }
1497
1556
 
1498
1557
  /** @internal */
1499
- export const Contact$inboundSchema: z.ZodType<Contact, z.ZodTypeDef, unknown> =
1500
- z.object({
1501
- id: z.string(),
1502
- display_name: z.string().optional(),
1503
- email: z.string().optional(),
1504
- metadata: z.array(z.record(z.any())).optional(),
1505
- logo_url: z.string().optional(),
1506
- tags: z.array(z.string()).optional(),
1507
- }).transform((v) => {
1508
- return remap$(v, {
1509
- "display_name": "displayName",
1510
- "logo_url": "logoUrl",
1511
- });
1558
+ export const RunAgentContact$inboundSchema: z.ZodType<
1559
+ RunAgentContact,
1560
+ z.ZodTypeDef,
1561
+ unknown
1562
+ > = z.object({
1563
+ id: z.string(),
1564
+ display_name: z.string().optional(),
1565
+ email: z.string().optional(),
1566
+ metadata: z.array(z.record(z.any())).optional(),
1567
+ logo_url: z.string().optional(),
1568
+ tags: z.array(z.string()).optional(),
1569
+ }).transform((v) => {
1570
+ return remap$(v, {
1571
+ "display_name": "displayName",
1572
+ "logo_url": "logoUrl",
1512
1573
  });
1574
+ });
1513
1575
 
1514
1576
  /** @internal */
1515
- export type Contact$Outbound = {
1577
+ export type RunAgentContact$Outbound = {
1516
1578
  id: string;
1517
1579
  display_name?: string | undefined;
1518
1580
  email?: string | undefined;
@@ -1522,10 +1584,10 @@ export type Contact$Outbound = {
1522
1584
  };
1523
1585
 
1524
1586
  /** @internal */
1525
- export const Contact$outboundSchema: z.ZodType<
1526
- Contact$Outbound,
1587
+ export const RunAgentContact$outboundSchema: z.ZodType<
1588
+ RunAgentContact$Outbound,
1527
1589
  z.ZodTypeDef,
1528
- Contact
1590
+ RunAgentContact
1529
1591
  > = z.object({
1530
1592
  id: z.string(),
1531
1593
  displayName: z.string().optional(),
@@ -1544,26 +1606,28 @@ export const Contact$outboundSchema: z.ZodType<
1544
1606
  * @internal
1545
1607
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1546
1608
  */
1547
- export namespace Contact$ {
1548
- /** @deprecated use `Contact$inboundSchema` instead. */
1549
- export const inboundSchema = Contact$inboundSchema;
1550
- /** @deprecated use `Contact$outboundSchema` instead. */
1551
- export const outboundSchema = Contact$outboundSchema;
1552
- /** @deprecated use `Contact$Outbound` instead. */
1553
- export type Outbound = Contact$Outbound;
1609
+ export namespace RunAgentContact$ {
1610
+ /** @deprecated use `RunAgentContact$inboundSchema` instead. */
1611
+ export const inboundSchema = RunAgentContact$inboundSchema;
1612
+ /** @deprecated use `RunAgentContact$outboundSchema` instead. */
1613
+ export const outboundSchema = RunAgentContact$outboundSchema;
1614
+ /** @deprecated use `RunAgentContact$Outbound` instead. */
1615
+ export type Outbound = RunAgentContact$Outbound;
1554
1616
  }
1555
1617
 
1556
- export function contactToJSON(contact: Contact): string {
1557
- return JSON.stringify(Contact$outboundSchema.parse(contact));
1618
+ export function runAgentContactToJSON(
1619
+ runAgentContact: RunAgentContact,
1620
+ ): string {
1621
+ return JSON.stringify(RunAgentContact$outboundSchema.parse(runAgentContact));
1558
1622
  }
1559
1623
 
1560
- export function contactFromJSON(
1624
+ export function runAgentContactFromJSON(
1561
1625
  jsonString: string,
1562
- ): SafeParseResult<Contact, SDKValidationError> {
1626
+ ): SafeParseResult<RunAgentContact, SDKValidationError> {
1563
1627
  return safeParse(
1564
1628
  jsonString,
1565
- (x) => Contact$inboundSchema.parse(JSON.parse(x)),
1566
- `Failed to parse 'Contact' from JSON`,
1629
+ (x) => RunAgentContact$inboundSchema.parse(JSON.parse(x)),
1630
+ `Failed to parse 'RunAgentContact' from JSON`,
1567
1631
  );
1568
1632
  }
1569
1633
 
@@ -1621,25 +1685,28 @@ export function runAgentThreadFromJSON(
1621
1685
  }
1622
1686
 
1623
1687
  /** @internal */
1624
- export const Memory$inboundSchema: z.ZodType<Memory, z.ZodTypeDef, unknown> = z
1625
- .object({
1626
- entity_id: z.string(),
1627
- }).transform((v) => {
1628
- return remap$(v, {
1629
- "entity_id": "entityId",
1630
- });
1688
+ export const RunAgentMemory$inboundSchema: z.ZodType<
1689
+ RunAgentMemory,
1690
+ z.ZodTypeDef,
1691
+ unknown
1692
+ > = z.object({
1693
+ entity_id: z.string(),
1694
+ }).transform((v) => {
1695
+ return remap$(v, {
1696
+ "entity_id": "entityId",
1631
1697
  });
1698
+ });
1632
1699
 
1633
1700
  /** @internal */
1634
- export type Memory$Outbound = {
1701
+ export type RunAgentMemory$Outbound = {
1635
1702
  entity_id: string;
1636
1703
  };
1637
1704
 
1638
1705
  /** @internal */
1639
- export const Memory$outboundSchema: z.ZodType<
1640
- Memory$Outbound,
1706
+ export const RunAgentMemory$outboundSchema: z.ZodType<
1707
+ RunAgentMemory$Outbound,
1641
1708
  z.ZodTypeDef,
1642
- Memory
1709
+ RunAgentMemory
1643
1710
  > = z.object({
1644
1711
  entityId: z.string(),
1645
1712
  }).transform((v) => {
@@ -1652,26 +1719,26 @@ export const Memory$outboundSchema: z.ZodType<
1652
1719
  * @internal
1653
1720
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1654
1721
  */
1655
- export namespace Memory$ {
1656
- /** @deprecated use `Memory$inboundSchema` instead. */
1657
- export const inboundSchema = Memory$inboundSchema;
1658
- /** @deprecated use `Memory$outboundSchema` instead. */
1659
- export const outboundSchema = Memory$outboundSchema;
1660
- /** @deprecated use `Memory$Outbound` instead. */
1661
- export type Outbound = Memory$Outbound;
1722
+ export namespace RunAgentMemory$ {
1723
+ /** @deprecated use `RunAgentMemory$inboundSchema` instead. */
1724
+ export const inboundSchema = RunAgentMemory$inboundSchema;
1725
+ /** @deprecated use `RunAgentMemory$outboundSchema` instead. */
1726
+ export const outboundSchema = RunAgentMemory$outboundSchema;
1727
+ /** @deprecated use `RunAgentMemory$Outbound` instead. */
1728
+ export type Outbound = RunAgentMemory$Outbound;
1662
1729
  }
1663
1730
 
1664
- export function memoryToJSON(memory: Memory): string {
1665
- return JSON.stringify(Memory$outboundSchema.parse(memory));
1731
+ export function runAgentMemoryToJSON(runAgentMemory: RunAgentMemory): string {
1732
+ return JSON.stringify(RunAgentMemory$outboundSchema.parse(runAgentMemory));
1666
1733
  }
1667
1734
 
1668
- export function memoryFromJSON(
1735
+ export function runAgentMemoryFromJSON(
1669
1736
  jsonString: string,
1670
- ): SafeParseResult<Memory, SDKValidationError> {
1737
+ ): SafeParseResult<RunAgentMemory, SDKValidationError> {
1671
1738
  return safeParse(
1672
1739
  jsonString,
1673
- (x) => Memory$inboundSchema.parse(JSON.parse(x)),
1674
- `Failed to parse 'Memory' from JSON`,
1740
+ (x) => RunAgentMemory$inboundSchema.parse(JSON.parse(x)),
1741
+ `Failed to parse 'RunAgentMemory' from JSON`,
1675
1742
  );
1676
1743
  }
1677
1744
 
@@ -3987,11 +4054,11 @@ export const RunAgentRequestBody$inboundSchema: z.ZodType<
3987
4054
  fallback_models: z.array(z.string()).optional(),
3988
4055
  role: z.string(),
3989
4056
  instructions: z.string(),
3990
- message: z.lazy(() => Message$inboundSchema),
4057
+ message: z.lazy(() => RunAgentMessage$inboundSchema),
3991
4058
  variables: z.record(z.any()).optional(),
3992
- contact: z.lazy(() => Contact$inboundSchema).optional(),
4059
+ contact: z.lazy(() => RunAgentContact$inboundSchema).optional(),
3993
4060
  thread: z.lazy(() => RunAgentThread$inboundSchema).optional(),
3994
- memory: z.lazy(() => Memory$inboundSchema).optional(),
4061
+ memory: z.lazy(() => RunAgentMemory$inboundSchema).optional(),
3995
4062
  path: z.string(),
3996
4063
  description: z.string().optional(),
3997
4064
  system_prompt: z.string().optional(),
@@ -4019,11 +4086,11 @@ export type RunAgentRequestBody$Outbound = {
4019
4086
  fallback_models?: Array<string> | undefined;
4020
4087
  role: string;
4021
4088
  instructions: string;
4022
- message: Message$Outbound;
4089
+ message: RunAgentMessage$Outbound;
4023
4090
  variables?: { [k: string]: any } | undefined;
4024
- contact?: Contact$Outbound | undefined;
4091
+ contact?: RunAgentContact$Outbound | undefined;
4025
4092
  thread?: RunAgentThread$Outbound | undefined;
4026
- memory?: Memory$Outbound | undefined;
4093
+ memory?: RunAgentMemory$Outbound | undefined;
4027
4094
  path: string;
4028
4095
  description?: string | undefined;
4029
4096
  system_prompt?: string | undefined;
@@ -4046,11 +4113,11 @@ export const RunAgentRequestBody$outboundSchema: z.ZodType<
4046
4113
  fallbackModels: z.array(z.string()).optional(),
4047
4114
  role: z.string(),
4048
4115
  instructions: z.string(),
4049
- message: z.lazy(() => Message$outboundSchema),
4116
+ message: z.lazy(() => RunAgentMessage$outboundSchema),
4050
4117
  variables: z.record(z.any()).optional(),
4051
- contact: z.lazy(() => Contact$outboundSchema).optional(),
4118
+ contact: z.lazy(() => RunAgentContact$outboundSchema).optional(),
4052
4119
  thread: z.lazy(() => RunAgentThread$outboundSchema).optional(),
4053
- memory: z.lazy(() => Memory$outboundSchema).optional(),
4120
+ memory: z.lazy(() => RunAgentMemory$outboundSchema).optional(),
4054
4121
  path: z.string(),
4055
4122
  description: z.string().optional(),
4056
4123
  systemPrompt: z.string().optional(),
@@ -4184,8 +4251,8 @@ export namespace RunAgentAgentsRole$ {
4184
4251
  }
4185
4252
 
4186
4253
  /** @internal */
4187
- export const RunAgentMessage$inboundSchema: z.ZodType<
4188
- RunAgentMessage,
4254
+ export const RunAgentAgentsMessage$inboundSchema: z.ZodType<
4255
+ RunAgentAgentsMessage,
4189
4256
  z.ZodTypeDef,
4190
4257
  unknown
4191
4258
  > = z.object({
@@ -4196,7 +4263,7 @@ export const RunAgentMessage$inboundSchema: z.ZodType<
4196
4263
  });
4197
4264
 
4198
4265
  /** @internal */
4199
- export type RunAgentMessage$Outbound = {
4266
+ export type RunAgentAgentsMessage$Outbound = {
4200
4267
  kind: string;
4201
4268
  messageId: string;
4202
4269
  role: string;
@@ -4204,10 +4271,10 @@ export type RunAgentMessage$Outbound = {
4204
4271
  };
4205
4272
 
4206
4273
  /** @internal */
4207
- export const RunAgentMessage$outboundSchema: z.ZodType<
4208
- RunAgentMessage$Outbound,
4274
+ export const RunAgentAgentsMessage$outboundSchema: z.ZodType<
4275
+ RunAgentAgentsMessage$Outbound,
4209
4276
  z.ZodTypeDef,
4210
- RunAgentMessage
4277
+ RunAgentAgentsMessage
4211
4278
  > = z.object({
4212
4279
  kind: RunAgentAgentsKind$outboundSchema,
4213
4280
  messageId: z.string(),
@@ -4219,28 +4286,30 @@ export const RunAgentMessage$outboundSchema: z.ZodType<
4219
4286
  * @internal
4220
4287
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4221
4288
  */
4222
- export namespace RunAgentMessage$ {
4223
- /** @deprecated use `RunAgentMessage$inboundSchema` instead. */
4224
- export const inboundSchema = RunAgentMessage$inboundSchema;
4225
- /** @deprecated use `RunAgentMessage$outboundSchema` instead. */
4226
- export const outboundSchema = RunAgentMessage$outboundSchema;
4227
- /** @deprecated use `RunAgentMessage$Outbound` instead. */
4228
- export type Outbound = RunAgentMessage$Outbound;
4289
+ export namespace RunAgentAgentsMessage$ {
4290
+ /** @deprecated use `RunAgentAgentsMessage$inboundSchema` instead. */
4291
+ export const inboundSchema = RunAgentAgentsMessage$inboundSchema;
4292
+ /** @deprecated use `RunAgentAgentsMessage$outboundSchema` instead. */
4293
+ export const outboundSchema = RunAgentAgentsMessage$outboundSchema;
4294
+ /** @deprecated use `RunAgentAgentsMessage$Outbound` instead. */
4295
+ export type Outbound = RunAgentAgentsMessage$Outbound;
4229
4296
  }
4230
4297
 
4231
- export function runAgentMessageToJSON(
4232
- runAgentMessage: RunAgentMessage,
4298
+ export function runAgentAgentsMessageToJSON(
4299
+ runAgentAgentsMessage: RunAgentAgentsMessage,
4233
4300
  ): string {
4234
- return JSON.stringify(RunAgentMessage$outboundSchema.parse(runAgentMessage));
4301
+ return JSON.stringify(
4302
+ RunAgentAgentsMessage$outboundSchema.parse(runAgentAgentsMessage),
4303
+ );
4235
4304
  }
4236
4305
 
4237
- export function runAgentMessageFromJSON(
4306
+ export function runAgentAgentsMessageFromJSON(
4238
4307
  jsonString: string,
4239
- ): SafeParseResult<RunAgentMessage, SDKValidationError> {
4308
+ ): SafeParseResult<RunAgentAgentsMessage, SDKValidationError> {
4240
4309
  return safeParse(
4241
4310
  jsonString,
4242
- (x) => RunAgentMessage$inboundSchema.parse(JSON.parse(x)),
4243
- `Failed to parse 'RunAgentMessage' from JSON`,
4311
+ (x) => RunAgentAgentsMessage$inboundSchema.parse(JSON.parse(x)),
4312
+ `Failed to parse 'RunAgentAgentsMessage' from JSON`,
4244
4313
  );
4245
4314
  }
4246
4315
 
@@ -4252,14 +4321,14 @@ export const RunAgentStatus$inboundSchema: z.ZodType<
4252
4321
  > = z.object({
4253
4322
  state: RunAgentState$inboundSchema,
4254
4323
  timestamp: z.string().optional(),
4255
- message: z.lazy(() => RunAgentMessage$inboundSchema).optional(),
4324
+ message: z.lazy(() => RunAgentAgentsMessage$inboundSchema).optional(),
4256
4325
  });
4257
4326
 
4258
4327
  /** @internal */
4259
4328
  export type RunAgentStatus$Outbound = {
4260
4329
  state: string;
4261
4330
  timestamp?: string | undefined;
4262
- message?: RunAgentMessage$Outbound | undefined;
4331
+ message?: RunAgentAgentsMessage$Outbound | undefined;
4263
4332
  };
4264
4333
 
4265
4334
  /** @internal */
@@ -4270,7 +4339,7 @@ export const RunAgentStatus$outboundSchema: z.ZodType<
4270
4339
  > = z.object({
4271
4340
  state: RunAgentState$outboundSchema,
4272
4341
  timestamp: z.string().optional(),
4273
- message: z.lazy(() => RunAgentMessage$outboundSchema).optional(),
4342
+ message: z.lazy(() => RunAgentAgentsMessage$outboundSchema).optional(),
4274
4343
  });
4275
4344
 
4276
4345
  /**