@orq-ai/node 3.13.5 → 3.13.7

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 (720) hide show
  1. package/README.md +96 -94
  2. package/RUNTIMES.md +6 -6
  3. package/bin/mcp-server.js +1745 -1227
  4. package/bin/mcp-server.js.map +176 -172
  5. package/docs/sdks/agents/README.md +95 -20
  6. package/examples/package-lock.json +1 -1
  7. package/funcs/agentsList.js +1 -1
  8. package/funcs/agentsList.js.map +1 -1
  9. package/funcs/agentsListActions.js +1 -1
  10. package/funcs/agentsListActions.js.map +1 -1
  11. package/funcs/agentsListTasks.d.ts +18 -0
  12. package/funcs/agentsListTasks.d.ts.map +1 -0
  13. package/funcs/agentsListTasks.js +130 -0
  14. package/funcs/agentsListTasks.js.map +1 -0
  15. package/funcs/agentsRetrieve.d.ts +1 -1
  16. package/funcs/agentsRetrieve.js +4 -4
  17. package/funcs/agentsRetrieve.js.map +1 -1
  18. package/funcs/agentsRetrieveAction.js +1 -1
  19. package/funcs/agentsRetrieveAction.js.map +1 -1
  20. package/funcs/agentsRetrieveTask.js +1 -1
  21. package/funcs/agentsRetrieveTask.js.map +1 -1
  22. package/funcs/agentsRun.js +1 -1
  23. package/funcs/agentsRun.js.map +1 -1
  24. package/funcs/agentsStreamRun.js +1 -1
  25. package/funcs/agentsStreamRun.js.map +1 -1
  26. package/funcs/budgetsCreate.js +1 -1
  27. package/funcs/budgetsCreate.js.map +1 -1
  28. package/funcs/budgetsDelete.js +1 -1
  29. package/funcs/budgetsDelete.js.map +1 -1
  30. package/funcs/budgetsGet.js +1 -1
  31. package/funcs/budgetsGet.js.map +1 -1
  32. package/funcs/budgetsList.js +1 -1
  33. package/funcs/budgetsList.js.map +1 -1
  34. package/funcs/budgetsUpdate.js +1 -1
  35. package/funcs/budgetsUpdate.js.map +1 -1
  36. package/funcs/chunkingParse.js +1 -1
  37. package/funcs/chunkingParse.js.map +1 -1
  38. package/funcs/contactsCreate.js +1 -1
  39. package/funcs/contactsCreate.js.map +1 -1
  40. package/funcs/contactsDelete.js +1 -1
  41. package/funcs/contactsDelete.js.map +1 -1
  42. package/funcs/contactsList.js +1 -1
  43. package/funcs/contactsList.js.map +1 -1
  44. package/funcs/contactsRetrieve.js +1 -1
  45. package/funcs/contactsRetrieve.js.map +1 -1
  46. package/funcs/contactsUpdate.js +1 -1
  47. package/funcs/contactsUpdate.js.map +1 -1
  48. package/funcs/datasetsClear.js +1 -1
  49. package/funcs/datasetsClear.js.map +1 -1
  50. package/funcs/datasetsCreate.js +1 -1
  51. package/funcs/datasetsCreate.js.map +1 -1
  52. package/funcs/datasetsCreateDatapoint.js +1 -1
  53. package/funcs/datasetsCreateDatapoint.js.map +1 -1
  54. package/funcs/datasetsDelete.js +1 -1
  55. package/funcs/datasetsDelete.js.map +1 -1
  56. package/funcs/datasetsDeleteDatapoint.js +1 -1
  57. package/funcs/datasetsDeleteDatapoint.js.map +1 -1
  58. package/funcs/datasetsList.js +1 -1
  59. package/funcs/datasetsList.js.map +1 -1
  60. package/funcs/datasetsListDatapoints.js +1 -1
  61. package/funcs/datasetsListDatapoints.js.map +1 -1
  62. package/funcs/datasetsRetrieve.js +1 -1
  63. package/funcs/datasetsRetrieve.js.map +1 -1
  64. package/funcs/datasetsRetrieveDatapoint.js +1 -1
  65. package/funcs/datasetsRetrieveDatapoint.js.map +1 -1
  66. package/funcs/datasetsUpdate.js +1 -1
  67. package/funcs/datasetsUpdate.js.map +1 -1
  68. package/funcs/datasetsUpdateDatapoint.js +1 -1
  69. package/funcs/datasetsUpdateDatapoint.js.map +1 -1
  70. package/funcs/deploymentsGetConfig.js +1 -1
  71. package/funcs/deploymentsGetConfig.js.map +1 -1
  72. package/funcs/deploymentsInvoke.js +1 -1
  73. package/funcs/deploymentsInvoke.js.map +1 -1
  74. package/funcs/deploymentsList.js +1 -1
  75. package/funcs/deploymentsList.js.map +1 -1
  76. package/funcs/deploymentsMetricsCreate.js +1 -1
  77. package/funcs/deploymentsMetricsCreate.js.map +1 -1
  78. package/funcs/deploymentsStream.js +1 -1
  79. package/funcs/deploymentsStream.js.map +1 -1
  80. package/funcs/evalsAgeAppropriate.js +1 -1
  81. package/funcs/evalsAgeAppropriate.js.map +1 -1
  82. package/funcs/evalsAll.js +1 -1
  83. package/funcs/evalsAll.js.map +1 -1
  84. package/funcs/evalsBertScore.js +1 -1
  85. package/funcs/evalsBertScore.js.map +1 -1
  86. package/funcs/evalsBleuScore.js +1 -1
  87. package/funcs/evalsBleuScore.js.map +1 -1
  88. package/funcs/evalsBotDetection.js +1 -1
  89. package/funcs/evalsBotDetection.js.map +1 -1
  90. package/funcs/evalsContains.js +1 -1
  91. package/funcs/evalsContains.js.map +1 -1
  92. package/funcs/evalsContainsAll.js +1 -1
  93. package/funcs/evalsContainsAll.js.map +1 -1
  94. package/funcs/evalsContainsAny.js +1 -1
  95. package/funcs/evalsContainsAny.js.map +1 -1
  96. package/funcs/evalsContainsEmail.js +1 -1
  97. package/funcs/evalsContainsEmail.js.map +1 -1
  98. package/funcs/evalsContainsNone.js +1 -1
  99. package/funcs/evalsContainsNone.js.map +1 -1
  100. package/funcs/evalsContainsUrl.js +1 -1
  101. package/funcs/evalsContainsUrl.js.map +1 -1
  102. package/funcs/evalsContainsValidLink.js +1 -1
  103. package/funcs/evalsContainsValidLink.js.map +1 -1
  104. package/funcs/evalsCreate.js +1 -1
  105. package/funcs/evalsCreate.js.map +1 -1
  106. package/funcs/evalsDelete.js +1 -1
  107. package/funcs/evalsDelete.js.map +1 -1
  108. package/funcs/evalsEndsWith.js +1 -1
  109. package/funcs/evalsEndsWith.js.map +1 -1
  110. package/funcs/evalsExactMatch.js +1 -1
  111. package/funcs/evalsExactMatch.js.map +1 -1
  112. package/funcs/evalsFactCheckingKnowledgeBase.js +1 -1
  113. package/funcs/evalsFactCheckingKnowledgeBase.js.map +1 -1
  114. package/funcs/evalsGrammar.js +1 -1
  115. package/funcs/evalsGrammar.js.map +1 -1
  116. package/funcs/evalsInvoke.js +1 -1
  117. package/funcs/evalsInvoke.js.map +1 -1
  118. package/funcs/evalsLengthBetween.js +1 -1
  119. package/funcs/evalsLengthBetween.js.map +1 -1
  120. package/funcs/evalsLengthGreaterThan.js +1 -1
  121. package/funcs/evalsLengthGreaterThan.js.map +1 -1
  122. package/funcs/evalsLengthLessThan.js +1 -1
  123. package/funcs/evalsLengthLessThan.js.map +1 -1
  124. package/funcs/evalsLocalization.js +1 -1
  125. package/funcs/evalsLocalization.js.map +1 -1
  126. package/funcs/evalsPii.js +1 -1
  127. package/funcs/evalsPii.js.map +1 -1
  128. package/funcs/evalsRagasCoherence.js +1 -1
  129. package/funcs/evalsRagasCoherence.js.map +1 -1
  130. package/funcs/evalsRagasConciseness.js +1 -1
  131. package/funcs/evalsRagasConciseness.js.map +1 -1
  132. package/funcs/evalsRagasContextEntitiesRecall.js +1 -1
  133. package/funcs/evalsRagasContextEntitiesRecall.js.map +1 -1
  134. package/funcs/evalsRagasContextPrecision.js +1 -1
  135. package/funcs/evalsRagasContextPrecision.js.map +1 -1
  136. package/funcs/evalsRagasContextRecall.js +1 -1
  137. package/funcs/evalsRagasContextRecall.js.map +1 -1
  138. package/funcs/evalsRagasCorrectness.js +1 -1
  139. package/funcs/evalsRagasCorrectness.js.map +1 -1
  140. package/funcs/evalsRagasFaithfulness.js +1 -1
  141. package/funcs/evalsRagasFaithfulness.js.map +1 -1
  142. package/funcs/evalsRagasHarmfulness.js +1 -1
  143. package/funcs/evalsRagasHarmfulness.js.map +1 -1
  144. package/funcs/evalsRagasMaliciousness.js +1 -1
  145. package/funcs/evalsRagasMaliciousness.js.map +1 -1
  146. package/funcs/evalsRagasNoiseSensitivity.js +1 -1
  147. package/funcs/evalsRagasNoiseSensitivity.js.map +1 -1
  148. package/funcs/evalsRagasResponseRelevancy.js +1 -1
  149. package/funcs/evalsRagasResponseRelevancy.js.map +1 -1
  150. package/funcs/evalsRagasSummarization.js +1 -1
  151. package/funcs/evalsRagasSummarization.js.map +1 -1
  152. package/funcs/evalsSentimentClassification.js +1 -1
  153. package/funcs/evalsSentimentClassification.js.map +1 -1
  154. package/funcs/evalsSummarization.js +1 -1
  155. package/funcs/evalsSummarization.js.map +1 -1
  156. package/funcs/evalsToneOfVoice.js +1 -1
  157. package/funcs/evalsToneOfVoice.js.map +1 -1
  158. package/funcs/evalsTranslation.js +1 -1
  159. package/funcs/evalsTranslation.js.map +1 -1
  160. package/funcs/evalsUpdate.js +1 -1
  161. package/funcs/evalsUpdate.js.map +1 -1
  162. package/funcs/evalsValidJson.js +1 -1
  163. package/funcs/evalsValidJson.js.map +1 -1
  164. package/funcs/feedbackCreate.js +1 -1
  165. package/funcs/feedbackCreate.js.map +1 -1
  166. package/funcs/filesCreate.js +1 -1
  167. package/funcs/filesCreate.js.map +1 -1
  168. package/funcs/filesDelete.js +1 -1
  169. package/funcs/filesDelete.js.map +1 -1
  170. package/funcs/filesGet.js +1 -1
  171. package/funcs/filesGet.js.map +1 -1
  172. package/funcs/filesList.js +1 -1
  173. package/funcs/filesList.js.map +1 -1
  174. package/funcs/knowledgeCreate.js +1 -1
  175. package/funcs/knowledgeCreate.js.map +1 -1
  176. package/funcs/knowledgeCreateChunks.js +1 -1
  177. package/funcs/knowledgeCreateChunks.js.map +1 -1
  178. package/funcs/knowledgeCreateDatasource.js +1 -1
  179. package/funcs/knowledgeCreateDatasource.js.map +1 -1
  180. package/funcs/knowledgeDelete.js +1 -1
  181. package/funcs/knowledgeDelete.js.map +1 -1
  182. package/funcs/knowledgeDeleteChunk.js +1 -1
  183. package/funcs/knowledgeDeleteChunk.js.map +1 -1
  184. package/funcs/knowledgeDeleteDatasource.js +1 -1
  185. package/funcs/knowledgeDeleteDatasource.js.map +1 -1
  186. package/funcs/knowledgeList.js +1 -1
  187. package/funcs/knowledgeList.js.map +1 -1
  188. package/funcs/knowledgeListChunks.js +1 -1
  189. package/funcs/knowledgeListChunks.js.map +1 -1
  190. package/funcs/knowledgeListDatasources.js +1 -1
  191. package/funcs/knowledgeListDatasources.js.map +1 -1
  192. package/funcs/knowledgeRetrieve.js +1 -1
  193. package/funcs/knowledgeRetrieve.js.map +1 -1
  194. package/funcs/knowledgeRetrieveChunk.js +1 -1
  195. package/funcs/knowledgeRetrieveChunk.js.map +1 -1
  196. package/funcs/knowledgeRetrieveDatasource.js +1 -1
  197. package/funcs/knowledgeRetrieveDatasource.js.map +1 -1
  198. package/funcs/knowledgeSearch.js +1 -1
  199. package/funcs/knowledgeSearch.js.map +1 -1
  200. package/funcs/knowledgeUpdate.js +1 -1
  201. package/funcs/knowledgeUpdate.js.map +1 -1
  202. package/funcs/knowledgeUpdateChunk.js +1 -1
  203. package/funcs/knowledgeUpdateChunk.js.map +1 -1
  204. package/funcs/knowledgeUpdateDatasource.js +1 -1
  205. package/funcs/knowledgeUpdateDatasource.js.map +1 -1
  206. package/funcs/memoryStoresCreate.js +1 -1
  207. package/funcs/memoryStoresCreate.js.map +1 -1
  208. package/funcs/memoryStoresCreateDocument.js +1 -1
  209. package/funcs/memoryStoresCreateDocument.js.map +1 -1
  210. package/funcs/memoryStoresCreateMemory.js +1 -1
  211. package/funcs/memoryStoresCreateMemory.js.map +1 -1
  212. package/funcs/memoryStoresDelete.js +1 -1
  213. package/funcs/memoryStoresDelete.js.map +1 -1
  214. package/funcs/memoryStoresDeleteDocument.js +1 -1
  215. package/funcs/memoryStoresDeleteDocument.js.map +1 -1
  216. package/funcs/memoryStoresDeleteMemory.js +1 -1
  217. package/funcs/memoryStoresDeleteMemory.js.map +1 -1
  218. package/funcs/memoryStoresList.js +1 -1
  219. package/funcs/memoryStoresList.js.map +1 -1
  220. package/funcs/memoryStoresListDocuments.js +1 -1
  221. package/funcs/memoryStoresListDocuments.js.map +1 -1
  222. package/funcs/memoryStoresListMemories.js +1 -1
  223. package/funcs/memoryStoresListMemories.js.map +1 -1
  224. package/funcs/memoryStoresRetrieve.js +1 -1
  225. package/funcs/memoryStoresRetrieve.js.map +1 -1
  226. package/funcs/memoryStoresRetrieveDocument.js +1 -1
  227. package/funcs/memoryStoresRetrieveDocument.js.map +1 -1
  228. package/funcs/memoryStoresRetrieveMemory.js +1 -1
  229. package/funcs/memoryStoresRetrieveMemory.js.map +1 -1
  230. package/funcs/memoryStoresUpdate.js +1 -1
  231. package/funcs/memoryStoresUpdate.js.map +1 -1
  232. package/funcs/memoryStoresUpdateDocument.js +1 -1
  233. package/funcs/memoryStoresUpdateDocument.js.map +1 -1
  234. package/funcs/memoryStoresUpdateMemory.js +1 -1
  235. package/funcs/memoryStoresUpdateMemory.js.map +1 -1
  236. package/funcs/modelsList.js +1 -1
  237. package/funcs/modelsList.js.map +1 -1
  238. package/funcs/promptsCreate.js +1 -1
  239. package/funcs/promptsCreate.js.map +1 -1
  240. package/funcs/promptsDelete.js +1 -1
  241. package/funcs/promptsDelete.js.map +1 -1
  242. package/funcs/promptsGetVersion.js +1 -1
  243. package/funcs/promptsGetVersion.js.map +1 -1
  244. package/funcs/promptsList.js +1 -1
  245. package/funcs/promptsList.js.map +1 -1
  246. package/funcs/promptsListVersions.js +1 -1
  247. package/funcs/promptsListVersions.js.map +1 -1
  248. package/funcs/promptsRetrieve.js +1 -1
  249. package/funcs/promptsRetrieve.js.map +1 -1
  250. package/funcs/promptsUpdate.js +1 -1
  251. package/funcs/promptsUpdate.js.map +1 -1
  252. package/funcs/remoteconfigsRetrieve.js +1 -1
  253. package/funcs/remoteconfigsRetrieve.js.map +1 -1
  254. package/funcs/toolsCreate.js +1 -1
  255. package/funcs/toolsCreate.js.map +1 -1
  256. package/funcs/toolsDelete.js +1 -1
  257. package/funcs/toolsDelete.js.map +1 -1
  258. package/funcs/toolsDuplicate.js +1 -1
  259. package/funcs/toolsDuplicate.js.map +1 -1
  260. package/funcs/toolsList.js +1 -1
  261. package/funcs/toolsList.js.map +1 -1
  262. package/funcs/toolsRetrieve.js +1 -1
  263. package/funcs/toolsRetrieve.js.map +1 -1
  264. package/funcs/toolsUpdate.js +1 -1
  265. package/funcs/toolsUpdate.js.map +1 -1
  266. package/jsr.json +1 -1
  267. package/lib/config.d.ts +3 -3
  268. package/lib/config.js +3 -3
  269. package/lib/config.js.map +1 -1
  270. package/mcp-server/mcp-server.js +1 -1
  271. package/mcp-server/server.d.ts.map +1 -1
  272. package/mcp-server/server.js +4 -2
  273. package/mcp-server/server.js.map +1 -1
  274. package/mcp-server/tools/agentsListTasks.d.ts +8 -0
  275. package/mcp-server/tools/agentsListTasks.d.ts.map +1 -0
  276. package/mcp-server/tools/agentsListTasks.js +64 -0
  277. package/mcp-server/tools/agentsListTasks.js.map +1 -0
  278. package/mcp-server/tools/agentsRetrieve.js +1 -1
  279. package/mcp-server/tools/agentsRetrieve.js.map +1 -1
  280. package/models/errors/index.d.ts +1 -0
  281. package/models/errors/index.d.ts.map +1 -1
  282. package/models/errors/index.js +1 -0
  283. package/models/errors/index.js.map +1 -1
  284. package/models/errors/listagenttasks.d.ts +41 -0
  285. package/models/errors/listagenttasks.d.ts.map +1 -0
  286. package/models/errors/listagenttasks.js +85 -0
  287. package/models/errors/listagenttasks.js.map +1 -0
  288. package/models/operations/createbudget.js +2 -2
  289. package/models/operations/createcontact.js +2 -2
  290. package/models/operations/createdataset.js +2 -2
  291. package/models/operations/createdatasetitem.js +2 -2
  292. package/models/operations/createdatasource.js +2 -2
  293. package/models/operations/createeval.js +28 -28
  294. package/models/operations/createtool.js +14 -14
  295. package/models/operations/duplicatetool.js +10 -10
  296. package/models/operations/fileget.js +2 -2
  297. package/models/operations/filelist.js +2 -2
  298. package/models/operations/fileupload.js +2 -2
  299. package/models/operations/getagent.d.ts +7 -7
  300. package/models/operations/getagent.d.ts.map +1 -1
  301. package/models/operations/getagent.js +16 -8
  302. package/models/operations/getagent.js.map +1 -1
  303. package/models/operations/getalltools.js +10 -10
  304. package/models/operations/getbudget.js +2 -2
  305. package/models/operations/getevals.js +28 -28
  306. package/models/operations/index.d.ts +1 -0
  307. package/models/operations/index.d.ts.map +1 -1
  308. package/models/operations/index.js +1 -0
  309. package/models/operations/index.js.map +1 -1
  310. package/models/operations/listagents.d.ts +4 -4
  311. package/models/operations/listagents.d.ts.map +1 -1
  312. package/models/operations/listagents.js +6 -6
  313. package/models/operations/listagents.js.map +1 -1
  314. package/models/operations/listagenttasks.d.ts +523 -0
  315. package/models/operations/listagenttasks.d.ts.map +1 -0
  316. package/models/operations/listagenttasks.js +609 -0
  317. package/models/operations/listagenttasks.js.map +1 -0
  318. package/models/operations/listbudgets.js +2 -2
  319. package/models/operations/listchunks.d.ts +13 -13
  320. package/models/operations/listchunks.d.ts.map +1 -1
  321. package/models/operations/listchunks.js +16 -16
  322. package/models/operations/listchunks.js.map +1 -1
  323. package/models/operations/listcontacts.js +2 -2
  324. package/models/operations/listdatasetdatapoints.js +2 -2
  325. package/models/operations/listdatasets.js +2 -2
  326. package/models/operations/listdatasources.d.ts +13 -13
  327. package/models/operations/listdatasources.d.ts.map +1 -1
  328. package/models/operations/listdatasources.js +18 -19
  329. package/models/operations/listdatasources.js.map +1 -1
  330. package/models/operations/retrievecontact.js +2 -2
  331. package/models/operations/retrievedatapoint.js +2 -2
  332. package/models/operations/retrievedataset.js +2 -2
  333. package/models/operations/retrievedatasource.js +2 -2
  334. package/models/operations/retrievetool.js +10 -10
  335. package/models/operations/runagent.js +2 -2
  336. package/models/operations/streamrunagent.js +2 -2
  337. package/models/operations/updatebudget.js +2 -2
  338. package/models/operations/updatecontact.js +2 -2
  339. package/models/operations/updatedatapoint.js +2 -2
  340. package/models/operations/updatedataset.js +2 -2
  341. package/models/operations/updatedatasource.js +2 -2
  342. package/models/operations/updateeval.js +28 -28
  343. package/models/operations/updatetool.js +14 -14
  344. package/package.json +1 -1
  345. package/packages/orq-rc/README.md +98 -94
  346. package/packages/orq-rc/RUNTIMES.md +6 -6
  347. package/packages/orq-rc/docs/sdks/agents/README.md +269 -0
  348. package/packages/orq-rc/examples/package-lock.json +1 -1
  349. package/packages/orq-rc/jsr.json +1 -1
  350. package/packages/orq-rc/package-lock.json +2 -2
  351. package/packages/orq-rc/package.json +1 -1
  352. package/packages/orq-rc/src/funcs/agentsInvoke.ts +167 -0
  353. package/packages/orq-rc/src/funcs/agentsList.ts +1 -1
  354. package/packages/orq-rc/src/funcs/agentsListActions.ts +1 -1
  355. package/packages/orq-rc/src/funcs/agentsListTasks.ts +1 -1
  356. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +1 -1
  357. package/packages/orq-rc/src/funcs/agentsRetrieveAction.ts +1 -1
  358. package/packages/orq-rc/src/funcs/agentsRetrieveTask.ts +1 -1
  359. package/packages/orq-rc/src/funcs/agentsRun.ts +1 -1
  360. package/packages/orq-rc/src/funcs/agentsStream.ts +191 -0
  361. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +1 -1
  362. package/packages/orq-rc/src/funcs/budgetsCreate.ts +1 -1
  363. package/packages/orq-rc/src/funcs/budgetsDelete.ts +1 -1
  364. package/packages/orq-rc/src/funcs/budgetsGet.ts +1 -1
  365. package/packages/orq-rc/src/funcs/budgetsList.ts +1 -1
  366. package/packages/orq-rc/src/funcs/budgetsUpdate.ts +1 -1
  367. package/packages/orq-rc/src/funcs/chunkingParse.ts +1 -1
  368. package/packages/orq-rc/src/funcs/contactsCreate.ts +1 -1
  369. package/packages/orq-rc/src/funcs/contactsDelete.ts +1 -1
  370. package/packages/orq-rc/src/funcs/contactsList.ts +1 -1
  371. package/packages/orq-rc/src/funcs/contactsRetrieve.ts +1 -1
  372. package/packages/orq-rc/src/funcs/contactsUpdate.ts +1 -1
  373. package/packages/orq-rc/src/funcs/datasetsClear.ts +1 -1
  374. package/packages/orq-rc/src/funcs/datasetsCreate.ts +1 -1
  375. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +1 -1
  376. package/packages/orq-rc/src/funcs/datasetsDelete.ts +1 -1
  377. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +1 -1
  378. package/packages/orq-rc/src/funcs/datasetsList.ts +1 -1
  379. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +1 -1
  380. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +1 -1
  381. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +1 -1
  382. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +1 -1
  383. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +1 -1
  384. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +1 -1
  385. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +1 -1
  386. package/packages/orq-rc/src/funcs/deploymentsList.ts +1 -1
  387. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +1 -1
  388. package/packages/orq-rc/src/funcs/deploymentsStream.ts +1 -1
  389. package/packages/orq-rc/src/funcs/evalsAgeAppropriate.ts +1 -1
  390. package/packages/orq-rc/src/funcs/evalsAll.ts +1 -1
  391. package/packages/orq-rc/src/funcs/evalsBertScore.ts +1 -1
  392. package/packages/orq-rc/src/funcs/evalsBleuScore.ts +1 -1
  393. package/packages/orq-rc/src/funcs/evalsBotDetection.ts +1 -1
  394. package/packages/orq-rc/src/funcs/evalsContains.ts +1 -1
  395. package/packages/orq-rc/src/funcs/evalsContainsAll.ts +1 -1
  396. package/packages/orq-rc/src/funcs/evalsContainsAny.ts +1 -1
  397. package/packages/orq-rc/src/funcs/evalsContainsEmail.ts +1 -1
  398. package/packages/orq-rc/src/funcs/evalsContainsNone.ts +1 -1
  399. package/packages/orq-rc/src/funcs/evalsContainsUrl.ts +1 -1
  400. package/packages/orq-rc/src/funcs/evalsContainsValidLink.ts +1 -1
  401. package/packages/orq-rc/src/funcs/evalsCreate.ts +1 -1
  402. package/packages/orq-rc/src/funcs/evalsDelete.ts +1 -1
  403. package/packages/orq-rc/src/funcs/evalsEndsWith.ts +1 -1
  404. package/packages/orq-rc/src/funcs/evalsExactMatch.ts +1 -1
  405. package/packages/orq-rc/src/funcs/evalsFactCheckingKnowledgeBase.ts +1 -1
  406. package/packages/orq-rc/src/funcs/evalsGrammar.ts +1 -1
  407. package/packages/orq-rc/src/funcs/evalsInvoke.ts +1 -1
  408. package/packages/orq-rc/src/funcs/evalsLengthBetween.ts +1 -1
  409. package/packages/orq-rc/src/funcs/evalsLengthGreaterThan.ts +1 -1
  410. package/packages/orq-rc/src/funcs/evalsLengthLessThan.ts +1 -1
  411. package/packages/orq-rc/src/funcs/evalsLocalization.ts +1 -1
  412. package/packages/orq-rc/src/funcs/evalsPii.ts +1 -1
  413. package/packages/orq-rc/src/funcs/evalsRagasCoherence.ts +1 -1
  414. package/packages/orq-rc/src/funcs/evalsRagasConciseness.ts +1 -1
  415. package/packages/orq-rc/src/funcs/evalsRagasContextEntitiesRecall.ts +1 -1
  416. package/packages/orq-rc/src/funcs/evalsRagasContextPrecision.ts +1 -1
  417. package/packages/orq-rc/src/funcs/evalsRagasContextRecall.ts +1 -1
  418. package/packages/orq-rc/src/funcs/evalsRagasCorrectness.ts +1 -1
  419. package/packages/orq-rc/src/funcs/evalsRagasFaithfulness.ts +1 -1
  420. package/packages/orq-rc/src/funcs/evalsRagasHarmfulness.ts +1 -1
  421. package/packages/orq-rc/src/funcs/evalsRagasMaliciousness.ts +1 -1
  422. package/packages/orq-rc/src/funcs/evalsRagasNoiseSensitivity.ts +1 -1
  423. package/packages/orq-rc/src/funcs/evalsRagasResponseRelevancy.ts +1 -1
  424. package/packages/orq-rc/src/funcs/evalsRagasSummarization.ts +1 -1
  425. package/packages/orq-rc/src/funcs/evalsSentimentClassification.ts +1 -1
  426. package/packages/orq-rc/src/funcs/evalsSummarization.ts +1 -1
  427. package/packages/orq-rc/src/funcs/evalsToneOfVoice.ts +1 -1
  428. package/packages/orq-rc/src/funcs/evalsTranslation.ts +1 -1
  429. package/packages/orq-rc/src/funcs/evalsUpdate.ts +1 -1
  430. package/packages/orq-rc/src/funcs/evalsValidJson.ts +1 -1
  431. package/packages/orq-rc/src/funcs/feedbackCreate.ts +1 -1
  432. package/packages/orq-rc/src/funcs/filesCreate.ts +1 -1
  433. package/packages/orq-rc/src/funcs/filesDelete.ts +1 -1
  434. package/packages/orq-rc/src/funcs/filesGet.ts +1 -1
  435. package/packages/orq-rc/src/funcs/filesList.ts +1 -1
  436. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +1 -1
  437. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +1 -1
  438. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +1 -1
  439. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +1 -1
  440. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +1 -1
  441. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +1 -1
  442. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +1 -1
  443. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +1 -1
  444. package/packages/orq-rc/src/funcs/knowledgeList.ts +1 -1
  445. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +1 -1
  446. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +1 -1
  447. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +1 -1
  448. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +1 -1
  449. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +1 -1
  450. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +1 -1
  451. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +1 -1
  452. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +1 -1
  453. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +1 -1
  454. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +1 -1
  455. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +1 -1
  456. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +1 -1
  457. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +1 -1
  458. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +1 -1
  459. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +1 -1
  460. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +1 -1
  461. package/packages/orq-rc/src/funcs/memoryStoresList.ts +1 -1
  462. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +1 -1
  463. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +1 -1
  464. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +1 -1
  465. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +1 -1
  466. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +1 -1
  467. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +1 -1
  468. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +1 -1
  469. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +1 -1
  470. package/packages/orq-rc/src/funcs/modelsList.ts +1 -1
  471. package/packages/orq-rc/src/funcs/promptsCreate.ts +1 -1
  472. package/packages/orq-rc/src/funcs/promptsDelete.ts +1 -1
  473. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +1 -1
  474. package/packages/orq-rc/src/funcs/promptsList.ts +1 -1
  475. package/packages/orq-rc/src/funcs/promptsListVersions.ts +1 -1
  476. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +1 -1
  477. package/packages/orq-rc/src/funcs/promptsUpdate.ts +1 -1
  478. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +1 -1
  479. package/packages/orq-rc/src/funcs/toolsCreate.ts +1 -1
  480. package/packages/orq-rc/src/funcs/toolsDelete.ts +1 -1
  481. package/packages/orq-rc/src/funcs/toolsDuplicate.ts +1 -1
  482. package/packages/orq-rc/src/funcs/toolsList.ts +1 -1
  483. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +1 -1
  484. package/packages/orq-rc/src/funcs/toolsUpdate.ts +1 -1
  485. package/packages/orq-rc/src/lib/config.ts +3 -3
  486. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  487. package/packages/orq-rc/src/mcp-server/server.ts +5 -1
  488. package/packages/orq-rc/src/mcp-server/tools/agentsInvoke.ts +37 -0
  489. package/packages/orq-rc/src/mcp-server/tools/agentsStream.ts +37 -0
  490. package/packages/orq-rc/src/models/errors/index.ts +1 -0
  491. package/packages/orq-rc/src/models/errors/streamagent.ts +80 -0
  492. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  493. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  494. package/packages/orq-rc/src/models/operations/createdataset.ts +6 -6
  495. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +701 -2
  496. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  497. package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
  498. package/packages/orq-rc/src/models/operations/createprompt.ts +2 -0
  499. package/packages/orq-rc/src/models/operations/createtool.ts +10 -10
  500. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +1 -0
  501. package/packages/orq-rc/src/models/operations/deployments.ts +1 -0
  502. package/packages/orq-rc/src/models/operations/deploymentstream.ts +1 -0
  503. package/packages/orq-rc/src/models/operations/duplicatetool.ts +10 -10
  504. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  505. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  506. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  507. package/packages/orq-rc/src/models/operations/getagent.ts +2 -2
  508. package/packages/orq-rc/src/models/operations/getallprompts.ts +1 -0
  509. package/packages/orq-rc/src/models/operations/getalltools.ts +10 -10
  510. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  511. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  512. package/packages/orq-rc/src/models/operations/getoneprompt.ts +1 -0
  513. package/packages/orq-rc/src/models/operations/getpromptversion.ts +1 -0
  514. package/packages/orq-rc/src/models/operations/index.ts +2 -0
  515. package/packages/orq-rc/src/models/operations/invokeagent.ts +1561 -0
  516. package/packages/orq-rc/src/models/operations/listagents.ts +2 -2
  517. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  518. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  519. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +785 -2
  520. package/packages/orq-rc/src/models/operations/listdatasets.ts +6 -6
  521. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  522. package/packages/orq-rc/src/models/operations/listpromptversions.ts +1 -0
  523. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  524. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +767 -2
  525. package/packages/orq-rc/src/models/operations/retrievedataset.ts +6 -6
  526. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  527. package/packages/orq-rc/src/models/operations/retrievetool.ts +10 -10
  528. package/packages/orq-rc/src/models/operations/runagent.ts +443 -374
  529. package/packages/orq-rc/src/models/operations/streamagent.ts +1365 -0
  530. package/packages/orq-rc/src/models/operations/streamrunagent.ts +207 -165
  531. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  532. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  533. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +763 -2
  534. package/packages/orq-rc/src/models/operations/updatedataset.ts +6 -22
  535. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  536. package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
  537. package/packages/orq-rc/src/models/operations/updatememorystore.ts +1 -0
  538. package/packages/orq-rc/src/models/operations/updateprompt.ts +2 -0
  539. package/packages/orq-rc/src/models/operations/updatetool.ts +10 -10
  540. package/packages/orq-rc/src/sdk/agents.ts +36 -0
  541. package/sdk/agents.d.ts +11 -4
  542. package/sdk/agents.d.ts.map +1 -1
  543. package/sdk/agents.js +15 -5
  544. package/sdk/agents.js.map +1 -1
  545. package/src/funcs/agentsList.ts +1 -1
  546. package/src/funcs/agentsListActions.ts +1 -1
  547. package/src/funcs/agentsListTasks.ts +183 -0
  548. package/src/funcs/agentsRetrieve.ts +4 -4
  549. package/src/funcs/agentsRetrieveAction.ts +1 -1
  550. package/src/funcs/agentsRetrieveTask.ts +1 -1
  551. package/src/funcs/agentsRun.ts +1 -1
  552. package/src/funcs/agentsStreamRun.ts +1 -1
  553. package/src/funcs/budgetsCreate.ts +1 -1
  554. package/src/funcs/budgetsDelete.ts +1 -1
  555. package/src/funcs/budgetsGet.ts +1 -1
  556. package/src/funcs/budgetsList.ts +1 -1
  557. package/src/funcs/budgetsUpdate.ts +1 -1
  558. package/src/funcs/chunkingParse.ts +1 -1
  559. package/src/funcs/contactsCreate.ts +1 -1
  560. package/src/funcs/contactsDelete.ts +1 -1
  561. package/src/funcs/contactsList.ts +1 -1
  562. package/src/funcs/contactsRetrieve.ts +1 -1
  563. package/src/funcs/contactsUpdate.ts +1 -1
  564. package/src/funcs/datasetsClear.ts +1 -1
  565. package/src/funcs/datasetsCreate.ts +1 -1
  566. package/src/funcs/datasetsCreateDatapoint.ts +1 -1
  567. package/src/funcs/datasetsDelete.ts +1 -1
  568. package/src/funcs/datasetsDeleteDatapoint.ts +1 -1
  569. package/src/funcs/datasetsList.ts +1 -1
  570. package/src/funcs/datasetsListDatapoints.ts +1 -1
  571. package/src/funcs/datasetsRetrieve.ts +1 -1
  572. package/src/funcs/datasetsRetrieveDatapoint.ts +1 -1
  573. package/src/funcs/datasetsUpdate.ts +1 -1
  574. package/src/funcs/datasetsUpdateDatapoint.ts +1 -1
  575. package/src/funcs/deploymentsGetConfig.ts +1 -1
  576. package/src/funcs/deploymentsInvoke.ts +1 -1
  577. package/src/funcs/deploymentsList.ts +1 -1
  578. package/src/funcs/deploymentsMetricsCreate.ts +1 -1
  579. package/src/funcs/deploymentsStream.ts +1 -1
  580. package/src/funcs/evalsAgeAppropriate.ts +1 -1
  581. package/src/funcs/evalsAll.ts +1 -1
  582. package/src/funcs/evalsBertScore.ts +1 -1
  583. package/src/funcs/evalsBleuScore.ts +1 -1
  584. package/src/funcs/evalsBotDetection.ts +1 -1
  585. package/src/funcs/evalsContains.ts +1 -1
  586. package/src/funcs/evalsContainsAll.ts +1 -1
  587. package/src/funcs/evalsContainsAny.ts +1 -1
  588. package/src/funcs/evalsContainsEmail.ts +1 -1
  589. package/src/funcs/evalsContainsNone.ts +1 -1
  590. package/src/funcs/evalsContainsUrl.ts +1 -1
  591. package/src/funcs/evalsContainsValidLink.ts +1 -1
  592. package/src/funcs/evalsCreate.ts +1 -1
  593. package/src/funcs/evalsDelete.ts +1 -1
  594. package/src/funcs/evalsEndsWith.ts +1 -1
  595. package/src/funcs/evalsExactMatch.ts +1 -1
  596. package/src/funcs/evalsFactCheckingKnowledgeBase.ts +1 -1
  597. package/src/funcs/evalsGrammar.ts +1 -1
  598. package/src/funcs/evalsInvoke.ts +1 -1
  599. package/src/funcs/evalsLengthBetween.ts +1 -1
  600. package/src/funcs/evalsLengthGreaterThan.ts +1 -1
  601. package/src/funcs/evalsLengthLessThan.ts +1 -1
  602. package/src/funcs/evalsLocalization.ts +1 -1
  603. package/src/funcs/evalsPii.ts +1 -1
  604. package/src/funcs/evalsRagasCoherence.ts +1 -1
  605. package/src/funcs/evalsRagasConciseness.ts +1 -1
  606. package/src/funcs/evalsRagasContextEntitiesRecall.ts +1 -1
  607. package/src/funcs/evalsRagasContextPrecision.ts +1 -1
  608. package/src/funcs/evalsRagasContextRecall.ts +1 -1
  609. package/src/funcs/evalsRagasCorrectness.ts +1 -1
  610. package/src/funcs/evalsRagasFaithfulness.ts +1 -1
  611. package/src/funcs/evalsRagasHarmfulness.ts +1 -1
  612. package/src/funcs/evalsRagasMaliciousness.ts +1 -1
  613. package/src/funcs/evalsRagasNoiseSensitivity.ts +1 -1
  614. package/src/funcs/evalsRagasResponseRelevancy.ts +1 -1
  615. package/src/funcs/evalsRagasSummarization.ts +1 -1
  616. package/src/funcs/evalsSentimentClassification.ts +1 -1
  617. package/src/funcs/evalsSummarization.ts +1 -1
  618. package/src/funcs/evalsToneOfVoice.ts +1 -1
  619. package/src/funcs/evalsTranslation.ts +1 -1
  620. package/src/funcs/evalsUpdate.ts +1 -1
  621. package/src/funcs/evalsValidJson.ts +1 -1
  622. package/src/funcs/feedbackCreate.ts +1 -1
  623. package/src/funcs/filesCreate.ts +1 -1
  624. package/src/funcs/filesDelete.ts +1 -1
  625. package/src/funcs/filesGet.ts +1 -1
  626. package/src/funcs/filesList.ts +1 -1
  627. package/src/funcs/knowledgeCreate.ts +1 -1
  628. package/src/funcs/knowledgeCreateChunks.ts +1 -1
  629. package/src/funcs/knowledgeCreateDatasource.ts +1 -1
  630. package/src/funcs/knowledgeDelete.ts +1 -1
  631. package/src/funcs/knowledgeDeleteChunk.ts +1 -1
  632. package/src/funcs/knowledgeDeleteDatasource.ts +1 -1
  633. package/src/funcs/knowledgeList.ts +1 -1
  634. package/src/funcs/knowledgeListChunks.ts +1 -1
  635. package/src/funcs/knowledgeListDatasources.ts +1 -1
  636. package/src/funcs/knowledgeRetrieve.ts +1 -1
  637. package/src/funcs/knowledgeRetrieveChunk.ts +1 -1
  638. package/src/funcs/knowledgeRetrieveDatasource.ts +1 -1
  639. package/src/funcs/knowledgeSearch.ts +1 -1
  640. package/src/funcs/knowledgeUpdate.ts +1 -1
  641. package/src/funcs/knowledgeUpdateChunk.ts +1 -1
  642. package/src/funcs/knowledgeUpdateDatasource.ts +1 -1
  643. package/src/funcs/memoryStoresCreate.ts +1 -1
  644. package/src/funcs/memoryStoresCreateDocument.ts +1 -1
  645. package/src/funcs/memoryStoresCreateMemory.ts +1 -1
  646. package/src/funcs/memoryStoresDelete.ts +1 -1
  647. package/src/funcs/memoryStoresDeleteDocument.ts +1 -1
  648. package/src/funcs/memoryStoresDeleteMemory.ts +1 -1
  649. package/src/funcs/memoryStoresList.ts +1 -1
  650. package/src/funcs/memoryStoresListDocuments.ts +1 -1
  651. package/src/funcs/memoryStoresListMemories.ts +1 -1
  652. package/src/funcs/memoryStoresRetrieve.ts +1 -1
  653. package/src/funcs/memoryStoresRetrieveDocument.ts +1 -1
  654. package/src/funcs/memoryStoresRetrieveMemory.ts +1 -1
  655. package/src/funcs/memoryStoresUpdate.ts +1 -1
  656. package/src/funcs/memoryStoresUpdateDocument.ts +1 -1
  657. package/src/funcs/memoryStoresUpdateMemory.ts +1 -1
  658. package/src/funcs/modelsList.ts +1 -1
  659. package/src/funcs/promptsCreate.ts +1 -1
  660. package/src/funcs/promptsDelete.ts +1 -1
  661. package/src/funcs/promptsGetVersion.ts +1 -1
  662. package/src/funcs/promptsList.ts +1 -1
  663. package/src/funcs/promptsListVersions.ts +1 -1
  664. package/src/funcs/promptsRetrieve.ts +1 -1
  665. package/src/funcs/promptsUpdate.ts +1 -1
  666. package/src/funcs/remoteconfigsRetrieve.ts +1 -1
  667. package/src/funcs/toolsCreate.ts +1 -1
  668. package/src/funcs/toolsDelete.ts +1 -1
  669. package/src/funcs/toolsDuplicate.ts +1 -1
  670. package/src/funcs/toolsList.ts +1 -1
  671. package/src/funcs/toolsRetrieve.ts +1 -1
  672. package/src/funcs/toolsUpdate.ts +1 -1
  673. package/src/lib/config.ts +3 -3
  674. package/src/mcp-server/mcp-server.ts +1 -1
  675. package/src/mcp-server/server.ts +4 -2
  676. package/src/mcp-server/tools/agentsListTasks.ts +37 -0
  677. package/src/mcp-server/tools/agentsRetrieve.ts +1 -1
  678. package/src/models/errors/index.ts +1 -0
  679. package/src/models/errors/listagenttasks.ts +80 -0
  680. package/src/models/operations/createbudget.ts +2 -2
  681. package/src/models/operations/createcontact.ts +2 -2
  682. package/src/models/operations/createdataset.ts +2 -2
  683. package/src/models/operations/createdatasetitem.ts +2 -2
  684. package/src/models/operations/createdatasource.ts +2 -2
  685. package/src/models/operations/createeval.ts +28 -28
  686. package/src/models/operations/createtool.ts +14 -14
  687. package/src/models/operations/duplicatetool.ts +10 -10
  688. package/src/models/operations/fileget.ts +2 -2
  689. package/src/models/operations/filelist.ts +2 -2
  690. package/src/models/operations/fileupload.ts +2 -2
  691. package/src/models/operations/getagent.ts +23 -15
  692. package/src/models/operations/getalltools.ts +10 -10
  693. package/src/models/operations/getbudget.ts +2 -2
  694. package/src/models/operations/getevals.ts +28 -28
  695. package/src/models/operations/index.ts +1 -0
  696. package/src/models/operations/listagents.ts +10 -10
  697. package/src/models/operations/listagenttasks.ts +1099 -0
  698. package/src/models/operations/listbudgets.ts +2 -2
  699. package/src/models/operations/listchunks.ts +21 -21
  700. package/src/models/operations/listcontacts.ts +2 -2
  701. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  702. package/src/models/operations/listdatasets.ts +2 -2
  703. package/src/models/operations/listdatasources.ts +29 -22
  704. package/src/models/operations/retrievecontact.ts +2 -2
  705. package/src/models/operations/retrievedatapoint.ts +2 -2
  706. package/src/models/operations/retrievedataset.ts +2 -2
  707. package/src/models/operations/retrievedatasource.ts +2 -2
  708. package/src/models/operations/retrievetool.ts +10 -10
  709. package/src/models/operations/runagent.ts +2 -2
  710. package/src/models/operations/streamrunagent.ts +2 -2
  711. package/src/models/operations/updatebudget.ts +2 -2
  712. package/src/models/operations/updatecontact.ts +2 -2
  713. package/src/models/operations/updatedatapoint.ts +2 -2
  714. package/src/models/operations/updatedataset.ts +2 -2
  715. package/src/models/operations/updatedatasource.ts +2 -2
  716. package/src/models/operations/updateeval.ts +28 -28
  717. package/src/models/operations/updatetool.ts +14 -14
  718. package/src/sdk/agents.ts +25 -7
  719. package/docs/sdks/orq/README.md +0 -10
  720. package/packages/orq-rc/docs/sdks/orq/README.md +0 -10
