@azure/ai-projects 1.0.0-beta.1 → 1.0.0-beta.3

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 (356) hide show
  1. package/LICENSE +4 -4
  2. package/README.md +244 -183
  3. package/dist/browser/agents/assistants.d.ts.map +1 -1
  4. package/dist/browser/agents/assistants.js +3 -1
  5. package/dist/browser/agents/assistants.js.map +1 -1
  6. package/dist/browser/agents/customModels.d.ts +4 -29
  7. package/dist/browser/agents/customModels.d.ts.map +1 -1
  8. package/dist/browser/agents/customModels.js.map +1 -1
  9. package/dist/browser/agents/files.d.ts +5 -4
  10. package/dist/browser/agents/files.d.ts.map +1 -1
  11. package/dist/browser/agents/files.js +55 -27
  12. package/dist/browser/agents/files.js.map +1 -1
  13. package/dist/browser/agents/index.d.ts +10 -10
  14. package/dist/browser/agents/index.d.ts.map +1 -1
  15. package/dist/browser/agents/index.js.map +1 -1
  16. package/dist/browser/agents/inputOutputs.d.ts +3 -3
  17. package/dist/browser/agents/inputOutputs.d.ts.map +1 -1
  18. package/dist/browser/agents/inputOutputs.js.map +1 -1
  19. package/dist/browser/agents/inputValidations.d.ts.map +1 -1
  20. package/dist/browser/agents/inputValidations.js +2 -1
  21. package/dist/browser/agents/inputValidations.js.map +1 -1
  22. package/dist/browser/agents/messages.js +2 -2
  23. package/dist/browser/agents/messages.js.map +1 -1
  24. package/dist/browser/agents/openAIError.d.ts.map +1 -1
  25. package/dist/browser/agents/openAIError.js +7 -1
  26. package/dist/browser/agents/openAIError.js.map +1 -1
  27. package/dist/browser/agents/poller.d.ts +8 -33
  28. package/dist/browser/agents/poller.d.ts.map +1 -1
  29. package/dist/browser/agents/poller.js +130 -53
  30. package/dist/browser/agents/poller.js.map +1 -1
  31. package/dist/browser/agents/streamingModels.d.ts +17 -15
  32. package/dist/browser/agents/streamingModels.d.ts.map +1 -1
  33. package/dist/browser/agents/streamingModels.js.map +1 -1
  34. package/dist/browser/agents/traceUtility.d.ts +3 -3
  35. package/dist/browser/agents/traceUtility.d.ts.map +1 -1
  36. package/dist/browser/agents/traceUtility.js.map +1 -1
  37. package/dist/browser/agents/utils.d.ts +53 -3
  38. package/dist/browser/agents/utils.d.ts.map +1 -1
  39. package/dist/browser/agents/utils.js +77 -2
  40. package/dist/browser/agents/utils.js.map +1 -1
  41. package/dist/browser/agents/vectorStores.d.ts +3 -4
  42. package/dist/browser/agents/vectorStores.d.ts.map +1 -1
  43. package/dist/browser/agents/vectorStores.js +44 -26
  44. package/dist/browser/agents/vectorStores.js.map +1 -1
  45. package/dist/browser/agents/vectorStoresFileBatches.d.ts +5 -4
  46. package/dist/browser/agents/vectorStoresFileBatches.d.ts.map +1 -1
  47. package/dist/browser/agents/vectorStoresFileBatches.js +46 -32
  48. package/dist/browser/agents/vectorStoresFileBatches.js.map +1 -1
  49. package/dist/browser/agents/vectorStoresFiles.d.ts +4 -4
  50. package/dist/browser/agents/vectorStoresFiles.d.ts.map +1 -1
  51. package/dist/browser/agents/vectorStoresFiles.js +57 -28
  52. package/dist/browser/agents/vectorStoresFiles.js.map +1 -1
  53. package/dist/browser/constants.d.ts +1 -1
  54. package/dist/browser/constants.js +1 -1
  55. package/dist/browser/constants.js.map +1 -1
  56. package/dist/browser/customization/convertModelsToWrite.d.ts.map +1 -1
  57. package/dist/browser/customization/convertModelsToWrite.js +42 -93
  58. package/dist/browser/customization/convertModelsToWrite.js.map +1 -1
  59. package/dist/browser/customization/convertOutputModelsFromWire.d.ts.map +1 -1
  60. package/dist/browser/customization/convertOutputModelsFromWire.js +51 -9
  61. package/dist/browser/customization/convertOutputModelsFromWire.js.map +1 -1
  62. package/dist/browser/customization/convertParametersToWire.d.ts +1 -1
  63. package/dist/browser/customization/convertParametersToWire.d.ts.map +1 -1
  64. package/dist/browser/customization/convertParametersToWire.js.map +1 -1
  65. package/dist/browser/customization/models.d.ts +146 -151
  66. package/dist/browser/customization/models.d.ts.map +1 -1
  67. package/dist/browser/customization/models.js.map +1 -1
  68. package/dist/browser/customization/outputModels.d.ts +188 -37
  69. package/dist/browser/customization/outputModels.d.ts.map +1 -1
  70. package/dist/browser/customization/outputModels.js.map +1 -1
  71. package/dist/browser/customization/streamingModels.d.ts +2 -1
  72. package/dist/browser/customization/streamingModels.d.ts.map +1 -1
  73. package/dist/browser/customization/streamingModels.js.map +1 -1
  74. package/dist/browser/customization/streamingWireModels.d.ts +2 -1
  75. package/dist/browser/customization/streamingWireModels.d.ts.map +1 -1
  76. package/dist/browser/customization/streamingWireModels.js.map +1 -1
  77. package/dist/browser/generated/src/models.d.ts +131 -150
  78. package/dist/browser/generated/src/models.d.ts.map +1 -1
  79. package/dist/browser/generated/src/models.js.map +1 -1
  80. package/dist/browser/generated/src/outputModels.d.ts +187 -36
  81. package/dist/browser/generated/src/outputModels.d.ts.map +1 -1
  82. package/dist/browser/generated/src/outputModels.js.map +1 -1
  83. package/dist/browser/generated/src/paginateHelper.d.ts +27 -2
  84. package/dist/browser/generated/src/paginateHelper.d.ts.map +1 -1
  85. package/dist/browser/generated/src/paginateHelper.js +98 -1
  86. package/dist/browser/generated/src/paginateHelper.js.map +1 -1
  87. package/dist/browser/generated/src/projectsClient.d.ts +2 -2
  88. package/dist/browser/generated/src/projectsClient.d.ts.map +1 -1
  89. package/dist/browser/generated/src/projectsClient.js +3 -3
  90. package/dist/browser/generated/src/projectsClient.js.map +1 -1
  91. package/dist/commonjs/agents/assistants.d.ts.map +1 -1
  92. package/dist/commonjs/agents/assistants.js +3 -1
  93. package/dist/commonjs/agents/assistants.js.map +1 -1
  94. package/dist/commonjs/agents/customModels.d.ts +4 -29
  95. package/dist/commonjs/agents/customModels.d.ts.map +1 -1
  96. package/dist/commonjs/agents/customModels.js.map +1 -1
  97. package/dist/commonjs/agents/files.d.ts +5 -4
  98. package/dist/commonjs/agents/files.d.ts.map +1 -1
  99. package/dist/commonjs/agents/files.js +55 -26
  100. package/dist/commonjs/agents/files.js.map +1 -1
  101. package/dist/commonjs/agents/index.d.ts +10 -10
  102. package/dist/commonjs/agents/index.d.ts.map +1 -1
  103. package/dist/commonjs/agents/index.js.map +1 -1
  104. package/dist/commonjs/agents/inputOutputs.d.ts +3 -3
  105. package/dist/commonjs/agents/inputOutputs.d.ts.map +1 -1
  106. package/dist/commonjs/agents/inputOutputs.js.map +1 -1
  107. package/dist/commonjs/agents/inputValidations.d.ts.map +1 -1
  108. package/dist/commonjs/agents/inputValidations.js +2 -1
  109. package/dist/commonjs/agents/inputValidations.js.map +1 -1
  110. package/dist/commonjs/agents/messages.js +2 -2
  111. package/dist/commonjs/agents/messages.js.map +1 -1
  112. package/dist/commonjs/agents/openAIError.d.ts.map +1 -1
  113. package/dist/commonjs/agents/openAIError.js +7 -1
  114. package/dist/commonjs/agents/openAIError.js.map +1 -1
  115. package/dist/commonjs/agents/poller.d.ts +8 -33
  116. package/dist/commonjs/agents/poller.d.ts.map +1 -1
  117. package/dist/commonjs/agents/poller.js +131 -55
  118. package/dist/commonjs/agents/poller.js.map +1 -1
  119. package/dist/commonjs/agents/streamingModels.d.ts +17 -15
  120. package/dist/commonjs/agents/streamingModels.d.ts.map +1 -1
  121. package/dist/commonjs/agents/streamingModels.js.map +1 -1
  122. package/dist/commonjs/agents/traceUtility.d.ts +3 -3
  123. package/dist/commonjs/agents/traceUtility.d.ts.map +1 -1
  124. package/dist/commonjs/agents/traceUtility.js.map +1 -1
  125. package/dist/commonjs/agents/utils.d.ts +53 -3
  126. package/dist/commonjs/agents/utils.d.ts.map +1 -1
  127. package/dist/commonjs/agents/utils.js +77 -2
  128. package/dist/commonjs/agents/utils.js.map +1 -1
  129. package/dist/commonjs/agents/vectorStores.d.ts +3 -4
  130. package/dist/commonjs/agents/vectorStores.d.ts.map +1 -1
  131. package/dist/commonjs/agents/vectorStores.js +43 -25
  132. package/dist/commonjs/agents/vectorStores.js.map +1 -1
  133. package/dist/commonjs/agents/vectorStoresFileBatches.d.ts +5 -4
  134. package/dist/commonjs/agents/vectorStoresFileBatches.d.ts.map +1 -1
  135. package/dist/commonjs/agents/vectorStoresFileBatches.js +46 -31
  136. package/dist/commonjs/agents/vectorStoresFileBatches.js.map +1 -1
  137. package/dist/commonjs/agents/vectorStoresFiles.d.ts +4 -4
  138. package/dist/commonjs/agents/vectorStoresFiles.d.ts.map +1 -1
  139. package/dist/commonjs/agents/vectorStoresFiles.js +56 -27
  140. package/dist/commonjs/agents/vectorStoresFiles.js.map +1 -1
  141. package/dist/commonjs/constants.d.ts +1 -1
  142. package/dist/commonjs/constants.js +1 -1
  143. package/dist/commonjs/constants.js.map +1 -1
  144. package/dist/commonjs/customization/convertModelsToWrite.d.ts.map +1 -1
  145. package/dist/commonjs/customization/convertModelsToWrite.js +42 -93
  146. package/dist/commonjs/customization/convertModelsToWrite.js.map +1 -1
  147. package/dist/commonjs/customization/convertOutputModelsFromWire.d.ts.map +1 -1
  148. package/dist/commonjs/customization/convertOutputModelsFromWire.js +51 -9
  149. package/dist/commonjs/customization/convertOutputModelsFromWire.js.map +1 -1
  150. package/dist/commonjs/customization/convertParametersToWire.d.ts +1 -1
  151. package/dist/commonjs/customization/convertParametersToWire.d.ts.map +1 -1
  152. package/dist/commonjs/customization/convertParametersToWire.js.map +1 -1
  153. package/dist/commonjs/customization/models.d.ts +146 -151
  154. package/dist/commonjs/customization/models.d.ts.map +1 -1
  155. package/dist/commonjs/customization/models.js.map +1 -1
  156. package/dist/commonjs/customization/outputModels.d.ts +188 -37
  157. package/dist/commonjs/customization/outputModels.d.ts.map +1 -1
  158. package/dist/commonjs/customization/outputModels.js.map +1 -1
  159. package/dist/commonjs/customization/streamingModels.d.ts +2 -1
  160. package/dist/commonjs/customization/streamingModels.d.ts.map +1 -1
  161. package/dist/commonjs/customization/streamingModels.js.map +1 -1
  162. package/dist/commonjs/customization/streamingWireModels.d.ts +2 -1
  163. package/dist/commonjs/customization/streamingWireModels.d.ts.map +1 -1
  164. package/dist/commonjs/customization/streamingWireModels.js.map +1 -1
  165. package/dist/commonjs/generated/src/models.d.ts +131 -150
  166. package/dist/commonjs/generated/src/models.d.ts.map +1 -1
  167. package/dist/commonjs/generated/src/models.js.map +1 -1
  168. package/dist/commonjs/generated/src/outputModels.d.ts +187 -36
  169. package/dist/commonjs/generated/src/outputModels.d.ts.map +1 -1
  170. package/dist/commonjs/generated/src/outputModels.js.map +1 -1
  171. package/dist/commonjs/generated/src/paginateHelper.d.ts +27 -2
  172. package/dist/commonjs/generated/src/paginateHelper.d.ts.map +1 -1
  173. package/dist/commonjs/generated/src/paginateHelper.js +99 -2
  174. package/dist/commonjs/generated/src/paginateHelper.js.map +1 -1
  175. package/dist/commonjs/generated/src/projectsClient.d.ts +2 -2
  176. package/dist/commonjs/generated/src/projectsClient.d.ts.map +1 -1
  177. package/dist/commonjs/generated/src/projectsClient.js +3 -3
  178. package/dist/commonjs/generated/src/projectsClient.js.map +1 -1
  179. package/dist/commonjs/tsdoc-metadata.json +1 -1
  180. package/dist/esm/agents/assistants.d.ts.map +1 -1
  181. package/dist/esm/agents/assistants.js +3 -1
  182. package/dist/esm/agents/assistants.js.map +1 -1
  183. package/dist/esm/agents/customModels.d.ts +4 -29
  184. package/dist/esm/agents/customModels.d.ts.map +1 -1
  185. package/dist/esm/agents/customModels.js.map +1 -1
  186. package/dist/esm/agents/files.d.ts +5 -4
  187. package/dist/esm/agents/files.d.ts.map +1 -1
  188. package/dist/esm/agents/files.js +55 -27
  189. package/dist/esm/agents/files.js.map +1 -1
  190. package/dist/esm/agents/index.d.ts +10 -10
  191. package/dist/esm/agents/index.d.ts.map +1 -1
  192. package/dist/esm/agents/index.js.map +1 -1
  193. package/dist/esm/agents/inputOutputs.d.ts +3 -3
  194. package/dist/esm/agents/inputOutputs.d.ts.map +1 -1
  195. package/dist/esm/agents/inputOutputs.js.map +1 -1
  196. package/dist/esm/agents/inputValidations.d.ts.map +1 -1
  197. package/dist/esm/agents/inputValidations.js +2 -1
  198. package/dist/esm/agents/inputValidations.js.map +1 -1
  199. package/dist/esm/agents/messages.js +2 -2
  200. package/dist/esm/agents/messages.js.map +1 -1
  201. package/dist/esm/agents/openAIError.d.ts.map +1 -1
  202. package/dist/esm/agents/openAIError.js +7 -1
  203. package/dist/esm/agents/openAIError.js.map +1 -1
  204. package/dist/esm/agents/poller.d.ts +8 -33
  205. package/dist/esm/agents/poller.d.ts.map +1 -1
  206. package/dist/esm/agents/poller.js +130 -53
  207. package/dist/esm/agents/poller.js.map +1 -1
  208. package/dist/esm/agents/streamingModels.d.ts +17 -15
  209. package/dist/esm/agents/streamingModels.d.ts.map +1 -1
  210. package/dist/esm/agents/streamingModels.js.map +1 -1
  211. package/dist/esm/agents/traceUtility.d.ts +3 -3
  212. package/dist/esm/agents/traceUtility.d.ts.map +1 -1
  213. package/dist/esm/agents/traceUtility.js.map +1 -1
  214. package/dist/esm/agents/utils.d.ts +53 -3
  215. package/dist/esm/agents/utils.d.ts.map +1 -1
  216. package/dist/esm/agents/utils.js +77 -2
  217. package/dist/esm/agents/utils.js.map +1 -1
  218. package/dist/esm/agents/vectorStores.d.ts +3 -4
  219. package/dist/esm/agents/vectorStores.d.ts.map +1 -1
  220. package/dist/esm/agents/vectorStores.js +44 -26
  221. package/dist/esm/agents/vectorStores.js.map +1 -1
  222. package/dist/esm/agents/vectorStoresFileBatches.d.ts +5 -4
  223. package/dist/esm/agents/vectorStoresFileBatches.d.ts.map +1 -1
  224. package/dist/esm/agents/vectorStoresFileBatches.js +46 -32
  225. package/dist/esm/agents/vectorStoresFileBatches.js.map +1 -1
  226. package/dist/esm/agents/vectorStoresFiles.d.ts +4 -4
  227. package/dist/esm/agents/vectorStoresFiles.d.ts.map +1 -1
  228. package/dist/esm/agents/vectorStoresFiles.js +57 -28
  229. package/dist/esm/agents/vectorStoresFiles.js.map +1 -1
  230. package/dist/esm/constants.d.ts +1 -1
  231. package/dist/esm/constants.js +1 -1
  232. package/dist/esm/constants.js.map +1 -1
  233. package/dist/esm/customization/convertModelsToWrite.d.ts.map +1 -1
  234. package/dist/esm/customization/convertModelsToWrite.js +42 -93
  235. package/dist/esm/customization/convertModelsToWrite.js.map +1 -1
  236. package/dist/esm/customization/convertOutputModelsFromWire.d.ts.map +1 -1
  237. package/dist/esm/customization/convertOutputModelsFromWire.js +51 -9
  238. package/dist/esm/customization/convertOutputModelsFromWire.js.map +1 -1
  239. package/dist/esm/customization/convertParametersToWire.d.ts +1 -1
  240. package/dist/esm/customization/convertParametersToWire.d.ts.map +1 -1
  241. package/dist/esm/customization/convertParametersToWire.js.map +1 -1
  242. package/dist/esm/customization/models.d.ts +146 -151
  243. package/dist/esm/customization/models.d.ts.map +1 -1
  244. package/dist/esm/customization/models.js.map +1 -1
  245. package/dist/esm/customization/outputModels.d.ts +188 -37
  246. package/dist/esm/customization/outputModels.d.ts.map +1 -1
  247. package/dist/esm/customization/outputModels.js.map +1 -1
  248. package/dist/esm/customization/streamingModels.d.ts +2 -1
  249. package/dist/esm/customization/streamingModels.d.ts.map +1 -1
  250. package/dist/esm/customization/streamingModels.js.map +1 -1
  251. package/dist/esm/customization/streamingWireModels.d.ts +2 -1
  252. package/dist/esm/customization/streamingWireModels.d.ts.map +1 -1
  253. package/dist/esm/customization/streamingWireModels.js.map +1 -1
  254. package/dist/esm/generated/src/models.d.ts +131 -150
  255. package/dist/esm/generated/src/models.d.ts.map +1 -1
  256. package/dist/esm/generated/src/models.js.map +1 -1
  257. package/dist/esm/generated/src/outputModels.d.ts +187 -36
  258. package/dist/esm/generated/src/outputModels.d.ts.map +1 -1
  259. package/dist/esm/generated/src/outputModels.js.map +1 -1
  260. package/dist/esm/generated/src/paginateHelper.d.ts +27 -2
  261. package/dist/esm/generated/src/paginateHelper.d.ts.map +1 -1
  262. package/dist/esm/generated/src/paginateHelper.js +98 -1
  263. package/dist/esm/generated/src/paginateHelper.js.map +1 -1
  264. package/dist/esm/generated/src/projectsClient.d.ts +2 -2
  265. package/dist/esm/generated/src/projectsClient.d.ts.map +1 -1
  266. package/dist/esm/generated/src/projectsClient.js +3 -3
  267. package/dist/esm/generated/src/projectsClient.js.map +1 -1
  268. package/dist/react-native/agents/assistants.d.ts.map +1 -1
  269. package/dist/react-native/agents/assistants.js +3 -1
  270. package/dist/react-native/agents/assistants.js.map +1 -1
  271. package/dist/react-native/agents/customModels.d.ts +4 -29
  272. package/dist/react-native/agents/customModels.d.ts.map +1 -1
  273. package/dist/react-native/agents/customModels.js.map +1 -1
  274. package/dist/react-native/agents/files.d.ts +5 -4
  275. package/dist/react-native/agents/files.d.ts.map +1 -1
  276. package/dist/react-native/agents/files.js +55 -27
  277. package/dist/react-native/agents/files.js.map +1 -1
  278. package/dist/react-native/agents/index.d.ts +10 -10
  279. package/dist/react-native/agents/index.d.ts.map +1 -1
  280. package/dist/react-native/agents/index.js.map +1 -1
  281. package/dist/react-native/agents/inputOutputs.d.ts +3 -3
  282. package/dist/react-native/agents/inputOutputs.d.ts.map +1 -1
  283. package/dist/react-native/agents/inputOutputs.js.map +1 -1
  284. package/dist/react-native/agents/inputValidations.d.ts.map +1 -1
  285. package/dist/react-native/agents/inputValidations.js +2 -1
  286. package/dist/react-native/agents/inputValidations.js.map +1 -1
  287. package/dist/react-native/agents/messages.js +2 -2
  288. package/dist/react-native/agents/messages.js.map +1 -1
  289. package/dist/react-native/agents/openAIError.d.ts.map +1 -1
  290. package/dist/react-native/agents/openAIError.js +7 -1
  291. package/dist/react-native/agents/openAIError.js.map +1 -1
  292. package/dist/react-native/agents/poller.d.ts +8 -33
  293. package/dist/react-native/agents/poller.d.ts.map +1 -1
  294. package/dist/react-native/agents/poller.js +130 -53
  295. package/dist/react-native/agents/poller.js.map +1 -1
  296. package/dist/react-native/agents/streamingModels.d.ts +17 -15
  297. package/dist/react-native/agents/streamingModels.d.ts.map +1 -1
  298. package/dist/react-native/agents/streamingModels.js.map +1 -1
  299. package/dist/react-native/agents/traceUtility.d.ts +3 -3
  300. package/dist/react-native/agents/traceUtility.d.ts.map +1 -1
  301. package/dist/react-native/agents/traceUtility.js.map +1 -1
  302. package/dist/react-native/agents/utils.d.ts +53 -3
  303. package/dist/react-native/agents/utils.d.ts.map +1 -1
  304. package/dist/react-native/agents/utils.js +77 -2
  305. package/dist/react-native/agents/utils.js.map +1 -1
  306. package/dist/react-native/agents/vectorStores.d.ts +3 -4
  307. package/dist/react-native/agents/vectorStores.d.ts.map +1 -1
  308. package/dist/react-native/agents/vectorStores.js +44 -26
  309. package/dist/react-native/agents/vectorStores.js.map +1 -1
  310. package/dist/react-native/agents/vectorStoresFileBatches.d.ts +5 -4
  311. package/dist/react-native/agents/vectorStoresFileBatches.d.ts.map +1 -1
  312. package/dist/react-native/agents/vectorStoresFileBatches.js +46 -32
  313. package/dist/react-native/agents/vectorStoresFileBatches.js.map +1 -1
  314. package/dist/react-native/agents/vectorStoresFiles.d.ts +4 -4
  315. package/dist/react-native/agents/vectorStoresFiles.d.ts.map +1 -1
  316. package/dist/react-native/agents/vectorStoresFiles.js +57 -28
  317. package/dist/react-native/agents/vectorStoresFiles.js.map +1 -1
  318. package/dist/react-native/constants.d.ts +1 -1
  319. package/dist/react-native/constants.js +1 -1
  320. package/dist/react-native/constants.js.map +1 -1
  321. package/dist/react-native/customization/convertModelsToWrite.d.ts.map +1 -1
  322. package/dist/react-native/customization/convertModelsToWrite.js +42 -93
  323. package/dist/react-native/customization/convertModelsToWrite.js.map +1 -1
  324. package/dist/react-native/customization/convertOutputModelsFromWire.d.ts.map +1 -1
  325. package/dist/react-native/customization/convertOutputModelsFromWire.js +51 -9
  326. package/dist/react-native/customization/convertOutputModelsFromWire.js.map +1 -1
  327. package/dist/react-native/customization/convertParametersToWire.d.ts +1 -1
  328. package/dist/react-native/customization/convertParametersToWire.d.ts.map +1 -1
  329. package/dist/react-native/customization/convertParametersToWire.js.map +1 -1
  330. package/dist/react-native/customization/models.d.ts +146 -151
  331. package/dist/react-native/customization/models.d.ts.map +1 -1
  332. package/dist/react-native/customization/models.js.map +1 -1
  333. package/dist/react-native/customization/outputModels.d.ts +188 -37
  334. package/dist/react-native/customization/outputModels.d.ts.map +1 -1
  335. package/dist/react-native/customization/outputModels.js.map +1 -1
  336. package/dist/react-native/customization/streamingModels.d.ts +2 -1
  337. package/dist/react-native/customization/streamingModels.d.ts.map +1 -1
  338. package/dist/react-native/customization/streamingModels.js.map +1 -1
  339. package/dist/react-native/customization/streamingWireModels.d.ts +2 -1
  340. package/dist/react-native/customization/streamingWireModels.d.ts.map +1 -1
  341. package/dist/react-native/customization/streamingWireModels.js.map +1 -1
  342. package/dist/react-native/generated/src/models.d.ts +131 -150
  343. package/dist/react-native/generated/src/models.d.ts.map +1 -1
  344. package/dist/react-native/generated/src/models.js.map +1 -1
  345. package/dist/react-native/generated/src/outputModels.d.ts +187 -36
  346. package/dist/react-native/generated/src/outputModels.d.ts.map +1 -1
  347. package/dist/react-native/generated/src/outputModels.js.map +1 -1
  348. package/dist/react-native/generated/src/paginateHelper.d.ts +27 -2
  349. package/dist/react-native/generated/src/paginateHelper.d.ts.map +1 -1
  350. package/dist/react-native/generated/src/paginateHelper.js +98 -1
  351. package/dist/react-native/generated/src/paginateHelper.js.map +1 -1
  352. package/dist/react-native/generated/src/projectsClient.d.ts +2 -2
  353. package/dist/react-native/generated/src/projectsClient.d.ts.map +1 -1
  354. package/dist/react-native/generated/src/projectsClient.js +3 -3
  355. package/dist/react-native/generated/src/projectsClient.js.map +1 -1
  356. package/package.json +33 -34
