@azure/ai-projects 1.0.0-beta.2 → 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 (344) 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/poller.d.ts +8 -33
  25. package/dist/browser/agents/poller.d.ts.map +1 -1
  26. package/dist/browser/agents/poller.js +130 -53
  27. package/dist/browser/agents/poller.js.map +1 -1
  28. package/dist/browser/agents/streamingModels.d.ts +17 -15
  29. package/dist/browser/agents/streamingModels.d.ts.map +1 -1
  30. package/dist/browser/agents/streamingModels.js.map +1 -1
  31. package/dist/browser/agents/traceUtility.d.ts +3 -3
  32. package/dist/browser/agents/traceUtility.d.ts.map +1 -1
  33. package/dist/browser/agents/traceUtility.js.map +1 -1
  34. package/dist/browser/agents/utils.d.ts +53 -3
  35. package/dist/browser/agents/utils.d.ts.map +1 -1
  36. package/dist/browser/agents/utils.js +71 -1
  37. package/dist/browser/agents/utils.js.map +1 -1
  38. package/dist/browser/agents/vectorStores.d.ts +3 -4
  39. package/dist/browser/agents/vectorStores.d.ts.map +1 -1
  40. package/dist/browser/agents/vectorStores.js +44 -26
  41. package/dist/browser/agents/vectorStores.js.map +1 -1
  42. package/dist/browser/agents/vectorStoresFileBatches.d.ts +5 -4
  43. package/dist/browser/agents/vectorStoresFileBatches.d.ts.map +1 -1
  44. package/dist/browser/agents/vectorStoresFileBatches.js +46 -32
  45. package/dist/browser/agents/vectorStoresFileBatches.js.map +1 -1
  46. package/dist/browser/agents/vectorStoresFiles.d.ts +4 -4
  47. package/dist/browser/agents/vectorStoresFiles.d.ts.map +1 -1
  48. package/dist/browser/agents/vectorStoresFiles.js +57 -28
  49. package/dist/browser/agents/vectorStoresFiles.js.map +1 -1
  50. package/dist/browser/constants.d.ts +1 -1
  51. package/dist/browser/constants.js +1 -1
  52. package/dist/browser/constants.js.map +1 -1
  53. package/dist/browser/customization/convertModelsToWrite.d.ts.map +1 -1
  54. package/dist/browser/customization/convertModelsToWrite.js +42 -93
  55. package/dist/browser/customization/convertModelsToWrite.js.map +1 -1
  56. package/dist/browser/customization/convertOutputModelsFromWire.d.ts.map +1 -1
  57. package/dist/browser/customization/convertOutputModelsFromWire.js +51 -9
  58. package/dist/browser/customization/convertOutputModelsFromWire.js.map +1 -1
  59. package/dist/browser/customization/convertParametersToWire.d.ts +1 -1
  60. package/dist/browser/customization/convertParametersToWire.d.ts.map +1 -1
  61. package/dist/browser/customization/convertParametersToWire.js.map +1 -1
  62. package/dist/browser/customization/models.d.ts +146 -151
  63. package/dist/browser/customization/models.d.ts.map +1 -1
  64. package/dist/browser/customization/models.js.map +1 -1
  65. package/dist/browser/customization/outputModels.d.ts +188 -37
  66. package/dist/browser/customization/outputModels.d.ts.map +1 -1
  67. package/dist/browser/customization/outputModels.js.map +1 -1
  68. package/dist/browser/customization/streamingModels.d.ts +2 -1
  69. package/dist/browser/customization/streamingModels.d.ts.map +1 -1
  70. package/dist/browser/customization/streamingModels.js.map +1 -1
  71. package/dist/browser/customization/streamingWireModels.d.ts +2 -1
  72. package/dist/browser/customization/streamingWireModels.d.ts.map +1 -1
  73. package/dist/browser/customization/streamingWireModels.js.map +1 -1
  74. package/dist/browser/generated/src/models.d.ts +131 -150
  75. package/dist/browser/generated/src/models.d.ts.map +1 -1
  76. package/dist/browser/generated/src/models.js.map +1 -1
  77. package/dist/browser/generated/src/outputModels.d.ts +187 -36
  78. package/dist/browser/generated/src/outputModels.d.ts.map +1 -1
  79. package/dist/browser/generated/src/outputModels.js.map +1 -1
  80. package/dist/browser/generated/src/paginateHelper.d.ts +27 -2
  81. package/dist/browser/generated/src/paginateHelper.d.ts.map +1 -1
  82. package/dist/browser/generated/src/paginateHelper.js +98 -1
  83. package/dist/browser/generated/src/paginateHelper.js.map +1 -1
  84. package/dist/browser/generated/src/projectsClient.d.ts +2 -2
  85. package/dist/browser/generated/src/projectsClient.d.ts.map +1 -1
  86. package/dist/browser/generated/src/projectsClient.js +3 -3
  87. package/dist/browser/generated/src/projectsClient.js.map +1 -1
  88. package/dist/commonjs/agents/assistants.d.ts.map +1 -1
  89. package/dist/commonjs/agents/assistants.js +3 -1
  90. package/dist/commonjs/agents/assistants.js.map +1 -1
  91. package/dist/commonjs/agents/customModels.d.ts +4 -29
  92. package/dist/commonjs/agents/customModels.d.ts.map +1 -1
  93. package/dist/commonjs/agents/customModels.js.map +1 -1
  94. package/dist/commonjs/agents/files.d.ts +5 -4
  95. package/dist/commonjs/agents/files.d.ts.map +1 -1
  96. package/dist/commonjs/agents/files.js +55 -26
  97. package/dist/commonjs/agents/files.js.map +1 -1
  98. package/dist/commonjs/agents/index.d.ts +10 -10
  99. package/dist/commonjs/agents/index.d.ts.map +1 -1
  100. package/dist/commonjs/agents/index.js.map +1 -1
  101. package/dist/commonjs/agents/inputOutputs.d.ts +3 -3
  102. package/dist/commonjs/agents/inputOutputs.d.ts.map +1 -1
  103. package/dist/commonjs/agents/inputOutputs.js.map +1 -1
  104. package/dist/commonjs/agents/inputValidations.d.ts.map +1 -1
  105. package/dist/commonjs/agents/inputValidations.js +2 -1
  106. package/dist/commonjs/agents/inputValidations.js.map +1 -1
  107. package/dist/commonjs/agents/messages.js +2 -2
  108. package/dist/commonjs/agents/messages.js.map +1 -1
  109. package/dist/commonjs/agents/poller.d.ts +8 -33
  110. package/dist/commonjs/agents/poller.d.ts.map +1 -1
  111. package/dist/commonjs/agents/poller.js +131 -55
  112. package/dist/commonjs/agents/poller.js.map +1 -1
  113. package/dist/commonjs/agents/streamingModels.d.ts +17 -15
  114. package/dist/commonjs/agents/streamingModels.d.ts.map +1 -1
  115. package/dist/commonjs/agents/streamingModels.js.map +1 -1
  116. package/dist/commonjs/agents/traceUtility.d.ts +3 -3
  117. package/dist/commonjs/agents/traceUtility.d.ts.map +1 -1
  118. package/dist/commonjs/agents/traceUtility.js.map +1 -1
  119. package/dist/commonjs/agents/utils.d.ts +53 -3
  120. package/dist/commonjs/agents/utils.d.ts.map +1 -1
  121. package/dist/commonjs/agents/utils.js +71 -1
  122. package/dist/commonjs/agents/utils.js.map +1 -1
  123. package/dist/commonjs/agents/vectorStores.d.ts +3 -4
  124. package/dist/commonjs/agents/vectorStores.d.ts.map +1 -1
  125. package/dist/commonjs/agents/vectorStores.js +43 -25
  126. package/dist/commonjs/agents/vectorStores.js.map +1 -1
  127. package/dist/commonjs/agents/vectorStoresFileBatches.d.ts +5 -4
  128. package/dist/commonjs/agents/vectorStoresFileBatches.d.ts.map +1 -1
  129. package/dist/commonjs/agents/vectorStoresFileBatches.js +46 -31
  130. package/dist/commonjs/agents/vectorStoresFileBatches.js.map +1 -1
  131. package/dist/commonjs/agents/vectorStoresFiles.d.ts +4 -4
  132. package/dist/commonjs/agents/vectorStoresFiles.d.ts.map +1 -1
  133. package/dist/commonjs/agents/vectorStoresFiles.js +56 -27
  134. package/dist/commonjs/agents/vectorStoresFiles.js.map +1 -1
  135. package/dist/commonjs/constants.d.ts +1 -1
  136. package/dist/commonjs/constants.js +1 -1
  137. package/dist/commonjs/constants.js.map +1 -1
  138. package/dist/commonjs/customization/convertModelsToWrite.d.ts.map +1 -1
  139. package/dist/commonjs/customization/convertModelsToWrite.js +42 -93
  140. package/dist/commonjs/customization/convertModelsToWrite.js.map +1 -1
  141. package/dist/commonjs/customization/convertOutputModelsFromWire.d.ts.map +1 -1
  142. package/dist/commonjs/customization/convertOutputModelsFromWire.js +51 -9
  143. package/dist/commonjs/customization/convertOutputModelsFromWire.js.map +1 -1
  144. package/dist/commonjs/customization/convertParametersToWire.d.ts +1 -1
  145. package/dist/commonjs/customization/convertParametersToWire.d.ts.map +1 -1
  146. package/dist/commonjs/customization/convertParametersToWire.js.map +1 -1
  147. package/dist/commonjs/customization/models.d.ts +146 -151
  148. package/dist/commonjs/customization/models.d.ts.map +1 -1
  149. package/dist/commonjs/customization/models.js.map +1 -1
  150. package/dist/commonjs/customization/outputModels.d.ts +188 -37
  151. package/dist/commonjs/customization/outputModels.d.ts.map +1 -1
  152. package/dist/commonjs/customization/outputModels.js.map +1 -1
  153. package/dist/commonjs/customization/streamingModels.d.ts +2 -1
  154. package/dist/commonjs/customization/streamingModels.d.ts.map +1 -1
  155. package/dist/commonjs/customization/streamingModels.js.map +1 -1
  156. package/dist/commonjs/customization/streamingWireModels.d.ts +2 -1
  157. package/dist/commonjs/customization/streamingWireModels.d.ts.map +1 -1
  158. package/dist/commonjs/customization/streamingWireModels.js.map +1 -1
  159. package/dist/commonjs/generated/src/models.d.ts +131 -150
  160. package/dist/commonjs/generated/src/models.d.ts.map +1 -1
  161. package/dist/commonjs/generated/src/models.js.map +1 -1
  162. package/dist/commonjs/generated/src/outputModels.d.ts +187 -36
  163. package/dist/commonjs/generated/src/outputModels.d.ts.map +1 -1
  164. package/dist/commonjs/generated/src/outputModels.js.map +1 -1
  165. package/dist/commonjs/generated/src/paginateHelper.d.ts +27 -2
  166. package/dist/commonjs/generated/src/paginateHelper.d.ts.map +1 -1
  167. package/dist/commonjs/generated/src/paginateHelper.js +99 -2
  168. package/dist/commonjs/generated/src/paginateHelper.js.map +1 -1
  169. package/dist/commonjs/generated/src/projectsClient.d.ts +2 -2
  170. package/dist/commonjs/generated/src/projectsClient.d.ts.map +1 -1
  171. package/dist/commonjs/generated/src/projectsClient.js +3 -3
  172. package/dist/commonjs/generated/src/projectsClient.js.map +1 -1
  173. package/dist/commonjs/tsdoc-metadata.json +1 -1
  174. package/dist/esm/agents/assistants.d.ts.map +1 -1
  175. package/dist/esm/agents/assistants.js +3 -1
  176. package/dist/esm/agents/assistants.js.map +1 -1
  177. package/dist/esm/agents/customModels.d.ts +4 -29
  178. package/dist/esm/agents/customModels.d.ts.map +1 -1
  179. package/dist/esm/agents/customModels.js.map +1 -1
  180. package/dist/esm/agents/files.d.ts +5 -4
  181. package/dist/esm/agents/files.d.ts.map +1 -1
  182. package/dist/esm/agents/files.js +55 -27
  183. package/dist/esm/agents/files.js.map +1 -1
  184. package/dist/esm/agents/index.d.ts +10 -10
  185. package/dist/esm/agents/index.d.ts.map +1 -1
  186. package/dist/esm/agents/index.js.map +1 -1
  187. package/dist/esm/agents/inputOutputs.d.ts +3 -3
  188. package/dist/esm/agents/inputOutputs.d.ts.map +1 -1
  189. package/dist/esm/agents/inputOutputs.js.map +1 -1
  190. package/dist/esm/agents/inputValidations.d.ts.map +1 -1
  191. package/dist/esm/agents/inputValidations.js +2 -1
  192. package/dist/esm/agents/inputValidations.js.map +1 -1
  193. package/dist/esm/agents/messages.js +2 -2
  194. package/dist/esm/agents/messages.js.map +1 -1
  195. package/dist/esm/agents/poller.d.ts +8 -33
  196. package/dist/esm/agents/poller.d.ts.map +1 -1
  197. package/dist/esm/agents/poller.js +130 -53
  198. package/dist/esm/agents/poller.js.map +1 -1
  199. package/dist/esm/agents/streamingModels.d.ts +17 -15
  200. package/dist/esm/agents/streamingModels.d.ts.map +1 -1
  201. package/dist/esm/agents/streamingModels.js.map +1 -1
  202. package/dist/esm/agents/traceUtility.d.ts +3 -3
  203. package/dist/esm/agents/traceUtility.d.ts.map +1 -1
  204. package/dist/esm/agents/traceUtility.js.map +1 -1
  205. package/dist/esm/agents/utils.d.ts +53 -3
  206. package/dist/esm/agents/utils.d.ts.map +1 -1
  207. package/dist/esm/agents/utils.js +71 -1
  208. package/dist/esm/agents/utils.js.map +1 -1
  209. package/dist/esm/agents/vectorStores.d.ts +3 -4
  210. package/dist/esm/agents/vectorStores.d.ts.map +1 -1
  211. package/dist/esm/agents/vectorStores.js +44 -26
  212. package/dist/esm/agents/vectorStores.js.map +1 -1
  213. package/dist/esm/agents/vectorStoresFileBatches.d.ts +5 -4
  214. package/dist/esm/agents/vectorStoresFileBatches.d.ts.map +1 -1
  215. package/dist/esm/agents/vectorStoresFileBatches.js +46 -32
  216. package/dist/esm/agents/vectorStoresFileBatches.js.map +1 -1
  217. package/dist/esm/agents/vectorStoresFiles.d.ts +4 -4
  218. package/dist/esm/agents/vectorStoresFiles.d.ts.map +1 -1
  219. package/dist/esm/agents/vectorStoresFiles.js +57 -28
  220. package/dist/esm/agents/vectorStoresFiles.js.map +1 -1
  221. package/dist/esm/constants.d.ts +1 -1
  222. package/dist/esm/constants.js +1 -1
  223. package/dist/esm/constants.js.map +1 -1
  224. package/dist/esm/customization/convertModelsToWrite.d.ts.map +1 -1
  225. package/dist/esm/customization/convertModelsToWrite.js +42 -93
  226. package/dist/esm/customization/convertModelsToWrite.js.map +1 -1
  227. package/dist/esm/customization/convertOutputModelsFromWire.d.ts.map +1 -1
  228. package/dist/esm/customization/convertOutputModelsFromWire.js +51 -9
  229. package/dist/esm/customization/convertOutputModelsFromWire.js.map +1 -1
  230. package/dist/esm/customization/convertParametersToWire.d.ts +1 -1
  231. package/dist/esm/customization/convertParametersToWire.d.ts.map +1 -1
  232. package/dist/esm/customization/convertParametersToWire.js.map +1 -1
  233. package/dist/esm/customization/models.d.ts +146 -151
  234. package/dist/esm/customization/models.d.ts.map +1 -1
  235. package/dist/esm/customization/models.js.map +1 -1
  236. package/dist/esm/customization/outputModels.d.ts +188 -37
  237. package/dist/esm/customization/outputModels.d.ts.map +1 -1
  238. package/dist/esm/customization/outputModels.js.map +1 -1
  239. package/dist/esm/customization/streamingModels.d.ts +2 -1
  240. package/dist/esm/customization/streamingModels.d.ts.map +1 -1
  241. package/dist/esm/customization/streamingModels.js.map +1 -1
  242. package/dist/esm/customization/streamingWireModels.d.ts +2 -1
  243. package/dist/esm/customization/streamingWireModels.d.ts.map +1 -1
  244. package/dist/esm/customization/streamingWireModels.js.map +1 -1
  245. package/dist/esm/generated/src/models.d.ts +131 -150
  246. package/dist/esm/generated/src/models.d.ts.map +1 -1
  247. package/dist/esm/generated/src/models.js.map +1 -1
  248. package/dist/esm/generated/src/outputModels.d.ts +187 -36
  249. package/dist/esm/generated/src/outputModels.d.ts.map +1 -1
  250. package/dist/esm/generated/src/outputModels.js.map +1 -1
  251. package/dist/esm/generated/src/paginateHelper.d.ts +27 -2
  252. package/dist/esm/generated/src/paginateHelper.d.ts.map +1 -1
  253. package/dist/esm/generated/src/paginateHelper.js +98 -1
  254. package/dist/esm/generated/src/paginateHelper.js.map +1 -1
  255. package/dist/esm/generated/src/projectsClient.d.ts +2 -2
  256. package/dist/esm/generated/src/projectsClient.d.ts.map +1 -1
  257. package/dist/esm/generated/src/projectsClient.js +3 -3
  258. package/dist/esm/generated/src/projectsClient.js.map +1 -1
  259. package/dist/react-native/agents/assistants.d.ts.map +1 -1
  260. package/dist/react-native/agents/assistants.js +3 -1
  261. package/dist/react-native/agents/assistants.js.map +1 -1
  262. package/dist/react-native/agents/customModels.d.ts +4 -29
  263. package/dist/react-native/agents/customModels.d.ts.map +1 -1
  264. package/dist/react-native/agents/customModels.js.map +1 -1
  265. package/dist/react-native/agents/files.d.ts +5 -4
  266. package/dist/react-native/agents/files.d.ts.map +1 -1
  267. package/dist/react-native/agents/files.js +55 -27
  268. package/dist/react-native/agents/files.js.map +1 -1
  269. package/dist/react-native/agents/index.d.ts +10 -10
  270. package/dist/react-native/agents/index.d.ts.map +1 -1
  271. package/dist/react-native/agents/index.js.map +1 -1
  272. package/dist/react-native/agents/inputOutputs.d.ts +3 -3
  273. package/dist/react-native/agents/inputOutputs.d.ts.map +1 -1
  274. package/dist/react-native/agents/inputOutputs.js.map +1 -1
  275. package/dist/react-native/agents/inputValidations.d.ts.map +1 -1
  276. package/dist/react-native/agents/inputValidations.js +2 -1
  277. package/dist/react-native/agents/inputValidations.js.map +1 -1
  278. package/dist/react-native/agents/messages.js +2 -2
  279. package/dist/react-native/agents/messages.js.map +1 -1
  280. package/dist/react-native/agents/poller.d.ts +8 -33
  281. package/dist/react-native/agents/poller.d.ts.map +1 -1
  282. package/dist/react-native/agents/poller.js +130 -53
  283. package/dist/react-native/agents/poller.js.map +1 -1
  284. package/dist/react-native/agents/streamingModels.d.ts +17 -15
  285. package/dist/react-native/agents/streamingModels.d.ts.map +1 -1
  286. package/dist/react-native/agents/streamingModels.js.map +1 -1
  287. package/dist/react-native/agents/traceUtility.d.ts +3 -3
  288. package/dist/react-native/agents/traceUtility.d.ts.map +1 -1
  289. package/dist/react-native/agents/traceUtility.js.map +1 -1
  290. package/dist/react-native/agents/utils.d.ts +53 -3
  291. package/dist/react-native/agents/utils.d.ts.map +1 -1
  292. package/dist/react-native/agents/utils.js +71 -1
  293. package/dist/react-native/agents/utils.js.map +1 -1
  294. package/dist/react-native/agents/vectorStores.d.ts +3 -4
  295. package/dist/react-native/agents/vectorStores.d.ts.map +1 -1
  296. package/dist/react-native/agents/vectorStores.js +44 -26
  297. package/dist/react-native/agents/vectorStores.js.map +1 -1
  298. package/dist/react-native/agents/vectorStoresFileBatches.d.ts +5 -4
  299. package/dist/react-native/agents/vectorStoresFileBatches.d.ts.map +1 -1
  300. package/dist/react-native/agents/vectorStoresFileBatches.js +46 -32
  301. package/dist/react-native/agents/vectorStoresFileBatches.js.map +1 -1
  302. package/dist/react-native/agents/vectorStoresFiles.d.ts +4 -4
  303. package/dist/react-native/agents/vectorStoresFiles.d.ts.map +1 -1
  304. package/dist/react-native/agents/vectorStoresFiles.js +57 -28
  305. package/dist/react-native/agents/vectorStoresFiles.js.map +1 -1
  306. package/dist/react-native/constants.d.ts +1 -1
  307. package/dist/react-native/constants.js +1 -1
  308. package/dist/react-native/constants.js.map +1 -1
  309. package/dist/react-native/customization/convertModelsToWrite.d.ts.map +1 -1
  310. package/dist/react-native/customization/convertModelsToWrite.js +42 -93
  311. package/dist/react-native/customization/convertModelsToWrite.js.map +1 -1
  312. package/dist/react-native/customization/convertOutputModelsFromWire.d.ts.map +1 -1
  313. package/dist/react-native/customization/convertOutputModelsFromWire.js +51 -9
  314. package/dist/react-native/customization/convertOutputModelsFromWire.js.map +1 -1
  315. package/dist/react-native/customization/convertParametersToWire.d.ts +1 -1
  316. package/dist/react-native/customization/convertParametersToWire.d.ts.map +1 -1
  317. package/dist/react-native/customization/convertParametersToWire.js.map +1 -1
  318. package/dist/react-native/customization/models.d.ts +146 -151
  319. package/dist/react-native/customization/models.d.ts.map +1 -1
  320. package/dist/react-native/customization/models.js.map +1 -1
  321. package/dist/react-native/customization/outputModels.d.ts +188 -37
  322. package/dist/react-native/customization/outputModels.d.ts.map +1 -1
  323. package/dist/react-native/customization/outputModels.js.map +1 -1
  324. package/dist/react-native/customization/streamingModels.d.ts +2 -1
  325. package/dist/react-native/customization/streamingModels.d.ts.map +1 -1
  326. package/dist/react-native/customization/streamingModels.js.map +1 -1
  327. package/dist/react-native/customization/streamingWireModels.d.ts +2 -1
  328. package/dist/react-native/customization/streamingWireModels.d.ts.map +1 -1
  329. package/dist/react-native/customization/streamingWireModels.js.map +1 -1
  330. package/dist/react-native/generated/src/models.d.ts +131 -150
  331. package/dist/react-native/generated/src/models.d.ts.map +1 -1
  332. package/dist/react-native/generated/src/models.js.map +1 -1
  333. package/dist/react-native/generated/src/outputModels.d.ts +187 -36
  334. package/dist/react-native/generated/src/outputModels.d.ts.map +1 -1
  335. package/dist/react-native/generated/src/outputModels.js.map +1 -1
  336. package/dist/react-native/generated/src/paginateHelper.d.ts +27 -2
  337. package/dist/react-native/generated/src/paginateHelper.d.ts.map +1 -1
  338. package/dist/react-native/generated/src/paginateHelper.js +98 -1
  339. package/dist/react-native/generated/src/paginateHelper.js.map +1 -1
  340. package/dist/react-native/generated/src/projectsClient.d.ts +2 -2
  341. package/dist/react-native/generated/src/projectsClient.d.ts.map +1 -1
  342. package/dist/react-native/generated/src/projectsClient.js +3 -3
  343. package/dist/react-native/generated/src/projectsClient.js.map +1 -1
  344. package/package.json +33 -34