@@ -0,0 +1,1099 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ /**
13
+ * Comma-separated list of task statuses to filter by. Available values: inactive, approval_required, in_progress, errored
14
+ */
15
+ export const Status = {
16
+ Inactive: "inactive",
17
+ ApprovalRequired: "approval_required",
18
+ InProgress: "in_progress",
19
+ Errored: "errored",
20
+ } as const;
21
+ /**
22
+ * Comma-separated list of task statuses to filter by. Available values: inactive, approval_required, in_progress, errored
23
+ */
24
+ export type Status = ClosedEnum<typeof Status>;
25
+
26
+ export type ListAgentTasksRequest = {
27
+ /**
28
+ * The unique key of the agent
29
+ */
30
+ agentKey: string;
31
+ /**
32
+ * A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
33
+ */
34
+ limit?: number | undefined;
35
+ /**
36
+ * A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `after=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the next page of the list.
37
+ */
38
+ startingAfter?: string | undefined;
39
+ /**
40
+ * A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
41
+ */
42
+ endingBefore?: string | undefined;
43
+ /**
44
+ * Comma-separated list of task statuses to filter by. Available values: inactive, approval_required, in_progress, errored
45
+ */
46
+ status?: Status | undefined;
47
+ };
48
+
49
+ export type ListAgentTasksModel = {
50
+ /**
51
+ * The database ID of the primary model
52
+ */
53
+ id: string;
54
+ /**
55
+ * Optional integration ID for custom model configurations
56
+ */
57
+ integrationId?: string | null | undefined;
58
+ /**
59
+ * Optional array of fallback model IDs that will be used automatically in order if the primary model fails
60
+ */
61
+ fallbackModels?: Array<string> | null | undefined;
62
+ /**
63
+ * Maximum number of tokens for model responses
64
+ */
65
+ maxTokens?: number | undefined;
66
+ /**
67
+ * Temperature setting for model responses
68
+ */
69
+ temperature?: number | undefined;
70
+ };
71
+
72
+ /**
73
+ * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
74
+ */
75
+ export const ListAgentTasksToolApprovalRequired = {
76
+ All: "all",
77
+ RespectTool: "respect_tool",
78
+ None: "none",
79
+ } as const;
80
+ /**
81
+ * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
82
+ */
83
+ export type ListAgentTasksToolApprovalRequired = ClosedEnum<
84
+ typeof ListAgentTasksToolApprovalRequired
85
+ >;
86
+
87
+ export type ListAgentTasksConditions = {
88
+ /**
89
+ * The argument of the tool call to evaluate
90
+ */
91
+ condition: string;
92
+ /**
93
+ * The operator to use
94
+ */
95
+ operator: string;
96
+ /**
97
+ * The value to compare against
98
+ */
99
+ value: string;
100
+ };
101
+
102
+ export type ListAgentTasksTools = {
103
+ /**
104
+ * The id of the resource
105
+ */
106
+ id: string;
107
+ actionType: string;
108
+ displayName?: string | undefined;
109
+ requiresApproval?: boolean | undefined;
110
+ conditions?: Array<ListAgentTasksConditions> | undefined;
111
+ /**
112
+ * The id of the resource
113
+ */
114
+ mcpServer?: string | undefined;
115
+ /**
116
+ * Tool execution timeout in seconds (default: 2 minutes, max: 10 minutes)
117
+ */
118
+ timeout?: number | undefined;
119
+ };
120
+
121
+ export type ListAgentTasksSettings = {
122
+ /**
123
+ * Maximum iterations(llm calls) before the agent will stop executing.
124
+ */
125
+ maxIterations?: number | undefined;
126
+ /**
127
+ * Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned.
128
+ */
129
+ maxExecutionTime?: number | undefined;
130
+ /**
131
+ * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
132
+ */
133
+ toolApprovalRequired?: ListAgentTasksToolApprovalRequired | undefined;
134
+ tools: Array<ListAgentTasksTools>;
135
+ };
136
+
137
+ export type AgentManifestSnapshot = {
138
+ id: string;
139
+ key: string;
140
+ role: string;
141
+ description: string;
142
+ instructions: string;
143
+ systemPrompt?: string | undefined;
144
+ model: ListAgentTasksModel;
145
+ settings?: ListAgentTasksSettings | undefined;
146
+ projectId?: string | undefined;
147
+ };
148
+
149
+ /**
150
+ * Memory configuration for this execution
151
+ */
152
+ export type ListAgentTasksMemory = {
153
+ /**
154
+ * Entity identifier used for memory store isolation (user/session/conversation)
155
+ */
156
+ entityId: string;
157
+ };
158
+
159
+ export type ListAgentTasksState = {
160
+ waitingForApproval?: boolean | undefined;
161
+ inactive?: boolean | undefined;
162
+ error?: string | undefined;
163
+ iteration?: number | undefined;
164
+ accumulatedExecutionTime?: number | undefined;
165
+ };
166
+
167
+ export type ListAgentTasksMetrics = {
168
+ inputCost?: number | undefined;
169
+ outputCost?: number | undefined;
170
+ totalCost?: number | undefined;
171
+ promptTokens?: number | undefined;
172
+ completionTokens?: number | undefined;
173
+ totalTokens?: number | undefined;
174
+ };
175
+
176
+ export type Tasks = {
177
+ id: string;
178
+ agentManifestSnapshot: AgentManifestSnapshot;
179
+ createdById?: string | undefined;
180
+ updatedById?: string | undefined;
181
+ created?: string | undefined;
182
+ updated?: string | undefined;
183
+ name?: string | undefined;
184
+ workspaceId: string;
185
+ /**
186
+ * Memory configuration for this execution
187
+ */
188
+ memory?: ListAgentTasksMemory | undefined;
189
+ /**
190
+ * Execution-level metadata as key-value pairs
191
+ */
192
+ metadata?: { [k: string]: any } | undefined;
193
+ state: ListAgentTasksState;
194
+ metrics: ListAgentTasksMetrics;
195
+ };
196
+
197
+ /**
198
+ * Agent tasks retrieved
199
+ */
200
+ export type ListAgentTasksResponseBody = {
201
+ tasks: Array<Tasks>;
202
+ overallTotal: number;
203
+ };
204
+
205
+ /** @internal */
206
+ export const Status$inboundSchema: z.ZodNativeEnum<typeof Status> = z
207
+ .nativeEnum(Status);
208
+
209
+ /** @internal */
210
+ export const Status$outboundSchema: z.ZodNativeEnum<typeof Status> =
211
+ Status$inboundSchema;
212
+
213
+ /**
214
+ * @internal
215
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
216
+ */
217
+ export namespace Status$ {
218
+ /** @deprecated use `Status$inboundSchema` instead. */
219
+ export const inboundSchema = Status$inboundSchema;
220
+ /** @deprecated use `Status$outboundSchema` instead. */
221
+ export const outboundSchema = Status$outboundSchema;
222
+ }
223
+
224
+ /** @internal */
225
+ export const ListAgentTasksRequest$inboundSchema: z.ZodType<
226
+ ListAgentTasksRequest,
227
+ z.ZodTypeDef,
228
+ unknown
229
+ > = z.object({
230
+ agent_key: z.string(),
231
+ limit: z.number().default(10),
232
+ starting_after: z.string().optional(),
233
+ ending_before: z.string().optional(),
234
+ status: Status$inboundSchema.optional(),
235
+ }).transform((v) => {
236
+ return remap$(v, {
237
+ "agent_key": "agentKey",
238
+ "starting_after": "startingAfter",
239
+ "ending_before": "endingBefore",
240
+ });
241
+ });
242
+
243
+ /** @internal */
244
+ export type ListAgentTasksRequest$Outbound = {
245
+ agent_key: string;
246
+ limit: number;
247
+ starting_after?: string | undefined;
248
+ ending_before?: string | undefined;
249
+ status?: string | undefined;
250
+ };
251
+
252
+ /** @internal */
253
+ export const ListAgentTasksRequest$outboundSchema: z.ZodType<
254
+ ListAgentTasksRequest$Outbound,
255
+ z.ZodTypeDef,
256
+ ListAgentTasksRequest
257
+ > = z.object({
258
+ agentKey: z.string(),
259
+ limit: z.number().default(10),
260
+ startingAfter: z.string().optional(),
261
+ endingBefore: z.string().optional(),
262
+ status: Status$outboundSchema.optional(),
263
+ }).transform((v) => {
264
+ return remap$(v, {
265
+ agentKey: "agent_key",
266
+ startingAfter: "starting_after",
267
+ endingBefore: "ending_before",
268
+ });
269
+ });
270
+
271
+ /**
272
+ * @internal
273
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
274
+ */
275
+ export namespace ListAgentTasksRequest$ {
276
+ /** @deprecated use `ListAgentTasksRequest$inboundSchema` instead. */
277
+ export const inboundSchema = ListAgentTasksRequest$inboundSchema;
278
+ /** @deprecated use `ListAgentTasksRequest$outboundSchema` instead. */
279
+ export const outboundSchema = ListAgentTasksRequest$outboundSchema;
280
+ /** @deprecated use `ListAgentTasksRequest$Outbound` instead. */
281
+ export type Outbound = ListAgentTasksRequest$Outbound;
282
+ }
283
+
284
+ export function listAgentTasksRequestToJSON(
285
+ listAgentTasksRequest: ListAgentTasksRequest,
286
+ ): string {
287
+ return JSON.stringify(
288
+ ListAgentTasksRequest$outboundSchema.parse(listAgentTasksRequest),
289
+ );
290
+ }
291
+
292
+ export function listAgentTasksRequestFromJSON(
293
+ jsonString: string,
294
+ ): SafeParseResult<ListAgentTasksRequest, SDKValidationError> {
295
+ return safeParse(
296
+ jsonString,
297
+ (x) => ListAgentTasksRequest$inboundSchema.parse(JSON.parse(x)),
298
+ `Failed to parse 'ListAgentTasksRequest' from JSON`,
299
+ );
300
+ }
301
+
302
+ /** @internal */
303
+ export const ListAgentTasksModel$inboundSchema: z.ZodType<
304
+ ListAgentTasksModel,
305
+ z.ZodTypeDef,
306
+ unknown
307
+ > = z.object({
308
+ id: z.string(),
309
+ integration_id: z.nullable(z.string()).optional(),
310
+ fallback_models: z.nullable(z.array(z.string())).optional(),
311
+ max_tokens: z.number().int().optional(),
312
+ temperature: z.number().optional(),
313
+ }).transform((v) => {
314
+ return remap$(v, {
315
+ "integration_id": "integrationId",
316
+ "fallback_models": "fallbackModels",
317
+ "max_tokens": "maxTokens",
318
+ });
319
+ });
320
+
321
+ /** @internal */
322
+ export type ListAgentTasksModel$Outbound = {
323
+ id: string;
324
+ integration_id?: string | null | undefined;
325
+ fallback_models?: Array<string> | null | undefined;
326
+ max_tokens?: number | undefined;
327
+ temperature?: number | undefined;
328
+ };
329
+
330
+ /** @internal */
331
+ export const ListAgentTasksModel$outboundSchema: z.ZodType<
332
+ ListAgentTasksModel$Outbound,
333
+ z.ZodTypeDef,
334
+ ListAgentTasksModel
335
+ > = z.object({
336
+ id: z.string(),
337
+ integrationId: z.nullable(z.string()).optional(),
338
+ fallbackModels: z.nullable(z.array(z.string())).optional(),
339
+ maxTokens: z.number().int().optional(),
340
+ temperature: z.number().optional(),
341
+ }).transform((v) => {
342
+ return remap$(v, {
343
+ integrationId: "integration_id",
344
+ fallbackModels: "fallback_models",
345
+ maxTokens: "max_tokens",
346
+ });
347
+ });
348
+
349
+ /**
350
+ * @internal
351
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
352
+ */
353
+ export namespace ListAgentTasksModel$ {
354
+ /** @deprecated use `ListAgentTasksModel$inboundSchema` instead. */
355
+ export const inboundSchema = ListAgentTasksModel$inboundSchema;
356
+ /** @deprecated use `ListAgentTasksModel$outboundSchema` instead. */
357
+ export const outboundSchema = ListAgentTasksModel$outboundSchema;
358
+ /** @deprecated use `ListAgentTasksModel$Outbound` instead. */
359
+ export type Outbound = ListAgentTasksModel$Outbound;
360
+ }
361
+
362
+ export function listAgentTasksModelToJSON(
363
+ listAgentTasksModel: ListAgentTasksModel,
364
+ ): string {
365
+ return JSON.stringify(
366
+ ListAgentTasksModel$outboundSchema.parse(listAgentTasksModel),
367
+ );
368
+ }
369
+
370
+ export function listAgentTasksModelFromJSON(
371
+ jsonString: string,
372
+ ): SafeParseResult<ListAgentTasksModel, SDKValidationError> {
373
+ return safeParse(
374
+ jsonString,
375
+ (x) => ListAgentTasksModel$inboundSchema.parse(JSON.parse(x)),
376
+ `Failed to parse 'ListAgentTasksModel' from JSON`,
377
+ );
378
+ }
379
+
380
+ /** @internal */
381
+ export const ListAgentTasksToolApprovalRequired$inboundSchema: z.ZodNativeEnum<
382
+ typeof ListAgentTasksToolApprovalRequired
383
+ > = z.nativeEnum(ListAgentTasksToolApprovalRequired);
384
+
385
+ /** @internal */
386
+ export const ListAgentTasksToolApprovalRequired$outboundSchema: z.ZodNativeEnum<
387
+ typeof ListAgentTasksToolApprovalRequired
388
+ > = ListAgentTasksToolApprovalRequired$inboundSchema;
389
+
390
+ /**
391
+ * @internal
392
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
393
+ */
394
+ export namespace ListAgentTasksToolApprovalRequired$ {
395
+ /** @deprecated use `ListAgentTasksToolApprovalRequired$inboundSchema` instead. */
396
+ export const inboundSchema = ListAgentTasksToolApprovalRequired$inboundSchema;
397
+ /** @deprecated use `ListAgentTasksToolApprovalRequired$outboundSchema` instead. */
398
+ export const outboundSchema =
399
+ ListAgentTasksToolApprovalRequired$outboundSchema;
400
+ }
401
+
402
+ /** @internal */
403
+ export const ListAgentTasksConditions$inboundSchema: z.ZodType<
404
+ ListAgentTasksConditions,
405
+ z.ZodTypeDef,
406
+ unknown
407
+ > = z.object({
408
+ condition: z.string(),
409
+ operator: z.string(),
410
+ value: z.string(),
411
+ });
412
+
413
+ /** @internal */
414
+ export type ListAgentTasksConditions$Outbound = {
415
+ condition: string;
416
+ operator: string;
417
+ value: string;
418
+ };
419
+
420
+ /** @internal */
421
+ export const ListAgentTasksConditions$outboundSchema: z.ZodType<
422
+ ListAgentTasksConditions$Outbound,
423
+ z.ZodTypeDef,
424
+ ListAgentTasksConditions
425
+ > = z.object({
426
+ condition: z.string(),
427
+ operator: z.string(),
428
+ value: z.string(),
429
+ });
430
+
431
+ /**
432
+ * @internal
433
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
434
+ */
435
+ export namespace ListAgentTasksConditions$ {
436
+ /** @deprecated use `ListAgentTasksConditions$inboundSchema` instead. */
437
+ export const inboundSchema = ListAgentTasksConditions$inboundSchema;
438
+ /** @deprecated use `ListAgentTasksConditions$outboundSchema` instead. */
439
+ export const outboundSchema = ListAgentTasksConditions$outboundSchema;
440
+ /** @deprecated use `ListAgentTasksConditions$Outbound` instead. */
441
+ export type Outbound = ListAgentTasksConditions$Outbound;
442
+ }
443
+
444
+ export function listAgentTasksConditionsToJSON(
445
+ listAgentTasksConditions: ListAgentTasksConditions,
446
+ ): string {
447
+ return JSON.stringify(
448
+ ListAgentTasksConditions$outboundSchema.parse(listAgentTasksConditions),
449
+ );
450
+ }
451
+
452
+ export function listAgentTasksConditionsFromJSON(
453
+ jsonString: string,
454
+ ): SafeParseResult<ListAgentTasksConditions, SDKValidationError> {
455
+ return safeParse(
456
+ jsonString,
457
+ (x) => ListAgentTasksConditions$inboundSchema.parse(JSON.parse(x)),
458
+ `Failed to parse 'ListAgentTasksConditions' from JSON`,
459
+ );
460
+ }
461
+
462
+ /** @internal */
463
+ export const ListAgentTasksTools$inboundSchema: z.ZodType<
464
+ ListAgentTasksTools,
465
+ z.ZodTypeDef,
466
+ unknown
467
+ > = z.object({
468
+ id: z.string(),
469
+ action_type: z.string(),
470
+ display_name: z.string().optional(),
471
+ requires_approval: z.boolean().default(false),
472
+ conditions: z.array(z.lazy(() => ListAgentTasksConditions$inboundSchema))
473
+ .optional(),
474
+ mcpServer: z.string().optional(),
475
+ timeout: z.number().default(120),
476
+ }).transform((v) => {
477
+ return remap$(v, {
478
+ "action_type": "actionType",
479
+ "display_name": "displayName",
480
+ "requires_approval": "requiresApproval",
481
+ });
482
+ });
483
+
484
+ /** @internal */
485
+ export type ListAgentTasksTools$Outbound = {
486
+ id: string;
487
+ action_type: string;
488
+ display_name?: string | undefined;
489
+ requires_approval: boolean;
490
+ conditions?: Array<ListAgentTasksConditions$Outbound> | undefined;
491
+ mcpServer?: string | undefined;
492
+ timeout: number;
493
+ };
494
+
495
+ /** @internal */
496
+ export const ListAgentTasksTools$outboundSchema: z.ZodType<
497
+ ListAgentTasksTools$Outbound,
498
+ z.ZodTypeDef,
499
+ ListAgentTasksTools
500
+ > = z.object({
501
+ id: z.string(),
502
+ actionType: z.string(),
503
+ displayName: z.string().optional(),
504
+ requiresApproval: z.boolean().default(false),
505
+ conditions: z.array(z.lazy(() => ListAgentTasksConditions$outboundSchema))
506
+ .optional(),
507
+ mcpServer: z.string().optional(),
508
+ timeout: z.number().default(120),
509
+ }).transform((v) => {
510
+ return remap$(v, {
511
+ actionType: "action_type",
512
+ displayName: "display_name",
513
+ requiresApproval: "requires_approval",
514
+ });
515
+ });
516
+
517
+ /**
518
+ * @internal
519
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
520
+ */
521
+ export namespace ListAgentTasksTools$ {
522
+ /** @deprecated use `ListAgentTasksTools$inboundSchema` instead. */
523
+ export const inboundSchema = ListAgentTasksTools$inboundSchema;
524
+ /** @deprecated use `ListAgentTasksTools$outboundSchema` instead. */
525
+ export const outboundSchema = ListAgentTasksTools$outboundSchema;
526
+ /** @deprecated use `ListAgentTasksTools$Outbound` instead. */
527
+ export type Outbound = ListAgentTasksTools$Outbound;
528
+ }
529
+
530
+ export function listAgentTasksToolsToJSON(
531
+ listAgentTasksTools: ListAgentTasksTools,
532
+ ): string {
533
+ return JSON.stringify(
534
+ ListAgentTasksTools$outboundSchema.parse(listAgentTasksTools),
535
+ );
536
+ }
537
+
538
+ export function listAgentTasksToolsFromJSON(
539
+ jsonString: string,
540
+ ): SafeParseResult<ListAgentTasksTools, SDKValidationError> {
541
+ return safeParse(
542
+ jsonString,
543
+ (x) => ListAgentTasksTools$inboundSchema.parse(JSON.parse(x)),
544
+ `Failed to parse 'ListAgentTasksTools' from JSON`,
545
+ );
546
+ }
547
+
548
+ /** @internal */
549
+ export const ListAgentTasksSettings$inboundSchema: z.ZodType<
550
+ ListAgentTasksSettings,
551
+ z.ZodTypeDef,
552
+ unknown
553
+ > = z.object({
554
+ max_iterations: z.number().int().default(15),
555
+ max_execution_time: z.number().int().default(300),
556
+ tool_approval_required: ListAgentTasksToolApprovalRequired$inboundSchema
557
+ .default("respect_tool"),
558
+ tools: z.array(z.lazy(() => ListAgentTasksTools$inboundSchema)),
559
+ }).transform((v) => {
560
+ return remap$(v, {
561
+ "max_iterations": "maxIterations",
562
+ "max_execution_time": "maxExecutionTime",
563
+ "tool_approval_required": "toolApprovalRequired",
564
+ });
565
+ });
566
+
567
+ /** @internal */
568
+ export type ListAgentTasksSettings$Outbound = {
569
+ max_iterations: number;
570
+ max_execution_time: number;
571
+ tool_approval_required: string;
572
+ tools: Array<ListAgentTasksTools$Outbound>;
573
+ };
574
+
575
+ /** @internal */
576
+ export const ListAgentTasksSettings$outboundSchema: z.ZodType<
577
+ ListAgentTasksSettings$Outbound,
578
+ z.ZodTypeDef,
579
+ ListAgentTasksSettings
580
+ > = z.object({
581
+ maxIterations: z.number().int().default(15),
582
+ maxExecutionTime: z.number().int().default(300),
583
+ toolApprovalRequired: ListAgentTasksToolApprovalRequired$outboundSchema
584
+ .default("respect_tool"),
585
+ tools: z.array(z.lazy(() => ListAgentTasksTools$outboundSchema)),
586
+ }).transform((v) => {
587
+ return remap$(v, {
588
+ maxIterations: "max_iterations",
589
+ maxExecutionTime: "max_execution_time",
590
+ toolApprovalRequired: "tool_approval_required",
591
+ });
592
+ });
593
+
594
+ /**
595
+ * @internal
596
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
597
+ */
598
+ export namespace ListAgentTasksSettings$ {
599
+ /** @deprecated use `ListAgentTasksSettings$inboundSchema` instead. */
600
+ export const inboundSchema = ListAgentTasksSettings$inboundSchema;
601
+ /** @deprecated use `ListAgentTasksSettings$outboundSchema` instead. */
602
+ export const outboundSchema = ListAgentTasksSettings$outboundSchema;
603
+ /** @deprecated use `ListAgentTasksSettings$Outbound` instead. */
604
+ export type Outbound = ListAgentTasksSettings$Outbound;
605
+ }
606
+
607
+ export function listAgentTasksSettingsToJSON(
608
+ listAgentTasksSettings: ListAgentTasksSettings,
609
+ ): string {
610
+ return JSON.stringify(
611
+ ListAgentTasksSettings$outboundSchema.parse(listAgentTasksSettings),
612
+ );
613
+ }
614
+
615
+ export function listAgentTasksSettingsFromJSON(
616
+ jsonString: string,
617
+ ): SafeParseResult<ListAgentTasksSettings, SDKValidationError> {
618
+ return safeParse(
619
+ jsonString,
620
+ (x) => ListAgentTasksSettings$inboundSchema.parse(JSON.parse(x)),
621
+ `Failed to parse 'ListAgentTasksSettings' from JSON`,
622
+ );
623
+ }
624
+
625
+ /** @internal */
626
+ export const AgentManifestSnapshot$inboundSchema: z.ZodType<
627
+ AgentManifestSnapshot,
628
+ z.ZodTypeDef,
629
+ unknown
630
+ > = z.object({
631
+ _id: z.string(),
632
+ key: z.string(),
633
+ role: z.string(),
634
+ description: z.string(),
635
+ instructions: z.string(),
636
+ system_prompt: z.string().optional(),
637
+ model: z.lazy(() => ListAgentTasksModel$inboundSchema),
638
+ settings: z.lazy(() => ListAgentTasksSettings$inboundSchema).optional(),
639
+ project_id: z.string().optional(),
640
+ }).transform((v) => {
641
+ return remap$(v, {
642
+ "_id": "id",
643
+ "system_prompt": "systemPrompt",
644
+ "project_id": "projectId",
645
+ });
646
+ });
647
+
648
+ /** @internal */
649
+ export type AgentManifestSnapshot$Outbound = {
650
+ _id: string;
651
+ key: string;
652
+ role: string;
653
+ description: string;
654
+ instructions: string;
655
+ system_prompt?: string | undefined;
656
+ model: ListAgentTasksModel$Outbound;
657
+ settings?: ListAgentTasksSettings$Outbound | undefined;
658
+ project_id?: string | undefined;
659
+ };
660
+
661
+ /** @internal */
662
+ export const AgentManifestSnapshot$outboundSchema: z.ZodType<
663
+ AgentManifestSnapshot$Outbound,
664
+ z.ZodTypeDef,
665
+ AgentManifestSnapshot
666
+ > = z.object({
667
+ id: z.string(),
668
+ key: z.string(),
669
+ role: z.string(),
670
+ description: z.string(),
671
+ instructions: z.string(),
672
+ systemPrompt: z.string().optional(),
673
+ model: z.lazy(() => ListAgentTasksModel$outboundSchema),
674
+ settings: z.lazy(() => ListAgentTasksSettings$outboundSchema).optional(),
675
+ projectId: z.string().optional(),
676
+ }).transform((v) => {
677
+ return remap$(v, {
678
+ id: "_id",
679
+ systemPrompt: "system_prompt",
680
+ projectId: "project_id",
681
+ });
682
+ });
683
+
684
+ /**
685
+ * @internal
686
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
687
+ */
688
+ export namespace AgentManifestSnapshot$ {
689
+ /** @deprecated use `AgentManifestSnapshot$inboundSchema` instead. */
690
+ export const inboundSchema = AgentManifestSnapshot$inboundSchema;
691
+ /** @deprecated use `AgentManifestSnapshot$outboundSchema` instead. */
692
+ export const outboundSchema = AgentManifestSnapshot$outboundSchema;
693
+ /** @deprecated use `AgentManifestSnapshot$Outbound` instead. */
694
+ export type Outbound = AgentManifestSnapshot$Outbound;
695
+ }
696
+
697
+ export function agentManifestSnapshotToJSON(
698
+ agentManifestSnapshot: AgentManifestSnapshot,
699
+ ): string {
700
+ return JSON.stringify(
701
+ AgentManifestSnapshot$outboundSchema.parse(agentManifestSnapshot),
702
+ );
703
+ }
704
+
705
+ export function agentManifestSnapshotFromJSON(
706
+ jsonString: string,
707
+ ): SafeParseResult<AgentManifestSnapshot, SDKValidationError> {
708
+ return safeParse(
709
+ jsonString,
710
+ (x) => AgentManifestSnapshot$inboundSchema.parse(JSON.parse(x)),
711
+ `Failed to parse 'AgentManifestSnapshot' from JSON`,
712
+ );
713
+ }
714
+
715
+ /** @internal */
716
+ export const ListAgentTasksMemory$inboundSchema: z.ZodType<
717
+ ListAgentTasksMemory,
718
+ z.ZodTypeDef,
719
+ unknown
720
+ > = z.object({
721
+ entity_id: z.string(),
722
+ }).transform((v) => {
723
+ return remap$(v, {
724
+ "entity_id": "entityId",
725
+ });
726
+ });
727
+
728
+ /** @internal */
729
+ export type ListAgentTasksMemory$Outbound = {
730
+ entity_id: string;
731
+ };
732
+
733
+ /** @internal */
734
+ export const ListAgentTasksMemory$outboundSchema: z.ZodType<
735
+ ListAgentTasksMemory$Outbound,
736
+ z.ZodTypeDef,
737
+ ListAgentTasksMemory
738
+ > = z.object({
739
+ entityId: z.string(),
740
+ }).transform((v) => {
741
+ return remap$(v, {
742
+ entityId: "entity_id",
743
+ });
744
+ });
745
+
746
+ /**
747
+ * @internal
748
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
749
+ */
750
+ export namespace ListAgentTasksMemory$ {
751
+ /** @deprecated use `ListAgentTasksMemory$inboundSchema` instead. */
752
+ export const inboundSchema = ListAgentTasksMemory$inboundSchema;
753
+ /** @deprecated use `ListAgentTasksMemory$outboundSchema` instead. */
754
+ export const outboundSchema = ListAgentTasksMemory$outboundSchema;
755
+ /** @deprecated use `ListAgentTasksMemory$Outbound` instead. */
756
+ export type Outbound = ListAgentTasksMemory$Outbound;
757
+ }
758
+
759
+ export function listAgentTasksMemoryToJSON(
760
+ listAgentTasksMemory: ListAgentTasksMemory,
761
+ ): string {
762
+ return JSON.stringify(
763
+ ListAgentTasksMemory$outboundSchema.parse(listAgentTasksMemory),
764
+ );
765
+ }
766
+
767
+ export function listAgentTasksMemoryFromJSON(
768
+ jsonString: string,
769
+ ): SafeParseResult<ListAgentTasksMemory, SDKValidationError> {
770
+ return safeParse(
771
+ jsonString,
772
+ (x) => ListAgentTasksMemory$inboundSchema.parse(JSON.parse(x)),
773
+ `Failed to parse 'ListAgentTasksMemory' from JSON`,
774
+ );
775
+ }
776
+
777
+ /** @internal */
778
+ export const ListAgentTasksState$inboundSchema: z.ZodType<
779
+ ListAgentTasksState,
780
+ z.ZodTypeDef,
781
+ unknown
782
+ > = z.object({
783
+ waiting_for_approval: z.boolean().default(false),
784
+ inactive: z.boolean().default(true),
785
+ error: z.string().optional(),
786
+ iteration: z.number().int().default(1),
787
+ accumulated_execution_time: z.number().default(0),
788
+ }).transform((v) => {
789
+ return remap$(v, {
790
+ "waiting_for_approval": "waitingForApproval",
791
+ "accumulated_execution_time": "accumulatedExecutionTime",
792
+ });
793
+ });
794
+
795
+ /** @internal */
796
+ export type ListAgentTasksState$Outbound = {
797
+ waiting_for_approval: boolean;
798
+ inactive: boolean;
799
+ error?: string | undefined;
800
+ iteration: number;
801
+ accumulated_execution_time: number;
802
+ };
803
+
804
+ /** @internal */
805
+ export const ListAgentTasksState$outboundSchema: z.ZodType<
806
+ ListAgentTasksState$Outbound,
807
+ z.ZodTypeDef,
808
+ ListAgentTasksState
809
+ > = z.object({
810
+ waitingForApproval: z.boolean().default(false),
811
+ inactive: z.boolean().default(true),
812
+ error: z.string().optional(),
813
+ iteration: z.number().int().default(1),
814
+ accumulatedExecutionTime: z.number().default(0),
815
+ }).transform((v) => {
816
+ return remap$(v, {
817
+ waitingForApproval: "waiting_for_approval",
818
+ accumulatedExecutionTime: "accumulated_execution_time",
819
+ });
820
+ });
821
+
822
+ /**
823
+ * @internal
824
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
825
+ */
826
+ export namespace ListAgentTasksState$ {
827
+ /** @deprecated use `ListAgentTasksState$inboundSchema` instead. */
828
+ export const inboundSchema = ListAgentTasksState$inboundSchema;
829
+ /** @deprecated use `ListAgentTasksState$outboundSchema` instead. */
830
+ export const outboundSchema = ListAgentTasksState$outboundSchema;
831
+ /** @deprecated use `ListAgentTasksState$Outbound` instead. */
832
+ export type Outbound = ListAgentTasksState$Outbound;
833
+ }
834
+
835
+ export function listAgentTasksStateToJSON(
836
+ listAgentTasksState: ListAgentTasksState,
837
+ ): string {
838
+ return JSON.stringify(
839
+ ListAgentTasksState$outboundSchema.parse(listAgentTasksState),
840
+ );
841
+ }
842
+
843
+ export function listAgentTasksStateFromJSON(
844
+ jsonString: string,
845
+ ): SafeParseResult<ListAgentTasksState, SDKValidationError> {
846
+ return safeParse(
847
+ jsonString,
848
+ (x) => ListAgentTasksState$inboundSchema.parse(JSON.parse(x)),
849
+ `Failed to parse 'ListAgentTasksState' from JSON`,
850
+ );
851
+ }
852
+
853
+ /** @internal */
854
+ export const ListAgentTasksMetrics$inboundSchema: z.ZodType<
855
+ ListAgentTasksMetrics,
856
+ z.ZodTypeDef,
857
+ unknown
858
+ > = z.object({
859
+ input_cost: z.number().default(0),
860
+ output_cost: z.number().default(0),
861
+ total_cost: z.number().default(0),
862
+ prompt_tokens: z.number().int().default(0),
863
+ completion_tokens: z.number().int().default(0),
864
+ total_tokens: z.number().int().default(0),
865
+ }).transform((v) => {
866
+ return remap$(v, {
867
+ "input_cost": "inputCost",
868
+ "output_cost": "outputCost",
869
+ "total_cost": "totalCost",
870
+ "prompt_tokens": "promptTokens",
871
+ "completion_tokens": "completionTokens",
872
+ "total_tokens": "totalTokens",
873
+ });
874
+ });
875
+
876
+ /** @internal */
877
+ export type ListAgentTasksMetrics$Outbound = {
878
+ input_cost: number;
879
+ output_cost: number;
880
+ total_cost: number;
881
+ prompt_tokens: number;
882
+ completion_tokens: number;
883
+ total_tokens: number;
884
+ };
885
+
886
+ /** @internal */
887
+ export const ListAgentTasksMetrics$outboundSchema: z.ZodType<
888
+ ListAgentTasksMetrics$Outbound,
889
+ z.ZodTypeDef,
890
+ ListAgentTasksMetrics
891
+ > = z.object({
892
+ inputCost: z.number().default(0),
893
+ outputCost: z.number().default(0),
894
+ totalCost: z.number().default(0),
895
+ promptTokens: z.number().int().default(0),
896
+ completionTokens: z.number().int().default(0),
897
+ totalTokens: z.number().int().default(0),
898
+ }).transform((v) => {
899
+ return remap$(v, {
900
+ inputCost: "input_cost",
901
+ outputCost: "output_cost",
902
+ totalCost: "total_cost",
903
+ promptTokens: "prompt_tokens",
904
+ completionTokens: "completion_tokens",
905
+ totalTokens: "total_tokens",
906
+ });
907
+ });
908
+
909
+ /**
910
+ * @internal
911
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
912
+ */
913
+ export namespace ListAgentTasksMetrics$ {
914
+ /** @deprecated use `ListAgentTasksMetrics$inboundSchema` instead. */
915
+ export const inboundSchema = ListAgentTasksMetrics$inboundSchema;
916
+ /** @deprecated use `ListAgentTasksMetrics$outboundSchema` instead. */
917
+ export const outboundSchema = ListAgentTasksMetrics$outboundSchema;
918
+ /** @deprecated use `ListAgentTasksMetrics$Outbound` instead. */
919
+ export type Outbound = ListAgentTasksMetrics$Outbound;
920
+ }
921
+
922
+ export function listAgentTasksMetricsToJSON(
923
+ listAgentTasksMetrics: ListAgentTasksMetrics,
924
+ ): string {
925
+ return JSON.stringify(
926
+ ListAgentTasksMetrics$outboundSchema.parse(listAgentTasksMetrics),
927
+ );
928
+ }
929
+
930
+ export function listAgentTasksMetricsFromJSON(
931
+ jsonString: string,
932
+ ): SafeParseResult<ListAgentTasksMetrics, SDKValidationError> {
933
+ return safeParse(
934
+ jsonString,
935
+ (x) => ListAgentTasksMetrics$inboundSchema.parse(JSON.parse(x)),
936
+ `Failed to parse 'ListAgentTasksMetrics' from JSON`,
937
+ );
938
+ }
939
+
940
+ /** @internal */
941
+ export const Tasks$inboundSchema: z.ZodType<Tasks, z.ZodTypeDef, unknown> = z
942
+ .object({
943
+ _id: z.string(),
944
+ agent_manifest_snapshot: z.lazy(() => AgentManifestSnapshot$inboundSchema),
945
+ created_by_id: z.string().optional(),
946
+ updated_by_id: z.string().optional(),
947
+ created: z.string().optional(),
948
+ updated: z.string().optional(),
949
+ name: z.string().optional(),
950
+ workspace_id: z.string(),
951
+ memory: z.lazy(() => ListAgentTasksMemory$inboundSchema).optional(),
952
+ metadata: z.record(z.any()).optional(),
953
+ state: z.lazy(() => ListAgentTasksState$inboundSchema),
954
+ metrics: z.lazy(() => ListAgentTasksMetrics$inboundSchema),
955
+ }).transform((v) => {
956
+ return remap$(v, {
957
+ "_id": "id",
958
+ "agent_manifest_snapshot": "agentManifestSnapshot",
959
+ "created_by_id": "createdById",
960
+ "updated_by_id": "updatedById",
961
+ "workspace_id": "workspaceId",
962
+ });
963
+ });
964
+
965
+ /** @internal */
966
+ export type Tasks$Outbound = {
967
+ _id: string;
968
+ agent_manifest_snapshot: AgentManifestSnapshot$Outbound;
969
+ created_by_id?: string | undefined;
970
+ updated_by_id?: string | undefined;
971
+ created?: string | undefined;
972
+ updated?: string | undefined;
973
+ name?: string | undefined;
974
+ workspace_id: string;
975
+ memory?: ListAgentTasksMemory$Outbound | undefined;
976
+ metadata?: { [k: string]: any } | undefined;
977
+ state: ListAgentTasksState$Outbound;
978
+ metrics: ListAgentTasksMetrics$Outbound;
979
+ };
980
+
981
+ /** @internal */
982
+ export const Tasks$outboundSchema: z.ZodType<
983
+ Tasks$Outbound,
984
+ z.ZodTypeDef,
985
+ Tasks
986
+ > = z.object({
987
+ id: z.string(),
988
+ agentManifestSnapshot: z.lazy(() => AgentManifestSnapshot$outboundSchema),
989
+ createdById: z.string().optional(),
990
+ updatedById: z.string().optional(),
991
+ created: z.string().optional(),
992
+ updated: z.string().optional(),
993
+ name: z.string().optional(),
994
+ workspaceId: z.string(),
995
+ memory: z.lazy(() => ListAgentTasksMemory$outboundSchema).optional(),
996
+ metadata: z.record(z.any()).optional(),
997
+ state: z.lazy(() => ListAgentTasksState$outboundSchema),
998
+ metrics: z.lazy(() => ListAgentTasksMetrics$outboundSchema),
999
+ }).transform((v) => {
1000
+ return remap$(v, {
1001
+ id: "_id",
1002
+ agentManifestSnapshot: "agent_manifest_snapshot",
1003
+ createdById: "created_by_id",
1004
+ updatedById: "updated_by_id",
1005
+ workspaceId: "workspace_id",
1006
+ });
1007
+ });
1008
+
1009
+ /**
1010
+ * @internal
1011
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1012
+ */
1013
+ export namespace Tasks$ {
1014
+ /** @deprecated use `Tasks$inboundSchema` instead. */
1015
+ export const inboundSchema = Tasks$inboundSchema;
1016
+ /** @deprecated use `Tasks$outboundSchema` instead. */
1017
+ export const outboundSchema = Tasks$outboundSchema;
1018
+ /** @deprecated use `Tasks$Outbound` instead. */
1019
+ export type Outbound = Tasks$Outbound;
1020
+ }
1021
+
1022
+ export function tasksToJSON(tasks: Tasks): string {
1023
+ return JSON.stringify(Tasks$outboundSchema.parse(tasks));
1024
+ }
1025
+
1026
+ export function tasksFromJSON(
1027
+ jsonString: string,
1028
+ ): SafeParseResult<Tasks, SDKValidationError> {
1029
+ return safeParse(
1030
+ jsonString,
1031
+ (x) => Tasks$inboundSchema.parse(JSON.parse(x)),
1032
+ `Failed to parse 'Tasks' from JSON`,
1033
+ );
1034
+ }
1035
+
1036
+ /** @internal */
1037
+ export const ListAgentTasksResponseBody$inboundSchema: z.ZodType<
1038
+ ListAgentTasksResponseBody,
1039
+ z.ZodTypeDef,
1040
+ unknown
1041
+ > = z.object({
1042
+ tasks: z.array(z.lazy(() => Tasks$inboundSchema)),
1043
+ overall_total: z.number(),
1044
+ }).transform((v) => {
1045
+ return remap$(v, {
1046
+ "overall_total": "overallTotal",
1047
+ });
1048
+ });
1049
+
1050
+ /** @internal */
1051
+ export type ListAgentTasksResponseBody$Outbound = {
1052
+ tasks: Array<Tasks$Outbound>;
1053
+ overall_total: number;
1054
+ };
1055
+
1056
+ /** @internal */
1057
+ export const ListAgentTasksResponseBody$outboundSchema: z.ZodType<
1058
+ ListAgentTasksResponseBody$Outbound,
1059
+ z.ZodTypeDef,
1060
+ ListAgentTasksResponseBody
1061
+ > = z.object({
1062
+ tasks: z.array(z.lazy(() => Tasks$outboundSchema)),
1063
+ overallTotal: z.number(),
1064
+ }).transform((v) => {
1065
+ return remap$(v, {
1066
+ overallTotal: "overall_total",
1067
+ });
1068
+ });
1069
+
1070
+ /**
1071
+ * @internal
1072
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1073
+ */
1074
+ export namespace ListAgentTasksResponseBody$ {
1075
+ /** @deprecated use `ListAgentTasksResponseBody$inboundSchema` instead. */
1076
+ export const inboundSchema = ListAgentTasksResponseBody$inboundSchema;
1077
+ /** @deprecated use `ListAgentTasksResponseBody$outboundSchema` instead. */
1078
+ export const outboundSchema = ListAgentTasksResponseBody$outboundSchema;
1079
+ /** @deprecated use `ListAgentTasksResponseBody$Outbound` instead. */
1080
+ export type Outbound = ListAgentTasksResponseBody$Outbound;
1081
+ }
1082
+
1083
+ export function listAgentTasksResponseBodyToJSON(
1084
+ listAgentTasksResponseBody: ListAgentTasksResponseBody,
1085
+ ): string {
1086
+ return JSON.stringify(
1087
+ ListAgentTasksResponseBody$outboundSchema.parse(listAgentTasksResponseBody),
1088
+ );
1089
+ }
1090
+
1091
+ export function listAgentTasksResponseBodyFromJSON(
1092
+ jsonString: string,
1093
+ ): SafeParseResult<ListAgentTasksResponseBody, SDKValidationError> {
1094
+ return safeParse(
1095
+ jsonString,
1096
+ (x) => ListAgentTasksResponseBody$inboundSchema.parse(JSON.parse(x)),
1097
+ `Failed to parse 'ListAgentTasksResponseBody' from JSON`,
1098
+ );
1099
+ }