@@ -8,6 +8,7 @@ exports.uploadFileAndPoll = uploadFileAndPoll;
8
8
  exports.deleteFile = deleteFile;
9
9
  exports.getFile = getFile;
10
10
  exports.getFileContent = getFileContent;
11
+ exports.uploadFileInternal = uploadFileInternal;
11
12
  const tslib_1 = require("tslib");
12
13
  const core_client_1 = require("@azure-rest/core-client");
13
14
  const poller_js_1 = require("./poller.js");
@@ -37,36 +38,40 @@ async function listFiles(context, options = {}) {
37
38
  return ConvertFromWire.convertFileListResponseOutput(result.body);
38
39
  }
39
40
  /** Uploads a file for use by other operations. */
40
- async function uploadFile(context, content, purpose, options = {}) {
41
+ function uploadFile(context, content, purpose, options = {}) {
41
42
  var _a;
42
- const uploadFileOptions = Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { body: [
43
- { name: "file", body: content, filename: (_a = options.fileName) !== null && _a !== void 0 ? _a : (0, core_util_1.randomUUID)() },
44
- { name: "purpose", body: purpose },
45
- ], contentType: "multipart/form-data" });
46
- const result = await context.path("/files").post(uploadFileOptions);
47
- if (!expectedStatuses.includes(result.status)) {
48
- throw (0, openAIError_js_1.createOpenAIError)(result);
49
- }
50
- return ConvertFromWire.convertOpenAIFileOutput(result.body);
43
+ return (0, poller_js_1.createPoller)({
44
+ initOperation: async () => {
45
+ return uploadFileInternal(context, content, purpose, options);
46
+ },
47
+ pollOperation: async (currentResult) => {
48
+ return getFile(context, currentResult.id, options);
49
+ },
50
+ getOperationStatus: getLroOperationStatus,
51
+ getOperationError: (result) => {
52
+ return result.status === "failed" && result.statusDetails
53
+ ? new Error(`Operation failed: ${result.statusDetails}`)
54
+ : undefined;
55
+ },
56
+ intervalInMs: (_a = options.pollingOptions) === null || _a === void 0 ? void 0 : _a.sleepIntervalInMs,
57
+ });
51
58
  }
52
59
  function uploadFileAndPoll(context, content, purpose, options = {}) {
53
60
  var _a;
54
- async function updateUploadFileAndPoll(currentResult) {
55
- let file;
56
- if (!currentResult) {
57
- file = await uploadFile(context, content, purpose, options);
58
- }
59
- else {
60
- file = await getFile(context, currentResult.id, options);
61
- }
62
- return {
63
- result: file,
64
- completed: file.status === "uploaded" || file.status === "processed" || file.status === "deleted",
65
- };
66
- }
67
- return new poller_js_1.AgentsPoller({
68
- update: updateUploadFileAndPoll,
69
- pollingOptions: (_a = options.pollingOptions) !== null && _a !== void 0 ? _a : {},
61
+ return (0, poller_js_1.createPoller)({
62
+ initOperation: async () => {
63
+ return uploadFileInternal(context, content, purpose, options);
64
+ },
65
+ pollOperation: async (currentResult) => {
66
+ return getFile(context, currentResult.id, options);
67
+ },
68
+ getOperationStatus: getLroOperationStatus,
69
+ getOperationError: (result) => {
70
+ return result.status === "failed" && result.statusDetails
71
+ ? new Error(`Operation failed: ${result.statusDetails}`)
72
+ : undefined;
73
+ },
74
+ intervalInMs: (_a = options.pollingOptions) === null || _a === void 0 ? void 0 : _a.sleepIntervalInMs,
70
75
  });
71
76
  }
72
77
  /** Delete a previously uploaded file. */
@@ -95,6 +100,30 @@ function getFileContent(context, fileId, options = {}) {
95
100
  const getFileContentOptions = Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options));
96
101
  return context.path("/files/{fileId}/content", fileId).get(getFileContentOptions);
97
102
  }