@@ -1 +1 @@
1
- {"version":3,"file":"convertModelsToWrite.js","sourceRoot":"","sources":["../../../src/customization/convertModelsToWrite.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAKlC,uBAAuB;AACvB,MAAM,UAAU,yBAAyB,CACvC,MAAuC;IAEvC,uIACE,KAAK,EAAE,MAAM,CAAC,KAAK,IAChB,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC,GACtC,CAAC,MAAM,CAAC,WAAW,IAAI,EAAE,WAAW,EAAE,MAAM,CAAC,WAAW,EAAE,CAAC,GAC3D,CAAC,MAAM,CAAC,YAAY,IAAI,EAAE,YAAY,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,GAC9D,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,qBAAqB,CAAC,EAAE,CAAC,GACpE,CAAC,MAAM,CAAC,aAAa,IAAI,EAAE,cAAc,EAAE,oBAAoB,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC,GACxF,CAAC,MAAM,CAAC,WAAW,KAAK,SAAS,IAAI,EAAE,WAAW,EAAE,MAAM,CAAC,WAAW,EAAE,CAAC,GACzE,CAAC,MAAM,C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C,CAAC,MAAM,CAAC,YAAY,CAAC,IACtE,CAAC,MAAM,CAAC,UAAU,IAAI,EAAE,WAAW,EAAE,MAAM,CAAC,UAAU,EAAE,CAAC,GACzD,CAAC,MAAM,CAAC,QAAQ,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC,EACtD;AACJ,CAAC;AAED,SAAS,qCAAqC,CAC5C,MAAmD;IAEnD,OAAO;QACL,OAAO,EAAE,MAAM,CAAC,MAAM;QACtB,KAAK,EAAE,MAAM,CAAC,KAAK;KACpB,CAAC;AACJ,CAAC;AAED,SAAS,oCAAoC,CAC3C,MAAkD;IAElD,qCACE,IAAI,EAAE,MAAM,CAAC,IAAI,EACjB,IAAI,EAAE,WAAW,EACjB,SAAS,EAAE,iCAAiC,CAAC,MAAM,CAAC,QAAQ,CAAC,IAC1D,CAAC,MAAM,CAAC,UAAU,IAAI,EAAE,WAAW,EAAE,MAAM,CAAC,UAAU,EAAE,CAAC,GACzD,CAAC,MAAM,CAAC,QAAQ,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC,EACtD;AACJ,CAAC;AAED,SAAS,iCAAiC,CACxC,MAA+C;IAE/C,OAAO;QACL,OAAO,EAAE,MAAM,CAAC,MAAM;KACvB,CAAC;AACJ,CAAC;AAED,SAAS,8BAA8B,CACrC,MAA4C;IAE5C,OAAO;QACL,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,8BAA8B,CAAC,MAAM,CAAC,SAAS,CAAC;KAC7D,CAAC;AACJ,CAAC;AAED,SAAS,8BAA8B,CACrC,MAA4C;IAE5C,OAAO;QACL,OAAO,EAAE,MAAM,CAAC,MAAM;KACvB,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type * as PublicModels from \"./models.js\";\nimport type * as GeneratedModels from \"../generated/src/models.js\";\n\n// Conversion functions\nexport function convertCreateAgentOptions(\n source: PublicModels.CreateAgentOptions,\n): GeneratedModels.CreateAgentOptions {\n return {\n model: source.model,\n ...(source.name && { name: source.name }),\n ...(source.description && { description: source.description }),\n ...(source.instructions && { instructions: source.instructions }),\n ...(source.tools && { tools: source.tools.map(convertToolDefinition) }),\n ...(source.toolResources && { tool_resources: convertToolResources(source.toolResources) }),\n ...(source.temperature !== undefined && { temperature: source.temperature }),\n ...(source.topP !== undefined && { top_p: source.topP }),\n ...(source.responseFormat && { response_format: source.responseFormat }),\n ...(source.metadata && { metadata: source.metadata }),\n };\n}\n\nfunction convertToolResources(source: PublicModels.ToolResources): GeneratedModels.ToolResources {\n return {\n ...(source.codeInterpreter && {\n code_interpreter: convertCodeInterpreterToolResource(source.codeInterpreter),\n }),\n ...(source.fileSearch && { file_search: convertFileSearchToolResource(source.fileSearch) }),\n ...(source.azureAISearch && {\n azure_ai_search: convertAzureAISearchResource(source.azureAISearch),\n }),\n };\n}\n\nfunction convertMessageAttachmentToolDefinition(\n source: PublicModels.MessageAttachmentToolDefinition,\n): GeneratedModels.MessageAttachmentToolDefinition {\n switch (source.type) {\n case \"code_interpreter\":\n return convertCodeInterpreterToolDefinition(\n source as PublicModels.CodeInterpreterToolDefinition,\n );\n case \"file_search\":\n return convertFileSearchToolDefinition(source as PublicModels.FileSearchToolDefinition);\n default:\n throw new Error(`Unknown tool type: ${source}`);\n }\n}\n\nfunction convertToolDefinition(\n source: PublicModels.ToolDefinition,\n): GeneratedModels.ToolDefinition {\n switch (source.type) {\n case \"code_interpreter\":\n return convertCodeInterpreterToolDefinition(\n source as PublicModels.CodeInterpreterToolDefinition,\n );\n case \"file_search\":\n return convertFileSearchToolDefinition(source as PublicModels.FileSearchToolDefinition);\n case \"function\":\n return convertFunctionToolDefinition(source as PublicModels.FunctionToolDefinition);\n case \"bing_grounding\":\n return convertBingGroundingToolDefinition(source as PublicModels.BingGroundingToolDefinition);\n case \"microsoft_fabric\":\n return convertMicrosoftFabricToolDefinition(\n source as PublicModels.MicrosoftFabricToolDefinition,\n );\n case \"sharepoint_grounding\":\n return convertSharepointToolDefinition(source as PublicModels.SharepointToolDefinition);\n case \"azure_ai_search\":\n return convertAzureAISearchToolDefinition(source as PublicModels.AzureAISearchToolDefinition);\n default:\n throw new Error(`Unknown tool type: ${source.type}`);\n }\n}\n\nfunction convertCodeInterpreterToolDefinition(\n source: PublicModels.CodeInterpreterToolDefinition,\n): GeneratedModels.CodeInterpreterToolDefinition {\n return {\n type: source.type,\n };\n}\n\nfunction convertFileSearchToolDefinition(\n source: PublicModels.FileSearchToolDefinition,\n): GeneratedModels.FileSearchToolDefinition {\n return {\n type: source.type,\n ...(source.fileSearch && {\n file_search: convertFileSearchToolDefinitionDetails(source.fileSearch),\n }),\n };\n}\n\nfunction convertFunctionToolDefinition(\n source: PublicModels.FunctionToolDefinition,\n): GeneratedModels.FunctionToolDefinition {\n return {\n type: source.type,\n function: convertFunctionDefinition(source.function),\n };\n}\n\nfunction convertBingGroundingToolDefinition(\n source: PublicModels.BingGroundingToolDefinition,\n): GeneratedModels.BingGroundingToolDefinition {\n return {\n type: source.type,\n bing_grounding: convertToolConnectionList(source.bingGrounding),\n };\n}\n\nfunction convertMicrosoftFabricToolDefinition(\n source: PublicModels.MicrosoftFabricToolDefinition,\n): GeneratedModels.MicrosoftFabricToolDefinition {\n return {\n type: source.type,\n microsoft_fabric: convertToolConnectionList(source.microsoftFabric),\n };\n}\n\nfunction convertSharepointToolDefinition(\n source: PublicModels.SharepointToolDefinition,\n): GeneratedModels.SharepointToolDefinition {\n return {\n type: source.type,\n sharepoint_grounding: convertToolConnectionList(source.sharepointGrounding),\n };\n}\n\nfunction convertAzureAISearchToolDefinition(\n source: PublicModels.AzureAISearchToolDefinition,\n): GeneratedModels.AzureAISearchToolDefinition {\n return {\n type: source.type,\n };\n}\n\nfunction convertFileSearchToolDefinitionDetails(\n source: PublicModels.FileSearchToolDefinitionDetails,\n): GeneratedModels.FileSearchToolDefinitionDetails {\n return {\n ...(source.maxNumResults && { max_num_results: source.maxNumResults }),\n ...(source.rankingOptions && {\n ranking_options: convertFileSearchRankingOptions(source.rankingOptions),\n }),\n };\n}\n\nfunction convertFileSearchRankingOptions(\n source: PublicModels.FileSearchRankingOptions,\n): GeneratedModels.FileSearchRankingOptions {\n return {\n ranker: source.ranker,\n score_threshold: source.scoreThreshold,\n };\n}\n\nfunction convertCodeInterpreterToolResource(\n source: PublicModels.CodeInterpreterToolResource,\n): GeneratedModels.CodeInterpreterToolResource {\n return {\n file_ids: source.fileIds,\n ...(source.dataSources && {\n data_sources: source.dataSources.map(convertVectorStoreDataSource),\n }),\n };\n}\n\nexport function convertVectorStoreDataSource(\n source: PublicModels.VectorStoreDataSource,\n): GeneratedModels.VectorStoreDataSource {\n return {\n uri: source.uri,\n type: source.type,\n };\n}\n\nfunction convertFileSearchToolResource(\n source: PublicModels.FileSearchToolResource,\n): GeneratedModels.FileSearchToolResource {\n return {\n ...(source.vectorStoreIds && { vector_store_ids: source.vectorStoreIds }),\n ...(source.vectorStores && {\n vector_stores: source.vectorStores.map(convertVectorStoreConfigurations),\n }),\n };\n}\n\nfunction convertVectorStoreConfigurations(\n source: PublicModels.VectorStoreConfigurations,\n): GeneratedModels.VectorStoreConfigurations {\n return {\n name: source.name,\n configuration: convertVectorStoreConfiguration(source.configuration),\n };\n}\n\nfunction convertVectorStoreConfiguration(\n source: PublicModels.VectorStoreConfiguration,\n): GeneratedModels.VectorStoreConfiguration {\n return {\n data_sources: source.dataSources.map(convertVectorStoreDataSource),\n };\n}\n\nfunction convertAzureAISearchResource(\n source: PublicModels.AzureAISearchResource,\n): GeneratedModels.AzureAISearchResource {\n return {\n ...(source.indexes && { indexes: source.indexes.map(convertIndexResource) }),\n };\n}\n\nfunction convertIndexResource(source: PublicModels.IndexResource): GeneratedModels.IndexResource {\n return {\n index_connection_id: source.indexConnectionId,\n index_name: source.indexName,\n };\n}\n\nexport function convertUpdateAgentOptions(\n source: PublicModels.UpdateAgentOptions,\n): GeneratedModels.UpdateAgentOptions {\n return {\n ...(source.model && { model: source.model }),\n ...(source.name && { name: source.name }),\n ...(source.description && { description: source.description }),\n ...(source.instructions && { instructions: source.instructions }),\n ...(source.tools && { tools: source.tools.map(convertToolDefinition) }),\n ...(source.toolResources && { tool_resources: convertToolResources(source.toolResources) }),\n ...(source.temperature !== undefined && { temperature: source.temperature }),\n ...(source.topP !== undefined && { top_p: source.topP }),\n ...(source.responseFormat && { response_format: source.responseFormat }),\n ...(source.metadata && { metadata: source.metadata }),\n };\n}\n\nexport function convertAgentThreadCreationOptions(\n source: PublicModels.AgentThreadCreationOptions,\n): GeneratedModels.AgentThreadCreationOptions {\n return {\n ...(source.messages && { messages: source.messages.map(convertThreadMessageOptions) }),\n ...(source.toolResources && { tool_resources: convertToolResources(source.toolResources) }),\n ...(source.metadata && { metadata: source.metadata }),\n };\n}\n\nexport function convertAgentThreadUpdateOptions(\n source: PublicModels.UpdateAgentThreadOptions,\n): GeneratedModels.UpdateAgentThreadOptions {\n return {\n ...(source.toolResources && { tool_resources: convertToolResources(source.toolResources) }),\n ...(source.metadata && { metadata: source.metadata }),\n };\n}\n\nfunction convertThreadMessageOptions(\n source: PublicModels.ThreadMessageOptions,\n): GeneratedModels.ThreadMessageOptions {\n return {\n role: source.role,\n content: source.content,\n ...(source.attachments && { attachments: source.attachments.map(convertMessageAttachment) }),\n ...(source.metadata && { metadata: source.metadata }),\n };\n}\n\nfunction convertMessageAttachment(\n source: PublicModels.MessageAttachment,\n): GeneratedModels.MessageAttachment {\n return {\n file_id: source.fileId,\n ...(source.dataSources && {\n data_sources: source.dataSources.map(convertVectorStoreDataSource),\n }),\n ...(source.tools && { tools: source.tools.map(convertMessageAttachmentToolDefinition) }),\n };\n}\n\nexport function convertCreateRunOptions(\n source: PublicModels.CreateRunOptions,\n): GeneratedModels.CreateRunOptions {\n return {\n assistant_id: source.assistantId,\n ...(source.model && { model: source.model }),\n ...(source.instructions && { instructions: source.instructions }),\n ...(source.additionalInstructions && {\n additional_instructions: source.additionalInstructions,\n }),\n ...(source.additionalMessages && {\n additional_messages: source.additionalMessages.map(convertThreadMessage),\n }),\n ...(source.tools && { tools: source.tools.map(convertToolDefinition) }),\n ...(source.stream !== undefined && { stream: source.stream }),\n ...(source.temperature !== undefined && { temperature: source.temperature }),\n ...(source.topP !== undefined && { top_p: source.topP }),\n ...(source.maxPromptTokens !== undefined && { max_prompt_tokens: source.maxPromptTokens }),\n ...(source.maxCompletionTokens !== undefined && {\n max_completion_tokens: source.maxCompletionTokens,\n }),\n ...(source.truncationStrategy && {\n truncation_strategy: convertTruncationObject(source.truncationStrategy),\n }),\n ...(source.toolChoice && { tool_choice: source.toolChoice }),\n ...(source.responseFormat && { response_format: source.responseFormat }),\n ...(source.metadata && { metadata: source.metadata }),\n };\n}\n\nfunction convertTruncationObject(\n source: PublicModels.TruncationObject,\n): GeneratedModels.TruncationObject {\n return {\n type: source.type,\n ...(source.lastMessages !== undefined && { last_messages: source.lastMessages }),\n };\n}\n\nfunction convertUpdateToolResourcesOptions(\n source: PublicModels.UpdateToolResourcesOptions,\n): GeneratedModels.UpdateToolResourcesOptions {\n return {\n ...(source.codeInterpreter && {\n code_interpreter: convertUpdateCodeInterpreterToolResourceOptions(source.codeInterpreter),\n }),\n ...(source.fileSearch && {\n file_search: convertUpdateFileSearchToolResourceOptions(source.fileSearch),\n }),\n ...(source.azureAISearch && {\n azure_ai_search: convertAzureAISearchResource(source.azureAISearch),\n }),\n };\n}\n\nfunction convertUpdateCodeInterpreterToolResourceOptions(\n source: PublicModels.UpdateCodeInterpreterToolResourceOptions,\n): GeneratedModels.UpdateCodeInterpreterToolResourceOptions {\n return {\n ...(source.fileIds && { file_ids: source.fileIds }),\n };\n}\n\nfunction convertUpdateFileSearchToolResourceOptions(\n source: PublicModels.UpdateFileSearchToolResourceOptions,\n): GeneratedModels.UpdateFileSearchToolResourceOptions {\n return {\n ...(source.vectorStoreIds && { vector_store_ids: source.vectorStoreIds }),\n };\n}\n\nexport function convertToolOutput(source: PublicModels.ToolOutput): GeneratedModels.ToolOutput {\n return {\n ...(source.toolCallId !== undefined && { tool_call_id: source.toolCallId }),\n ...(source.output !== undefined && { output: source.output }),\n };\n}\n\nexport function convertCreateAndRunThreadOptions(\n source: PublicModels.CreateAndRunThreadOptions,\n): GeneratedModels.CreateAndRunThreadOptions {\n return {\n assistant_id: source.assistantId,\n ...(source.thread && { thread: convertAgentThreadCreationOptions(source.thread) }),\n ...(source.model && { model: source.model }),\n ...(source.instructions && { instructions: source.instructions }),\n ...(source.tools && { tools: source.tools.map(convertToolDefinition) }),\n ...(source.toolResources && {\n tool_resources: convertUpdateToolResourcesOptions(source.toolResources),\n }),\n ...(source.stream !== undefined && { stream: source.stream }),\n ...(source.temperature !== undefined && { temperature: source.temperature }),\n ...(source.topP !== undefined && { top_p: source.topP }),\n ...(source.maxPromptTokens !== undefined && { max_prompt_tokens: source.maxPromptTokens }),\n ...(source.maxCompletionTokens !== undefined && {\n max_completion_tokens: source.maxCompletionTokens,\n }),\n ...(source.truncationStrategy && {\n truncation_strategy: convertTruncationObject(source.truncationStrategy),\n }),\n ...(source.toolChoice && { tool_choice: source.toolChoice }),\n ...(source.responseFormat && { response_format: source.responseFormat }),\n ...(source.metadata && { metadata: source.metadata }),\n };\n}\n\nfunction convertVectorStoreExpirationPolicy(\n source: PublicModels.VectorStoreExpirationPolicy,\n): GeneratedModels.VectorStoreExpirationPolicy {\n return {\n anchor: source.anchor,\n days: source.days,\n };\n}\n\nexport function convertVectorStoreOptions(\n source: PublicModels.VectorStoreOptions,\n): GeneratedModels.VectorStoreOptions {\n return {\n ...(source.fileIds && { file_ids: source.fileIds }),\n ...(source.name && { name: source.name }),\n ...(source.configuration && {\n configuration: convertVectorStoreConfiguration(source.configuration),\n }),\n ...(source.expiresAfter && {\n expires_after: convertVectorStoreExpirationPolicy(source.expiresAfter),\n }),\n ...(source.chunkingStrategy && {\n chunking_strategy: convertVectorStoreChunkingStrategyRequest(source.chunkingStrategy),\n }),\n ...(source.metadata && { metadata: source.metadata }),\n };\n}\n\nexport function convertVectorStoreChunkingStrategyRequest(\n source: PublicModels.VectorStoreChunkingStrategyRequest,\n): GeneratedModels.VectorStoreChunkingStrategyRequest {\n switch (source.type) {\n case \"auto\":\n return source as GeneratedModels.VectorStoreAutoChunkingStrategyRequest;\n case \"static\":\n return convertVectorStoreStaticChunkingStrategyRequest(\n source as PublicModels.VectorStoreStaticChunkingStrategyRequest,\n );\n default:\n throw new Error(`Unknown chunking strategy type: ${source.type}`);\n }\n}\n\nfunction convertVectorStoreStaticChunkingStrategyRequest(\n source: PublicModels.VectorStoreStaticChunkingStrategyRequest,\n): GeneratedModels.VectorStoreStaticChunkingStrategyRequest {\n return {\n ...source,\n static: convertVectorStoreStaticChunkingStrategyOptions(source.static),\n };\n}\n\nfunction convertVectorStoreStaticChunkingStrategyOptions(\n source: PublicModels.VectorStoreStaticChunkingStrategyOptions,\n): GeneratedModels.VectorStoreStaticChunkingStrategyOptions {\n return {\n max_chunk_size_tokens: source.maxChunkSizeTokens,\n chunk_overlap_tokens: source.chunkOverlapTokens,\n };\n}\n\nexport function convertVectorStoreUpdateOptions(\n source: PublicModels.VectorStoreUpdateOptions,\n): GeneratedModels.VectorStoreUpdateOptions {\n return {\n ...(source.name && { name: source.name }),\n ...(source.expiresAfter && {\n expires_after: convertVectorStoreExpirationPolicy(source.expiresAfter),\n }),\n ...(source.metadata && { metadata: source.metadata }),\n };\n}\n\nfunction convertFunctionDefinition(\n source: PublicModels.FunctionDefinition,\n): GeneratedModels.FunctionDefinition {\n return {\n name: source.name,\n ...(source.description && { description: source.description }),\n parameters: source.parameters,\n };\n}\n\nfunction convertToolConnectionList(\n source: PublicModels.ToolConnectionList,\n): GeneratedModels.ToolConnectionList {\n return {\n ...(source.connections && { connections: source.connections.map(convertToolConnection) }),\n };\n}\n\nfunction convertToolConnection(\n source: PublicModels.ToolConnection,\n): GeneratedModels.ToolConnection {\n return {\n connection_id: source.connectionId,\n };\n}\n\nfunction convertThreadMessage(source: PublicModels.ThreadMessage): GeneratedModels.ThreadMessage {\n return {\n id: source.id,\n object: source.object,\n created_at: source.createdAt,\n thread_id: source.threadId,\n status: source.status,\n incomplete_details: !source.incompleteDetails\n ? source.incompleteDetails\n : convertMessageIncompleteDetails(source.incompleteDetails),\n completed_at: source.completedAt,\n incomplete_at: source.incompleteAt,\n role: source.role,\n content: source.content.map(convertMessageContent),\n assistant_id: source.assistantId,\n run_id: source.runId,\n attachments: !source.attachments\n ? source.attachments\n : source.attachments?.map(convertMessageAttachment),\n metadata: source.metadata,\n };\n}\n\nfunction convertMessageIncompleteDetails(\n source: PublicModels.MessageIncompleteDetails,\n): GeneratedModels.MessageIncompleteDetails {\n return {\n reason: source.reason,\n };\n}\n\nfunction convertMessageContent(\n source: PublicModels.MessageContent,\n): GeneratedModels.MessageContent {\n switch (source.type) {\n case \"text\":\n return convertMessageTextContent(source as PublicModels.MessageTextContent);\n case \"image_file\":\n return convertMessageImageFileContent(source as PublicModels.MessageImageFileContent);\n default:\n throw new Error(`Unknown message content type: ${source.type}`);\n }\n}\n\nfunction convertMessageTextContent(\n source: PublicModels.MessageTextContent,\n): GeneratedModels.MessageTextContent {\n return {\n type: \"text\",\n text: convertMessageTextDetails(source.text),\n };\n}\n\nfunction convertMessageTextDetails(\n source: PublicModels.MessageTextDetails,\n): GeneratedModels.MessageTextDetails {\n return {\n value: source.value,\n annotations: source.annotations.map(convertMessageTextAnnotation),\n };\n}\n\nfunction convertMessageTextAnnotation(\n source: PublicModels.MessageTextAnnotation,\n): GeneratedModels.MessageTextAnnotation {\n switch (source.type) {\n case \"file_citation\":\n return convertMessageTextFileCitationAnnotation(\n source as PublicModels.MessageTextFileCitationAnnotation,\n );\n case \"file_path\":\n return convertMessageTextFilePathAnnotation(\n source as PublicModels.MessageTextFilePathAnnotation,\n );\n default:\n throw new Error(`Unknown message text annotation type: ${source.type}`);\n }\n}\n\nfunction convertMessageTextFileCitationAnnotation(\n source: PublicModels.MessageTextFileCitationAnnotation,\n): GeneratedModels.MessageTextFileCitationAnnotation {\n return {\n text: source.text,\n type: \"file_citation\",\n file_citation: convertMessageTextFileCitationDetails(source.fileCitation),\n ...(source.startIndex && { start_index: source.startIndex }),\n ...(source.endIndex && { end_index: source.endIndex }),\n };\n}\n\nfunction convertMessageTextFileCitationDetails(\n source: PublicModels.MessageTextFileCitationDetails,\n): GeneratedModels.MessageTextFileCitationDetails {\n return {\n file_id: source.fileId,\n quote: source.quote,\n };\n}\n\nfunction convertMessageTextFilePathAnnotation(\n source: PublicModels.MessageTextFilePathAnnotation,\n): GeneratedModels.MessageTextFilePathAnnotation {\n return {\n text: source.text,\n type: \"file_path\",\n file_path: convertMessageTextFilePathDetails(source.filePath),\n ...(source.startIndex && { start_index: source.startIndex }),\n ...(source.endIndex && { end_index: source.endIndex }),\n };\n}\n\nfunction convertMessageTextFilePathDetails(\n source: PublicModels.MessageTextFilePathDetails,\n): GeneratedModels.MessageTextFilePathDetails {\n return {\n file_id: source.fileId,\n };\n}\n\nfunction convertMessageImageFileContent(\n source: PublicModels.MessageImageFileContent,\n): GeneratedModels.MessageImageFileContent {\n return {\n type: \"image_file\",\n image_file: convertMessageImageFileDetails(source.imageFile),\n };\n}\n\nfunction convertMessageImageFileDetails(\n source: PublicModels.MessageImageFileDetails,\n): GeneratedModels.MessageImageFileDetails {\n return {\n file_id: source.fileId,\n };\n}\n"]}
1
+ {"version":3,"file":"convertModelsToWrite.js","sourceRoot":"","sources":["../../../src/customization/convertModelsToWrite.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAKlC,uBAAuB;AACvB,MAAM,UAAU,yBAAyB,CACvC,MAAuC;IAEvC,uIACE,KAAK,EAAE,MAAM,CAAC,KAAK,IAChB,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC,GACtC,CAAC,MAAM,CAAC,WAAW,IAAI,EAAE,WAAW,EAAE,MAAM,CAAC,WAAW,EAAE,CAAC,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C,GACtC,CAAC,MAAM,CAAC,YAAY,IAAI;QACzB,aAAa,EAAE,kCAAkC,CAAC,MAAM,CAAC,YAAY,CAAC;KACvE,CAAC,GACC,CAAC,MAAM,CAAC,QAAQ,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC,EACrD;AACJ,CAAC;AAED,SAAS,yBAAyB,CAChC,MAAuC;IAEvC,qCACE,IAAI,EAAE,MAAM,CAAC,IAAI,IACd,CAAC,MAAM,CAAC,WAAW,IAAI,EAAE,WAAW,EAAE,MAAM,CAAC,WAAW,EAAE,CAAC,KAC9D,UAAU,EAAE,MAAM,CAAC,UAAU,IAC7B;AACJ,CAAC;AAED,SAAS,yBAAyB,CAChC,MAAuC;IAEvC,yBACK,CAAC,MAAM,CAAC,WAAW,IAAI,EAAE,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,qBAAqB,CAAC,EAAE,CAAC,EACzF;AACJ,CAAC;AAED,SAAS,qBAAqB,CAC5B,MAAmC;IAEnC,OAAO;QACL,aAAa,EAAE,MAAM,CAAC,YAAY;KACnC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type * as PublicModels from \"./models.js\";\nimport type * as GeneratedModels from \"../generated/src/models.js\";\n\n// Conversion functions\nexport function convertCreateAgentOptions(\n source: PublicModels.CreateAgentOptions,\n): GeneratedModels.CreateAgentOptions {\n return {\n model: source.model,\n ...(source.name && { name: source.name }),\n ...(source.description && { description: source.description }),\n ...(source.instructions && { instructions: source.instructions }),\n ...(source.tools && { tools: source.tools.map(convertToolDefinition) }),\n ...(source.toolResources && { tool_resources: convertToolResources(source.toolResources) }),\n ...(source.temperature !== undefined && { temperature: source.temperature }),\n ...(source.topP !== undefined && { top_p: source.topP }),\n ...(source.responseFormat && { response_format: source.responseFormat }),\n ...(source.metadata && { metadata: source.metadata }),\n };\n}\n\nfunction convertToolResources(source: PublicModels.ToolResources): GeneratedModels.ToolResources {\n return {\n ...(source.codeInterpreter && {\n code_interpreter: convertCodeInterpreterToolResource(source.codeInterpreter),\n }),\n ...(source.fileSearch && { file_search: convertFileSearchToolResource(source.fileSearch) }),\n ...(source.azureAISearch && {\n azure_ai_search: convertAzureAISearchResource(source.azureAISearch),\n }),\n ...(source.azureFunction && {\n name: source.azureFunction.name,\n }),\n };\n}\n\nfunction convertMessageAttachmentToolDefinition(\n source: PublicModels.MessageAttachmentToolDefinition,\n): GeneratedModels.MessageAttachmentToolDefinition {\n switch (source.type) {\n case \"code_interpreter\":\n return convertCodeInterpreterToolDefinition(\n source as PublicModels.CodeInterpreterToolDefinition,\n );\n case \"file_search\":\n return convertFileSearchToolDefinition(source as PublicModels.FileSearchToolDefinition);\n default:\n throw new Error(`Unknown tool type: ${source}`);\n }\n}\n\nfunction convertToolDefinition(\n source: PublicModels.ToolDefinition,\n): GeneratedModels.ToolDefinition {\n switch (source.type) {\n case \"code_interpreter\":\n return convertCodeInterpreterToolDefinition(\n source as PublicModels.CodeInterpreterToolDefinition,\n );\n case \"file_search\":\n return convertFileSearchToolDefinition(source as PublicModels.FileSearchToolDefinition);\n case \"function\":\n return convertFunctionToolDefinition(source as PublicModels.FunctionToolDefinition);\n case \"bing_grounding\":\n return convertBingGroundingToolDefinition(source as PublicModels.BingGroundingToolDefinition);\n case \"microsoft_fabric\":\n return convertMicrosoftFabricToolDefinition(\n source as PublicModels.MicrosoftFabricToolDefinition,\n );\n case \"sharepoint_grounding\":\n return convertSharepointToolDefinition(source as PublicModels.SharepointToolDefinition);\n case \"azure_ai_search\":\n return convertAzureAISearchToolDefinition(source as PublicModels.AzureAISearchToolDefinition);\n case \"openapi\":\n return convertOpenApiToolDefinition(source as PublicModels.OpenApiToolDefinition);\n case \"azure_function\":\n return convertAzureFunctionToolDefinition(source as PublicModels.AzureFunctionToolDefinition);\n default:\n throw new Error(`Unknown tool type: ${source.type}`);\n }\n}\n\nfunction convertCodeInterpreterToolDefinition(\n source: PublicModels.CodeInterpreterToolDefinition,\n): GeneratedModels.CodeInterpreterToolDefinition {\n return {\n type: source.type,\n };\n}\n\nfunction convertFileSearchToolDefinition(\n source: PublicModels.FileSearchToolDefinition,\n): GeneratedModels.FileSearchToolDefinition {\n return {\n type: source.type,\n ...(source.fileSearch && {\n file_search: convertFileSearchToolDefinitionDetails(source.fileSearch),\n }),\n };\n}\n\nfunction convertFunctionToolDefinition(\n source: PublicModels.FunctionToolDefinition,\n): GeneratedModels.FunctionToolDefinition {\n return {\n type: source.type,\n function: convertFunctionDefinition(source.function),\n };\n}\n\nfunction convertBingGroundingToolDefinition(\n source: PublicModels.BingGroundingToolDefinition,\n): GeneratedModels.BingGroundingToolDefinition {\n return {\n type: source.type,\n bing_grounding: convertToolConnectionList(source.bingGrounding),\n };\n}\n\nfunction convertMicrosoftFabricToolDefinition(\n source: PublicModels.MicrosoftFabricToolDefinition,\n): GeneratedModels.MicrosoftFabricToolDefinition {\n return {\n type: source.type,\n fabric_aiskill: convertToolConnectionList(source.fabricAISkill),\n };\n}\n\nfunction convertSharepointToolDefinition(\n source: PublicModels.SharepointToolDefinition,\n): GeneratedModels.SharepointToolDefinition {\n return {\n type: source.type,\n sharepoint_grounding: convertToolConnectionList(source.sharepointGrounding),\n };\n}\n\nfunction convertAzureAISearchToolDefinition(\n source: PublicModels.AzureAISearchToolDefinition,\n): GeneratedModels.AzureAISearchToolDefinition {\n return {\n type: source.type,\n };\n}\n\nfunction convertOpenApiToolDefinition(\n source: PublicModels.OpenApiToolDefinition,\n): GeneratedModels.OpenApiToolDefinition {\n return {\n type: source.type,\n openapi: source.openapi,\n };\n}\n\nfunction convertFileSearchToolDefinitionDetails(\n source: PublicModels.FileSearchToolDefinitionDetails,\n): GeneratedModels.FileSearchToolDefinitionDetails {\n return {\n ...(source.maxNumResults && { max_num_results: source.maxNumResults }),\n ...(source.rankingOptions && {\n ranking_options: convertFileSearchRankingOptions(source.rankingOptions),\n }),\n };\n}\n\nfunction convertFileSearchRankingOptions(\n source: PublicModels.FileSearchRankingOptions,\n): GeneratedModels.FileSearchRankingOptions {\n return {\n ranker: source.ranker,\n score_threshold: source.scoreThreshold,\n };\n}\n\nfunction convertCodeInterpreterToolResource(\n source: PublicModels.CodeInterpreterToolResource,\n): GeneratedModels.CodeInterpreterToolResource {\n return {\n file_ids: source.fileIds,\n ...(source.dataSources && {\n data_sources: source.dataSources.map(convertVectorStoreDataSource),\n }),\n };\n}\n\nexport function convertVectorStoreDataSource(\n source: PublicModels.VectorStoreDataSource,\n): GeneratedModels.VectorStoreDataSource {\n return {\n uri: source.uri,\n type: source.type,\n };\n}\n\nfunction convertFileSearchToolResource(\n source: PublicModels.FileSearchToolResource,\n): GeneratedModels.FileSearchToolResource {\n return {\n ...(source.vectorStoreIds && { vector_store_ids: source.vectorStoreIds }),\n ...(source.vectorStores && {\n vector_stores: source.vectorStores.map(convertVectorStoreConfigurations),\n }),\n };\n}\n\nfunction convertAzureFunctionToolDefinition(\n source: PublicModels.AzureFunctionToolDefinition,\n): GeneratedModels.AzureFunctionToolDefinition {\n return {\n type: source.type,\n azure_function: convertAzureFunctionDefinition(source.azureFunction),\n };\n}\n\nfunction convertAzureFunctionDefinition(\n source: PublicModels.AzureFunctionDefinition,\n): GeneratedModels.AzureFunctionDefinition {\n return {\n function: source.function,\n input_binding: {\n type: source.inputBinding.type,\n storage_queue: {\n queue_service_endpoint: source.inputBinding.storageQueue.queueServiceEndpoint,\n queue_name: source.inputBinding.storageQueue.queueName,\n },\n },\n output_binding: {\n type: source.outputBinding.type,\n storage_queue: {\n queue_service_endpoint: source.outputBinding.storageQueue.queueServiceEndpoint,\n queue_name: source.outputBinding.storageQueue.queueName,\n },\n },\n };\n}\n\nfunction convertVectorStoreConfigurations(\n source: PublicModels.VectorStoreConfigurations,\n): GeneratedModels.VectorStoreConfigurations {\n return {\n name: source.name,\n configuration: convertVectorStoreConfiguration(source.configuration),\n };\n}\n\nfunction convertVectorStoreConfiguration(\n source: PublicModels.VectorStoreConfiguration,\n): GeneratedModels.VectorStoreConfiguration {\n return {\n data_sources: source.dataSources.map(convertVectorStoreDataSource),\n };\n}\n\nfunction convertAzureAISearchResource(\n source: PublicModels.AzureAISearchResource,\n): GeneratedModels.AzureAISearchResource {\n return {\n ...(source.indexes && { indexes: source.indexes.map(convertIndexResource) }),\n };\n}\n\nfunction convertIndexResource(source: PublicModels.IndexResource): GeneratedModels.IndexResource {\n return {\n index_connection_id: source.indexConnectionId,\n index_name: source.indexName,\n };\n}\n\nexport function convertUpdateAgentOptions(\n source: PublicModels.UpdateAgentOptions,\n): GeneratedModels.UpdateAgentOptions {\n return {\n ...(source.model && { model: source.model }),\n ...(source.name && { name: source.name }),\n ...(source.description && { description: source.description }),\n ...(source.instructions && { instructions: source.instructions }),\n ...(source.tools && { tools: source.tools.map(convertToolDefinition) }),\n ...(source.toolResources && { tool_resources: convertToolResources(source.toolResources) }),\n ...(source.temperature !== undefined && { temperature: source.temperature }),\n ...(source.topP !== undefined && { top_p: source.topP }),\n ...(source.responseFormat && { response_format: source.responseFormat }),\n ...(source.metadata && { metadata: source.metadata }),\n };\n}\n\nexport function convertAgentThreadCreationOptions(\n source: PublicModels.AgentThreadCreationOptions,\n): GeneratedModels.AgentThreadCreationOptions {\n return {\n ...(source.messages && { messages: source.messages.map(convertThreadMessageOptions) }),\n ...(source.toolResources && { tool_resources: convertToolResources(source.toolResources) }),\n ...(source.metadata && { metadata: source.metadata }),\n };\n}\n\nexport function convertAgentThreadUpdateOptions(\n source: PublicModels.UpdateAgentThreadOptions,\n): GeneratedModels.UpdateAgentThreadOptions {\n return {\n ...(source.toolResources && { tool_resources: convertToolResources(source.toolResources) }),\n ...(source.metadata && { metadata: source.metadata }),\n };\n}\n\nfunction convertThreadMessageOptions(\n source: PublicModels.ThreadMessageOptions,\n): GeneratedModels.ThreadMessageOptions {\n return {\n role: source.role,\n content: source.content,\n ...(source.attachments && { attachments: source.attachments.map(convertMessageAttachment) }),\n ...(source.metadata && { metadata: source.metadata }),\n };\n}\n\nfunction convertMessageAttachment(\n source: PublicModels.MessageAttachment,\n): GeneratedModels.MessageAttachment {\n return {\n file_id: source.fileId,\n ...(source.dataSource && {\n data_source: convertVectorStoreDataSource(source.dataSource),\n }),\n ...(source.tools && { tools: source.tools.map(convertMessageAttachmentToolDefinition) }),\n };\n}\n\nexport function convertCreateRunOptions(\n source: PublicModels.CreateRunOptions,\n): GeneratedModels.CreateRunOptions {\n return {\n assistant_id: source.assistantId,\n ...(source.model && { model: source.model }),\n ...(source.instructions && { instructions: source.instructions }),\n ...(source.additionalInstructions && {\n additional_instructions: source.additionalInstructions,\n }),\n ...(source.additionalMessages && {\n additional_messages: source.additionalMessages.map(convertThreadMessageOptions),\n }),\n ...(source.tools && { tools: source.tools.map(convertToolDefinition) }),\n ...(source.stream !== undefined && { stream: source.stream }),\n ...(source.temperature !== undefined && { temperature: source.temperature }),\n ...(source.topP !== undefined && { top_p: source.topP }),\n ...(source.maxPromptTokens !== undefined && { max_prompt_tokens: source.maxPromptTokens }),\n ...(source.maxCompletionTokens !== undefined && {\n max_completion_tokens: source.maxCompletionTokens,\n }),\n ...(source.truncationStrategy && {\n truncation_strategy: convertTruncationObject(source.truncationStrategy),\n }),\n ...(source.toolChoice && { tool_choice: source.toolChoice }),\n ...(source.responseFormat && { response_format: source.responseFormat }),\n ...(source.metadata && { metadata: source.metadata }),\n };\n}\n\nfunction convertTruncationObject(\n source: PublicModels.TruncationObject,\n): GeneratedModels.TruncationObject {\n return {\n type: source.type,\n ...(source.lastMessages !== undefined && { last_messages: source.lastMessages }),\n };\n}\n\nfunction convertUpdateToolResourcesOptions(\n source: PublicModels.UpdateToolResourcesOptions,\n): GeneratedModels.UpdateToolResourcesOptions {\n return {\n ...(source.codeInterpreter && {\n code_interpreter: convertUpdateCodeInterpreterToolResourceOptions(source.codeInterpreter),\n }),\n ...(source.fileSearch && {\n file_search: convertUpdateFileSearchToolResourceOptions(source.fileSearch),\n }),\n ...(source.azureAISearch && {\n azure_ai_search: convertAzureAISearchResource(source.azureAISearch),\n }),\n };\n}\n\nfunction convertUpdateCodeInterpreterToolResourceOptions(\n source: PublicModels.UpdateCodeInterpreterToolResourceOptions,\n): GeneratedModels.UpdateCodeInterpreterToolResourceOptions {\n return {\n ...(source.fileIds && { file_ids: source.fileIds }),\n };\n}\n\nfunction convertUpdateFileSearchToolResourceOptions(\n source: PublicModels.UpdateFileSearchToolResourceOptions,\n): GeneratedModels.UpdateFileSearchToolResourceOptions {\n return {\n ...(source.vectorStoreIds && { vector_store_ids: source.vectorStoreIds }),\n };\n}\n\nexport function convertToolOutput(source: PublicModels.ToolOutput): GeneratedModels.ToolOutput {\n return {\n ...(source.toolCallId !== undefined && { tool_call_id: source.toolCallId }),\n ...(source.output !== undefined && { output: source.output }),\n };\n}\n\nexport function convertCreateAndRunThreadOptions(\n source: PublicModels.CreateAndRunThreadOptions,\n): GeneratedModels.CreateAndRunThreadOptions {\n return {\n assistant_id: source.assistantId,\n ...(source.thread && { thread: convertAgentThreadCreationOptions(source.thread) }),\n ...(source.model && { model: source.model }),\n ...(source.instructions && { instructions: source.instructions }),\n ...(source.tools && { tools: source.tools.map(convertToolDefinition) }),\n ...(source.toolResources && {\n tool_resources: convertUpdateToolResourcesOptions(source.toolResources),\n }),\n ...(source.stream !== undefined && { stream: source.stream }),\n ...(source.temperature !== undefined && { temperature: source.temperature }),\n ...(source.topP !== undefined && { top_p: source.topP }),\n ...(source.maxPromptTokens !== undefined && { max_prompt_tokens: source.maxPromptTokens }),\n ...(source.maxCompletionTokens !== undefined && {\n max_completion_tokens: source.maxCompletionTokens,\n }),\n ...(source.truncationStrategy && {\n truncation_strategy: convertTruncationObject(source.truncationStrategy),\n }),\n ...(source.toolChoice && { tool_choice: source.toolChoice }),\n ...(source.responseFormat && { response_format: source.responseFormat }),\n ...(source.metadata && { metadata: source.metadata }),\n };\n}\n\nfunction convertVectorStoreExpirationPolicy(\n source: PublicModels.VectorStoreExpirationPolicy,\n): GeneratedModels.VectorStoreExpirationPolicy {\n return {\n anchor: source.anchor,\n days: source.days,\n };\n}\n\nexport function convertVectorStoreOptions(\n source: PublicModels.VectorStoreOptions,\n): GeneratedModels.VectorStoreOptions {\n return {\n ...(source.fileIds && { file_ids: source.fileIds }),\n ...(source.name && { name: source.name }),\n ...(source.configuration && {\n configuration: convertVectorStoreConfiguration(source.configuration),\n }),\n ...(source.expiresAfter && {\n expires_after: convertVectorStoreExpirationPolicy(source.expiresAfter),\n }),\n ...(source.chunkingStrategy && {\n chunking_strategy: convertVectorStoreChunkingStrategyRequest(source.chunkingStrategy),\n }),\n ...(source.metadata && { metadata: source.metadata }),\n };\n}\n\nexport function convertVectorStoreChunkingStrategyRequest(\n source: PublicModels.VectorStoreChunkingStrategyRequest,\n): GeneratedModels.VectorStoreChunkingStrategyRequest {\n switch (source.type) {\n case \"auto\":\n return source as GeneratedModels.VectorStoreAutoChunkingStrategyRequest;\n case \"static\":\n return convertVectorStoreStaticChunkingStrategyRequest(\n source as PublicModels.VectorStoreStaticChunkingStrategyRequest,\n );\n default:\n throw new Error(`Unknown chunking strategy type: ${source.type}`);\n }\n}\n\nfunction convertVectorStoreStaticChunkingStrategyRequest(\n source: PublicModels.VectorStoreStaticChunkingStrategyRequest,\n): GeneratedModels.VectorStoreStaticChunkingStrategyRequest {\n return {\n ...source,\n static: convertVectorStoreStaticChunkingStrategyOptions(source.static),\n };\n}\n\nfunction convertVectorStoreStaticChunkingStrategyOptions(\n source: PublicModels.VectorStoreStaticChunkingStrategyOptions,\n): GeneratedModels.VectorStoreStaticChunkingStrategyOptions {\n return {\n max_chunk_size_tokens: source.maxChunkSizeTokens,\n chunk_overlap_tokens: source.chunkOverlapTokens,\n };\n}\n\nexport function convertVectorStoreUpdateOptions(\n source: PublicModels.VectorStoreUpdateOptions,\n): GeneratedModels.VectorStoreUpdateOptions {\n return {\n ...(source.name && { name: source.name }),\n ...(source.expiresAfter && {\n expires_after: convertVectorStoreExpirationPolicy(source.expiresAfter),\n }),\n ...(source.metadata && { metadata: source.metadata }),\n };\n}\n\nfunction convertFunctionDefinition(\n source: PublicModels.FunctionDefinition,\n): GeneratedModels.FunctionDefinition {\n return {\n name: source.name,\n ...(source.description && { description: source.description }),\n parameters: source.parameters,\n };\n}\n\nfunction convertToolConnectionList(\n source: PublicModels.ToolConnectionList,\n): GeneratedModels.ToolConnectionList {\n return {\n ...(source.connections && { connections: source.connections.map(convertToolConnection) }),\n };\n}\n\nfunction convertToolConnection(\n source: PublicModels.ToolConnection,\n): GeneratedModels.ToolConnection {\n return {\n connection_id: source.connectionId,\n };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"convertOutputModelsFromWire.d.ts","sourceRoot":"","sources":["../../../src/customization/convertOutputModelsFromWire.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,eAAe,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,KAAK,YAAY,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,KAAK,mBAAmB,MAAM,0BAA0B,CAAC;AACrE,OAAO,KAAK,KAAK,qBAAqB,MAAM,sBAAsB,CAAC;AAmLnE,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,eAAe,CAAC,WAAW,GAAG,YAAY,CAAC,WAAW,CAkB/F;AA4CD,wBAAgB,sCAAsC,CACpD,KAAK,EAAE,eAAe,CAAC,+BAA+B,GACrD,YAAY,CAAC,+BAA+B,CAQ9C;AAED,wBAAgB,gCAAgC,CAC9C,KAAK,EAAE,eAAe,CAAC,yBAAyB,GAC/C,YAAY,CAAC,yBAAyB,CAExC;AA6BD,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,eAAe,CAAC,iBAAiB,GACvC,YAAY,CAAC,iBAAiB,CAQhC;AAED,wBAAgB,iCAAiC,CAC/C,KAAK,EAAE,eAAe,CAAC,0BAA0B,GAChD,YAAY,CAAC,0BAA0B,CAEzC;AAED,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,eAAe,CAAC,mBAAmB,GACz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GACtC,YAAY,CAAC,gBAAgB,CAW/B;AAED,wBAAgB,6BAA6B,CAC3C,KAAK,EAAE,eAAe,CAAC,sBAAsB,GAC5C,YAAY,CAAC,sBAAsB,CAKrC;AAWD,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE,mBAAmB,CAAC,iBAAiB,GAC3C,qBAAqB,CAAC,iBAAiB,CAMzC;AAwHD,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,mBAAmB,CAAC,iBAAiB,GAC3C,qBAAqB,CAAC,iBAAiB,CAMzC"}
1
+ {"version":3,"file":"convertOutputModelsFromWire.d.ts","sourceRoot":"","sources":["../../../src/customization/convertOutputModelsFromWire.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,eAAe,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,KAAK,YAAY,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,KAAK,mBAAmB,MAAM,0BAA0B,CAAC;AACrE,OAAO,KAAK,KAAK,qBAAqB,MAAM,sBAAsB,CAAC;AA6MnE,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,eAAe,CAAC,WAAW,GAAG,YAAY,CAAC,WAAW,CAkB/F;AA6DD,wBAAgB,sCAAsC,CACpD,KAAK,EAAE,eAAe,CAAC,+BAA+B,GACrD,YAAY,CAAC,+BAA+B,CAQ9C;AAED,wBAAgB,gCAAgC,CAC9C,KAAK,EAAE,eAAe,CAAC,yBAAyB,GAC/C,YAAY,CAAC,yBAAyB,CAExC;AA6BD,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,eAAe,CAAC,iBAAiB,GACvC,YAAY,CAAC,iBAAiB,CAQhC;AAED,wBAAgB,iCAAiC,CAC/C,KAAK,EAAE,eAAe,CAAC,0BAA0B,GAChD,YAAY,CAAC,0BAA0B,CAEzC;AAED,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,eAAe,CAAC,mBAAmB,GACzC,YAAY,CAAC,mBAAmB,CAqBlC;AA+GD,wBAAgB,sB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AA6B,CAC3C,KAAK,EAAE,eAAe,CAAC,sBAAsB,GAC5C,YAAY,CAAC,sBAAsB,CAKrC;AAWD,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE,mBAAmB,CAAC,iBAAiB,GAC3C,qBAAqB,CAAC,iBAAiB,CAMzC;AAwHD,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,mBAAmB,CAAC,iBAAiB,GAC3C,qBAAqB,CAAC,iBAAiB,CAMzC"}
@@ -2,6 +2,18 @@
2
2
  // Licensed under the MIT License.
3
3
  import { logger } from "../logger.js";
4
4
  // Conversion functions
5
+ function convertAzureFunctionToolDefinitionOutput(input) {
6
+ return {
7
+ type: "azure_function",
8
+ azureFunction: Object.assign(Object.assign({}, input.azure_function), { inputBinding: Object.assign(Object.assign({}, input.azure_function.input_binding), { storageQueue: {
9
+ queueServiceEndpoint: input.azure_function.input_binding.storage_queue.queue_service_endpoint,
10
+ queueName: input.azure_function.input_binding.storage_queue.queue_name,
11
+ } }), outputBinding: Object.assign(Object.assign({}, input.azure_function.output_binding), { storageQueue: {
12
+ queueServiceEndpoint: input.azure_function.output_binding.storage_queue.queue_service_endpoint,
13
+ queueName: input.azure_function.output_binding.storage_queue.queue_name,
14
+ } }) }),
15
+ };
16
+ }
5
17
  function convertCodeInterpreterToolDefinitionOutput(input) {
6
18
  return Object.assign({}, input);
7
19
  }
@@ -53,8 +65,8 @@ function convertToolConnectionOutput(input) {
53
65
  }
54
66
  function convertMicrosoftFabricToolDefinitionOutput(input) {
55
67
  return {
56
- type: "microsoft_fabric",
57
- microsoftFabric: input.microsoft_fabric && convertToolConnectionListOutput(input.microsoft_fabric),
68
+ type: "fabric_aiskill",
69
+ fabricAISkill: input.fabric_aiskill && convertToolConnectionListOutput(input.fabric_aiskill),
58
70
  };
59
71
  }
60
72
  function convertSharepointToolDefinitionOutput(input) {
@@ -151,11 +163,26 @@ function convertToolDefinitionOutput(tool) {
151
163
  return convertSharepointToolDefinitionOutput(tool);
152
164
  case "azure_ai_search":
153
165
  return convertAzureAISearchToolDefinitionOutput(tool);
166
+ case "azure_function":
167
+ return convertAzureFunctionToolDefinitionOutput(tool);
154
168
  default:
155
169
  return tool;
156
170
  }
157
171
  }
158
172
  function convertAgentsApiResponseFormatOptionOutput(input) {
173
+ const formatOutput = input;
174
+ if (formatOutput && formatOutput.type) {
175
+ switch (formatOutput.type) {
176
+ case "json_schema":
177
+ return {
178
+ type: formatOutput.type,
179
+ jsonSchema: formatOutput
180
+ .json_schema,
181
+ };
182
+ default:
183
+ return input;
184
+ }
185
+ }
159
186
  return input;
160
187
  }
161
188
  export function convertOpenAIPageableListOfAgentOutput(input) {
@@ -171,11 +198,11 @@ export function convertAgentDeletionStatusOutput(input) {
171
198
  return Object.assign({}, input);
172
199
  }
173
200
  function convertMessageAttachmentOutput(input) {
174
- var _a, _b;
201
+ var _a;
175
202
  return {
176
203
  fileId: input.file_id,
177
- dataSources: (_a = input.data_sources) === null || _a === void 0 ? void 0 : _a.map(convertVectorStoreDataSourceOutput),
178
- tools: (_b = input.tools) === null || _b === void 0 ? void 0 : _b.map(convertMessageAttachmentToolDefinitionOutput),
204
+ dataSource: input.data_source && convertVectorStoreDataSourceOutput(input.data_source),
205
+ tools: (_a = input.tools) === null || _a === void 0 ? void 0 : _a.map(convertMessageAttachmentToolDefinitionOutput),
179
206
  };
180
207
  }
181
208
  function convertMessageAttachmentToolDefinitionOutput(input) {
@@ -301,7 +328,7 @@ export function convertThreadRunOutput(input) {
301
328
  ? convertTruncationObjectOutput(input.truncation_strategy)
302
329
  : null, toolChoice: input.tool_choice, responseFormat: input.response_format, metadata: input.metadata }), (input.tool_resources && {
303
330
  toolResources: convertToolResourcesOutput(input.tool_resources),
304
- })), { parallelToolCalls: input.parallelToolCalls });
331
+ })), { parallelToolCalls: input.parallel_tool_calls });
305
332
  }
306
333
  function convertRunCompletionUsageOutput(input) {
307
334
  return {
@@ -431,7 +458,22 @@ function convertRunStepFileSearchToolCallOutput(input) {
431
458
  return {
432
459
  type: input.type,
433
460
  id: input.id,
434
- fileSearch: input.file_search,
461
+ fileSearch: input.file_search && convertRunStepFileSearchToolCallResultsOutput(input.file_search),
462
+ };
463
+ }
464
+ function convertRunStepFileSearchToolCallResultsOutput(input) {
465
+ var _a;
466
+ return {
467
+ rankingOptions: input.ranking_options && convertFileSearchRankingOptionsOutput(input.ranking_options),
468
+ results: (_a = input.results) === null || _a === void 0 ? void 0 : _a.map(convertRunStepFileSearchToolCallResultOutput),
469
+ };
470
+ }
471
+ function convertRunStepFileSearchToolCallResultOutput(input) {
472
+ return {
473
+ fileId: input.file_id,
474
+ fileName: input.file_name,
475
+ score: input.score,
476
+ content: input.content,
435
477
  };
436
478
  }
437
479
  function convertRunStepBingGroundingToolCallOutput(input) {
@@ -459,7 +501,7 @@ function convertRunStepMicrosoftFabricToolCallOutput(input) {
459
501
  return {
460
502
  type: input.type,
461
503
  id: input.id,
462
- microsoftFabric: input.microsoft_fabric,
504
+ fabricAISkill: input.fabric_aiskill,
463
505
  };
464
506
  }
465
507
  function convertRunStepFunctionToolCallOutput(input) {
@@ -885,7 +927,7 @@ function convertRunStepFileSearchToolCallDelta(input) {
885
927
  index: input.index,
886
928
  type: input.type,
887
929
  id: input.id,
888
- fileSearch: input.file_search,
930
+ fileSearch: convertRunStepFileSearchToolCallResultsOutput(input.file_search),
889
931
  };
890
932
  }
891
933
  //# sourceMappingURL=convertOutputModelsFromWire.js.map