103
+ async function uploadFileInternal(context, content, purpose, options = {}) {
104
+ var _a;
105
+ const uploadFileOptions = Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { body: [
106
+ { name: "file", body: content, filename: (_a = options.fileName) !== null && _a !== void 0 ? _a : (0, core_util_1.randomUUID)() },
107
+ { name: "purpose", body: purpose },
108
+ ], contentType: "multipart/form-data" });
109
+ const result = await context.path("/files").post(uploadFileOptions);
110
+ if (!expectedStatuses.includes(result.status)) {
111
+ throw (0, openAIError_js_1.createOpenAIError)(result);
112
+ }
113
+ return ConvertFromWire.convertOpenAIFileOutput(result.body);
114
+ }
115
+ function getLroOperationStatus(result) {
116
+ switch (result.status) {
117
+ case "running":
118
+ case "pending":
119
+ return "running";
120
+ case "uploaded":
121
+ case "processed":
122
+ return "succeeded";
123
+ default:
124
+ return "failed";
125
+ }
126
+ }
98
127
  function validateListFilesParameters(options) {
99
128
  var _a, _b;
100
129
  if ((_a = options === null || options === void 0 ? void 0 : options.queryParameters) === null || _a === void 0 ? void 0 : _a.purpose) {
@@ -1 +1 @@
1
- {"version":3,"file":"files.js","sourceRoot":"","sources":["../../../src/agents/files.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAqClC,8BAcC;AAGD,gCAmBC;AAED,8CAyBC;AAGD,gCAcC;AAGD,0BAcC;AAGD,wCAUC;;AAhJD,yDAA8E;AAc9E,2CAA2C;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,2BAA2B,CAAC,OAAiD;;IACpF,IAAI,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,0CAAE,OAAO,EAAE,CAAC;QACtC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,0CAAE,OAAsB,CAAC,EAAE,CAAC;YAC3F,MAAM,IAAI,KAAK,CACb,+HAA+H,CAChI,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,SAAS,cAAc,CAAC,MAAc;IACpC,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACzC,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { Client, StreamableMethod } from \"@azure-rest/core-client\";\nimport { operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\nimport type {\n FileDeletionStatusOutput,\n FileListResponseOutput,\n OpenAIFileOutput,\n} from \"../customization/outputModels.js\";\nimport type { FilePurpose as CustomizedFilePurpose } from \"../customization/models.js\";\nimport type {\n DeleteFileOptionalParams,\n GetFileContentOptionalParams,\n GetFileOptionalParams,\n ListFilesOptionalParams,\n UploadFileWithPollingOptionalParams,\n} from \"./customModels.js\";\nimport { AgentsPoller } from \"./poller.js\";\nimport type * as GeneratedParameters from \"../generated/src/parameters.js\";\nimport * as ConvertFromWire from \"../customization/convertOutputModelsFromWire.js\";\nimport * as ConvertParameters from \"../customization/convertParametersToWire.js\";\nimport { randomUUID } from \"@azure/core-util\";\nimport { createOpenAIError } from \"./openAIError.js\";\nimport type { PollerLike, PollOperationState } from \"@azure/core-lro\";\nconst expectedStatuses = [\"200\"];\n\nenum FilePurpose {\n FineTune = \"fine-tune\",\n FineTuneResults = \"fine-tune-results\",\n Assistants = \"assistants\",\n AssistantsOutput = \"assistants_output\",\n Batch = \"batch\",\n BatchOutput = \"batch_output\",\n Vision = \"vision\",\n}\n\n/** Gets a list of previously uploaded files. */\nexport async function listFiles(\n context: Client,\n options: ListFilesOptionalParams = {},\n): Promise<FileListResponseOutput> {\n const listOptions: GeneratedParameters.ListFilesParameters = {\n ...operationOptionsToRequestParameters(options),\n queryParameters: ConvertParameters.convertListFilesQueryParamProperties(options),\n };\n validateListFilesParameters(listOptions);\n const result = await context.path(\"/files\").get(options);\n if (!expectedStatuses.includes(result.status)) {\n throw createOpenAIError(result);\n }\n return ConvertFromWire.convertFileListResponseOutput(result.body);\n}\n\n/** Uploads a file for use by other operations. */\nexport async function uploadFile(\n context: Client,\n content: ReadableStream | NodeJS.ReadableStream,\n purpose: CustomizedFilePurpose,\n options: UploadFileWithPollingOptionalParams = {},\n): Promise<OpenAIFileOutput> {\n const uploadFileOptions: GeneratedParameters.UploadFileParameters = {\n ...operationOptionsToRequestParameters(options),\n body: [\n { name: \"file\" as const, body: content, filename: options.fileName ?? randomUUID() },\n { name: \"purpose\" as const, body: purpose },\n ],\n contentType: \"multipart/form-data\",\n };\n const result = await context.path(\"/files\").post(uploadFileOptions);\n if (!expectedStatuses.includes(result.status)) {\n throw createOpenAIError(result);\n }\n return ConvertFromWire.convertOpenAIFileOutput(result.body);\n}\n\nexport function uploadFileAndPoll(\n context: Client,\n content: ReadableStream | NodeJS.ReadableStream,\n purpose: CustomizedFilePurpose,\n options: UploadFileWithPollingOptionalParams = {},\n): PollerLike<PollOperationState<OpenAIFileOutput>, OpenAIFileOutput> {\n async function updateUploadFileAndPoll(\n currentResult?: OpenAIFileOutput,\n ): Promise<{ result: OpenAIFileOutput; completed: boolean }> {\n let file: OpenAIFileOutput;\n if (!currentResult) {\n file = await uploadFile(context, content, purpose, options);\n } else {\n file = await getFile(context, currentResult.id, options);\n }\n return {\n result: file,\n completed:\n file.status === \"uploaded\" || file.status === \"processed\" || file.status === \"deleted\",\n };\n }\n return new AgentsPoller<OpenAIFileOutput>({\n update: updateUploadFileAndPoll,\n pollingOptions: options.pollingOptions ?? {},\n });\n}\n\n/** Delete a previously uploaded file. */\nexport async function deleteFile(\n context: Client,\n fileId: string,\n options: DeleteFileOptionalParams = {},\n): Promise<FileDeletionStatusOutput> {\n const deleteOptions: GeneratedParameters.ListFilesParameters = {\n ...operationOptionsToRequestParameters(options),\n };\n validateFileId(fileId);\n const result = await context.path(\"/files/{fileId}\", fileId).delete(deleteOptions);\n if (!expectedStatuses.includes(result.status)) {\n throw createOpenAIError(result);\n }\n return result.body;\n}\n\n/** Returns information about a specific file. Does not retrieve file content. */\nexport async function getFile(\n context: Client,\n fileId: string,\n options: GetFileOptionalParams = {},\n): Promise<OpenAIFileOutput> {\n validateFileId(fileId);\n const getFileOptions: GeneratedParameters.ListFilesParameters = {\n ...operationOptionsToRequestParameters(options),\n };\n const result = await context.path(\"/files/{fileId}\", fileId).get(getFileOptions);\n if (!expectedStatuses.includes(result.status)) {\n throw createOpenAIError(result);\n }\n return ConvertFromWire.convertOpenAIFileOutput(result.body);\n}\n\n/** Returns file content. */\nexport function getFileContent(\n context: Client,\n fileId: string,\n options: GetFileContentOptionalParams = {},\n): StreamableMethod<string | Uint8Array> {\n validateFileId(fileId);\n const getFileContentOptions: GeneratedParameters.ListFilesParameters = {\n ...operationOptionsToRequestParameters(options),\n };\n return context.path(\"/files/{fileId}/content\", fileId).get(getFileContentOptions);\n}\n\nfunction validateListFilesParameters(options?: GeneratedParameters.ListFilesParameters): void {\n if (options?.queryParameters?.purpose) {\n if (!Object.values(FilePurpose).includes(options?.queryParameters?.purpose as FilePurpose)) {\n throw new Error(\n \"Purpose must be one of 'fine-tune', 'fine-tune-results', 'assistants', 'assistants_output', 'batch', 'batch_output', 'vision'\",\n );\n }\n }\n}\n\nfunction validateFileId(fileId: string): void {\n if (!fileId) {\n throw new Error(\"File ID is required\");\n }\n}\n"]}
1
+ {"version":3,"file":"files.js","sourceRoot":"","sources":["../../../src/agents/files.ts"],"names":[],"mappings":";AAAA,uCAAu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,EAAE,CAAC;QACtC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,0CAAE,OAAsB,CAAC,EAAE,CAAC;YAC3F,MAAM,IAAI,KAAK,CACb,+HAA+H,CAChI,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,SAAS,cAAc,CAAC,MAAc;IACpC,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACzC,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { Client, StreamableMethod } from \"@azure-rest/core-client\";\nimport { operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\nimport type {\n FileDeletionStatusOutput,\n FileListResponseOutput,\n OpenAIFileOutput,\n} from \"../customization/outputModels.js\";\nimport type { FilePurpose as CustomizedFilePurpose } from \"../customization/models.js\";\nimport type {\n DeleteFileOptionalParams,\n GetFileContentOptionalParams,\n GetFileOptionalParams,\n ListFilesOptionalParams,\n UploadFileOptionalParams,\n} from \"./customModels.js\";\nimport { createPoller } from \"./poller.js\";\nimport type * as GeneratedParameters from \"../generated/src/parameters.js\";\nimport * as ConvertFromWire from \"../customization/convertOutputModelsFromWire.js\";\nimport * as ConvertParameters from \"../customization/convertParametersToWire.js\";\nimport { randomUUID } from \"@azure/core-util\";\nimport { createOpenAIError } from \"./openAIError.js\";\nimport type { OperationState, OperationStatus, PollerLike } from \"@azure/core-lro\";\nconst expectedStatuses = [\"200\"];\n\nenum FilePurpose {\n FineTune = \"fine-tune\",\n FineTuneResults = \"fine-tune-results\",\n Assistants = \"assistants\",\n AssistantsOutput = \"assistants_output\",\n Batch = \"batch\",\n BatchOutput = \"batch_output\",\n Vision = \"vision\",\n}\n\n/** Gets a list of previously uploaded files. */\nexport async function listFiles(\n context: Client,\n options: ListFilesOptionalParams = {},\n): Promise<FileListResponseOutput> {\n const listOptions: GeneratedParameters.ListFilesParameters = {\n ...operationOptionsToRequestParameters(options),\n queryParameters: ConvertParameters.convertListFilesQueryParamProperties(options),\n };\n validateListFilesParameters(listOptions);\n const result = await context.path(\"/files\").get(options);\n if (!expectedStatuses.includes(result.status)) {\n throw createOpenAIError(result);\n }\n return ConvertFromWire.convertFileListResponseOutput(result.body);\n}\n\n/** Uploads a file for use by other operations. */\nexport function uploadFile(\n context: Client,\n content: ReadableStream | NodeJS.ReadableStream,\n purpose: CustomizedFilePurpose,\n options: UploadFileOptionalParams = {},\n): PollerLike<OperationState<OpenAIFileOutput>, OpenAIFileOutput> {\n return createPoller<OpenAIFileOutput>({\n initOperation: async () => {\n return uploadFileInternal(context, content, purpose, options);\n },\n pollOperation: async (currentResult: OpenAIFileOutput) => {\n return getFile(context, currentResult.id, options);\n },\n getOperationStatus: getLroOperationStatus,\n getOperationError: (result: OpenAIFileOutput) => {\n return result.status === \"failed\" && result.statusDetails\n ? new Error(`Operation failed: ${result.statusDetails}`)\n : undefined;\n },\n intervalInMs: options.pollingOptions?.sleepIntervalInMs,\n });\n}\n\nexport function uploadFileAndPoll(\n context: Client,\n content: ReadableStream | NodeJS.ReadableStream,\n purpose: CustomizedFilePurpose,\n options: UploadFileOptionalParams = {},\n): PollerLike<OperationState<OpenAIFileOutput>, OpenAIFileOutput> {\n return createPoller<OpenAIFileOutput>({\n initOperation: async () => {\n return uploadFileInternal(context, content, purpose, options);\n },\n pollOperation: async (currentResult: OpenAIFileOutput) => {\n return getFile(context, currentResult.id, options);\n },\n getOperationStatus: getLroOperationStatus,\n getOperationError: (result: OpenAIFileOutput) => {\n return result.status === \"failed\" && result.statusDetails\n ? new Error(`Operation failed: ${result.statusDetails}`)\n : undefined;\n },\n intervalInMs: options.pollingOptions?.sleepIntervalInMs,\n });\n}\n\n/** Delete a previously uploaded file. */\nexport async function deleteFile(\n context: Client,\n fileId: string,\n options: DeleteFileOptionalParams = {},\n): Promise<FileDeletionStatusOutput> {\n const deleteOptions: GeneratedParameters.ListFilesParameters = {\n ...operationOptionsToRequestParameters(options),\n };\n validateFileId(fileId);\n const result = await context.path(\"/files/{fileId}\", fileId).delete(deleteOptions);\n if (!expectedStatuses.includes(result.status)) {\n throw createOpenAIError(result);\n }\n return result.body;\n}\n\n/** Returns information about a specific file. Does not retrieve file content. */\nexport async function getFile(\n context: Client,\n fileId: string,\n options: GetFileOptionalParams = {},\n): Promise<OpenAIFileOutput> {\n validateFileId(fileId);\n const getFileOptions: GeneratedParameters.ListFilesParameters = {\n ...operationOptionsToRequestParameters(options),\n };\n const result = await context.path(\"/files/{fileId}\", fileId).get(getFileOptions);\n if (!expectedStatuses.includes(result.status)) {\n throw createOpenAIError(result);\n }\n return ConvertFromWire.convertOpenAIFileOutput(result.body);\n}\n\n/** Returns file content. */\nexport function getFileContent(\n context: Client,\n fileId: string,\n options: GetFileContentOptionalParams = {},\n): StreamableMethod<string | Uint8Array> {\n validateFileId(fileId);\n const getFileContentOptions: GeneratedParameters.ListFilesParameters = {\n ...operationOptionsToRequestParameters(options),\n };\n return context.path(\"/files/{fileId}/content\", fileId).get(getFileContentOptions);\n}\n\nexport async function uploadFileInternal(\n context: Client,\n content: ReadableStream | NodeJS.ReadableStream,\n purpose: CustomizedFilePurpose,\n options: UploadFileOptionalParams = {},\n): Promise<OpenAIFileOutput> {\n const uploadFileOptions: GeneratedParameters.UploadFileParameters = {\n ...operationOptionsToRequestParameters(options),\n body: [\n { name: \"file\" as const, body: content, filename: options.fileName ?? randomUUID() },\n { name: \"purpose\" as const, body: purpose },\n ],\n contentType: \"multipart/form-data\",\n };\n const result = await context.path(\"/files\").post(uploadFileOptions);\n if (!expectedStatuses.includes(result.status)) {\n throw createOpenAIError(result);\n }\n return ConvertFromWire.convertOpenAIFileOutput(result.body);\n}\n\nfunction getLroOperationStatus(result: OpenAIFileOutput): OperationStatus {\n switch (result.status) {\n case \"running\":\n case \"pending\":\n return \"running\";\n case \"uploaded\":\n case \"processed\":\n return \"succeeded\";\n default:\n return \"failed\";\n }\n}\n\nfunction validateListFilesParameters(options?: GeneratedParameters.ListFilesParameters): void {\n if (options?.queryParameters?.purpose) {\n if (!Object.values(FilePurpose).includes(options?.queryParameters?.purpose as FilePurpose)) {\n throw new Error(\n \"Purpose must be one of 'fine-tune', 'fine-tune-results', 'assistants', 'assistants_output', 'batch', 'batch_output', 'vision'\",\n );\n }\n }\n}\n\nfunction validateFileId(fileId: string): void {\n if (!fileId) {\n throw new Error(\"File ID is required\");\n }\n}\n"]}
@@ -2,9 +2,9 @@ import { type Client, type StreamableMethod } from "@azure-rest/core-client";
2
2
  import type { FileDeletionStatusOutput, FileListResponseOutput, OpenAIFileOutput } from "../customization/outputModels.js";
3
3
  import type { OpenAIPageableListOfThreadRunOutput, ThreadRunOutput, AgentThreadOutput, RunStepOutput, OpenAIPageableListOfRunStepOutput, ThreadMessageOutput, ThreadDeletionStatusOutput, OpenAIPageableListOfThreadMessageOutput, OpenAIPageableListOfVectorStoreOutput, VectorStoreOutput, VectorStoreFileOutput, VectorStoreDeletionStatusOutput, VectorStoreFileDeletionStatusOutput, VectorStoreFileBatchOutput, OpenAIPageableListOfVectorStoreFileOutput, AgentDeletionStatusOutput, AgentOutput, OpenAIPageableListOfAgentOutput } from "../customization/outputModels.js";
4
4
  import type { FilePurpose } from "../customization/models.js";
5
- import type { AgentRunResponse, CreateRunOptionalParams, GetRunOptionalParams, CancelRunOptionalParams, SubmitToolOutputsToRunOptionalParams, UpdateRunOptionalParams, ListRunQueryOptionalParams, CreateAndRunThreadOptionalParams, CreateAgentThreadOptionalParams, GetAgentThreadOptionalParams, UpdateAgentThreadOptionalParams, DeleteAgentThreadOptionalParams, GetRunStepOptionalParams, CreateMessageOptionalParams, ListMessagesOptionalParams, UpdateMessageOptionalParams, UpdateVectorStoreOptionalParams, DeleteVectorStoreOptionalParams, CreateVectorStoreOptionalParams, CreateVectorStoreWithPollingOptionalParams, CreateVectorStoreFileOptionalParams, ListVectorStoreFilesOptionalParams, GetVectorStoreFileOptionalParams, DeleteVectorStoreFileOptionalParams, CreateVectorStoreFileWithPollingOptionalParams, CreateVectorStoreFileBatchOptionalParams, GetVectorStoreFileBatchOptionalParams, ListVectorStoreFileBatchFilesOptionalParams, CreateVectorStoreFileBatchWithPollingOptionalParams, CreateAgentOptionalParams, ListAgentsOptionalParams, GetAgentOptionalParams, UpdateAgentOptionalParams, DeleteFileOptionalParams, GetFileOptionalParams, GetFileContentOptionalParams, ListFilesOptionalParams, UploadFileOptionalParams, UploadFileWithPollingOptionalParams, CancelVectorStoreFileBatchOptionalParams, DeleteAgentOptionalParams } from "./customModels.js";
5
+ import type { AgentRunResponse, CreateRunOptionalParams, GetRunOptionalParams, CancelRunOptionalParams, SubmitToolOutputsToRunOptionalParams, UpdateRunOptionalParams, ListRunQueryOptionalParams, CreateAndRunThreadOptionalParams, CreateAgentThreadOptionalParams, GetAgentThreadOptionalParams, UpdateAgentThreadOptionalParams, DeleteAgentThreadOptionalParams, GetRunStepOptionalParams, CreateMessageOptionalParams, ListMessagesOptionalParams, UpdateMessageOptionalParams, UpdateVectorStoreOptionalParams, DeleteVectorStoreOptionalParams, CreateVectorStoreOptionalParams, CreateVectorStoreFileOptionalParams, ListVectorStoreFilesOptionalParams, GetVectorStoreFileOptionalParams, DeleteVectorStoreFileOptionalParams, CreateVectorStoreFileBatchOptionalParams, GetVectorStoreFileBatchOptionalParams, ListVectorStoreFileBatchFilesOptionalParams, CreateAgentOptionalParams, ListAgentsOptionalParams, GetAgentOptionalParams, UpdateAgentOptionalParams, DeleteFileOptionalParams, GetFileOptionalParams, GetFileContentOptionalParams, ListFilesOptionalParams, UploadFileOptionalParams, CancelVectorStoreFileBatchOptionalParams, DeleteAgentOptionalParams } from "./customModels.js";
6
6
  import type { ThreadMessageOptions, ToolOutput } from "../customization/models.js";
7
- import type { PollerLike, PollOperationState } from "@azure/core-lro";
7
+ import type { PollerLike, OperationState } from "@azure/core-lro";
8
8
  /**
9
9
  * Agents Interface Contains operations for creating, listing, updating, and deleting agents, threads, runs, messages, and files.
10
10
  */
@@ -50,9 +50,9 @@ export interface AgentsOperations {
50
50
  /** Gets a list of previously uploaded files. */
51
51
  listFiles: (options?: ListFilesOptionalParams) => Promise<FileListResponseOutput>;
52
52
  /** Uploads a file for use by other operations. */
53
- uploadFile: (data: ReadableStream | NodeJS.ReadableStream, purpose: FilePurpose, options?: UploadFileOptionalParams) => Promise<OpenAIFileOutput>;
53
+ uploadFile: (data: ReadableStream | NodeJS.ReadableStream, purpose: FilePurpose, options?: UploadFileOptionalParams) => PollerLike<OperationState<OpenAIFileOutput>, OpenAIFileOutput>;
54
54
  /** Uploads a file for use by other operations. */
55
- uploadFileAndPoll: (data: ReadableStream | NodeJS.ReadableStream, purpose: FilePurpose, options?: UploadFileWithPollingOptionalParams) => PollerLike<PollOperationState<OpenAIFileOutput>, OpenAIFileOutput>;
55
+ uploadFileAndPoll: (data: ReadableStream | NodeJS.ReadableStream, purpose: FilePurpose, options?: UploadFileOptionalParams) => PollerLike<OperationState<OpenAIFileOutput>, OpenAIFileOutput>;
56
56
  /** Delete a previously uploaded file. */
57
57
  deleteFile: (fileId: string, options?: DeleteFileOptionalParams) => Promise<FileDeletionStatusOutput>;
58
58
  /** Returns information about a specific file. Does not retrieve file content. */
@@ -62,7 +62,7 @@ export interface AgentsOperations {
62
62
  /** Returns a list of vector stores. */
63
63
  listVectorStores: (options?: DeleteVectorStoreOptionalParams) => Promise<OpenAIPageableListOfVectorStoreOutput>;
64
64
  /** Creates a vector store. */
65
- createVectorStore: (options?: CreateVectorStoreOptionalParams) => Promise<VectorStoreOutput>;
65
+ createVectorStore: (options?: CreateVectorStoreOptionalParams) => PollerLike<OperationState<VectorStoreOutput>, VectorStoreOutput>;
66
66
  /** Returns the vector store object object matching the specific ID. */
67
67
  getVectorStore: (vectorStoreId: string, options?: DeleteVectorStoreOptionalParams) => Promise<VectorStoreOutput>;
68
68
  /** The ID of the vector store to modify. */
@@ -70,9 +70,9 @@ export interface AgentsOperations {
70
70
  /** Deletes the vector store object matching the specified ID. */
71
71
  deleteVectorStore: (vectorStoreId: string, options?: DeleteVectorStoreOptionalParams) => Promise<VectorStoreDeletionStatusOutput>;
72
72
  /** Create vector store and poll. */
73
- createVectorStoreAndPoll: (options?: CreateVectorStoreWithPollingOptionalParams) => PollerLike<PollOperationState<VectorStoreOutput>, VectorStoreOutput>;
73
+ createVectorStoreAndPoll: (options?: CreateVectorStoreOptionalParams) => PollerLike<OperationState<VectorStoreOutput>, VectorStoreOutput>;
74
74
  /** Create a vector store file by attching a file to a vector store. */
75
- createVectorStoreFile: (vectorStoreId: string, options?: CreateVectorStoreFileOptionalParams) => Promise<VectorStoreFileOutput>;
75
+ createVectorStoreFile: (vectorStoreId: string, options?: CreateVectorStoreFileOptionalParams) => PollerLike<OperationState<VectorStoreFileOutput>, VectorStoreFileOutput>;
76
76
  /** Retrieves a vector store file. */
77
77
  getVectorStoreFile: (vectorStoreId: string, fileId: string, options?: GetVectorStoreFileOptionalParams) => Promise<VectorStoreFileOutput>;
78
78
  /** Returns a list of vector store files. */
@@ -83,9 +83,9 @@ export interface AgentsOperations {
83
83
  */
84
84
  deleteVectorStoreFile: (vectorStoreId: string, fileId: string, options?: DeleteVectorStoreFileOptionalParams) => Promise<VectorStoreFileDeletionStatusOutput>;
85
85
  /** Create a vector store file by attaching a file to a vector store and poll. */
86
- createVectorStoreFileAndPoll: (vectorStoreId: string, options?: CreateVectorStoreFileWithPollingOptionalParams) => PollerLike<PollOperationState<VectorStoreFileOutput>, VectorStoreFileOutput>;
86
+ createVectorStoreFileAndPoll: (vectorStoreId: string, options?: CreateVectorStoreFileOptionalParams) => PollerLike<OperationState<VectorStoreFileOutput>, VectorStoreFileOutput>;
87
87
  /** Create a vector store file batch. */
88
- createVectorStoreFileBatch: (vectorStoreId: string, options?: CreateVectorStoreFileBatchOptionalParams) => Promise<VectorStoreFileBatchOutput>;
88
+ createVectorStoreFileBatch: (vectorStoreId: string, options?: CreateVectorStoreFileBatchOptionalParams) => PollerLike<OperationState<VectorStoreFileBatchOutput>, VectorStoreFileBatchOutput>;
89
89
  /** Retrieve a vector store file batch. */
90
90
  getVectorStoreFileBatch: (vectorStoreId: string, batchId: string, options?: GetVectorStoreFileBatchOptionalParams) => Promise<VectorStoreFileBatchOutput>;
91
91
  /** Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible. */
@@ -93,7 +93,7 @@ export interface AgentsOperations {
93
93
  /** Returns a list of vector store files in a batch. */
94
94
  listVectorStoreFileBatchFiles: (vectorStoreId: string, batchId: string, options?: ListVectorStoreFileBatchFilesOptionalParams) => Promise<OpenAIPageableListOfVectorStoreFileOutput>;
95
95
  /** Create a vector store file batch and poll. */
96
- createVectorStoreFileBatchAndPoll: (vectorStoreId: string, options?: CreateVectorStoreFileBatchWithPollingOptionalParams) => PollerLike<PollOperationState<VectorStoreFileBatchOutput>, VectorStoreFileBatchOutput>;
96
+ createVectorStoreFileBatchAndPoll: (vectorStoreId: string, options?: CreateVectorStoreFileBatchOptionalParams) => PollerLike<OperationState<VectorStoreFileBatchOutput>, VectorStoreFileBatchOutput>;
97
97
  /** Gets a single run step from a thread run. */
98
98
  getRunStep: (threadId: string, runId: string, stepId: string, options?: GetRunStepOptionalParams) => Promise<RunStepOutput>;
99
99
  /** Gets a list of run steps from a thread run. */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/agents/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,KAAK,EACV,wBAAwB,EACxB,sBAAsB,EACtB,gBAAgB,EACjB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EACV,mCAAmC,EACnC,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,iCAAiC,EACjC,mBAAmB,EACnB,0BAA0B,EAC1B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0B,EAAC,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC;QAChE,uBAAuB,EAAE,CACvB,aAAqB,EACrB,OAAe,EACf,OAA+C,EAC/C,EAAE,CAAC,IAAA,oDAAuB,EAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC;QACtE,0BAA0B,EAAE,CAC1B,aAAqB,EACrB,OAAe,EACf,OAAkD,EAClD,EAAE,CAAC,IAAA,uDAA0B,EAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC;QACzE,6BAA6B,EAAE,CAC7B,aAAqB,EACrB,OAAe,EACf,OAAqD,EACrD,EAAE,CAAC,IAAA,0DAA6B,EAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC;QAC5E,iCAAiC,EAAE,CACjC,aAAqB,EACrB,OAA6D,EAC7D,EAAE,CAAC,IAAA,8DAAiC,EAAC,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC;QAEvE,UAAU,EAAE,CACV,QAAgB,EAChB,KAAa,EACb,MAAc,EACd,OAAkC,EAClC,EAAE,CAAC,IAAA,wBAAU,EAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC;QAC1D,YAAY,EAAE,CAAC,QAAgB,EAAE,KAAa,EAAE,OAAoC,EAAE,EAAE,CACtF,IAAA,0BAAY,EAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,CAAC;KAClD,CAAC;AACJ,CAAC;AAED,SAAgB,mBAAmB,CAAC,OAAe;IACjD,yBACK,SAAS,CAAC,OAAO,CAAC,EACrB;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { type Client, type StreamableMethod } from \"@azure-rest/core-client\";\nimport type {\n FileDeletionStatusOutput,\n FileListResponseOutput,\n OpenAIFileOutput,\n} from \"../customization/outputModels.js\";\nimport type {\n OpenAIPageableListOfThreadRunOutput,\n ThreadRunOutput,\n AgentThreadOutput,\n RunStepOutput,\n OpenAIPageableListOfRunStepOutput,\n ThreadMessageOutput,\n ThreadDeletionStatusOutput,\n OpenAIPageableListOfThreadMessageOutput,\n OpenAIPageableListOfVectorStoreOutput,\n VectorStoreOutput,\n VectorStoreFileOutput,\n VectorStoreDeletionStatusOutput,\n VectorStoreFileDeletionStatusOutput,\n VectorStoreFileBatchOutput,\n OpenAIPageableListOfVectorStoreFileOutput,\n AgentDeletionStatusOutput,\n AgentOutput,\n OpenAIPageableListOfAgentOutput,\n} from \"../customization/outputModels.js\";\nimport { createAgent, deleteAgent, getAgent, listAgents, updateAgent } from \"./assistants.js\";\nimport {\n deleteFile,\n getFile,\n getFileContent,\n listFiles,\n uploadFile,\n uploadFileAndPoll,\n} from \"./files.js\";\nimport { createThread, deleteThread, getThread, updateThread } from \"./threads.js\";\nimport {\n cancelRun,\n createRun,\n createThreadAndRun,\n getRun,\n listRuns,\n submitToolOutputsToRun,\n updateRun,\n} from \"./runs.js\";\nimport { createMessage, listMessages, updateMessage } from \"./messages.js\";\nimport type { FilePurpose } from \"../customization/models.js\";\nimport {\n createVectorStore,\n createVectorStoreAndPoll,\n deleteVectorStore,\n getVectorStore,\n listVectorStores,\n modifyVectorStore,\n} from \"./vectorStores.js\";\nimport { getRunStep, listRunSteps } from \"./runSteps.js\";\nimport {\n createVectorStoreFile,\n createVectorStoreFileAndPoll,\n deleteVectorStoreFile,\n getVectorStoreFile,\n listVectorStoreFiles,\n} from \"./vectorStoresFiles.js\";\nimport {\n cancelVectorStoreFileBatch,\n createVectorStoreFileBatch,\n createVectorStoreFileBatchAndPoll,\n getVectorStoreFileBatch,\n listVectorStoreFileBatchFiles,\n} from \"./vectorStoresFileBatches.js\";\nimport type {\n AgentRunResponse,\n CreateRunOptionalParams,\n GetRunOptionalParams,\n CancelRunOptionalParams,\n SubmitToolOutputsToRunOptionalParams,\n UpdateRunOptionalParams,\n ListRunQueryOptionalParams,\n CreateAndRunThreadOptionalParams,\n CreateAgentThreadOptionalParams,\n GetAgentThreadOptionalParams,\n UpdateAgentThreadOptionalParams,\n DeleteAgentThreadOptionalParams,\n GetRunStepOptionalParams,\n ListRunStepsOptionalParams,\n CreateMessageOptionalParams,\n ListMessagesOptionalParams,\n UpdateMessageOptionalParams,\n GetVectorStoreOptionalParams,\n ListVectorStoresOptionalParams,\n UpdateVectorStoreOptionalParams,\n DeleteVectorStoreOptionalParams,\n CreateVectorStoreOptionalParams,\n CreateVectorStoreWithPollingOptionalParams,\n CreateVectorStoreFileOptionalParams,\n ListVectorStoreFilesOptionalParams,\n GetVectorStoreFileOptionalParams,\n DeleteVectorStoreFileOptionalParams,\n CreateVectorStoreFileWithPollingOptionalParams,\n CreateVectorStoreFileBatchOptionalParams,\n GetVectorStoreFileBatchOptionalParams,\n ListVectorStoreFileBatchFilesOptionalParams,\n CreateVectorStoreFileBatchWithPollingOptionalParams,\n CreateAgentOptionalParams,\n ListAgentsOptionalParams,\n GetAgentOptionalParams,\n UpdateAgentOptionalParams,\n DeleteFileOptionalParams,\n GetFileOptionalParams,\n GetFileContentOptionalParams,\n ListFilesOptionalParams,\n UploadFileOptionalParams,\n UploadFileWithPollingOptionalParams,\n CancelVectorStoreFileBatchOptionalParams,\n DeleteAgentOptionalParams,\n} from \"./customModels.js\";\nimport type { ThreadMessageOptions, ToolOutput } from \"../customization/models.js\";\nimport type { PollerLike, PollOperationState } from \"@azure/core-lro\";\n\n/**\n * Agents Interface Contains operations for creating, listing, updating, and deleting agents, threads, runs, messages, and files.\n */\nexport interface AgentsOperations {\n /** Creates a new agent. */\n createAgent: (model: string, options?: CreateAgentOptionalParams) => Promise<AgentOutput>;\n\n /** Gets a list of agents that were previously created. */\n listAgents: (options?: ListAgentsOptionalParams) => Promise<OpenAIPageableListOfAgentOutput>;\n /** Retrieves an existing agent. */\n getAgent: (assistantId: string, options?: GetAgentOptionalParams) => Promise<AgentOutput>;\n /** Modifies an existing agent. */\n updateAgent: (assistantId: string, options: UpdateAgentOptionalParams) => Promise<AgentOutput>;\n /** Deletes an agent. */\n deleteAgent: (\n assistantId: string,\n options?: DeleteAgentOptionalParams,\n ) => Promise<AgentDeletionStatusOutput>;\n\n /** Creates a new thread. Threads contain messages and can be run by agents. */\n createThread: (options?: CreateAgentThreadOptionalParams) => Promise<AgentThreadOutput>;\n /** Gets information about an existing thread. */\n getThread: (\n threadId: string,\n options?: GetAgentThreadOptionalParams,\n ) => Promise<AgentThreadOutput>;\n /** Modifies an existing thread. */\n updateThread: (\n threadId: string,\n options?: UpdateAgentThreadOptionalParams,\n ) => Promise<AgentThreadOutput>;\n /** Deletes an existing thread. */\n deleteThread: (\n threadId: string,\n options?: DeleteAgentThreadOptionalParams,\n ) => Promise<ThreadDeletionStatusOutput>;\n\n /** Creates and starts a new run of the specified thread using the specified agent. */\n createRun: (\n threadId: string,\n assistantId: string,\n options?: CreateRunOptionalParams,\n ) => AgentRunResponse;\n\n /** Gets a list of runs for a specified thread. */\n listRuns: (\n threadId: string,\n options?: ListRunQueryOptionalParams,\n ) => Promise<OpenAIPageableListOfThreadRunOutput>;\n /** Gets an existing run from an existing thread. */\n getRun: (\n threadId: string,\n runId: string,\n options?: GetRunOptionalParams,\n ) => Promise<ThreadRunOutput>;\n /** Modifies an existing thread run. */\n updateRun: (\n threadId: string,\n runId: string,\n options?: UpdateRunOptionalParams,\n ) => Promise<ThreadRunOutput>;\n /** Submits outputs from tools as requested by tool calls in a run. Runs that need submitted tool outputs will have a status of 'requires_action' with a required_action.type of 'submit_tool_outputs'. */\n submitToolOutputsToRun: (\n threadId: string,\n runId: string,\n toolOutputs: Array<ToolOutput>,\n options?: SubmitToolOutputsToRunOptionalParams,\n ) => AgentRunResponse;\n\n /** Cancels a run of an in progress thread. */\n cancelRun: (\n threadId: string,\n runId: string,\n options?: CancelRunOptionalParams,\n ) => Promise<ThreadRunOutput>;\n /** Creates a new thread and immediately starts a run of that thread. */\n createThreadAndRun: (\n assistantId: string,\n options?: CreateAndRunThreadOptionalParams,\n ) => AgentRunResponse;\n\n /** Creates a new message on a specified thread. */\n createMessage: (\n threadId: string,\n messageOptions: ThreadMessageOptions,\n options?: CreateMessageOptionalParams,\n ) => Promise<ThreadMessageOutput>;\n /** Gets a list of messages that exist on a thread. */\n listMessages: (\n threadId: string,\n options?: ListMessagesOptionalParams,\n ) => Promise<OpenAIPageableListOfThreadMessageOutput>;\n /** Modifies an existing message on an existing thread. */\n updateMessage: (\n threadId: string,\n messageId: string,\n options?: UpdateMessageOptionalParams,\n ) => Promise<ThreadMessageOutput>;\n\n /** Gets a list of previously uploaded files. */\n listFiles: (options?: ListFilesOptionalParams) => Promise<FileListResponseOutput>;\n /** Uploads a file for use by other operations. */\n uploadFile: (\n data: ReadableStream | NodeJS.ReadableStream,\n purpose: FilePurpose,\n options?: UploadFileOptionalParams,\n ) => Promise<OpenAIFileOutput>;\n\n /** Uploads a file for use by other operations. */\n uploadFileAndPoll: (\n data: ReadableStream | NodeJS.ReadableStream,\n purpose: FilePurpose,\n options?: UploadFileWithPollingOptionalParams,\n ) => PollerLike<PollOperationState<OpenAIFileOutput>, OpenAIFileOutput>;\n /** Delete a previously uploaded file. */\n deleteFile: (\n fileId: string,\n options?: DeleteFileOptionalParams,\n ) => Promise<FileDeletionStatusOutput>;\n /** Returns information about a specific file. Does not retrieve file content. */\n getFile: (fileId: string, options?: GetFileOptionalParams) => Promise<OpenAIFileOutput>;\n /** Returns the content of a specific file. */\n getFileContent: (\n fileId: string,\n options?: GetFileContentOptionalParams,\n ) => StreamableMethod<string | Uint8Array>;\n\n /** Returns a list of vector stores. */\n listVectorStores: (\n options?: DeleteVectorStoreOptionalParams,\n ) => Promise<OpenAIPageableListOfVectorStoreOutput>;\n /** Creates a vector store. */\n createVectorStore: (options?: CreateVectorStoreOptionalParams) => Promise<VectorStoreOutput>;\n /** Returns the vector store object object matching the specific ID. */\n getVectorStore: (\n vectorStoreId: string,\n options?: DeleteVectorStoreOptionalParams,\n ) => Promise<VectorStoreOutput>;\n /** The ID of the vector store to modify. */\n modifyVectorStore: (\n vectorStoreId: string,\n options?: UpdateVectorStoreOptionalParams,\n ) => Promise<VectorStoreOutput>;\n /** Deletes the vector store object matching the specified ID. */\n deleteVectorStore: (\n vectorStoreId: string,\n options?: DeleteVectorStoreOptionalParams,\n ) => Promise<VectorStoreDeletionStatusOutput>;\n\n /** Create vector store and poll. */\n createVectorStoreAndPoll: (\n options?: CreateVectorStoreWithPollingOptionalParams,\n ) => PollerLike<PollOperationState<VectorStoreOutput>, VectorStoreOutput>;\n\n /** Create a vector store file by attching a file to a vector store. */\n createVectorStoreFile: (\n vectorStoreId: string,\n options?: CreateVectorStoreFileOptionalParams,\n ) => Promise<VectorStoreFileOutput>;\n /** Retrieves a vector store file. */\n getVectorStoreFile: (\n vectorStoreId: string,\n fileId: string,\n options?: GetVectorStoreFileOptionalParams,\n ) => Promise<VectorStoreFileOutput>;\n /** Returns a list of vector store files. */\n listVectorStoreFiles: (\n vectorStoreId: string,\n options?: ListVectorStoreFilesOptionalParams,\n ) => Promise<OpenAIPageableListOfVectorStoreFileOutput>;\n /**\n * Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted.\n * To delete the file, use the delete file endpoint.\n */\n deleteVectorStoreFile: (\n vectorStoreId: string,\n fileId: string,\n options?: DeleteVectorStoreFileOptionalParams,\n ) => Promise<VectorStoreFileDeletionStatusOutput>;\n /** Create a vector store file by attaching a file to a vector store and poll. */\n createVectorStoreFileAndPoll: (\n vectorStoreId: string,\n options?: CreateVectorStoreFileWithPollingOptionalParams,\n ) => PollerLike<PollOperationState<VectorStoreFileOutput>, VectorStoreFileOutput>;\n\n /** Create a vector store file batch. */\n createVectorStoreFileBatch: (\n vectorStoreId: string,\n options?: CreateVectorStoreFileBatchOptionalParams,\n ) => Promise<VectorStoreFileBatchOutput>;\n /** Retrieve a vector store file batch. */\n getVectorStoreFileBatch: (\n vectorStoreId: string,\n batchId: string,\n options?: GetVectorStoreFileBatchOptionalParams,\n ) => Promise<VectorStoreFileBatchOutput>;\n /** Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible. */\n cancelVectorStoreFileBatch: (\n vectorStoreId: string,\n batchId: string,\n options?: CancelVectorStoreFileBatchOptionalParams,\n ) => Promise<VectorStoreFileBatchOutput>;\n /** Returns a list of vector store files in a batch. */\n listVectorStoreFileBatchFiles: (\n vectorStoreId: string,\n batchId: string,\n options?: ListVectorStoreFileBatchFilesOptionalParams,\n ) => Promise<OpenAIPageableListOfVectorStoreFileOutput>;\n /** Create a vector store file batch and poll. */\n createVectorStoreFileBatchAndPoll: (\n vectorStoreId: string,\n options?: CreateVectorStoreFileBatchWithPollingOptionalParams,\n ) => PollerLike<PollOperationState<VectorStoreFileBatchOutput>, VectorStoreFileBatchOutput>;\n\n /** Gets a single run step from a thread run. */\n getRunStep: (\n threadId: string,\n runId: string,\n stepId: string,\n options?: GetRunStepOptionalParams,\n ) => Promise<RunStepOutput>;\n /** Gets a list of run steps from a thread run. */\n listRunSteps: (\n threadId: string,\n runId: string,\n options?: ListRunQueryOptionalParams,\n ) => Promise<OpenAIPageableListOfRunStepOutput>;\n}\n\nfunction getAgents(context: Client): AgentsOperations {\n return {\n createAgent: (model: string, options?: CreateAgentOptionalParams) =>\n createAgent(context, model, options),\n listAgents: (options?: ListAgentsOptionalParams) => listAgents(context, options),\n getAgent: (assistantId: string, options?: GetAgentOptionalParams) =>\n getAgent(context, assistantId, options),\n updateAgent: (assistantId: string, options: UpdateAgentOptionalParams) =>\n updateAgent(context, assistantId, options),\n deleteAgent: (assistantId: string, options?: DeleteAgentOptionalParams) =>\n deleteAgent(context, assistantId, options),\n\n createThread: (options?: CreateAgentThreadOptionalParams) => createThread(context, options),\n getThread: (threadId: string, options?: GetAgentThreadOptionalParams) =>\n getThread(context, threadId, options),\n updateThread: (threadId: string, options?: UpdateAgentThreadOptionalParams) =>\n updateThread(context, threadId, options),\n deleteThread: (threadId: string, options?: DeleteAgentThreadOptionalParams) =>\n deleteThread(context, threadId, options),\n\n createRun: (threadId: string, assistantId: string, options?: CreateRunOptionalParams) =>\n createRun(context, threadId, assistantId, options ?? {}),\n listRuns: (threadId: string, options?: ListRunQueryOptionalParams) =>\n listRuns(context, threadId, options ?? {}),\n getRun: (threadId: string, runId: string, options?: GetRunOptionalParams) =>\n getRun(context, threadId, runId, options),\n updateRun: (threadId: string, runId: string, options?: UpdateRunOptionalParams) =>\n updateRun(context, threadId, runId, options),\n submitToolOutputsToRun: (\n threadId: string,\n runId: string,\n toolOutputs: Array<ToolOutput>,\n options?: SubmitToolOutputsToRunOptionalParams,\n ) => submitToolOutputsToRun(context, threadId, runId, toolOutputs, options),\n cancelRun: (threadId: string, runId: string, options?: CancelRunOptionalParams) =>\n cancelRun(context, threadId, runId, options),\n createThreadAndRun: (assistantId: string, options?: CreateAndRunThreadOptionalParams) =>\n createThreadAndRun(context, assistantId, options ?? {}),\n\n createMessage: (\n threadId: string,\n messageOptions: ThreadMessageOptions,\n options?: CreateMessageOptionalParams,\n ) => createMessage(context, threadId, messageOptions, options),\n listMessages: (threadId: string, options?: ListMessagesOptionalParams) =>\n listMessages(context, threadId, options),\n updateMessage: (threadId: string, messageId: string, options?: UpdateMessageOptionalParams) =>\n updateMessage(context, threadId, messageId, options),\n\n listFiles: (options?: ListFilesOptionalParams) => listFiles(context, options),\n uploadFile: (\n content: ReadableStream | NodeJS.ReadableStream,\n purpose: FilePurpose,\n options?: UploadFileOptionalParams,\n ) => uploadFile(context, content, purpose, options),\n uploadFileAndPoll: (\n content: ReadableStream | NodeJS.ReadableStream,\n purpose: FilePurpose,\n options?: UploadFileWithPollingOptionalParams,\n ) => uploadFileAndPoll(context, content, purpose, options),\n deleteFile: (fileId: string, options?: DeleteFileOptionalParams) =>\n deleteFile(context, fileId, options),\n getFile: (fileId: string, options?: GetFileOptionalParams) => getFile(context, fileId, options),\n getFileContent: (fileId: string, options?: GetFileContentOptionalParams) =>\n getFileContent(context, fileId, options),\n\n listVectorStores: (options?: ListVectorStoresOptionalParams) =>\n listVectorStores(context, options),\n createVectorStore: (options?: CreateVectorStoreOptionalParams) =>\n createVectorStore(context, options),\n getVectorStore: (vectorStoreId: string, options?: GetVectorStoreOptionalParams) =>\n getVectorStore(context, vectorStoreId, options),\n modifyVectorStore: (vectorStoreId: string, options?: UpdateVectorStoreOptionalParams) =>\n modifyVectorStore(context, vectorStoreId, options),\n deleteVectorStore: (vectorStoreId: string, options?: DeleteVectorStoreOptionalParams) =>\n deleteVectorStore(context, vectorStoreId, options),\n createVectorStoreAndPoll: (options?: CreateVectorStoreWithPollingOptionalParams) =>\n createVectorStoreAndPoll(context, options),\n\n createVectorStoreFile: (vectorStoreId: string, options?: CreateVectorStoreFileOptionalParams) =>\n createVectorStoreFile(context, vectorStoreId, options),\n getVectorStoreFile: (\n vectorStoreId: string,\n fileId: string,\n options?: GetVectorStoreFileOptionalParams,\n ) => getVectorStoreFile(context, vectorStoreId, fileId, options),\n listVectorStoreFiles: (vectorStoreId: string, options?: ListVectorStoreFilesOptionalParams) =>\n listVectorStoreFiles(context, vectorStoreId, options),\n deleteVectorStoreFile: (\n vectorStoreId: string,\n fileId: string,\n options?: DeleteVectorStoreFileOptionalParams,\n ) => deleteVectorStoreFile(context, vectorStoreId, fileId, options),\n createVectorStoreFileAndPoll: (\n vectorStoreId: string,\n options?: CreateVectorStoreFileWithPollingOptionalParams,\n ) => createVectorStoreFileAndPoll(context, vectorStoreId, options),\n\n createVectorStoreFileBatch: (\n vectorStoreId: string,\n options?: CreateVectorStoreFileBatchOptionalParams,\n ) => createVectorStoreFileBatch(context, vectorStoreId, options),\n getVectorStoreFileBatch: (\n vectorStoreId: string,\n batchId: string,\n options?: GetVectorStoreFileBatchOptionalParams,\n ) => getVectorStoreFileBatch(context, vectorStoreId, batchId, options),\n cancelVectorStoreFileBatch: (\n vectorStoreId: string,\n batchId: string,\n options?: CancelVectorStoreFileBatchOptionalParams,\n ) => cancelVectorStoreFileBatch(context, vectorStoreId, batchId, options),\n listVectorStoreFileBatchFiles: (\n vectorStoreId: string,\n batchId: string,\n options?: ListVectorStoreFileBatchFilesOptionalParams,\n ) => listVectorStoreFileBatchFiles(context, vectorStoreId, batchId, options),\n createVectorStoreFileBatchAndPoll: (\n vectorStoreId: string,\n options?: CreateVectorStoreFileBatchWithPollingOptionalParams,\n ) => createVectorStoreFileBatchAndPoll(context, vectorStoreId, options),\n\n getRunStep: (\n threadId: string,\n runId: string,\n stepId: string,\n options?: GetRunStepOptionalParams,\n ) => getRunStep(context, threadId, runId, stepId, options),\n listRunSteps: (threadId: string, runId: string, options?: ListRunStepsOptionalParams) =>\n listRunSteps(context, threadId, runId, options),\n };\n}\n\nexport function getAgentsOperations(context: Client): AgentsOperations {\n return {\n ...getAgents(context),\n };\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/agents/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAielC,kDAIC;AAzcD,mDAA8F;AAC9F,yCAOoB;AACpB,6CAAmF;AACnF,uCAQmB;AACnB,+CAA2E;AAE3E,uDAO2B;AAC3B,+CAAyD;AACzD,iEAMgC;AAChC,6EAMsC;AAqRtC,SAAS,SAAS,CAAC,OAAe;IAChC,OAAO;QACL,WAAW,EAAE,CAAC,KAAa,EAAE,OAAmC,EAAE,EAAE,CAClE,IAAA,2BAAW,EAAC,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC;QACtC,UAAU,EAAE,CAAC,OAAkC,EAAE,EAAE,CAAC,IAAA,0BAAU,EAAC,OAAO,EAAE,OAAO,CAAC;QAChF,QAAQ,EAAE,CAAC,WAAmB,EAAE,OAAgC,EAAE,EAAE,CAClE,IAAA,wBAAQ,EAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAAC;QACzC,WAAW,EAAE,CAAC,WAAmB,EAAE,OAAkC,EAAE,EAAE,CACvE,IAAA,2BAAW,EAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAAC;QAC5C,WAAW,EAAE,CA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Q,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC;QAC1D,YAAY,EAAE,CAAC,QAAgB,EAAE,KAAa,EAAE,OAAoC,EAAE,EAAE,CACtF,IAAA,0BAAY,EAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,CAAC;KAClD,CAAC;AACJ,CAAC;AAED,SAAgB,mBAAmB,CAAC,OAAe;IACjD,yBACK,SAAS,CAAC,OAAO,CAAC,EACrB;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { type Client, type StreamableMethod } from \"@azure-rest/core-client\";\nimport type {\n FileDeletionStatusOutput,\n FileListResponseOutput,\n OpenAIFileOutput,\n} from \"../customization/outputModels.js\";\nimport type {\n OpenAIPageableListOfThreadRunOutput,\n ThreadRunOutput,\n AgentThreadOutput,\n RunStepOutput,\n OpenAIPageableListOfRunStepOutput,\n ThreadMessageOutput,\n ThreadDeletionStatusOutput,\n OpenAIPageableListOfThreadMessageOutput,\n OpenAIPageableListOfVectorStoreOutput,\n VectorStoreOutput,\n VectorStoreFileOutput,\n VectorStoreDeletionStatusOutput,\n VectorStoreFileDeletionStatusOutput,\n VectorStoreFileBatchOutput,\n OpenAIPageableListOfVectorStoreFileOutput,\n AgentDeletionStatusOutput,\n AgentOutput,\n OpenAIPageableListOfAgentOutput,\n} from \"../customization/outputModels.js\";\nimport { createAgent, deleteAgent, getAgent, listAgents, updateAgent } from \"./assistants.js\";\nimport {\n deleteFile,\n getFile,\n getFileContent,\n listFiles,\n uploadFile,\n uploadFileAndPoll,\n} from \"./files.js\";\nimport { createThread, deleteThread, getThread, updateThread } from \"./threads.js\";\nimport {\n cancelRun,\n createRun,\n createThreadAndRun,\n getRun,\n listRuns,\n submitToolOutputsToRun,\n updateRun,\n} from \"./runs.js\";\nimport { createMessage, listMessages, updateMessage } from \"./messages.js\";\nimport type { FilePurpose } from \"../customization/models.js\";\nimport {\n createVectorStore,\n createVectorStoreAndPoll,\n deleteVectorStore,\n getVectorStore,\n listVectorStores,\n modifyVectorStore,\n} from \"./vectorStores.js\";\nimport { getRunStep, listRunSteps } from \"./runSteps.js\";\nimport {\n createVectorStoreFile,\n createVectorStoreFileAndPoll,\n deleteVectorStoreFile,\n getVectorStoreFile,\n listVectorStoreFiles,\n} from \"./vectorStoresFiles.js\";\nimport {\n cancelVectorStoreFileBatch,\n createVectorStoreFileBatch,\n createVectorStoreFileBatchAndPoll,\n getVectorStoreFileBatch,\n listVectorStoreFileBatchFiles,\n} from \"./vectorStoresFileBatches.js\";\nimport type {\n AgentRunResponse,\n CreateRunOptionalParams,\n GetRunOptionalParams,\n CancelRunOptionalParams,\n SubmitToolOutputsToRunOptionalParams,\n UpdateRunOptionalParams,\n ListRunQueryOptionalParams,\n CreateAndRunThreadOptionalParams,\n CreateAgentThreadOptionalParams,\n GetAgentThreadOptionalParams,\n UpdateAgentThreadOptionalParams,\n DeleteAgentThreadOptionalParams,\n GetRunStepOptionalParams,\n ListRunStepsOptionalParams,\n CreateMessageOptionalParams,\n ListMessagesOptionalParams,\n UpdateMessageOptionalParams,\n GetVectorStoreOptionalParams,\n ListVectorStoresOptionalParams,\n UpdateVectorStoreOptionalParams,\n DeleteVectorStoreOptionalParams,\n CreateVectorStoreOptionalParams,\n CreateVectorStoreFileOptionalParams,\n ListVectorStoreFilesOptionalParams,\n GetVectorStoreFileOptionalParams,\n DeleteVectorStoreFileOptionalParams,\n CreateVectorStoreFileBatchOptionalParams,\n GetVectorStoreFileBatchOptionalParams,\n ListVectorStoreFileBatchFilesOptionalParams,\n CreateAgentOptionalParams,\n ListAgentsOptionalParams,\n GetAgentOptionalParams,\n UpdateAgentOptionalParams,\n DeleteFileOptionalParams,\n GetFileOptionalParams,\n GetFileContentOptionalParams,\n ListFilesOptionalParams,\n UploadFileOptionalParams,\n CancelVectorStoreFileBatchOptionalParams,\n DeleteAgentOptionalParams,\n} from \"./customModels.js\";\nimport type { ThreadMessageOptions, ToolOutput } from \"../customization/models.js\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\n/**\n * Agents Interface Contains operations for creating, listing, updating, and deleting agents, threads, runs, messages, and files.\n */\nexport interface AgentsOperations {\n /** Creates a new agent. */\n createAgent: (model: string, options?: CreateAgentOptionalParams) => Promise<AgentOutput>;\n\n /** Gets a list of agents that were previously created. */\n listAgents: (options?: ListAgentsOptionalParams) => Promise<OpenAIPageableListOfAgentOutput>;\n /** Retrieves an existing agent. */\n getAgent: (assistantId: string, options?: GetAgentOptionalParams) => Promise<AgentOutput>;\n /** Modifies an existing agent. */\n updateAgent: (assistantId: string, options: UpdateAgentOptionalParams) => Promise<AgentOutput>;\n /** Deletes an agent. */\n deleteAgent: (\n assistantId: string,\n options?: DeleteAgentOptionalParams,\n ) => Promise<AgentDeletionStatusOutput>;\n\n /** Creates a new thread. Threads contain messages and can be run by agents. */\n createThread: (options?: CreateAgentThreadOptionalParams) => Promise<AgentThreadOutput>;\n /** Gets information about an existing thread. */\n getThread: (\n threadId: string,\n options?: GetAgentThreadOptionalParams,\n ) => Promise<AgentThreadOutput>;\n /** Modifies an existing thread. */\n updateThread: (\n threadId: string,\n options?: UpdateAgentThreadOptionalParams,\n ) => Promise<AgentThreadOutput>;\n /** Deletes an existing thread. */\n deleteThread: (\n threadId: string,\n options?: DeleteAgentThreadOptionalParams,\n ) => Promise<ThreadDeletionStatusOutput>;\n\n /** Creates and starts a new run of the specified thread using the specified agent. */\n createRun: (\n threadId: string,\n assistantId: string,\n options?: CreateRunOptionalParams,\n ) => AgentRunResponse;\n\n /** Gets a list of runs for a specified thread. */\n listRuns: (\n threadId: string,\n options?: ListRunQueryOptionalParams,\n ) => Promise<OpenAIPageableListOfThreadRunOutput>;\n /** Gets an existing run from an existing thread. */\n getRun: (\n threadId: string,\n runId: string,\n options?: GetRunOptionalParams,\n ) => Promise<ThreadRunOutput>;\n /** Modifies an existing thread run. */\n updateRun: (\n threadId: string,\n runId: string,\n options?: UpdateRunOptionalParams,\n ) => Promise<ThreadRunOutput>;\n /** Submits outputs from tools as requested by tool calls in a run. Runs that need submitted tool outputs will have a status of 'requires_action' with a required_action.type of 'submit_tool_outputs'. */\n submitToolOutputsToRun: (\n threadId: string,\n runId: string,\n toolOutputs: Array<ToolOutput>,\n options?: SubmitToolOutputsToRunOptionalParams,\n ) => AgentRunResponse;\n\n /** Cancels a run of an in progress thread. */\n cancelRun: (\n threadId: string,\n runId: string,\n options?: CancelRunOptionalParams,\n ) => Promise<ThreadRunOutput>;\n /** Creates a new thread and immediately starts a run of that thread. */\n createThreadAndRun: (\n assistantId: string,\n options?: CreateAndRunThreadOptionalParams,\n ) => AgentRunResponse;\n\n /** Creates a new message on a specified thread. */\n createMessage: (\n threadId: string,\n messageOptions: ThreadMessageOptions,\n options?: CreateMessageOptionalParams,\n ) => Promise<ThreadMessageOutput>;\n /** Gets a list of messages that exist on a thread. */\n listMessages: (\n threadId: string,\n options?: ListMessagesOptionalParams,\n ) => Promise<OpenAIPageableListOfThreadMessageOutput>;\n /** Modifies an existing message on an existing thread. */\n updateMessage: (\n threadId: string,\n messageId: string,\n options?: UpdateMessageOptionalParams,\n ) => Promise<ThreadMessageOutput>;\n\n /** Gets a list of previously uploaded files. */\n listFiles: (options?: ListFilesOptionalParams) => Promise<FileListResponseOutput>;\n /** Uploads a file for use by other operations. */\n uploadFile: (\n data: ReadableStream | NodeJS.ReadableStream,\n purpose: FilePurpose,\n options?: UploadFileOptionalParams,\n ) => PollerLike<OperationState<OpenAIFileOutput>, OpenAIFileOutput>;\n\n /** Uploads a file for use by other operations. */\n uploadFileAndPoll: (\n data: ReadableStream | NodeJS.ReadableStream,\n purpose: FilePurpose,\n options?: UploadFileOptionalParams,\n ) => PollerLike<OperationState<OpenAIFileOutput>, OpenAIFileOutput>;\n /** Delete a previously uploaded file. */\n deleteFile: (\n fileId: string,\n options?: DeleteFileOptionalParams,\n ) => Promise<FileDeletionStatusOutput>;\n /** Returns information about a specific file. Does not retrieve file content. */\n getFile: (fileId: string, options?: GetFileOptionalParams) => Promise<OpenAIFileOutput>;\n /** Returns the content of a specific file. */\n getFileContent: (\n fileId: string,\n options?: GetFileContentOptionalParams,\n ) => StreamableMethod<string | Uint8Array>;\n\n /** Returns a list of vector stores. */\n listVectorStores: (\n options?: DeleteVectorStoreOptionalParams,\n ) => Promise<OpenAIPageableListOfVectorStoreOutput>;\n /** Creates a vector store. */\n createVectorStore: (\n options?: CreateVectorStoreOptionalParams,\n ) => PollerLike<OperationState<VectorStoreOutput>, VectorStoreOutput>;\n /** Returns the vector store object object matching the specific ID. */\n getVectorStore: (\n vectorStoreId: string,\n options?: DeleteVectorStoreOptionalParams,\n ) => Promise<VectorStoreOutput>;\n /** The ID of the vector store to modify. */\n modifyVectorStore: (\n vectorStoreId: string,\n options?: UpdateVectorStoreOptionalParams,\n ) => Promise<VectorStoreOutput>;\n /** Deletes the vector store object matching the specified ID. */\n deleteVectorStore: (\n vectorStoreId: string,\n options?: DeleteVectorStoreOptionalParams,\n ) => Promise<VectorStoreDeletionStatusOutput>;\n\n /** Create vector store and poll. */\n createVectorStoreAndPoll: (\n options?: CreateVectorStoreOptionalParams,\n ) => PollerLike<OperationState<VectorStoreOutput>, VectorStoreOutput>;\n\n /** Create a vector store file by attching a file to a vector store. */\n createVectorStoreFile: (\n vectorStoreId: string,\n options?: CreateVectorStoreFileOptionalParams,\n ) => PollerLike<OperationState<VectorStoreFileOutput>, VectorStoreFileOutput>;\n /** Retrieves a vector store file. */\n getVectorStoreFile: (\n vectorStoreId: string,\n fileId: string,\n options?: GetVectorStoreFileOptionalParams,\n ) => Promise<VectorStoreFileOutput>;\n /** Returns a list of vector store files. */\n listVectorStoreFiles: (\n vectorStoreId: string,\n options?: ListVectorStoreFilesOptionalParams,\n ) => Promise<OpenAIPageableListOfVectorStoreFileOutput>;\n /**\n * Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted.\n * To delete the file, use the delete file endpoint.\n */\n deleteVectorStoreFile: (\n vectorStoreId: string,\n fileId: string,\n options?: DeleteVectorStoreFileOptionalParams,\n ) => Promise<VectorStoreFileDeletionStatusOutput>;\n /** Create a vector store file by attaching a file to a vector store and poll. */\n createVectorStoreFileAndPoll: (\n vectorStoreId: string,\n options?: CreateVectorStoreFileOptionalParams,\n ) => PollerLike<OperationState<VectorStoreFileOutput>, VectorStoreFileOutput>;\n\n /** Create a vector store file batch. */\n createVectorStoreFileBatch: (\n vectorStoreId: string,\n options?: CreateVectorStoreFileBatchOptionalParams,\n ) => PollerLike<OperationState<VectorStoreFileBatchOutput>, VectorStoreFileBatchOutput>;\n /** Retrieve a vector store file batch. */\n getVectorStoreFileBatch: (\n vectorStoreId: string,\n batchId: string,\n options?: GetVectorStoreFileBatchOptionalParams,\n ) => Promise<VectorStoreFileBatchOutput>;\n /** Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible. */\n cancelVectorStoreFileBatch: (\n vectorStoreId: string,\n batchId: string,\n options?: CancelVectorStoreFileBatchOptionalParams,\n ) => Promise<VectorStoreFileBatchOutput>;\n /** Returns a list of vector store files in a batch. */\n listVectorStoreFileBatchFiles: (\n vectorStoreId: string,\n batchId: string,\n options?: ListVectorStoreFileBatchFilesOptionalParams,\n ) => Promise<OpenAIPageableListOfVectorStoreFileOutput>;\n /** Create a vector store file batch and poll. */\n createVectorStoreFileBatchAndPoll: (\n vectorStoreId: string,\n options?: CreateVectorStoreFileBatchOptionalParams,\n ) => PollerLike<OperationState<VectorStoreFileBatchOutput>, VectorStoreFileBatchOutput>;\n\n /** Gets a single run step from a thread run. */\n getRunStep: (\n threadId: string,\n runId: string,\n stepId: string,\n options?: GetRunStepOptionalParams,\n ) => Promise<RunStepOutput>;\n /** Gets a list of run steps from a thread run. */\n listRunSteps: (\n threadId: string,\n runId: string,\n options?: ListRunQueryOptionalParams,\n ) => Promise<OpenAIPageableListOfRunStepOutput>;\n}\n\nfunction getAgents(context: Client): AgentsOperations {\n return {\n createAgent: (model: string, options?: CreateAgentOptionalParams) =>\n createAgent(context, model, options),\n listAgents: (options?: ListAgentsOptionalParams) => listAgents(context, options),\n getAgent: (assistantId: string, options?: GetAgentOptionalParams) =>\n getAgent(context, assistantId, options),\n updateAgent: (assistantId: string, options: UpdateAgentOptionalParams) =>\n updateAgent(context, assistantId, options),\n deleteAgent: (assistantId: string, options?: DeleteAgentOptionalParams) =>\n deleteAgent(context, assistantId, options),\n\n createThread: (options?: CreateAgentThreadOptionalParams) => createThread(context, options),\n getThread: (threadId: string, options?: GetAgentThreadOptionalParams) =>\n getThread(context, threadId, options),\n updateThread: (threadId: string, options?: UpdateAgentThreadOptionalParams) =>\n updateThread(context, threadId, options),\n deleteThread: (threadId: string, options?: DeleteAgentThreadOptionalParams) =>\n deleteThread(context, threadId, options),\n\n createRun: (threadId: string, assistantId: string, options?: CreateRunOptionalParams) =>\n createRun(context, threadId, assistantId, options ?? {}),\n listRuns: (threadId: string, options?: ListRunQueryOptionalParams) =>\n listRuns(context, threadId, options ?? {}),\n getRun: (threadId: string, runId: string, options?: GetRunOptionalParams) =>\n getRun(context, threadId, runId, options),\n updateRun: (threadId: string, runId: string, options?: UpdateRunOptionalParams) =>\n updateRun(context, threadId, runId, options),\n submitToolOutputsToRun: (\n threadId: string,\n runId: string,\n toolOutputs: Array<ToolOutput>,\n options?: SubmitToolOutputsToRunOptionalParams,\n ) => submitToolOutputsToRun(context, threadId, runId, toolOutputs, options),\n cancelRun: (threadId: string, runId: string, options?: CancelRunOptionalParams) =>\n cancelRun(context, threadId, runId, options),\n createThreadAndRun: (assistantId: string, options?: CreateAndRunThreadOptionalParams) =>\n createThreadAndRun(context, assistantId, options ?? {}),\n\n createMessage: (\n threadId: string,\n messageOptions: ThreadMessageOptions,\n options?: CreateMessageOptionalParams,\n ) => createMessage(context, threadId, messageOptions, options),\n listMessages: (threadId: string, options?: ListMessagesOptionalParams) =>\n listMessages(context, threadId, options),\n updateMessage: (threadId: string, messageId: string, options?: UpdateMessageOptionalParams) =>\n updateMessage(context, threadId, messageId, options),\n\n listFiles: (options?: ListFilesOptionalParams) => listFiles(context, options),\n uploadFile: (\n content: ReadableStream | NodeJS.ReadableStream,\n purpose: FilePurpose,\n options?: UploadFileOptionalParams,\n ) => uploadFile(context, content, purpose, options),\n uploadFileAndPoll: (\n content: ReadableStream | NodeJS.ReadableStream,\n purpose: FilePurpose,\n options?: UploadFileOptionalParams,\n ) => uploadFileAndPoll(context, content, purpose, options),\n deleteFile: (fileId: string, options?: DeleteFileOptionalParams) =>\n deleteFile(context, fileId, options),\n getFile: (fileId: string, options?: GetFileOptionalParams) => getFile(context, fileId, options),\n getFileContent: (fileId: string, options?: GetFileContentOptionalParams) =>\n getFileContent(context, fileId, options),\n\n listVectorStores: (options?: ListVectorStoresOptionalParams) =>\n listVectorStores(context, options),\n createVectorStore: (options?: CreateVectorStoreOptionalParams) =>\n createVectorStore(context, options),\n getVectorStore: (vectorStoreId: string, options?: GetVectorStoreOptionalParams) =>\n getVectorStore(context, vectorStoreId, options),\n modifyVectorStore: (vectorStoreId: string, options?: UpdateVectorStoreOptionalParams) =>\n modifyVectorStore(context, vectorStoreId, options),\n deleteVectorStore: (vectorStoreId: string, options?: DeleteVectorStoreOptionalParams) =>\n deleteVectorStore(context, vectorStoreId, options),\n createVectorStoreAndPoll: (options?: CreateVectorStoreOptionalParams) =>\n createVectorStoreAndPoll(context, options),\n\n createVectorStoreFile: (vectorStoreId: string, options?: CreateVectorStoreFileOptionalParams) =>\n createVectorStoreFile(context, vectorStoreId, options),\n getVectorStoreFile: (\n vectorStoreId: string,\n fileId: string,\n options?: GetVectorStoreFileOptionalParams,\n ) => getVectorStoreFile(context, vectorStoreId, fileId, options),\n listVectorStoreFiles: (vectorStoreId: string, options?: ListVectorStoreFilesOptionalParams) =>\n listVectorStoreFiles(context, vectorStoreId, options),\n deleteVectorStoreFile: (\n vectorStoreId: string,\n fileId: string,\n options?: DeleteVectorStoreFileOptionalParams,\n ) => deleteVectorStoreFile(context, vectorStoreId, fileId, options),\n createVectorStoreFileAndPoll: (\n vectorStoreId: string,\n options?: CreateVectorStoreFileOptionalParams,\n ) => createVectorStoreFileAndPoll(context, vectorStoreId, options),\n\n createVectorStoreFileBatch: (\n vectorStoreId: string,\n options?: CreateVectorStoreFileBatchOptionalParams,\n ) => createVectorStoreFileBatch(context, vectorStoreId, options),\n getVectorStoreFileBatch: (\n vectorStoreId: string,\n batchId: string,\n options?: GetVectorStoreFileBatchOptionalParams,\n ) => getVectorStoreFileBatch(context, vectorStoreId, batchId, options),\n cancelVectorStoreFileBatch: (\n vectorStoreId: string,\n batchId: string,\n options?: CancelVectorStoreFileBatchOptionalParams,\n ) => cancelVectorStoreFileBatch(context, vectorStoreId, batchId, options),\n listVectorStoreFileBatchFiles: (\n vectorStoreId: string,\n batchId: string,\n options?: ListVectorStoreFileBatchFilesOptionalParams,\n ) => listVectorStoreFileBatchFiles(context, vectorStoreId, batchId, options),\n createVectorStoreFileBatchAndPoll: (\n vectorStoreId: string,\n options?: CreateVectorStoreFileBatchOptionalParams,\n ) => createVectorStoreFileBatchAndPoll(context, vectorStoreId, options),\n\n getRunStep: (\n threadId: string,\n runId: string,\n stepId: string,\n options?: GetRunStepOptionalParams,\n ) => getRunStep(context, threadId, runId, stepId, options),\n listRunSteps: (threadId: string, runId: string, options?: ListRunStepsOptionalParams) =>\n listRunSteps(context, threadId, runId, options),\n };\n}\n\nexport function getAgentsOperations(context: Client): AgentsOperations {\n return {\n ...getAgents(context),\n };\n}\n"]}
@@ -3,8 +3,8 @@ export * from "./streamingModels.js";
3
3
  export * from "./vectorStoresModels.js";
4
4
  export * from "./utils.js";
5
5
  export * from "../customization/streamingModels.js";
6
- export type { OpenAIPageableListOfThreadRunOutput, ThreadRunOutput, AgentThreadOutput, RunStepOutput, OpenAIPageableListOfRunStepOutput, ThreadMessageOutput, ThreadDeletionStatusOutput, OpenAIPageableListOfThreadMessageOutput, OpenAIPageableListOfVectorStoreOutput, VectorStoreOutput, VectorStoreFileOutput, VectorStoreDeletionStatusOutput, VectorStoreFileDeletionStatusOutput, VectorStoreFileBatchOutput, OpenAIPageableListOfVectorStoreFileOutput, AgentDeletionStatusOutput, AgentOutput, OpenAIPageableListOfAgentOutput, FileDeletionStatusOutput, FileListResponseOutput, OpenAIFileOutput, RequiredActionOutput, RequiredToolCallOutput, ToolDefinitionOutputParent, AgentsApiResponseFormatOptionOutput, ToolDefinitionOutput, ToolResourcesOutput, AgentsApiResponseFormatModeOutput, AgentsApiResponseFormatOutput, ApiResponseFormatOutput, FilePurposeOutput, FileStateOutput, RequiredActionOutputParent, SubmitToolOutputsActionOutput, RequiredToolCallOutputParent, RequiredFunctionToolCallOutput, RunStepErrorOutput, RunStepStatusOutput, RunStepDetailsOutput, RunStepTypeOutput, RunStepCompletionUsageOutput, MessageAttachmentOutput, MessageContentOutput, MessageIncompleteDetailsOutput, MessageRoleOutput, MessageStatusOutput, IncompleteRunDetailsOutput, RunErrorOutput, RunStatusOutput, AgentsApiToolChoiceOptionOutput, UpdateToolResourcesOptionsOutput, TruncationObjectOutput, RunCompletionUsageOutput, CodeInterpreterToolDefinitionOutput, FileSearchToolDefinitionOutput, FunctionToolDefinitionOutput, BingGroundingToolDefinitionOutput, AzureAISearchToolDefinitionOutput, AzureAISearchResourceOutput, CodeInterpreterToolResourceOutput, FileSearchToolResourceOutput, VectorStoreFileCountOutput, VectorStoreFileBatchStatusOutput, VectorStoreChunkingStrategyResponseOutput, VectorStoreConfigurationOutput, AgentsNamedToolChoiceOutput, IndexResourceOutput, ToolConnectionListOutput, VectorStoreDataSourceOutput, FileSearchToolDefinitionDetailsOutput, VectorStoreConfigurationsOutput, FunctionDefinitionOutput, MessageAttachmentToolDefinitionOutput, MessageContentOutputParent, MessageTextContentOutput, MessageImageFileContentOutput, RequiredFunctionToolCallDetailsOutput, RunStepDetailsOutputParent, RunStepMessageCreationDetailsOutput, RunStepToolCallDetailsOutput, RunStepErrorCodeOutput, SubmitToolOutputsDetailsOutput, MicrosoftFabricToolDefinitionOutput, SharepointToolDefinitionOutput, UpdateCodeInterpreterToolResourceOptionsOutput, UpdateFileSearchToolResourceOptionsOutput, VectorStoreChunkingStrategyResponseOutputParent, VectorStoreAutoChunkingStrategyResponseOutput, VectorStoreStaticChunkingStrategyResponseOutput, VectorStoreFileErrorOutput, VectorStoreFileStatusOutput, VectorStoreExpirationPolicyOutput, VectorStoreStatusOutput, AgentsApiToolChoiceOptionModeOutput, FunctionNameOutput, AgentsNamedToolChoiceTypeOutput, MessageImageFileDetailsOutput, MessageIncompleteDetailsReasonOutput, MessageTextDetailsOutput, RunStepMessageCreationReferenceOutput, RunStepToolCallOutput, ToolConnectionOutput, TruncationStrategyOutput, VectorStoreChunkingStrategyResponseTypeOutput, VectorStoreDataSourceAssetTypeOutput, VectorStoreExpirationPolicyAnchorOutput, VectorStoreFileErrorCodeOutput, VectorStoreStaticChunkingStrategyOptionsOutput, FileSearchRankingOptionsOutput, MessageTextAnnotationOutput, RunStepToolCallOutputParent, RunStepCodeInterpreterToolCallOutput, RunStepFileSearchToolCallOutput, RunStepBingGroundingToolCallOutput, RunStepAzureAISearchToolCallOutput, RunStepSharepointToolCallOutput, RunStepMicrosoftFabricToolCallOutput, RunStepFunctionToolCallOutput, MessageTextAnnotationOutputParent, MessageTextFileCitationAnnotationOutput, MessageTextFilePathAnnotationOutput, RunStepCodeInterpreterToolCallOutputOutputParent, RunStepCodeInterpreterToolCallDetailsOutput, RunStepFunctionToolCallDetailsOutput, MessageTextFileCitationDetailsOutput, MessageTextFilePathDetailsOutput, RunStepCodeInterpreterToolCallOutputOutput, RunStepCodeInterpreterLogOutputOutput, RunStepCodeInterpreterImageOutputOutput, RunStepCodeInterpreterImageReferenceOutput, } from "../customization/outputModels.js";
6
+ export type { OpenAIPageableListOfThreadRunOutput, ThreadRunOutput, AgentThreadOutput, RunStepOutput, OpenAIPageableListOfRunStepOutput, ThreadMessageOutput, ThreadDeletionStatusOutput, OpenAIPageableListOfThreadMessageOutput, OpenAIPageableListOfVectorStoreOutput, VectorStoreOutput, VectorStoreFileOutput, VectorStoreDeletionStatusOutput, VectorStoreFileDeletionStatusOutput, VectorStoreFileBatchOutput, OpenAIPageableListOfVectorStoreFileOutput, AgentDeletionStatusOutput, AgentOutput, OpenAIPageableListOfAgentOutput, FileDeletionStatusOutput, FileListResponseOutput, OpenAIFileOutput, RequiredActionOutput, RequiredToolCallOutput, ToolDefinitionOutputParent, AgentsApiResponseFormatOptionOutput, ToolDefinitionOutput, ToolResourcesOutput, AgentsApiResponseFormatModeOutput, AgentsApiResponseFormatOutput, FilePurposeOutput, FileStateOutput, RequiredActionOutputParent, SubmitToolOutputsActionOutput, RequiredToolCallOutputParent, RequiredFunctionToolCallOutput, RunStepErrorOutput, RunStepStatusOutput, RunStepDetailsOutput, RunStepTypeOutput, RunStepCompletionUsageOutput, MessageAttachmentOutput, MessageContentOutput, MessageIncompleteDetailsOutput, MessageRoleOutput, MessageStatusOutput, IncompleteRunDetailsOutput, RunErrorOutput, RunStatusOutput, AgentsApiToolChoiceOptionOutput, UpdateToolResourcesOptionsOutput, TruncationObjectOutput, RunCompletionUsageOutput, CodeInterpreterToolDefinitionOutput, FileSearchToolDefinitionOutput, FunctionToolDefinitionOutput, BingGroundingToolDefinitionOutput, AzureAISearchToolDefinitionOutput, AzureAISearchResourceOutput, CodeInterpreterToolResourceOutput, FileSearchToolResourceOutput, VectorStoreFileCountOutput, VectorStoreFileBatchStatusOutput, VectorStoreChunkingStrategyResponseOutput, VectorStoreConfigurationOutput, AgentsNamedToolChoiceOutput, IndexResourceOutput, ToolConnectionListOutput, VectorStoreDataSourceOutput, FileSearchToolDefinitionDetailsOutput, VectorStoreConfigurationsOutput, FunctionDefinitionOutput, MessageAttachmentToolDefinitionOutput, MessageContentOutputParent, MessageTextContentOutput, MessageImageFileContentOutput, RequiredFunctionToolCallDetailsOutput, RunStepDetailsOutputParent, RunStepMessageCreationDetailsOutput, RunStepToolCallDetailsOutput, RunStepErrorCodeOutput, SubmitToolOutputsDetailsOutput, MicrosoftFabricToolDefinitionOutput, SharepointToolDefinitionOutput, UpdateCodeInterpreterToolResourceOptionsOutput, UpdateFileSearchToolResourceOptionsOutput, VectorStoreChunkingStrategyResponseOutputParent, VectorStoreAutoChunkingStrategyResponseOutput, VectorStoreStaticChunkingStrategyResponseOutput, VectorStoreFileErrorOutput, VectorStoreFileStatusOutput, VectorStoreExpirationPolicyOutput, VectorStoreStatusOutput, AgentsApiToolChoiceOptionModeOutput, FunctionNameOutput, AgentsNamedToolChoiceTypeOutput, MessageImageFileDetailsOutput, MessageIncompleteDetailsReasonOutput, MessageTextDetailsOutput, RunStepMessageCreationReferenceOutput, RunStepToolCallOutput, ToolConnectionOutput, TruncationStrategyOutput, VectorStoreChunkingStrategyResponseTypeOutput, VectorStoreDataSourceAssetTypeOutput, VectorStoreExpirationPolicyAnchorOutput, VectorStoreFileErrorCodeOutput, VectorStoreStaticChunkingStrategyOptionsOutput, FileSearchRankingOptionsOutput, MessageTextAnnotationOutput, RunStepToolCallOutputParent, RunStepCodeInterpreterToolCallOutput, RunStepFileSearchToolCallOutput, RunStepBingGroundingToolCallOutput, RunStepAzureAISearchToolCallOutput, RunStepSharepointToolCallOutput, RunStepMicrosoftFabricToolCallOutput, RunStepFunctionToolCallOutput, MessageTextAnnotationOutputParent, MessageTextFileCitationAnnotationOutput, MessageTextFilePathAnnotationOutput, RunStepCodeInterpreterToolCallOutputOutputParent, RunStepCodeInterpreterToolCallDetailsOutput, RunStepFunctionToolCallDetailsOutput, MessageTextFileCitationDetailsOutput, MessageTextFilePathDetailsOutput, RunStepCodeInterpreterToolCallOutputOutput, RunStepCodeInterpreterLogOutputOutput, RunStepCodeInterpreterImageOutputOutput, RunStepCodeInterpreterImageReferenceOutput, ResponseFormatOutput, ResponseFormatJsonSchemaTypeOutput, IncompleteDetailsReasonOutput, RunStepFileSearchToolCallResultsOutput, ResponseFormatJsonSchemaOutput, RunStepFileSearchToolCallResultOutput, FileSearchToolCallContentOutput, AzureFunctionToolDefinitionOutput, AzureFunctionDefinitionOutput, AzureFunctionBindingOutput, OpenApiToolDefinitionOutput, OpenApiFunctionDefinitionOutput, OpenApiAuthDetailsOutput, OpenApiAuthTypeOutput, OpenApiAuthDetailsOutputParent, OpenApiAnonymousAuthDetailsOutput, OpenApiConnectionAuthDetailsOutput, OpenApiManagedAuthDetailsOutput, AzureFunctionStorageQueueOutput, OpenApiConnectionSecuritySchemeOutput, OpenApiManagedSecuritySchemeOutput, } from "../customization/outputModels.js";
7
7
  export { ListMessagesQueryParamProperties, ListFilesQueryParamProperties, } from "../customization/parameters.js";
8
- export type { AgentRunResponse, CreateRunOptionalParams, GetRunOptionalParams, CancelRunOptionalParams, SubmitToolOutputsToRunOptionalParams, UpdateRunOptionalParams, ListRunQueryOptionalParams, CreateAndRunThreadOptionalParams, CreateAgentThreadOptionalParams, GetAgentThreadOptionalParams, UpdateAgentThreadOptionalParams, DeleteAgentThreadOptionalParams, GetRunStepOptionalParams, ListRunStepsOptionalParams, CreateMessageOptionalParams, ListMessagesOptionalParams, UpdateMessageOptionalParams, GetVectorStoreOptionalParams, ListVectorStoresOptionalParams, UpdateVectorStoreOptionalParams, DeleteVectorStoreOptionalParams, CreateVectorStoreOptionalParams, CreateVectorStoreWithPollingOptionalParams, CreateVectorStoreFileOptionalParams, ListVectorStoreFilesOptionalParams, GetVectorStoreFileOptionalParams, DeleteVectorStoreFileOptionalParams, CreateVectorStoreFileWithPollingOptionalParams, CreateVectorStoreFileBatchOptionalParams, GetVectorStoreFileBatchOptionalParams, ListVectorStoreFileBatchFilesOptionalParams, CreateVectorStoreFileBatchWithPollingOptionalParams, CreateAgentOptionalParams, ListAgentsOptionalParams, GetAgentOptionalParams, UpdateAgentOptionalParams, DeleteFileOptionalParams, GetFileOptionalParams, GetFileContentOptionalParams, ListFilesOptionalParams, UploadFileOptionalParams, UploadFileWithPollingOptionalParams, ListQueryParameters, PollingOptions, PollingOptionsParams, CancelVectorStoreFileBatchOptionalParams, DeleteAgentOptionalParams, } from "./customModels.js";
9
- export { AzureAISearchToolDefinition, CodeInterpreterToolDefinition, FileSearchToolDefinition, FileSearchToolDefinitionDetails, FunctionDefinition, FunctionToolDefinition, ToolResources, VectorStoreConfigurations, VectorStoreDataSource, ToolDefinition, ThreadMessageOptions, ToolOutput, FilePurpose, ToolDefinitionParent, AgentThreadCreationOptions, CreateAgentOptions, CreateAndRunThreadOptions, CreateRunOptions, UpdateAgentOptions, UpdateAgentThreadOptions, VectorStoreFileStatusFilter, VectorStoreOptions, VectorStoreUpdateOptions, AgentsApiResponseFormatMode, AgentsApiToolChoiceOption, TruncationObject, UpdateToolResourcesOptions, ThreadMessage, VectorStoreChunkingStrategyRequest, FileSearchRankingOptions, AgentsApiToolChoiceOptionMode, AgentsNamedToolChoice, AgentsApiResponseFormatOption, ConnectionType, ListSortOrder, MessageAttachment, MessageContent, MessageIncompleteDetails, MessageStatus, BingGroundingToolDefinition, MicrosoftFabricToolDefinition, SharepointToolDefinition, AzureAISearchResource, CodeInterpreterToolResource, FileSearchToolResource, TruncationStrategy, UpdateCodeInterpreterToolResourceOptions, UpdateFileSearchToolResourceOptions, VectorStoreChunkingStrategyRequestParent, VectorStoreAutoChunkingStrategyRequest, VectorStoreStaticChunkingStrategyRequest, VectorStoreConfiguration, VectorStoreDataSourceAssetType, AgentsApiResponseFormat, ApiResponseFormat, FunctionName, AgentsNamedToolChoiceType, IndexResource, ToolConnectionList, MessageAttachmentToolDefinition, MessageContentParent, MessageTextContent, MessageImageFileContent, MessageRole, VectorStoreChunkingStrategyRequestType, VectorStoreExpirationPolicy, VectorStoreStaticChunkingStrategyOptions, MessageImageFileDetails, MessageIncompleteDetailsReason, MessageTextDetails, ToolConnection, VectorStoreExpirationPolicyAnchor, MessageTextAnnotation, MessageTextAnnotationParent, MessageTextFileCitationAnnotation, MessageTextFilePathAnnotation, MessageTextFileCitationDetails, MessageTextFilePathDetails, } from "../customization/models.js";
8
+ export type { AgentRunResponse, CreateRunOptionalParams, GetRunOptionalParams, CancelRunOptionalParams, SubmitToolOutputsToRunOptionalParams, UpdateRunOptionalParams, ListRunQueryOptionalParams, CreateAndRunThreadOptionalParams, CreateAgentThreadOptionalParams, GetAgentThreadOptionalParams, UpdateAgentThreadOptionalParams, DeleteAgentThreadOptionalParams, GetRunStepOptionalParams, ListRunStepsOptionalParams, CreateMessageOptionalParams, ListMessagesOptionalParams, UpdateMessageOptionalParams, GetVectorStoreOptionalParams, ListVectorStoresOptionalParams, UpdateVectorStoreOptionalParams, DeleteVectorStoreOptionalParams, CreateVectorStoreOptionalParams, CreateVectorStoreFileOptionalParams, ListVectorStoreFilesOptionalParams, GetVectorStoreFileOptionalParams, DeleteVectorStoreFileOptionalParams, CreateVectorStoreFileBatchOptionalParams, GetVectorStoreFileBatchOptionalParams, ListVectorStoreFileBatchFilesOptionalParams, CreateAgentOptionalParams, ListAgentsOptionalParams, GetAgentOptionalParams, UpdateAgentOptionalParams, DeleteFileOptionalParams, GetFileOptionalParams, GetFileContentOptionalParams, ListFilesOptionalParams, UploadFileOptionalParams, ListQueryParameters, PollingOptions, PollingOptionsParams, CancelVectorStoreFileBatchOptionalParams, DeleteAgentOptionalParams, } from "./customModels.js";
9
+ export { AzureAISearchToolDefinition, CodeInterpreterToolDefinition, FileSearchToolDefinition, FileSearchToolDefinitionDetails, FunctionDefinition, FunctionToolDefinition, ToolResources, VectorStoreConfigurations, VectorStoreDataSource, ToolDefinition, ThreadMessageOptions, ToolOutput, FilePurpose, ToolDefinitionParent, AgentThreadCreationOptions, CreateAgentOptions, CreateAndRunThreadOptions, CreateRunOptions, UpdateAgentOptions, UpdateAgentThreadOptions, VectorStoreFileStatusFilter, VectorStoreOptions, VectorStoreUpdateOptions, AgentsApiResponseFormatMode, AgentsApiToolChoiceOption, TruncationObject, UpdateToolResourcesOptions, VectorStoreChunkingStrategyRequest, FileSearchRankingOptions, AgentsApiToolChoiceOptionMode, AgentsNamedToolChoice, AgentsApiResponseFormatOption, ConnectionType, ListSortOrder, MessageAttachment, BingGroundingToolDefinition, MicrosoftFabricToolDefinition, SharepointToolDefinition, AzureAISearchResource, CodeInterpreterToolResource, FileSearchToolResource, TruncationStrategy, UpdateCodeInterpreterToolResourceOptions, UpdateFileSearchToolResourceOptions, VectorStoreChunkingStrategyRequestParent, VectorStoreAutoChunkingStrategyRequest, VectorStoreStaticChunkingStrategyRequest, VectorStoreConfiguration, VectorStoreDataSourceAssetType, AgentsApiResponseFormat, FunctionName, AgentsNamedToolChoiceType, IndexResource, ToolConnectionList, MessageAttachmentToolDefinition, MessageRole, VectorStoreChunkingStrategyRequestType, VectorStoreExpirationPolicy, VectorStoreStaticChunkingStrategyOptions, ToolConnection, VectorStoreExpirationPolicyAnchor, ResponseFormat, ResponseFormatJsonSchemaType, OpenApiToolDefinition, AzureFunctionToolDefinition, OpenApiFunctionDefinition, ResponseFormatJsonSchema, AzureFunctionDefinition, AzureFunctionBinding, OpenApiAuthDetails, AzureFunctionStorageQueue, OpenApiAuthType, OpenApiAuthDetailsParent, OpenApiAnonymousAuthDetails, OpenApiConnectionAuthDetails, OpenApiManagedAuthDetails, OpenApiConnectionSecurityScheme, OpenApiManagedSecurityScheme, } from "../customization/models.js";
10
10
  //# sourceMappingURL=inputOutputs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"inputOutputs.d.ts","sourceRoot":"","sources":["../../../src/agents/inputOutputs.ts"],"names":[],"mappings":"AAGA,cAAc,qCAAqC,CAAC;AACpD,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,YAAY,CAAC;AAC3B,cAAc,qCAAqC,CAAC;AACpD,YAAY,EACV,mCAAmC,EACnC,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,iCAAiC,EACjC,mBAAmB,EACnB,0BAA0B,EAC1B,uCAAuC,EACvC,qCAAqC,EACrC,iBAAiB,EACjB,qBAAqB,EACrB,+BAA+B,EAC/B,mCAAmC,EACnC,0BAA0B,EAC1B,yCAAyC,EACzC,yBAAyB,EAC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AC3B,6BAA6B,EAC7B,wBAAwB,EACxB,qBAAqB,EACrB,2BAA2B,EAC3B,sBAAsB,EACtB,kBAAkB,EAClB,wCAAwC,EACxC,mCAAmC,EACnC,wCAAwC,EACxC,sCAAsC,EACtC,wCAAwC,EACxC,wBAAwB,EACxB,8BAA8B,EAC9B,uBAAuB,EACvB,YAAY,EACZ,yBAAyB,EACzB,aAAa,EACb,kBAAkB,EAClB,+BAA+B,EAC/B,WAAW,EACX,sCAAsC,EACtC,2BAA2B,EAC3B,wCAAwC,EACxC,cAAc,EACd,iCAAiC,EACjC,cAAc,EACd,4BAA4B,EAC5B,qBAAqB,EACrB,2BAA2B,EAC3B,yBAAyB,EACzB,wBAAwB,EACxB,uBAAuB,EACvB,oBAAoB,EACpB,kBAAkB,EAClB,yBAAyB,EACzB,eAAe,EACf,wBAAwB,EACxB,2BAA2B,EAC3B,4BAA4B,EAC5B,yBAAyB,EACzB,+BAA+B,EAC/B,4BAA4B,GAC7B,MAAM,4BAA4B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"inputOutputs.js","sourceRoot":"","sources":["../../../src/agents/inputOutputs.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,8EAAoD;AACpD,+DAAqC;AACrC,kEAAwC;AACxC,qDAA2B;AAC3B,8EAAoD","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"../customization/streamingModels.js\";\nexport * from \"./streamingModels.js\";\nexport * from \"./vectorStoresModels.js\";\nexport * from \"./utils.js\";\nexport * from \"../customization/streamingModels.js\";\nexport type {\n OpenAIPageableListOfThreadRunOutput,\n ThreadRunOutput,\n AgentThreadOutput,\n RunStepOutput,\n OpenAIPageableListOfRunStepOutput,\n ThreadMessageOutput,\n ThreadDeletionStatusOutput,\n OpenAIPageableListOfThreadMessageOutput,\n OpenAIPageableListOfVectorStoreOutput,\n VectorStoreOutput,\n VectorStoreFileOutput,\n VectorStoreDeletionStatusOutput,\n VectorStoreFileDeletionStatusOutput,\n VectorStoreFileBatchOutput,\n OpenAIPageableListOfVectorStoreFileOutput,\n AgentDeletionStatusOutput,\n AgentOutput,\n OpenAIPageableListOfAgentOutput,\n FileDeletionStatusOutput,\n FileListResponseOutput,\n OpenAIFileOutput,\n RequiredActionOutput,\n RequiredToolCallOutput,\n ToolDefinitionOutputParent,\n AgentsApiResponseFormatOptionOutput,\n ToolDefinitionOutput,\n ToolResourcesOutput,\n AgentsApiResponseFormatModeOutput,\n AgentsApiResponseFormatOutput,\n ApiResponseFormatOutput,\n FilePurposeOutput,\n FileStateOutput,\n RequiredActionOutputParent,\n SubmitToolOutputsActionOutput,\n RequiredToolCallOutputParent,\n RequiredFunctionToolCallOutput,\n RunStepErrorOutput,\n RunStepStatusOutput,\n RunStepDetailsOutput,\n RunStepTypeOutput,\n RunStepCompletionUsageOutput,\n MessageAttachmentOutput,\n MessageContentOutput,\n MessageIncompleteDetailsOutput,\n MessageRoleOutput,\n MessageStatusOutput,\n IncompleteRunDetailsOutput,\n RunErrorOutput,\n RunStatusOutput,\n AgentsApiToolChoiceOptionOutput,\n UpdateToolResourcesOptionsOutput,\n TruncationObjectOutput,\n RunCompletionUsageOutput,\n CodeInterpreterToolDefinitionOutput,\n FileSearchToolDefinitionOutput,\n FunctionToolDefinitionOutput,\n BingGroundingToolDefinitionOutput,\n AzureAISearchToolDefinitionOutput,\n AzureAISearchResourceOutput,\n CodeInterpreterToolResourceOutput,\n FileSearchToolResourceOutput,\n VectorStoreFileCountOutput,\n VectorStoreFileBatchStatusOutput,\n VectorStoreChunkingStrategyResponseOutput,\n VectorStoreConfigurationOutput,\n AgentsNamedToolChoiceOutput,\n IndexResourceOutput,\n ToolConnectionListOutput,\n VectorStoreDataSourceOutput,\n FileSearchToolDefinitionDetailsOutput,\n VectorStoreConfigurationsOutput,\n FunctionDefinitionOutput,\n MessageAttachmentToolDefinitionOutput,\n MessageContentOutputParent,\n MessageTextContentOutput,\n MessageImageFileContentOutput,\n RequiredFunctionToolCallDetailsOutput,\n RunStepDetailsOutputParent,\n RunStepMessageCreationDetailsOutput,\n RunStepToolCallDetailsOutput,\n RunStepErrorCodeOutput,\n SubmitToolOutputsDetailsOutput,\n MicrosoftFabricToolDefinitionOutput,\n SharepointToolDefinitionOutput,\n UpdateCodeInterpreterToolResourceOptionsOutput,\n UpdateFileSearchToolResourceOptionsOutput,\n VectorStoreChunkingStrategyResponseOutputParent,\n VectorStoreAutoChunkingStrategyResponseOutput,\n VectorStoreStaticChunkingStrategyResponseOutput,\n VectorStoreFileErrorOutput,\n VectorStoreFileStatusOutput,\n VectorStoreExpirationPolicyOutput,\n VectorStoreStatusOutput,\n AgentsApiToolChoiceOptionModeOutput,\n FunctionNameOutput,\n AgentsNamedToolChoiceTypeOutput,\n MessageImageFileDetailsOutput,\n MessageIncompleteDetailsReasonOutput,\n MessageTextDetailsOutput,\n RunStepMessageCreationReferenceOutput,\n RunStepToolCallOutput,\n ToolConnectionOutput,\n TruncationStrategyOutput,\n VectorStoreChunkingStrategyResponseTypeOutput,\n VectorStoreDataSourceAssetTypeOutput,\n VectorStoreExpirationPolicyAnchorOutput,\n VectorStoreFileErrorCodeOutput,\n VectorStoreStaticChunkingStrategyOptionsOutput,\n FileSearchRankingOptionsOutput,\n MessageTextAnnotationOutput,\n RunStepToolCallOutputParent,\n RunStepCodeInterpreterToolCallOutput,\n RunStepFileSearchToolCallOutput,\n RunStepBingGroundingToolCallOutput,\n RunStepAzureAISearchToolCallOutput,\n RunStepSharepointToolCallOutput,\n RunStepMicrosoftFabricToolCallOutput,\n RunStepFunctionToolCallOutput,\n MessageTextAnnotationOutputParent,\n MessageTextFileCitationAnnotationOutput,\n MessageTextFilePathAnnotationOutput,\n RunStepCodeInterpreterToolCallOutputOutputParent,\n RunStepCodeInterpreterToolCallDetailsOutput,\n RunStepFunctionToolCallDetailsOutput,\n MessageTextFileCitationDetailsOutput,\n MessageTextFilePathDetailsOutput,\n RunStepCodeInterpreterToolCallOutputOutput,\n RunStepCodeInterpreterLogOutputOutput,\n RunStepCodeInterpreterImageOutputOutput,\n RunStepCodeInterpreterImageReferenceOutput,\n} from \"../customization/outputModels.js\";\nexport {\n ListMessagesQueryParamProperties,\n ListFilesQueryParamProperties,\n} from \"../customization/parameters.js\";\nexport type {\n AgentRunResponse,\n CreateRunOptionalParams,\n GetRunOptionalParams,\n CancelRunOptionalParams,\n SubmitToolOutputsToRunOptionalParams,\n UpdateRunOptionalParams,\n ListRunQueryOptionalParams,\n CreateAndRunThreadOptionalParams,\n CreateAgentThreadOptionalParams,\n GetAgentThreadOptionalParams,\n UpdateAgentThreadOptionalParams,\n DeleteAgentThreadOptionalParams,\n GetRunStepOptionalParams,\n ListRunStepsOptionalParams,\n CreateMessageOptionalParams,\n ListMessagesOptionalParams,\n UpdateMessageOptionalParams,\n GetVectorStoreOptionalParams,\n ListVectorStoresOptionalParams,\n UpdateVectorStoreOptionalParams,\n DeleteVectorStoreOptionalParams,\n CreateVectorStoreOptionalParams,\n CreateVectorStoreWithPollingOptionalParams,\n CreateVectorStoreFileOptionalParams,\n ListVectorStoreFilesOptionalParams,\n GetVectorStoreFileOptionalParams,\n DeleteVectorStoreFileOptionalParams,\n CreateVectorStoreFileWithPollingOptionalParams,\n CreateVectorStoreFileBatchOptionalParams,\n GetVectorStoreFileBatchOptionalParams,\n ListVectorStoreFileBatchFilesOptionalParams,\n CreateVectorStoreFileBatchWithPollingOptionalParams,\n CreateAgentOptionalParams,\n ListAgentsOptionalParams,\n GetAgentOptionalParams,\n UpdateAgentOptionalParams,\n DeleteFileOptionalParams,\n GetFileOptionalParams,\n GetFileContentOptionalParams,\n ListFilesOptionalParams,\n UploadFileOptionalParams,\n UploadFileWithPollingOptionalParams,\n ListQueryParameters,\n PollingOptions,\n PollingOptionsParams,\n CancelVectorStoreFileBatchOptionalParams,\n DeleteAgentOptionalParams,\n} from \"./customModels.js\";\n\nexport {\n AzureAISearchToolDefinition,\n CodeInterpreterToolDefinition,\n FileSearchToolDefinition,\n FileSearchToolDefinitionDetails,\n FunctionDefinition,\n FunctionToolDefinition,\n ToolResources,\n VectorStoreConfigurations,\n VectorStoreDataSource,\n ToolDefinition,\n ThreadMessageOptions,\n ToolOutput,\n FilePurpose,\n ToolDefinitionParent,\n AgentThreadCreationOptions,\n CreateAgentOptions,\n CreateAndRunThreadOptions,\n CreateRunOptions,\n UpdateAgentOptions,\n UpdateAgentThreadOptions,\n VectorStoreFileStatusFilter,\n VectorStoreOptions,\n VectorStoreUpdateOptions,\n AgentsApiResponseFormatMode,\n AgentsApiToolChoiceOption,\n TruncationObject,\n UpdateToolResourcesOptions,\n ThreadMessage,\n VectorStoreChunkingStrategyRequest,\n FileSearchRankingOptions,\n AgentsApiToolChoiceOptionMode,\n AgentsNamedToolChoice,\n AgentsApiResponseFormatOption,\n ConnectionType,\n ListSortOrder,\n MessageAttachment,\n MessageContent,\n MessageIncompleteDetails,\n MessageStatus,\n BingGroundingToolDefinition,\n MicrosoftFabricToolDefinition,\n SharepointToolDefinition,\n AzureAISearchResource,\n CodeInterpreterToolResource,\n FileSearchToolResource,\n TruncationStrategy,\n UpdateCodeInterpreterToolResourceOptions,\n UpdateFileSearchToolResourceOptions,\n VectorStoreChunkingStrategyRequestParent,\n VectorStoreAutoChunkingStrategyRequest,\n VectorStoreStaticChunkingStrategyRequest,\n VectorStoreConfiguration,\n VectorStoreDataSourceAssetType,\n AgentsApiResponseFormat,\n ApiResponseFormat,\n FunctionName,\n AgentsNamedToolChoiceType,\n IndexResource,\n ToolConnectionList,\n MessageAttachmentToolDefinition,\n MessageContentParent,\n MessageTextContent,\n MessageImageFileContent,\n MessageRole,\n VectorStoreChunkingStrategyRequestType,\n VectorStoreExpirationPolicy,\n VectorStoreStaticChunkingStrategyOptions,\n MessageImageFileDetails,\n MessageIncompleteDetailsReason,\n MessageTextDetails,\n ToolConnection,\n VectorStoreExpirationPolicyAnchor,\n MessageTextAnnotation,\n MessageTextAnnotationParent,\n MessageTextFileCitationAnnotation,\n MessageTextFilePathAnnotation,\n MessageTextFileCitationDetails,\n MessageTextFilePathDetails,\n} from \"../customization/models.js\";\n"]}
1
+ {"version":3,"file":"inputOutputs.js","sourceRoot":"","sources":["../../../src/agents/inputOutputs.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,8EAAoD;AACpD,+DAAqC;AACrC,kEAAwC;AACxC,qDAA2B;AAC3B,8EAAoD","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"../customization/streamingModels.js\";\nexport * from \"./streamingModels.js\";\nexport * from \"./vectorStoresModels.js\";\nexport * from \"./utils.js\";\nexport * from \"../customization/streamingModels.js\";\nexport type {\n OpenAIPageableListOfThreadRunOutput,\n ThreadRunOutput,\n AgentThreadOutput,\n RunStepOutput,\n OpenAIPageableListOfRunStepOutput,\n ThreadMessageOutput,\n ThreadDeletionStatusOutput,\n OpenAIPageableListOfThreadMessageOutput,\n OpenAIPageableListOfVectorStoreOutput,\n VectorStoreOutput,\n VectorStoreFileOutput,\n VectorStoreDeletionStatusOutput,\n VectorStoreFileDeletionStatusOutput,\n VectorStoreFileBatchOutput,\n OpenAIPageableListOfVectorStoreFileOutput,\n AgentDeletionStatusOutput,\n AgentOutput,\n OpenAIPageableListOfAgentOutput,\n FileDeletionStatusOutput,\n FileListResponseOutput,\n OpenAIFileOutput,\n RequiredActionOutput,\n RequiredToolCallOutput,\n ToolDefinitionOutputParent,\n AgentsApiResponseFormatOptionOutput,\n ToolDefinitionOutput,\n ToolResourcesOutput,\n AgentsApiResponseFormatModeOutput,\n AgentsApiResponseFormatOutput,\n FilePurposeOutput,\n FileStateOutput,\n RequiredActionOutputParent,\n SubmitToolOutputsActionOutput,\n RequiredToolCallOutputParent,\n RequiredFunctionToolCallOutput,\n RunStepErrorOutput,\n RunStepStatusOutput,\n RunStepDetailsOutput,\n RunStepTypeOutput,\n RunStepCompletionUsageOutput,\n MessageAttachmentOutput,\n MessageContentOutput,\n MessageIncompleteDetailsOutput,\n MessageRoleOutput,\n MessageStatusOutput,\n IncompleteRunDetailsOutput,\n RunErrorOutput,\n RunStatusOutput,\n AgentsApiToolChoiceOptionOutput,\n UpdateToolResourcesOptionsOutput,\n TruncationObjectOutput,\n RunCompletionUsageOutput,\n CodeInterpreterToolDefinitionOutput,\n FileSearchToolDefinitionOutput,\n FunctionToolDefinitionOutput,\n BingGroundingToolDefinitionOutput,\n AzureAISearchToolDefinitionOutput,\n AzureAISearchResourceOutput,\n CodeInterpreterToolResourceOutput,\n FileSearchToolResourceOutput,\n VectorStoreFileCountOutput,\n VectorStoreFileBatchStatusOutput,\n VectorStoreChunkingStrategyResponseOutput,\n VectorStoreConfigurationOutput,\n AgentsNamedToolChoiceOutput,\n IndexResourceOutput,\n ToolConnectionListOutput,\n VectorStoreDataSourceOutput,\n FileSearchToolDefinitionDetailsOutput,\n VectorStoreConfigurationsOutput,\n FunctionDefinitionOutput,\n MessageAttachmentToolDefinitionOutput,\n MessageContentOutputParent,\n MessageTextContentOutput,\n MessageImageFileContentOutput,\n RequiredFunctionToolCallDetailsOutput,\n RunStepDetailsOutputParent,\n RunStepMessageCreationDetailsOutput,\n RunStepToolCallDetailsOutput,\n RunStepErrorCodeOutput,\n SubmitToolOutputsDetailsOutput,\n MicrosoftFabricToolDefinitionOutput,\n SharepointToolDefinitionOutput,\n UpdateCodeInterpreterToolResourceOptionsOutput,\n UpdateFileSearchToolResourceOptionsOutput,\n VectorStoreChunkingStrategyResponseOutputParent,\n VectorStoreAutoChunkingStrategyResponseOutput,\n VectorStoreStaticChunkingStrategyResponseOutput,\n VectorStoreFileErrorOutput,\n VectorStoreFileStatusOutput,\n VectorStoreExpirationPolicyOutput,\n VectorStoreStatusOutput,\n AgentsApiToolChoiceOptionModeOutput,\n FunctionNameOutput,\n AgentsNamedToolChoiceTypeOutput,\n MessageImageFileDetailsOutput,\n MessageIncompleteDetailsReasonOutput,\n MessageTextDetailsOutput,\n RunStepMessageCreationReferenceOutput,\n RunStepToolCallOutput,\n ToolConnectionOutput,\n TruncationStrategyOutput,\n VectorStoreChunkingStrategyResponseTypeOutput,\n VectorStoreDataSourceAssetTypeOutput,\n VectorStoreExpirationPolicyAnchorOutput,\n VectorStoreFileErrorCodeOutput,\n VectorStoreStaticChunkingStrategyOptionsOutput,\n FileSearchRankingOptionsOutput,\n MessageTextAnnotationOutput,\n RunStepToolCallOutputParent,\n RunStepCodeInterpreterToolCallOutput,\n RunStepFileSearchToolCallOutput,\n RunStepBingGroundingToolCallOutput,\n RunStepAzureAISearchToolCallOutput,\n RunStepSharepointToolCallOutput,\n RunStepMicrosoftFabricToolCallOutput,\n RunStepFunctionToolCallOutput,\n MessageTextAnnotationOutputParent,\n MessageTextFileCitationAnnotationOutput,\n MessageTextFilePathAnnotationOutput,\n RunStepCodeInterpreterToolCallOutputOutputParent,\n RunStepCodeInterpreterToolCallDetailsOutput,\n RunStepFunctionToolCallDetailsOutput,\n MessageTextFileCitationDetailsOutput,\n MessageTextFilePathDetailsOutput,\n RunStepCodeInterpreterToolCallOutputOutput,\n RunStepCodeInterpreterLogOutputOutput,\n RunStepCodeInterpreterImageOutputOutput,\n RunStepCodeInterpreterImageReferenceOutput,\n ResponseFormatOutput,\n ResponseFormatJsonSchemaTypeOutput,\n IncompleteDetailsReasonOutput,\n RunStepFileSearchToolCallResultsOutput,\n ResponseFormatJsonSchemaOutput,\n RunStepFileSearchToolCallResultOutput,\n FileSearchToolCallContentOutput,\n AzureFunctionToolDefinitionOutput,\n AzureFunctionDefinitionOutput,\n AzureFunctionBindingOutput,\n OpenApiToolDefinitionOutput,\n OpenApiFunctionDefinitionOutput,\n OpenApiAuthDetailsOutput,\n OpenApiAuthTypeOutput,\n OpenApiAuthDetailsOutputParent,\n OpenApiAnonymousAuthDetailsOutput,\n OpenApiConnectionAuthDetailsOutput,\n OpenApiManagedAuthDetailsOutput,\n AzureFunctionStorageQueueOutput,\n OpenApiConnectionSecuritySchemeOutput,\n OpenApiManagedSecuritySchemeOutput,\n} from \"../customization/outputModels.js\";\nexport {\n ListMessagesQueryParamProperties,\n ListFilesQueryParamProperties,\n} from \"../customization/parameters.js\";\nexport type {\n AgentRunResponse,\n CreateRunOptionalParams,\n GetRunOptionalParams,\n CancelRunOptionalParams,\n SubmitToolOutputsToRunOptionalParams,\n UpdateRunOptionalParams,\n ListRunQueryOptionalParams,\n CreateAndRunThreadOptionalParams,\n CreateAgentThreadOptionalParams,\n GetAgentThreadOptionalParams,\n UpdateAgentThreadOptionalParams,\n DeleteAgentThreadOptionalParams,\n GetRunStepOptionalParams,\n ListRunStepsOptionalParams,\n CreateMessageOptionalParams,\n ListMessagesOptionalParams,\n UpdateMessageOptionalParams,\n GetVectorStoreOptionalParams,\n ListVectorStoresOptionalParams,\n UpdateVectorStoreOptionalParams,\n DeleteVectorStoreOptionalParams,\n CreateVectorStoreOptionalParams,\n CreateVectorStoreFileOptionalParams,\n ListVectorStoreFilesOptionalParams,\n GetVectorStoreFileOptionalParams,\n DeleteVectorStoreFileOptionalParams,\n CreateVectorStoreFileBatchOptionalParams,\n GetVectorStoreFileBatchOptionalParams,\n ListVectorStoreFileBatchFilesOptionalParams,\n CreateAgentOptionalParams,\n ListAgentsOptionalParams,\n GetAgentOptionalParams,\n UpdateAgentOptionalParams,\n DeleteFileOptionalParams,\n GetFileOptionalParams,\n GetFileContentOptionalParams,\n ListFilesOptionalParams,\n UploadFileOptionalParams,\n ListQueryParameters,\n PollingOptions,\n PollingOptionsParams,\n CancelVectorStoreFileBatchOptionalParams,\n DeleteAgentOptionalParams,\n} from \"./customModels.js\";\n\nexport {\n AzureAISearchToolDefinition,\n CodeInterpreterToolDefinition,\n FileSearchToolDefinition,\n FileSearchToolDefinitionDetails,\n FunctionDefinition,\n FunctionToolDefinition,\n ToolResources,\n VectorStoreConfigurations,\n VectorStoreDataSource,\n ToolDefinition,\n ThreadMessageOptions,\n ToolOutput,\n FilePurpose,\n ToolDefinitionParent,\n AgentThreadCreationOptions,\n CreateAgentOptions,\n CreateAndRunThreadOptions,\n CreateRunOptions,\n UpdateAgentOptions,\n UpdateAgentThreadOptions,\n VectorStoreFileStatusFilter,\n VectorStoreOptions,\n VectorStoreUpdateOptions,\n AgentsApiResponseFormatMode,\n AgentsApiToolChoiceOption,\n TruncationObject,\n UpdateToolResourcesOptions,\n VectorStoreChunkingStrategyRequest,\n FileSearchRankingOptions,\n AgentsApiToolChoiceOptionMode,\n AgentsNamedToolChoice,\n AgentsApiResponseFormatOption,\n ConnectionType,\n ListSortOrder,\n MessageAttachment,\n BingGroundingToolDefinition,\n MicrosoftFabricToolDefinition,\n SharepointToolDefinition,\n AzureAISearchResource,\n CodeInterpreterToolResource,\n FileSearchToolResource,\n TruncationStrategy,\n UpdateCodeInterpreterToolResourceOptions,\n UpdateFileSearchToolResourceOptions,\n VectorStoreChunkingStrategyRequestParent,\n VectorStoreAutoChunkingStrategyRequest,\n VectorStoreStaticChunkingStrategyRequest,\n VectorStoreConfiguration,\n VectorStoreDataSourceAssetType,\n AgentsApiResponseFormat,\n FunctionName,\n AgentsNamedToolChoiceType,\n IndexResource,\n ToolConnectionList,\n MessageAttachmentToolDefinition,\n MessageRole,\n VectorStoreChunkingStrategyRequestType,\n VectorStoreExpirationPolicy,\n VectorStoreStaticChunkingStrategyOptions,\n ToolConnection,\n VectorStoreExpirationPolicyAnchor,\n ResponseFormat,\n ResponseFormatJsonSchemaType,\n OpenApiToolDefinition,\n AzureFunctionToolDefinition,\n OpenApiFunctionDefinition,\n ResponseFormatJsonSchema,\n AzureFunctionDefinition,\n AzureFunctionBinding,\n OpenApiAuthDetails,\n AzureFunctionStorageQueue,\n OpenApiAuthType,\n OpenApiAuthDetailsParent,\n OpenApiAnonymousAuthDetails,\n OpenApiConnectionAuthDetails,\n OpenApiManagedAuthDetails,\n OpenApiConnectionSecurityScheme,\n OpenApiManagedSecurityScheme,\n} from \"../customization/models.js\";\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"inputValidations.d.ts","sourceRoot":"","sources":["../../../src/agents/inputValidations.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,cAAc,EACd,0BAA0B,EAC1B,qBAAqB,EACtB,MAAM,4BAA4B,CAAC;AAEpC,wBAAgB,2BAA2B,CAAC,YAAY,EAAE,qBAAqB,EAAE,GAAG,IAAI,CAIvF;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAIvD;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAIjD;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAIjD;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAIjD;AAYD,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,IAAI,CAMhE;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAUvE;AAED,wBAAgB,qBAAqB,CAAC,YAAY,EAAE,0BAA0B,GAAG,IAAI,CAsBpF;AAED,wBAAgB,qBAAqB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAIjE;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAInD;AASD,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAM7D;AAOD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAIpD;AAOD,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAI9D"}
1
+ {"version":3,"file":"inputValidations.d.ts","sourceRoot":"","sources":["../../../src/agents/inputValidations.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,cAAc,EACd,0BAA0B,EAC1B,qBAAqB,EACtB,MAAM,4BAA4B,CAAC;AAEpC,wBAAgB,2BAA2B,CAAC,YAAY,EAAE,qBAAqB,EAAE,GAAG,IAAI,CAIvF;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAIvD;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAIjD;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAIjD;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAIjD;AAaD,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,IAAI,CAMhE;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAUvE;AAED,wBAAgB,qBAAqB,CAAC,YAAY,EAAE,0BAA0B,GAAG,IAAI,CAsBpF;AAED,wBAAgB,qBAAqB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAIjE;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAInD;AASD,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAM7D;AAOD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAIpD;AAOD,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAI9D"}
@@ -49,10 +49,11 @@ var Tools;
49
49
  Tools["MicrosoftFabric"] = "microsoft_fabric";
50
50
  Tools["SharepointGrounding"] = "sharepoint_grounding";
51
51
  Tools["AzureAISearch"] = "azure_ai_search";
52
+ Tools["AzureFunction"] = "azure_function";
52
53
  })(Tools || (Tools = {}));
53
54
  function validateTools(value) {
54
55
  if (value.some((tool) => !Object.values(Tools).includes(tool))) {
55
- throw new Error("Tool type must be one of 'code_interpreter', 'file_search', 'function', 'bing_grounding', 'microsoft_fabric', 'sharepoint_grounding', 'azure_ai_search'");
56
+ throw new Error("Tool type must be one of 'code_interpreter', 'file_search', 'function', 'bing_grounding', 'microsoft_fabric', 'sharepoint_grounding', 'azure_ai_search', 'azure_function'");
56
57
  }
57
58
  }
58
59
  function validateMetadata(metadata) {
@@ -1 +1 @@
1
- {"version":3,"file":"inputValidations.js","sourceRoot":"","sources":["../../../src/agents/inputValidations.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAQlC,kEAIC;AAED,4CAIC;AAED,sCAIC;AAED,sCAIC;AAED,sCAIC;AAYD,sCAMC;AAED,4CAUC;AAED,sDAsBC;AAED,sDAIC;AAED,wCAIC;AASD,4DAMC;AAOD,4CAIC;AAOD,gEAIC;AAnID,SAAgB,2BAA2B,CAAC,YAAqC;IAC/E,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;QACnF,MAAM,IAAI,KAAK,CAAC,+DAA+D,CAAC,CAAC;IACnF,CAAC;AACH,CAAC;AAED,SAAgB,gBAAgB,CAAC,QAAgB;IAC/C,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;IAC3C,CAAC;AACH,CAAC;AAED,SAAgB,aAAa,CAAC,KAAa;IACzC,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAC;IACxC,CAAC;AACH,CAAC;AAED,SAAgB,aAAa,CAAC,KAAa;IACzC,IAAI,KAAK,GAAG,CAAC,IAAI,KAAK,GAAG,GAAG,EAAE,CAAC;QAC7B,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;IACrD,CAAC;AACH,CAAC;AAED,SAAgB,aAAa,CAAC,KAAa;IACzC,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,CAA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AAC,MAAM,CAAC,eAAe,CAAC,CAAC,QAAQ,CAAC,MAAyB,CAAC,EAAE,CAAC;QACxE,MAAM,IAAI,KAAK,CACb,qFAAqF,CACtF,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAK,QAGJ;AAHD,WAAK,QAAQ;IACX,yBAAa,CAAA;IACb,oCAAwB,CAAA;AAC1B,CAAC,EAHI,QAAQ,KAAR,QAAQ,QAGZ;AAED,SAAgB,gBAAgB,CAAC,KAAa;IAC5C,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,KAAiB,CAAC,EAAE,CAAC;QACzD,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;IAC/D,CAAC;AACH,CAAC;AAED,IAAK,kBAGJ;AAHD,WAAK,kBAAkB;IACrB,mCAAa,CAAA;IACb,oDAA8B,CAAA;AAChC,CAAC,EAHI,kBAAkB,KAAlB,kBAAkB,QAGtB;AAED,SAAgB,0BAA0B,CAAC,KAAa;IACtD,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,KAA2B,CAAC,EAAE,CAAC;QAC7E,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;IACnE,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n ToolDefinition,\n UpdateToolResourcesOptions,\n VectorStoreDataSource,\n} from \"../generated/src/models.js\";\n\nexport function validateVectorStoreDataType(data_sources: VectorStoreDataSource[]): void {\n if (!data_sources.some((value) => ![\"uri_asset\", \"id_asset\"].includes(value.type))) {\n throw new Error(\"Vector store data type must be one of 'uri_asset', 'id_asset'\");\n }\n}\n\nexport function validateThreadId(threadId: string): void {\n if (!threadId) {\n throw new Error(\"Thread ID is required\");\n }\n}\n\nexport function validateRunId(runId: string): void {\n if (!runId) {\n throw new Error(\"Run ID is required\");\n }\n}\n\nexport function validateLimit(limit: number): void {\n if (limit < 1 || limit > 100) {\n throw new Error(\"Limit must be between 1 and 100\");\n }\n}\n\nexport function validateOrder(order: string): void {\n if (![\"asc\", \"desc\"].includes(order)) {\n throw new Error(\"Order must be 'asc' or 'desc'\");\n }\n}\n\nenum Tools {\n CodeInterpreter = \"code_interpreter\",\n FileSearch = \"file_search\",\n Function = \"function\",\n BingGrounding = \"bing_grounding\",\n MicrosoftFabric = \"microsoft_fabric\",\n SharepointGrounding = \"sharepoint_grounding\",\n AzureAISearch = \"azure_ai_search\",\n}\n\nexport function validateTools(value: Array<ToolDefinition>): void {\n if (value.some((tool) => !Object.values(Tools).includes(tool as unknown as Tools))) {\n throw new Error(\n \"Tool type must be one of 'code_interpreter', 'file_search', 'function', 'bing_grounding', 'microsoft_fabric', 'sharepoint_grounding', 'azure_ai_search'\",\n );\n }\n}\n\nexport function validateMetadata(metadata: Record<string, string>): void {\n if (Object.keys(metadata).length > 16) {\n throw new Error(\"Only 16 key/value pairs are allowed\");\n }\n if (Object.keys(metadata).some((value) => value.length > 64)) {\n throw new Error(\"Keys must be less than 64 characters\");\n }\n if (Object.values(metadata).some((value) => value.length > 512)) {\n throw new Error(\"Values must be less than 512 characters\");\n }\n}\n\nexport function validateToolResources(toolResource: UpdateToolResourcesOptions): void {\n if (toolResource.code_interpreter) {\n if (\n toolResource.code_interpreter.file_ids &&\n toolResource.code_interpreter.file_ids.length > 20\n ) {\n throw new Error(\"A maximum of 20 file IDs are allowed\");\n }\n }\n if (toolResource.file_search) {\n if (\n toolResource.file_search.vector_store_ids &&\n toolResource.file_search.vector_store_ids.length > 1\n ) {\n throw new Error(\"Only one vector store ID is allowed\");\n }\n }\n if (toolResource.azure_ai_search) {\n if (toolResource.azure_ai_search.indexes && toolResource.azure_ai_search.indexes.length > 1) {\n throw new Error(\"Only one index is allowed\");\n }\n }\n}\n\nexport function validateVectorStoreId(vectorStoreId: string): void {\n if (!vectorStoreId) {\n throw new Error(\"Vector store ID is required\");\n }\n}\n\nexport function validateFileId(fileId: string): void {\n if (!fileId) {\n throw new Error(\"File ID is required\");\n }\n}\n\nenum FileBatchStatus {\n InProgress = \"in_progress\",\n Completed = \"completed\",\n Failed = \"failed\",\n Cancelled = \"cancelled\",\n}\n\nexport function validateFileStatusFilter(filter: string): void {\n if (!Object.values(FileBatchStatus).includes(filter as FileBatchStatus)) {\n throw new Error(\n \"File status filter must be one of 'in_progress', 'completed', 'failed', 'cancelled'\",\n );\n }\n}\n\nenum Messages {\n User = \"user\",\n Assistants = \"assistant\",\n}\n\nexport function validateMessages(value: string): void {\n if (!Object.values(Messages).includes(value as Messages)) {\n throw new Error(\"Role must be either 'user' or 'assistant'\");\n }\n}\n\nenum TruncationStrategy {\n Auto = \"auto\",\n LastMessages = \"last_messages\",\n}\n\nexport function validateTruncationStrategy(value: string): void {\n if (!Object.values(TruncationStrategy).includes(value as TruncationStrategy)) {\n throw new Error(\"Role must be either 'auto' or 'last_messages'\");\n }\n}\n"]}
1
+ {"version":3,"file":"inputValidations.js","sourceRoot":"","sources":["../../../src/agents/inputValidations.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAQlC,kEAIC;AAED,4CAIC;AAED,sCAIC;AAED,sCAIC;AAED,sCAIC;AAaD,sCAMC;AAED,4CAUC;AAED,sDAsBC;AAED,sDAIC;AAED,wCAIC;AASD,4DAMC;AAOD,4CAIC;AAOD,gEAIC;AApID,SAAgB,2BAA2B,CAAC,YAAqC;IAC/E,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;QACnF,MAAM,IAAI,KAAK,CAAC,+DAA+D,CAAC,CAAC;IACnF,CAAC;AACH,CAAC;AAED,SAAgB,gBAAgB,CAAC,QAAgB;IAC/C,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,M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AAC,+CAA+C,CAAC,CAAC;IACnE,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n ToolDefinition,\n UpdateToolResourcesOptions,\n VectorStoreDataSource,\n} from \"../generated/src/models.js\";\n\nexport function validateVectorStoreDataType(data_sources: VectorStoreDataSource[]): void {\n if (!data_sources.some((value) => ![\"uri_asset\", \"id_asset\"].includes(value.type))) {\n throw new Error(\"Vector store data type must be one of 'uri_asset', 'id_asset'\");\n }\n}\n\nexport function validateThreadId(threadId: string): void {\n if (!threadId) {\n throw new Error(\"Thread ID is required\");\n }\n}\n\nexport function validateRunId(runId: string): void {\n if (!runId) {\n throw new Error(\"Run ID is required\");\n }\n}\n\nexport function validateLimit(limit: number): void {\n if (limit < 1 || limit > 100) {\n throw new Error(\"Limit must be between 1 and 100\");\n }\n}\n\nexport function validateOrder(order: string): void {\n if (![\"asc\", \"desc\"].includes(order)) {\n throw new Error(\"Order must be 'asc' or 'desc'\");\n }\n}\n\nenum Tools {\n CodeInterpreter = \"code_interpreter\",\n FileSearch = \"file_search\",\n Function = \"function\",\n BingGrounding = \"bing_grounding\",\n MicrosoftFabric = \"microsoft_fabric\",\n SharepointGrounding = \"sharepoint_grounding\",\n AzureAISearch = \"azure_ai_search\",\n AzureFunction = \"azure_function\",\n}\n\nexport function validateTools(value: Array<ToolDefinition>): void {\n if (value.some((tool) => !Object.values(Tools).includes(tool as unknown as Tools))) {\n throw new Error(\n \"Tool type must be one of 'code_interpreter', 'file_search', 'function', 'bing_grounding', 'microsoft_fabric', 'sharepoint_grounding', 'azure_ai_search', 'azure_function'\",\n );\n }\n}\n\nexport function validateMetadata(metadata: Record<string, string>): void {\n if (Object.keys(metadata).length > 16) {\n throw new Error(\"Only 16 key/value pairs are allowed\");\n }\n if (Object.keys(metadata).some((value) => value.length > 64)) {\n throw new Error(\"Keys must be less than 64 characters\");\n }\n if (Object.values(metadata).some((value) => value.length > 512)) {\n throw new Error(\"Values must be less than 512 characters\");\n }\n}\n\nexport function validateToolResources(toolResource: UpdateToolResourcesOptions): void {\n if (toolResource.code_interpreter) {\n if (\n toolResource.code_interpreter.file_ids &&\n toolResource.code_interpreter.file_ids.length > 20\n ) {\n throw new Error(\"A maximum of 20 file IDs are allowed\");\n }\n }\n if (toolResource.file_search) {\n if (\n toolResource.file_search.vector_store_ids &&\n toolResource.file_search.vector_store_ids.length > 1\n ) {\n throw new Error(\"Only one vector store ID is allowed\");\n }\n }\n if (toolResource.azure_ai_search) {\n if (toolResource.azure_ai_search.indexes && toolResource.azure_ai_search.indexes.length > 1) {\n throw new Error(\"Only one index is allowed\");\n }\n }\n}\n\nexport function validateVectorStoreId(vectorStoreId: string): void {\n if (!vectorStoreId) {\n throw new Error(\"Vector store ID is required\");\n }\n}\n\nexport function validateFileId(fileId: string): void {\n if (!fileId) {\n throw new Error(\"File ID is required\");\n }\n}\n\nenum FileBatchStatus {\n InProgress = \"in_progress\",\n Completed = \"completed\",\n Failed = \"failed\",\n Cancelled = \"cancelled\",\n}\n\nexport function validateFileStatusFilter(filter: string): void {\n if (!Object.values(FileBatchStatus).includes(filter as FileBatchStatus)) {\n throw new Error(\n \"File status filter must be one of 'in_progress', 'completed', 'failed', 'cancelled'\",\n );\n }\n}\n\nenum Messages {\n User = \"user\",\n Assistants = \"assistant\",\n}\n\nexport function validateMessages(value: string): void {\n if (!Object.values(Messages).includes(value as Messages)) {\n throw new Error(\"Role must be either 'user' or 'assistant'\");\n }\n}\n\nenum TruncationStrategy {\n Auto = \"auto\",\n LastMessages = \"last_messages\",\n}\n\nexport function validateTruncationStrategy(value: string): void {\n if (!Object.values(TruncationStrategy).includes(value as TruncationStrategy)) {\n throw new Error(\"Role must be either 'auto' or 'last_messages'\");\n }\n}\n"]}
@@ -87,8 +87,8 @@ function validateCreateMessageParameters(options) {
87
87
  }
88
88
  if (options.body.attachments) {
89
89
  options.body.attachments.forEach((value) => {
90
- if (value.data_sources) {
91
- (0, inputValidations_js_1.validateVectorStoreDataType)(value.data_sources);
90
+ if (value.data_source) {
91
+ (0, inputValidations_js_1.validateVectorStoreDataType)([value.data_source]);
92
92
  }
93
93
  });
94
94
  }