@azure/ai-projects 1.0.1 → 2.0.0-beta.1

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 (939) hide show
  1. package/README.md +115 -39
  2. package/dist/browser/aiProjectClient.d.ts +39 -36
  3. package/dist/browser/aiProjectClient.d.ts.map +1 -1
  4. package/dist/browser/aiProjectClient.js +66 -57
  5. package/dist/browser/aiProjectClient.js.map +1 -1
  6. package/dist/browser/api/agents/index.d.ts +3 -0
  7. package/dist/browser/api/agents/index.d.ts.map +1 -0
  8. package/dist/browser/api/agents/index.js +4 -0
  9. package/dist/browser/api/agents/index.js.map +1 -0
  10. package/dist/browser/api/agents/operations.d.ts +60 -0
  11. package/dist/browser/api/agents/operations.d.ts.map +1 -0
  12. package/dist/browser/api/agents/operations.js +412 -0
  13. package/dist/browser/api/agents/operations.js.map +1 -0
  14. package/dist/browser/api/agents/options.d.ts +151 -0
  15. package/dist/browser/api/agents/options.d.ts.map +1 -0
  16. package/dist/browser/api/agents/options.js.map +1 -0
  17. package/dist/browser/api/aiProjectContext.d.ts +6 -13
  18. package/dist/browser/api/aiProjectContext.d.ts.map +1 -1
  19. package/dist/browser/api/aiProjectContext.js +10 -17
  20. package/dist/browser/api/aiProjectContext.js.map +1 -1
  21. package/dist/browser/api/connections/index.d.ts +1 -1
  22. package/dist/browser/api/connections/index.d.ts.map +1 -1
  23. package/dist/browser/api/connections/index.js +1 -1
  24. package/dist/browser/api/connections/index.js.map +1 -1
  25. package/dist/browser/api/connections/operations.d.ts +1 -1
  26. package/dist/browser/api/connections/operations.d.ts.map +1 -1
  27. package/dist/browser/api/connections/operations.js +1 -1
  28. package/dist/browser/api/connections/operations.js.map +1 -1
  29. package/dist/browser/api/datasets/operations.d.ts +8 -13
  30. package/dist/browser/api/datasets/operations.d.ts.map +1 -1
  31. package/dist/browser/api/datasets/operations.js +129 -141
  32. package/dist/browser/api/datasets/operations.js.map +1 -1
  33. package/dist/browser/api/deployments/operations.d.ts +1 -1
  34. package/dist/browser/api/deployments/operations.d.ts.map +1 -1
  35. package/dist/browser/api/deployments/operations.js +1 -1
  36. package/dist/browser/api/deployments/operations.js.map +1 -1
  37. package/dist/browser/api/evaluationRules/index.d.ts +3 -0
  38. package/dist/browser/api/evaluationRules/index.d.ts.map +1 -0
  39. package/dist/browser/api/evaluationRules/index.js +4 -0
  40. package/dist/browser/api/evaluationRules/index.js.map +1 -0
  41. package/dist/browser/api/evaluationRules/operations.d.ts +22 -0
  42. package/dist/browser/api/evaluationRules/operations.d.ts.map +1 -0
  43. package/dist/browser/api/evaluationRules/operations.js +126 -0
  44. package/dist/browser/api/evaluationRules/operations.js.map +1 -0
  45. package/dist/browser/api/evaluationRules/options.d.ts +27 -0
  46. package/dist/browser/api/evaluationRules/options.d.ts.map +1 -0
  47. package/dist/browser/api/evaluationRules/options.js.map +1 -0
  48. package/dist/browser/api/evaluationTaxonomies/index.d.ts +3 -0
  49. package/dist/browser/api/evaluationTaxonomies/index.d.ts.map +1 -0
  50. package/dist/browser/api/evaluationTaxonomies/index.js +4 -0
  51. package/dist/browser/api/evaluationTaxonomies/index.js.map +1 -0
  52. package/dist/browser/api/evaluationTaxonomies/operations.d.ts +26 -0
  53. package/dist/browser/api/evaluationTaxonomies/operations.d.ts.map +1 -0
  54. package/dist/browser/api/evaluationTaxonomies/operations.js +154 -0
  55. package/dist/browser/api/evaluationTaxonomies/operations.js.map +1 -0
  56. package/dist/browser/api/evaluationTaxonomies/options.d.ts +27 -0
  57. package/dist/browser/api/evaluationTaxonomies/options.d.ts.map +1 -0
  58. package/dist/browser/api/evaluationTaxonomies/options.js.map +1 -0
  59. package/dist/browser/api/evaluators/index.d.ts +3 -0
  60. package/dist/browser/api/evaluators/index.d.ts.map +1 -0
  61. package/dist/browser/api/evaluators/index.js +4 -0
  62. package/dist/browser/api/evaluators/index.js.map +1 -0
  63. package/dist/browser/api/evaluators/operations.d.ts +30 -0
  64. package/dist/browser/api/evaluators/operations.d.ts.map +1 -0
  65. package/dist/browser/api/evaluators/operations.js +171 -0
  66. package/dist/browser/api/evaluators/operations.js.map +1 -0
  67. package/dist/browser/api/evaluators/options.d.ts +29 -0
  68. package/dist/browser/api/evaluators/options.d.ts.map +1 -0
  69. package/dist/browser/api/evaluators/options.js +4 -0
  70. package/dist/browser/api/evaluators/options.js.map +1 -0
  71. package/dist/browser/api/index.d.ts.map +1 -1
  72. package/dist/browser/api/index.js +2 -0
  73. package/dist/browser/api/index.js.map +1 -1
  74. package/dist/browser/api/indexes/operations.d.ts +3 -8
  75. package/dist/browser/api/indexes/operations.d.ts.map +1 -1
  76. package/dist/browser/api/indexes/operations.js +4 -16
  77. package/dist/browser/api/indexes/operations.js.map +1 -1
  78. package/dist/browser/api/insights/index.d.ts +3 -0
  79. package/dist/browser/api/insights/index.d.ts.map +1 -0
  80. package/dist/browser/api/insights/index.js +4 -0
  81. package/dist/browser/api/insights/index.js.map +1 -0
  82. package/dist/browser/api/insights/operations.d.ts +18 -0
  83. package/dist/browser/api/insights/operations.d.ts.map +1 -0
  84. package/dist/browser/api/insights/operations.js +109 -0
  85. package/dist/browser/api/insights/operations.js.map +1 -0
  86. package/dist/browser/api/insights/options.d.ts +32 -0
  87. package/dist/browser/api/insights/options.d.ts.map +1 -0
  88. package/dist/browser/api/insights/options.js +4 -0
  89. package/dist/browser/api/insights/options.js.map +1 -0
  90. package/dist/browser/api/memoryStores/index.d.ts +3 -0
  91. package/dist/browser/api/memoryStores/index.d.ts.map +1 -0
  92. package/dist/browser/api/memoryStores/index.js +4 -0
  93. package/dist/browser/api/memoryStores/index.js.map +1 -0
  94. package/dist/browser/api/memoryStores/operations.d.ts +43 -0
  95. package/dist/browser/api/memoryStores/operations.d.ts.map +1 -0
  96. package/dist/browser/api/memoryStores/operations.js +306 -0
  97. package/dist/browser/api/memoryStores/operations.js.map +1 -0
  98. package/dist/browser/api/memoryStores/options.d.ts +83 -0
  99. package/dist/browser/api/memoryStores/options.d.ts.map +1 -0
  100. package/dist/browser/api/memoryStores/options.js +4 -0
  101. package/dist/browser/api/memoryStores/options.js.map +1 -0
  102. package/dist/browser/api/redTeams/index.d.ts +3 -0
  103. package/dist/browser/api/redTeams/index.d.ts.map +1 -0
  104. package/dist/browser/api/redTeams/index.js +4 -0
  105. package/dist/browser/api/redTeams/index.js.map +1 -0
  106. package/dist/browser/api/redTeams/operations.d.ts +18 -0
  107. package/dist/browser/api/redTeams/operations.d.ts.map +1 -0
  108. package/dist/browser/api/redTeams/operations.js +93 -0
  109. package/dist/browser/api/redTeams/operations.js.map +1 -0
  110. package/dist/browser/api/redTeams/options.d.ts +15 -0
  111. package/dist/browser/api/redTeams/options.d.ts.map +1 -0
  112. package/dist/browser/api/redTeams/options.js +4 -0
  113. package/dist/browser/api/redTeams/options.js.map +1 -0
  114. package/dist/browser/api/schedules/index.d.ts +3 -0
  115. package/dist/browser/api/schedules/index.d.ts.map +1 -0
  116. package/dist/browser/api/schedules/index.js +4 -0
  117. package/dist/browser/api/schedules/index.js.map +1 -0
  118. package/dist/browser/api/schedules/operations.d.ts +30 -0
  119. package/dist/browser/api/schedules/operations.d.ts.map +1 -0
  120. package/dist/browser/api/schedules/operations.js +178 -0
  121. package/dist/browser/api/schedules/operations.js.map +1 -0
  122. package/dist/browser/api/schedules/options.d.ts +26 -0
  123. package/dist/browser/api/schedules/options.d.ts.map +1 -0
  124. package/dist/browser/api/schedules/options.js +4 -0
  125. package/dist/browser/api/schedules/options.js.map +1 -0
  126. package/dist/browser/classic/agents/index.d.ts +39 -0
  127. package/dist/browser/classic/agents/index.d.ts.map +1 -0
  128. package/dist/browser/classic/agents/index.js +43 -0
  129. package/dist/browser/classic/agents/index.js.map +1 -0
  130. package/dist/browser/classic/connections/index.d.ts +1 -1
  131. package/dist/browser/classic/connections/index.d.ts.map +1 -1
  132. package/dist/browser/classic/connections/index.js.map +1 -1
  133. package/dist/browser/classic/datasets/index.d.ts +4 -9
  134. package/dist/browser/classic/datasets/index.d.ts.map +1 -1
  135. package/dist/browser/classic/datasets/index.js +0 -1
  136. package/dist/browser/classic/datasets/index.js.map +1 -1
  137. package/dist/browser/classic/deployments/index.d.ts +1 -1
  138. package/dist/browser/classic/deployments/index.d.ts.map +1 -1
  139. package/dist/browser/classic/deployments/index.js.map +1 -1
  140. package/dist/browser/classic/evaluationRules/index.d.ts +17 -0
  141. package/dist/browser/classic/evaluationRules/index.d.ts.map +1 -0
  142. package/dist/browser/classic/evaluationRules/index.js +17 -0
  143. package/dist/browser/classic/evaluationRules/index.js.map +1 -0
  144. package/dist/browser/classic/evaluationTaxonomies/index.d.ts +19 -0
  145. package/dist/browser/classic/evaluationTaxonomies/index.d.ts.map +1 -0
  146. package/dist/browser/classic/evaluationTaxonomies/index.js +18 -0
  147. package/dist/browser/classic/evaluationTaxonomies/index.js.map +1 -0
  148. package/dist/browser/classic/evaluators/index.d.ts +21 -0
  149. package/dist/browser/classic/evaluators/index.d.ts.map +1 -0
  150. package/dist/browser/classic/evaluators/index.js +25 -0
  151. package/dist/browser/classic/evaluators/index.js.map +1 -0
  152. package/dist/browser/classic/index.d.ts +8 -1
  153. package/dist/browser/classic/index.d.ts.map +1 -1
  154. package/dist/browser/classic/index.js.map +1 -1
  155. package/dist/browser/classic/indexes/index.d.ts +3 -8
  156. package/dist/browser/classic/indexes/index.d.ts.map +1 -1
  157. package/dist/browser/classic/indexes/index.js +0 -1
  158. package/dist/browser/classic/indexes/index.js.map +1 -1
  159. package/dist/browser/classic/insights/index.d.ts +15 -0
  160. package/dist/browser/classic/insights/index.d.ts.map +1 -0
  161. package/dist/browser/classic/insights/index.js +16 -0
  162. package/dist/browser/classic/insights/index.js.map +1 -0
  163. package/dist/browser/classic/memoryStores/index.d.ts +28 -0
  164. package/dist/browser/classic/memoryStores/index.d.ts.map +1 -0
  165. package/dist/browser/classic/memoryStores/index.js +22 -0
  166. package/dist/browser/classic/memoryStores/index.js.map +1 -0
  167. package/dist/browser/classic/redTeams/index.d.ts +15 -0
  168. package/dist/browser/classic/redTeams/index.d.ts.map +1 -0
  169. package/dist/browser/classic/redTeams/index.js +16 -0
  170. package/dist/browser/classic/redTeams/index.js.map +1 -0
  171. package/dist/browser/classic/schedules/index.d.ts +21 -0
  172. package/dist/browser/classic/schedules/index.d.ts.map +1 -0
  173. package/dist/browser/classic/schedules/index.js +19 -0
  174. package/dist/browser/classic/schedules/index.js.map +1 -0
  175. package/dist/browser/constants.d.ts +1 -1
  176. package/dist/browser/constants.d.ts.map +1 -1
  177. package/dist/browser/constants.js +1 -1
  178. package/dist/browser/constants.js.map +1 -1
  179. package/dist/browser/index.d.ts +11 -5
  180. package/dist/browser/index.d.ts.map +1 -1
  181. package/dist/browser/index.js +2 -1
  182. package/dist/browser/index.js.map +1 -1
  183. package/dist/browser/models/index.d.ts +1 -1
  184. package/dist/browser/models/index.d.ts.map +1 -1
  185. package/dist/browser/models/index.js +1 -1
  186. package/dist/browser/models/index.js.map +1 -1
  187. package/dist/browser/models/models.d.ts +3081 -24
  188. package/dist/browser/models/models.d.ts.map +1 -1
  189. package/dist/browser/models/models.js +3778 -266
  190. package/dist/browser/models/models.js.map +1 -1
  191. package/dist/browser/overwriteOpenAIClient.d.ts +3 -0
  192. package/dist/browser/overwriteOpenAIClient.d.ts.map +1 -0
  193. package/dist/browser/overwriteOpenAIClient.js +14 -0
  194. package/dist/browser/overwriteOpenAIClient.js.map +1 -0
  195. package/dist/browser/restorePollerHelpers.d.ts +24 -0
  196. package/dist/browser/restorePollerHelpers.d.ts.map +1 -0
  197. package/dist/browser/restorePollerHelpers.js +91 -0
  198. package/dist/browser/restorePollerHelpers.js.map +1 -0
  199. package/dist/browser/static-helpers/pollingHelpers.d.ts +30 -0
  200. package/dist/browser/static-helpers/pollingHelpers.d.ts.map +1 -0
  201. package/dist/browser/static-helpers/pollingHelpers.js +79 -0
  202. package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
  203. package/dist/browser/static-helpers/serialization/serialize-record.d.ts +2 -0
  204. package/dist/browser/static-helpers/serialization/serialize-record.d.ts.map +1 -0
  205. package/dist/browser/static-helpers/serialization/serialize-record.js +20 -0
  206. package/dist/browser/static-helpers/serialization/serialize-record.js.map +1 -0
  207. package/dist/browser/static-helpers/urlTemplate.d.ts.map +1 -1
  208. package/dist/browser/static-helpers/urlTemplate.js +22 -12
  209. package/dist/browser/static-helpers/urlTemplate.js.map +1 -1
  210. package/dist/commonjs/aiProjectClient.d.ts +39 -36
  211. package/dist/commonjs/aiProjectClient.d.ts.map +1 -1
  212. package/dist/commonjs/aiProjectClient.js +71 -61
  213. package/dist/commonjs/aiProjectClient.js.map +1 -1
  214. package/dist/commonjs/api/agents/index.d.ts +3 -0
  215. package/dist/commonjs/api/agents/index.d.ts.map +1 -0
  216. package/dist/commonjs/api/agents/index.js +19 -0
  217. package/dist/commonjs/api/agents/index.js.map +1 -0
  218. package/dist/commonjs/api/agents/operations.d.ts +60 -0
  219. package/dist/commonjs/api/agents/operations.d.ts.map +1 -0
  220. package/dist/commonjs/api/agents/operations.js +450 -0
  221. package/dist/commonjs/api/agents/operations.js.map +1 -0
  222. package/dist/commonjs/api/agents/options.d.ts +151 -0
  223. package/dist/commonjs/api/agents/options.d.ts.map +1 -0
  224. package/dist/commonjs/api/agents/options.js.map +1 -0
  225. package/dist/commonjs/api/aiProjectContext.d.ts +6 -13
  226. package/dist/commonjs/api/aiProjectContext.d.ts.map +1 -1
  227. package/dist/commonjs/api/aiProjectContext.js +10 -17
  228. package/dist/commonjs/api/aiProjectContext.js.map +1 -1
  229. package/dist/commonjs/api/connections/index.d.ts +1 -1
  230. package/dist/commonjs/api/connections/index.d.ts.map +1 -1
  231. package/dist/commonjs/api/connections/index.js +1 -2
  232. package/dist/commonjs/api/connections/index.js.map +1 -1
  233. package/dist/commonjs/api/connections/operations.d.ts +1 -1
  234. package/dist/commonjs/api/connections/operations.d.ts.map +1 -1
  235. package/dist/commonjs/api/connections/operations.js +1 -1
  236. package/dist/commonjs/api/connections/operations.js.map +1 -1
  237. package/dist/commonjs/api/datasets/operations.d.ts +8 -13
  238. package/dist/commonjs/api/datasets/operations.d.ts.map +1 -1
  239. package/dist/commonjs/api/datasets/operations.js +130 -142
  240. package/dist/commonjs/api/datasets/operations.js.map +1 -1
  241. package/dist/commonjs/api/deployments/operations.d.ts +1 -1
  242. package/dist/commonjs/api/deployments/operations.d.ts.map +1 -1
  243. package/dist/commonjs/api/deployments/operations.js +1 -1
  244. package/dist/commonjs/api/deployments/operations.js.map +1 -1
  245. package/dist/commonjs/api/evaluationRules/index.d.ts +3 -0
  246. package/dist/commonjs/api/evaluationRules/index.d.ts.map +1 -0
  247. package/dist/commonjs/api/evaluationRules/index.js +11 -0
  248. package/dist/commonjs/api/evaluationRules/index.js.map +1 -0
  249. package/dist/commonjs/api/evaluationRules/operations.d.ts +22 -0
  250. package/dist/commonjs/api/evaluationRules/operations.d.ts.map +1 -0
  251. package/dist/commonjs/api/evaluationRules/operations.js +140 -0
  252. package/dist/commonjs/api/evaluationRules/operations.js.map +1 -0
  253. package/dist/commonjs/api/evaluationRules/options.d.ts +27 -0
  254. package/dist/commonjs/api/evaluationRules/options.d.ts.map +1 -0
  255. package/dist/commonjs/api/evaluationRules/options.js +5 -0
  256. package/dist/commonjs/api/evaluationRules/options.js.map +1 -0
  257. package/dist/commonjs/api/evaluationTaxonomies/index.d.ts +3 -0
  258. package/dist/commonjs/api/evaluationTaxonomies/index.d.ts.map +1 -0
  259. package/dist/commonjs/api/evaluationTaxonomies/index.js +12 -0
  260. package/dist/commonjs/api/evaluationTaxonomies/index.js.map +1 -0
  261. package/dist/commonjs/api/evaluationTaxonomies/operations.d.ts +26 -0
  262. package/dist/commonjs/api/evaluationTaxonomies/operations.d.ts.map +1 -0
  263. package/dist/commonjs/api/evaluationTaxonomies/operations.js +171 -0
  264. package/dist/commonjs/api/evaluationTaxonomies/operations.js.map +1 -0
  265. package/dist/commonjs/api/evaluationTaxonomies/options.d.ts +27 -0
  266. package/dist/commonjs/api/evaluationTaxonomies/options.d.ts.map +1 -0
  267. package/dist/commonjs/api/evaluationTaxonomies/options.js +5 -0
  268. package/dist/commonjs/api/evaluationTaxonomies/options.js.map +1 -0
  269. package/dist/commonjs/api/evaluators/index.d.ts +3 -0
  270. package/dist/commonjs/api/evaluators/index.d.ts.map +1 -0
  271. package/dist/commonjs/api/evaluators/index.js +13 -0
  272. package/dist/commonjs/api/evaluators/index.js.map +1 -0
  273. package/dist/commonjs/api/evaluators/operations.d.ts +30 -0
  274. package/dist/commonjs/api/evaluators/operations.d.ts.map +1 -0
  275. package/dist/commonjs/api/evaluators/operations.js +191 -0
  276. package/dist/commonjs/api/evaluators/operations.js.map +1 -0
  277. package/dist/commonjs/api/evaluators/options.d.ts +29 -0
  278. package/dist/commonjs/api/evaluators/options.d.ts.map +1 -0
  279. package/dist/commonjs/api/evaluators/options.js +5 -0
  280. package/dist/commonjs/api/evaluators/options.js.map +1 -0
  281. package/dist/commonjs/api/index.d.ts.map +1 -1
  282. package/dist/commonjs/api/index.js +2 -0
  283. package/dist/commonjs/api/index.js.map +1 -1
  284. package/dist/commonjs/api/indexes/operations.d.ts +3 -8
  285. package/dist/commonjs/api/indexes/operations.d.ts.map +1 -1
  286. package/dist/commonjs/api/indexes/operations.js +4 -16
  287. package/dist/commonjs/api/indexes/operations.js.map +1 -1
  288. package/dist/commonjs/api/insights/index.d.ts +3 -0
  289. package/dist/commonjs/api/insights/index.d.ts.map +1 -0
  290. package/dist/commonjs/api/insights/index.js +10 -0
  291. package/dist/commonjs/api/insights/index.js.map +1 -0
  292. package/dist/commonjs/api/insights/operations.d.ts +18 -0
  293. package/dist/commonjs/api/insights/operations.d.ts.map +1 -0
  294. package/dist/commonjs/api/insights/operations.js +120 -0
  295. package/dist/commonjs/api/insights/operations.js.map +1 -0
  296. package/dist/commonjs/api/insights/options.d.ts +32 -0
  297. package/dist/commonjs/api/insights/options.d.ts.map +1 -0
  298. package/dist/commonjs/api/insights/options.js +5 -0
  299. package/dist/commonjs/api/insights/options.js.map +1 -0
  300. package/dist/commonjs/api/memoryStores/index.d.ts +3 -0
  301. package/dist/commonjs/api/memoryStores/index.d.ts.map +1 -0
  302. package/dist/commonjs/api/memoryStores/index.js +16 -0
  303. package/dist/commonjs/api/memoryStores/index.js.map +1 -0
  304. package/dist/commonjs/api/memoryStores/operations.d.ts +43 -0
  305. package/dist/commonjs/api/memoryStores/operations.d.ts.map +1 -0
  306. package/dist/commonjs/api/memoryStores/operations.js +335 -0
  307. package/dist/commonjs/api/memoryStores/operations.js.map +1 -0
  308. package/dist/commonjs/api/memoryStores/options.d.ts +83 -0
  309. package/dist/commonjs/api/memoryStores/options.d.ts.map +1 -0
  310. package/dist/commonjs/api/memoryStores/options.js +5 -0
  311. package/dist/commonjs/api/memoryStores/options.js.map +1 -0
  312. package/dist/commonjs/api/redTeams/index.d.ts +3 -0
  313. package/dist/commonjs/api/redTeams/index.d.ts.map +1 -0
  314. package/dist/commonjs/api/redTeams/index.js +10 -0
  315. package/dist/commonjs/api/redTeams/index.js.map +1 -0
  316. package/dist/commonjs/api/redTeams/operations.d.ts +18 -0
  317. package/dist/commonjs/api/redTeams/operations.d.ts.map +1 -0
  318. package/dist/commonjs/api/redTeams/operations.js +104 -0
  319. package/dist/commonjs/api/redTeams/operations.js.map +1 -0
  320. package/dist/commonjs/api/redTeams/options.d.ts +15 -0
  321. package/dist/commonjs/api/redTeams/options.d.ts.map +1 -0
  322. package/dist/commonjs/api/redTeams/options.js +5 -0
  323. package/dist/commonjs/api/redTeams/options.js.map +1 -0
  324. package/dist/commonjs/api/schedules/index.d.ts +3 -0
  325. package/dist/commonjs/api/schedules/index.d.ts.map +1 -0
  326. package/dist/commonjs/api/schedules/index.js +13 -0
  327. package/dist/commonjs/api/schedules/index.js.map +1 -0
  328. package/dist/commonjs/api/schedules/operations.d.ts +30 -0
  329. package/dist/commonjs/api/schedules/operations.d.ts.map +1 -0
  330. package/dist/commonjs/api/schedules/operations.js +198 -0
  331. package/dist/commonjs/api/schedules/operations.js.map +1 -0
  332. package/dist/commonjs/api/schedules/options.d.ts +26 -0
  333. package/dist/commonjs/api/schedules/options.d.ts.map +1 -0
  334. package/dist/commonjs/api/schedules/options.js +5 -0
  335. package/dist/commonjs/api/schedules/options.js.map +1 -0
  336. package/dist/commonjs/classic/agents/index.d.ts +39 -0
  337. package/dist/commonjs/classic/agents/index.d.ts.map +1 -0
  338. package/dist/commonjs/classic/agents/index.js +46 -0
  339. package/dist/commonjs/classic/agents/index.js.map +1 -0
  340. package/dist/commonjs/classic/connections/index.d.ts +1 -1
  341. package/dist/commonjs/classic/connections/index.d.ts.map +1 -1
  342. package/dist/commonjs/classic/connections/index.js.map +1 -1
  343. package/dist/commonjs/classic/datasets/index.d.ts +4 -9
  344. package/dist/commonjs/classic/datasets/index.d.ts.map +1 -1
  345. package/dist/commonjs/classic/datasets/index.js +0 -1
  346. package/dist/commonjs/classic/datasets/index.js.map +1 -1
  347. package/dist/commonjs/classic/deployments/index.d.ts +1 -1
  348. package/dist/commonjs/classic/deployments/index.d.ts.map +1 -1
  349. package/dist/commonjs/classic/deployments/index.js.map +1 -1
  350. package/dist/commonjs/classic/evaluationRules/index.d.ts +17 -0
  351. package/dist/commonjs/classic/evaluationRules/index.d.ts.map +1 -0
  352. package/dist/commonjs/classic/evaluationRules/index.js +20 -0
  353. package/dist/commonjs/classic/evaluationRules/index.js.map +1 -0
  354. package/dist/commonjs/classic/evaluationTaxonomies/index.d.ts +19 -0
  355. package/dist/commonjs/classic/evaluationTaxonomies/index.d.ts.map +1 -0
  356. package/dist/commonjs/classic/evaluationTaxonomies/index.js +21 -0
  357. package/dist/commonjs/classic/evaluationTaxonomies/index.js.map +1 -0
  358. package/dist/commonjs/classic/evaluators/index.d.ts +21 -0
  359. package/dist/commonjs/classic/evaluators/index.d.ts.map +1 -0
  360. package/dist/commonjs/classic/evaluators/index.js +28 -0
  361. package/dist/commonjs/classic/evaluators/index.js.map +1 -0
  362. package/dist/commonjs/classic/index.d.ts +8 -1
  363. package/dist/commonjs/classic/index.d.ts.map +1 -1
  364. package/dist/commonjs/classic/index.js.map +1 -1
  365. package/dist/commonjs/classic/indexes/index.d.ts +3 -8
  366. package/dist/commonjs/classic/indexes/index.d.ts.map +1 -1
  367. package/dist/commonjs/classic/indexes/index.js +0 -1
  368. package/dist/commonjs/classic/indexes/index.js.map +1 -1
  369. package/dist/commonjs/classic/insights/index.d.ts +15 -0
  370. package/dist/commonjs/classic/insights/index.d.ts.map +1 -0
  371. package/dist/commonjs/classic/insights/index.js +19 -0
  372. package/dist/commonjs/classic/insights/index.js.map +1 -0
  373. package/dist/commonjs/classic/memoryStores/index.d.ts +28 -0
  374. package/dist/commonjs/classic/memoryStores/index.d.ts.map +1 -0
  375. package/dist/commonjs/classic/memoryStores/index.js +25 -0
  376. package/dist/commonjs/classic/memoryStores/index.js.map +1 -0
  377. package/dist/commonjs/classic/redTeams/index.d.ts +15 -0
  378. package/dist/commonjs/classic/redTeams/index.d.ts.map +1 -0
  379. package/dist/commonjs/classic/redTeams/index.js +19 -0
  380. package/dist/commonjs/classic/redTeams/index.js.map +1 -0
  381. package/dist/commonjs/classic/schedules/index.d.ts +21 -0
  382. package/dist/commonjs/classic/schedules/index.d.ts.map +1 -0
  383. package/dist/commonjs/classic/schedules/index.js +22 -0
  384. package/dist/commonjs/classic/schedules/index.js.map +1 -0
  385. package/dist/commonjs/constants.d.ts +1 -1
  386. package/dist/commonjs/constants.d.ts.map +1 -1
  387. package/dist/commonjs/constants.js +1 -1
  388. package/dist/commonjs/constants.js.map +1 -1
  389. package/dist/commonjs/index.d.ts +11 -5
  390. package/dist/commonjs/index.d.ts.map +1 -1
  391. package/dist/commonjs/index.js +4 -2
  392. package/dist/commonjs/index.js.map +1 -1
  393. package/dist/commonjs/models/index.d.ts +1 -1
  394. package/dist/commonjs/models/index.d.ts.map +1 -1
  395. package/dist/commonjs/models/index.js +2 -2
  396. package/dist/commonjs/models/index.js.map +1 -1
  397. package/dist/commonjs/models/models.d.ts +3081 -24
  398. package/dist/commonjs/models/models.d.ts.map +1 -1
  399. package/dist/commonjs/models/models.js +4263 -270
  400. package/dist/commonjs/models/models.js.map +1 -1
  401. package/dist/commonjs/overwriteOpenAIClient.d.ts +3 -0
  402. package/dist/commonjs/overwriteOpenAIClient.d.ts.map +1 -0
  403. package/dist/commonjs/overwriteOpenAIClient.js +17 -0
  404. package/dist/commonjs/overwriteOpenAIClient.js.map +1 -0
  405. package/dist/commonjs/restorePollerHelpers.d.ts +24 -0
  406. package/dist/commonjs/restorePollerHelpers.d.ts.map +1 -0
  407. package/dist/commonjs/restorePollerHelpers.js +94 -0
  408. package/dist/commonjs/restorePollerHelpers.js.map +1 -0
  409. package/dist/commonjs/static-helpers/pollingHelpers.d.ts +30 -0
  410. package/dist/commonjs/static-helpers/pollingHelpers.d.ts.map +1 -0
  411. package/dist/commonjs/static-helpers/pollingHelpers.js +82 -0
  412. package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -0
  413. package/dist/commonjs/static-helpers/serialization/serialize-record.d.ts +2 -0
  414. package/dist/commonjs/static-helpers/serialization/serialize-record.d.ts.map +1 -0
  415. package/dist/commonjs/static-helpers/serialization/serialize-record.js +23 -0
  416. package/dist/commonjs/static-helpers/serialization/serialize-record.js.map +1 -0
  417. package/dist/commonjs/static-helpers/urlTemplate.d.ts.map +1 -1
  418. package/dist/commonjs/static-helpers/urlTemplate.js +22 -12
  419. package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -1
  420. package/dist/commonjs/tsdoc-metadata.json +1 -1
  421. package/dist/esm/aiProjectClient.d.ts +39 -36
  422. package/dist/esm/aiProjectClient.d.ts.map +1 -1
  423. package/dist/esm/aiProjectClient.js +66 -57
  424. package/dist/esm/aiProjectClient.js.map +1 -1
  425. package/dist/esm/api/agents/index.d.ts +3 -0
  426. package/dist/esm/api/agents/index.d.ts.map +1 -0
  427. package/dist/esm/api/agents/index.js +4 -0
  428. package/dist/esm/api/agents/index.js.map +1 -0
  429. package/dist/esm/api/agents/operations.d.ts +60 -0
  430. package/dist/esm/api/agents/operations.d.ts.map +1 -0
  431. package/dist/esm/api/agents/operations.js +412 -0
  432. package/dist/esm/api/agents/operations.js.map +1 -0
  433. package/dist/esm/api/agents/options.d.ts +151 -0
  434. package/dist/esm/api/agents/options.d.ts.map +1 -0
  435. package/dist/esm/api/agents/options.js +4 -0
  436. package/dist/esm/api/agents/options.js.map +1 -0
  437. package/dist/esm/api/aiProjectContext.d.ts +6 -13
  438. package/dist/esm/api/aiProjectContext.d.ts.map +1 -1
  439. package/dist/esm/api/aiProjectContext.js +10 -17
  440. package/dist/esm/api/aiProjectContext.js.map +1 -1
  441. package/dist/esm/api/connections/index.d.ts +1 -1
  442. package/dist/esm/api/connections/index.d.ts.map +1 -1
  443. package/dist/esm/api/connections/index.js +1 -1
  444. package/dist/esm/api/connections/index.js.map +1 -1
  445. package/dist/esm/api/connections/operations.d.ts +1 -1
  446. package/dist/esm/api/connections/operations.d.ts.map +1 -1
  447. package/dist/esm/api/connections/operations.js +1 -1
  448. package/dist/esm/api/connections/operations.js.map +1 -1
  449. package/dist/esm/api/datasets/operations.d.ts +8 -13
  450. package/dist/esm/api/datasets/operations.d.ts.map +1 -1
  451. package/dist/esm/api/datasets/operations.js +129 -141
  452. package/dist/esm/api/datasets/operations.js.map +1 -1
  453. package/dist/esm/api/deployments/operations.d.ts +1 -1
  454. package/dist/esm/api/deployments/operations.d.ts.map +1 -1
  455. package/dist/esm/api/deployments/operations.js +1 -1
  456. package/dist/esm/api/deployments/operations.js.map +1 -1
  457. package/dist/esm/api/evaluationRules/index.d.ts +3 -0
  458. package/dist/esm/api/evaluationRules/index.d.ts.map +1 -0
  459. package/dist/esm/api/evaluationRules/index.js +4 -0
  460. package/dist/esm/api/evaluationRules/index.js.map +1 -0
  461. package/dist/esm/api/evaluationRules/operations.d.ts +22 -0
  462. package/dist/esm/api/evaluationRules/operations.d.ts.map +1 -0
  463. package/dist/esm/api/evaluationRules/operations.js +126 -0
  464. package/dist/esm/api/evaluationRules/operations.js.map +1 -0
  465. package/dist/esm/api/evaluationRules/options.d.ts +27 -0
  466. package/dist/esm/api/evaluationRules/options.d.ts.map +1 -0
  467. package/dist/esm/api/evaluationRules/options.js +4 -0
  468. package/dist/esm/api/evaluationRules/options.js.map +1 -0
  469. package/dist/esm/api/evaluationTaxonomies/index.d.ts +3 -0
  470. package/dist/esm/api/evaluationTaxonomies/index.d.ts.map +1 -0
  471. package/dist/esm/api/evaluationTaxonomies/index.js +4 -0
  472. package/dist/esm/api/evaluationTaxonomies/index.js.map +1 -0
  473. package/dist/esm/api/evaluationTaxonomies/operations.d.ts +26 -0
  474. package/dist/esm/api/evaluationTaxonomies/operations.d.ts.map +1 -0
  475. package/dist/esm/api/evaluationTaxonomies/operations.js +154 -0
  476. package/dist/esm/api/evaluationTaxonomies/operations.js.map +1 -0
  477. package/dist/esm/api/evaluationTaxonomies/options.d.ts +27 -0
  478. package/dist/esm/api/evaluationTaxonomies/options.d.ts.map +1 -0
  479. package/dist/esm/api/evaluationTaxonomies/options.js +4 -0
  480. package/dist/esm/api/evaluationTaxonomies/options.js.map +1 -0
  481. package/dist/esm/api/evaluators/index.d.ts +3 -0
  482. package/dist/esm/api/evaluators/index.d.ts.map +1 -0
  483. package/dist/esm/api/evaluators/index.js +4 -0
  484. package/dist/esm/api/evaluators/index.js.map +1 -0
  485. package/dist/esm/api/evaluators/operations.d.ts +30 -0
  486. package/dist/esm/api/evaluators/operations.d.ts.map +1 -0
  487. package/dist/esm/api/evaluators/operations.js +171 -0
  488. package/dist/esm/api/evaluators/operations.js.map +1 -0
  489. package/dist/esm/api/evaluators/options.d.ts +29 -0
  490. package/dist/esm/api/evaluators/options.d.ts.map +1 -0
  491. package/dist/esm/api/evaluators/options.js +4 -0
  492. package/dist/esm/api/evaluators/options.js.map +1 -0
  493. package/dist/esm/api/index.d.ts.map +1 -1
  494. package/dist/esm/api/index.js +2 -0
  495. package/dist/esm/api/index.js.map +1 -1
  496. package/dist/esm/api/indexes/operations.d.ts +3 -8
  497. package/dist/esm/api/indexes/operations.d.ts.map +1 -1
  498. package/dist/esm/api/indexes/operations.js +4 -16
  499. package/dist/esm/api/indexes/operations.js.map +1 -1
  500. package/dist/esm/api/insights/index.d.ts +3 -0
  501. package/dist/esm/api/insights/index.d.ts.map +1 -0
  502. package/dist/esm/api/insights/index.js +4 -0
  503. package/dist/esm/api/insights/index.js.map +1 -0
  504. package/dist/esm/api/insights/operations.d.ts +18 -0
  505. package/dist/esm/api/insights/operations.d.ts.map +1 -0
  506. package/dist/esm/api/insights/operations.js +109 -0
  507. package/dist/esm/api/insights/operations.js.map +1 -0
  508. package/dist/esm/api/insights/options.d.ts +32 -0
  509. package/dist/esm/api/insights/options.d.ts.map +1 -0
  510. package/dist/esm/api/insights/options.js +4 -0
  511. package/dist/esm/api/insights/options.js.map +1 -0
  512. package/dist/esm/api/memoryStores/index.d.ts +3 -0
  513. package/dist/esm/api/memoryStores/index.d.ts.map +1 -0
  514. package/dist/esm/api/memoryStores/index.js +4 -0
  515. package/dist/esm/api/memoryStores/index.js.map +1 -0
  516. package/dist/esm/api/memoryStores/operations.d.ts +43 -0
  517. package/dist/esm/api/memoryStores/operations.d.ts.map +1 -0
  518. package/dist/esm/api/memoryStores/operations.js +306 -0
  519. package/dist/esm/api/memoryStores/operations.js.map +1 -0
  520. package/dist/esm/api/memoryStores/options.d.ts +83 -0
  521. package/dist/esm/api/memoryStores/options.d.ts.map +1 -0
  522. package/dist/esm/api/memoryStores/options.js +4 -0
  523. package/dist/esm/api/memoryStores/options.js.map +1 -0
  524. package/dist/esm/api/redTeams/index.d.ts +3 -0
  525. package/dist/esm/api/redTeams/index.d.ts.map +1 -0
  526. package/dist/esm/api/redTeams/index.js +4 -0
  527. package/dist/esm/api/redTeams/index.js.map +1 -0
  528. package/dist/esm/api/redTeams/operations.d.ts +18 -0
  529. package/dist/esm/api/redTeams/operations.d.ts.map +1 -0
  530. package/dist/esm/api/redTeams/operations.js +93 -0
  531. package/dist/esm/api/redTeams/operations.js.map +1 -0
  532. package/dist/esm/api/redTeams/options.d.ts +15 -0
  533. package/dist/esm/api/redTeams/options.d.ts.map +1 -0
  534. package/dist/esm/api/redTeams/options.js +4 -0
  535. package/dist/esm/api/redTeams/options.js.map +1 -0
  536. package/dist/esm/api/schedules/index.d.ts +3 -0
  537. package/dist/esm/api/schedules/index.d.ts.map +1 -0
  538. package/dist/esm/api/schedules/index.js +4 -0
  539. package/dist/esm/api/schedules/index.js.map +1 -0
  540. package/dist/esm/api/schedules/operations.d.ts +30 -0
  541. package/dist/esm/api/schedules/operations.d.ts.map +1 -0
  542. package/dist/esm/api/schedules/operations.js +178 -0
  543. package/dist/esm/api/schedules/operations.js.map +1 -0
  544. package/dist/esm/api/schedules/options.d.ts +26 -0
  545. package/dist/esm/api/schedules/options.d.ts.map +1 -0
  546. package/dist/esm/api/schedules/options.js +4 -0
  547. package/dist/esm/api/schedules/options.js.map +1 -0
  548. package/dist/esm/classic/agents/index.d.ts +39 -0
  549. package/dist/esm/classic/agents/index.d.ts.map +1 -0
  550. package/dist/esm/classic/agents/index.js +43 -0
  551. package/dist/esm/classic/agents/index.js.map +1 -0
  552. package/dist/esm/classic/connections/index.d.ts +1 -1
  553. package/dist/esm/classic/connections/index.d.ts.map +1 -1
  554. package/dist/esm/classic/connections/index.js.map +1 -1
  555. package/dist/esm/classic/datasets/index.d.ts +4 -9
  556. package/dist/esm/classic/datasets/index.d.ts.map +1 -1
  557. package/dist/esm/classic/datasets/index.js +0 -1
  558. package/dist/esm/classic/datasets/index.js.map +1 -1
  559. package/dist/esm/classic/deployments/index.d.ts +1 -1
  560. package/dist/esm/classic/deployments/index.d.ts.map +1 -1
  561. package/dist/esm/classic/deployments/index.js.map +1 -1
  562. package/dist/esm/classic/evaluationRules/index.d.ts +17 -0
  563. package/dist/esm/classic/evaluationRules/index.d.ts.map +1 -0
  564. package/dist/esm/classic/evaluationRules/index.js +17 -0
  565. package/dist/esm/classic/evaluationRules/index.js.map +1 -0
  566. package/dist/esm/classic/evaluationTaxonomies/index.d.ts +19 -0
  567. package/dist/esm/classic/evaluationTaxonomies/index.d.ts.map +1 -0
  568. package/dist/esm/classic/evaluationTaxonomies/index.js +18 -0
  569. package/dist/esm/classic/evaluationTaxonomies/index.js.map +1 -0
  570. package/dist/esm/classic/evaluators/index.d.ts +21 -0
  571. package/dist/esm/classic/evaluators/index.d.ts.map +1 -0
  572. package/dist/esm/classic/evaluators/index.js +25 -0
  573. package/dist/esm/classic/evaluators/index.js.map +1 -0
  574. package/dist/esm/classic/index.d.ts +8 -1
  575. package/dist/esm/classic/index.d.ts.map +1 -1
  576. package/dist/esm/classic/index.js.map +1 -1
  577. package/dist/esm/classic/indexes/index.d.ts +3 -8
  578. package/dist/esm/classic/indexes/index.d.ts.map +1 -1
  579. package/dist/esm/classic/indexes/index.js +0 -1
  580. package/dist/esm/classic/indexes/index.js.map +1 -1
  581. package/dist/esm/classic/insights/index.d.ts +15 -0
  582. package/dist/esm/classic/insights/index.d.ts.map +1 -0
  583. package/dist/esm/classic/insights/index.js +16 -0
  584. package/dist/esm/classic/insights/index.js.map +1 -0
  585. package/dist/esm/classic/memoryStores/index.d.ts +28 -0
  586. package/dist/esm/classic/memoryStores/index.d.ts.map +1 -0
  587. package/dist/esm/classic/memoryStores/index.js +22 -0
  588. package/dist/esm/classic/memoryStores/index.js.map +1 -0
  589. package/dist/esm/classic/redTeams/index.d.ts +15 -0
  590. package/dist/esm/classic/redTeams/index.d.ts.map +1 -0
  591. package/dist/esm/classic/redTeams/index.js +16 -0
  592. package/dist/esm/classic/redTeams/index.js.map +1 -0
  593. package/dist/esm/classic/schedules/index.d.ts +21 -0
  594. package/dist/esm/classic/schedules/index.d.ts.map +1 -0
  595. package/dist/esm/classic/schedules/index.js +19 -0
  596. package/dist/esm/classic/schedules/index.js.map +1 -0
  597. package/dist/esm/constants.d.ts +1 -1
  598. package/dist/esm/constants.d.ts.map +1 -1
  599. package/dist/esm/constants.js +1 -1
  600. package/dist/esm/constants.js.map +1 -1
  601. package/dist/esm/index.d.ts +11 -5
  602. package/dist/esm/index.d.ts.map +1 -1
  603. package/dist/esm/index.js +2 -1
  604. package/dist/esm/index.js.map +1 -1
  605. package/dist/esm/models/index.d.ts +1 -1
  606. package/dist/esm/models/index.d.ts.map +1 -1
  607. package/dist/esm/models/index.js +1 -1
  608. package/dist/esm/models/index.js.map +1 -1
  609. package/dist/esm/models/models.d.ts +3081 -24
  610. package/dist/esm/models/models.d.ts.map +1 -1
  611. package/dist/esm/models/models.js +3778 -266
  612. package/dist/esm/models/models.js.map +1 -1
  613. package/dist/esm/overwriteOpenAIClient.d.ts +3 -0
  614. package/dist/esm/overwriteOpenAIClient.d.ts.map +1 -0
  615. package/dist/esm/overwriteOpenAIClient.js +14 -0
  616. package/dist/esm/overwriteOpenAIClient.js.map +1 -0
  617. package/dist/esm/restorePollerHelpers.d.ts +24 -0
  618. package/dist/esm/restorePollerHelpers.d.ts.map +1 -0
  619. package/dist/esm/restorePollerHelpers.js +91 -0
  620. package/dist/esm/restorePollerHelpers.js.map +1 -0
  621. package/dist/esm/static-helpers/pollingHelpers.d.ts +30 -0
  622. package/dist/esm/static-helpers/pollingHelpers.d.ts.map +1 -0
  623. package/dist/esm/static-helpers/pollingHelpers.js +79 -0
  624. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
  625. package/dist/esm/static-helpers/serialization/serialize-record.d.ts +2 -0
  626. package/dist/esm/static-helpers/serialization/serialize-record.d.ts.map +1 -0
  627. package/dist/esm/static-helpers/serialization/serialize-record.js +20 -0
  628. package/dist/esm/static-helpers/serialization/serialize-record.js.map +1 -0
  629. package/dist/esm/static-helpers/urlTemplate.d.ts.map +1 -1
  630. package/dist/esm/static-helpers/urlTemplate.js +22 -12
  631. package/dist/esm/static-helpers/urlTemplate.js.map +1 -1
  632. package/dist/react-native/aiProjectClient.d.ts +39 -36
  633. package/dist/react-native/aiProjectClient.d.ts.map +1 -1
  634. package/dist/react-native/aiProjectClient.js +66 -57
  635. package/dist/react-native/aiProjectClient.js.map +1 -1
  636. package/dist/react-native/api/agents/index.d.ts +3 -0
  637. package/dist/react-native/api/agents/index.d.ts.map +1 -0
  638. package/dist/react-native/api/agents/index.js +4 -0
  639. package/dist/react-native/api/agents/index.js.map +1 -0
  640. package/dist/react-native/api/agents/operations.d.ts +60 -0
  641. package/dist/react-native/api/agents/operations.d.ts.map +1 -0
  642. package/dist/react-native/api/agents/operations.js +412 -0
  643. package/dist/react-native/api/agents/operations.js.map +1 -0
  644. package/dist/react-native/api/agents/options.d.ts +151 -0
  645. package/dist/react-native/api/agents/options.d.ts.map +1 -0
  646. package/dist/react-native/api/agents/options.js +4 -0
  647. package/dist/react-native/api/agents/options.js.map +1 -0
  648. package/dist/react-native/api/aiProjectContext.d.ts +6 -13
  649. package/dist/react-native/api/aiProjectContext.d.ts.map +1 -1
  650. package/dist/react-native/api/aiProjectContext.js +10 -17
  651. package/dist/react-native/api/aiProjectContext.js.map +1 -1
  652. package/dist/react-native/api/connections/index.d.ts +1 -1
  653. package/dist/react-native/api/connections/index.d.ts.map +1 -1
  654. package/dist/react-native/api/connections/index.js +1 -1
  655. package/dist/react-native/api/connections/index.js.map +1 -1
  656. package/dist/react-native/api/connections/operations.d.ts +1 -1
  657. package/dist/react-native/api/connections/operations.d.ts.map +1 -1
  658. package/dist/react-native/api/connections/operations.js +1 -1
  659. package/dist/react-native/api/connections/operations.js.map +1 -1
  660. package/dist/react-native/api/datasets/operations.d.ts +8 -13
  661. package/dist/react-native/api/datasets/operations.d.ts.map +1 -1
  662. package/dist/react-native/api/datasets/operations.js +129 -141
  663. package/dist/react-native/api/datasets/operations.js.map +1 -1
  664. package/dist/react-native/api/deployments/operations.d.ts +1 -1
  665. package/dist/react-native/api/deployments/operations.d.ts.map +1 -1
  666. package/dist/react-native/api/deployments/operations.js +1 -1
  667. package/dist/react-native/api/deployments/operations.js.map +1 -1
  668. package/dist/react-native/api/evaluationRules/index.d.ts +3 -0
  669. package/dist/react-native/api/evaluationRules/index.d.ts.map +1 -0
  670. package/dist/react-native/api/evaluationRules/index.js +4 -0
  671. package/dist/react-native/api/evaluationRules/index.js.map +1 -0
  672. package/dist/react-native/api/evaluationRules/operations.d.ts +22 -0
  673. package/dist/react-native/api/evaluationRules/operations.d.ts.map +1 -0
  674. package/dist/react-native/api/evaluationRules/operations.js +126 -0
  675. package/dist/react-native/api/evaluationRules/operations.js.map +1 -0
  676. package/dist/react-native/api/evaluationRules/options.d.ts +27 -0
  677. package/dist/react-native/api/evaluationRules/options.d.ts.map +1 -0
  678. package/dist/react-native/api/evaluationRules/options.js +4 -0
  679. package/dist/react-native/api/evaluationRules/options.js.map +1 -0
  680. package/dist/react-native/api/evaluationTaxonomies/index.d.ts +3 -0
  681. package/dist/react-native/api/evaluationTaxonomies/index.d.ts.map +1 -0
  682. package/dist/react-native/api/evaluationTaxonomies/index.js +4 -0
  683. package/dist/react-native/api/evaluationTaxonomies/index.js.map +1 -0
  684. package/dist/react-native/api/evaluationTaxonomies/operations.d.ts +26 -0
  685. package/dist/react-native/api/evaluationTaxonomies/operations.d.ts.map +1 -0
  686. package/dist/react-native/api/evaluationTaxonomies/operations.js +154 -0
  687. package/dist/react-native/api/evaluationTaxonomies/operations.js.map +1 -0
  688. package/dist/react-native/api/evaluationTaxonomies/options.d.ts +27 -0
  689. package/dist/react-native/api/evaluationTaxonomies/options.d.ts.map +1 -0
  690. package/dist/react-native/api/evaluationTaxonomies/options.js +4 -0
  691. package/dist/react-native/api/evaluationTaxonomies/options.js.map +1 -0
  692. package/dist/react-native/api/evaluators/index.d.ts +3 -0
  693. package/dist/react-native/api/evaluators/index.d.ts.map +1 -0
  694. package/dist/react-native/api/evaluators/index.js +4 -0
  695. package/dist/react-native/api/evaluators/index.js.map +1 -0
  696. package/dist/react-native/api/evaluators/operations.d.ts +30 -0
  697. package/dist/react-native/api/evaluators/operations.d.ts.map +1 -0
  698. package/dist/react-native/api/evaluators/operations.js +171 -0
  699. package/dist/react-native/api/evaluators/operations.js.map +1 -0
  700. package/dist/react-native/api/evaluators/options.d.ts +29 -0
  701. package/dist/react-native/api/evaluators/options.d.ts.map +1 -0
  702. package/dist/react-native/api/evaluators/options.js +4 -0
  703. package/dist/react-native/api/evaluators/options.js.map +1 -0
  704. package/dist/react-native/api/index.d.ts.map +1 -1
  705. package/dist/react-native/api/index.js +2 -0
  706. package/dist/react-native/api/index.js.map +1 -1
  707. package/dist/react-native/api/indexes/operations.d.ts +3 -8
  708. package/dist/react-native/api/indexes/operations.d.ts.map +1 -1
  709. package/dist/react-native/api/indexes/operations.js +4 -16
  710. package/dist/react-native/api/indexes/operations.js.map +1 -1
  711. package/dist/react-native/api/insights/index.d.ts +3 -0
  712. package/dist/react-native/api/insights/index.d.ts.map +1 -0
  713. package/dist/react-native/api/insights/index.js +4 -0
  714. package/dist/react-native/api/insights/index.js.map +1 -0
  715. package/dist/react-native/api/insights/operations.d.ts +18 -0
  716. package/dist/react-native/api/insights/operations.d.ts.map +1 -0
  717. package/dist/react-native/api/insights/operations.js +109 -0
  718. package/dist/react-native/api/insights/operations.js.map +1 -0
  719. package/dist/react-native/api/insights/options.d.ts +32 -0
  720. package/dist/react-native/api/insights/options.d.ts.map +1 -0
  721. package/dist/react-native/api/insights/options.js +4 -0
  722. package/dist/react-native/api/insights/options.js.map +1 -0
  723. package/dist/react-native/api/memoryStores/index.d.ts +3 -0
  724. package/dist/react-native/api/memoryStores/index.d.ts.map +1 -0
  725. package/dist/react-native/api/memoryStores/index.js +4 -0
  726. package/dist/react-native/api/memoryStores/index.js.map +1 -0
  727. package/dist/react-native/api/memoryStores/operations.d.ts +43 -0
  728. package/dist/react-native/api/memoryStores/operations.d.ts.map +1 -0
  729. package/dist/react-native/api/memoryStores/operations.js +306 -0
  730. package/dist/react-native/api/memoryStores/operations.js.map +1 -0
  731. package/dist/react-native/api/memoryStores/options.d.ts +83 -0
  732. package/dist/react-native/api/memoryStores/options.d.ts.map +1 -0
  733. package/dist/react-native/api/memoryStores/options.js +4 -0
  734. package/dist/react-native/api/memoryStores/options.js.map +1 -0
  735. package/dist/react-native/api/redTeams/index.d.ts +3 -0
  736. package/dist/react-native/api/redTeams/index.d.ts.map +1 -0
  737. package/dist/react-native/api/redTeams/index.js +4 -0
  738. package/dist/react-native/api/redTeams/index.js.map +1 -0
  739. package/dist/react-native/api/redTeams/operations.d.ts +18 -0
  740. package/dist/react-native/api/redTeams/operations.d.ts.map +1 -0
  741. package/dist/react-native/api/redTeams/operations.js +93 -0
  742. package/dist/react-native/api/redTeams/operations.js.map +1 -0
  743. package/dist/react-native/api/redTeams/options.d.ts +15 -0
  744. package/dist/react-native/api/redTeams/options.d.ts.map +1 -0
  745. package/dist/react-native/api/redTeams/options.js +4 -0
  746. package/dist/react-native/api/redTeams/options.js.map +1 -0
  747. package/dist/react-native/api/schedules/index.d.ts +3 -0
  748. package/dist/react-native/api/schedules/index.d.ts.map +1 -0
  749. package/dist/react-native/api/schedules/index.js +4 -0
  750. package/dist/react-native/api/schedules/index.js.map +1 -0
  751. package/dist/react-native/api/schedules/operations.d.ts +30 -0
  752. package/dist/react-native/api/schedules/operations.d.ts.map +1 -0
  753. package/dist/react-native/api/schedules/operations.js +178 -0
  754. package/dist/react-native/api/schedules/operations.js.map +1 -0
  755. package/dist/react-native/api/schedules/options.d.ts +26 -0
  756. package/dist/react-native/api/schedules/options.d.ts.map +1 -0
  757. package/dist/react-native/api/schedules/options.js +4 -0
  758. package/dist/react-native/api/schedules/options.js.map +1 -0
  759. package/dist/react-native/classic/agents/index.d.ts +39 -0
  760. package/dist/react-native/classic/agents/index.d.ts.map +1 -0
  761. package/dist/react-native/classic/agents/index.js +43 -0
  762. package/dist/react-native/classic/agents/index.js.map +1 -0
  763. package/dist/react-native/classic/connections/index.d.ts +1 -1
  764. package/dist/react-native/classic/connections/index.d.ts.map +1 -1
  765. package/dist/react-native/classic/connections/index.js.map +1 -1
  766. package/dist/react-native/classic/datasets/index.d.ts +4 -9
  767. package/dist/react-native/classic/datasets/index.d.ts.map +1 -1
  768. package/dist/react-native/classic/datasets/index.js +0 -1
  769. package/dist/react-native/classic/datasets/index.js.map +1 -1
  770. package/dist/react-native/classic/deployments/index.d.ts +1 -1
  771. package/dist/react-native/classic/deployments/index.d.ts.map +1 -1
  772. package/dist/react-native/classic/deployments/index.js.map +1 -1
  773. package/dist/react-native/classic/evaluationRules/index.d.ts +17 -0
  774. package/dist/react-native/classic/evaluationRules/index.d.ts.map +1 -0
  775. package/dist/react-native/classic/evaluationRules/index.js +17 -0
  776. package/dist/react-native/classic/evaluationRules/index.js.map +1 -0
  777. package/dist/react-native/classic/evaluationTaxonomies/index.d.ts +19 -0
  778. package/dist/react-native/classic/evaluationTaxonomies/index.d.ts.map +1 -0
  779. package/dist/react-native/classic/evaluationTaxonomies/index.js +18 -0
  780. package/dist/react-native/classic/evaluationTaxonomies/index.js.map +1 -0
  781. package/dist/react-native/classic/evaluators/index.d.ts +21 -0
  782. package/dist/react-native/classic/evaluators/index.d.ts.map +1 -0
  783. package/dist/react-native/classic/evaluators/index.js +25 -0
  784. package/dist/react-native/classic/evaluators/index.js.map +1 -0
  785. package/dist/react-native/classic/index.d.ts +8 -1
  786. package/dist/react-native/classic/index.d.ts.map +1 -1
  787. package/dist/react-native/classic/index.js.map +1 -1
  788. package/dist/react-native/classic/indexes/index.d.ts +3 -8
  789. package/dist/react-native/classic/indexes/index.d.ts.map +1 -1
  790. package/dist/react-native/classic/indexes/index.js +0 -1
  791. package/dist/react-native/classic/indexes/index.js.map +1 -1
  792. package/dist/react-native/classic/insights/index.d.ts +15 -0
  793. package/dist/react-native/classic/insights/index.d.ts.map +1 -0
  794. package/dist/react-native/classic/insights/index.js +16 -0
  795. package/dist/react-native/classic/insights/index.js.map +1 -0
  796. package/dist/react-native/classic/memoryStores/index.d.ts +28 -0
  797. package/dist/react-native/classic/memoryStores/index.d.ts.map +1 -0
  798. package/dist/react-native/classic/memoryStores/index.js +22 -0
  799. package/dist/react-native/classic/memoryStores/index.js.map +1 -0
  800. package/dist/react-native/classic/redTeams/index.d.ts +15 -0
  801. package/dist/react-native/classic/redTeams/index.d.ts.map +1 -0
  802. package/dist/react-native/classic/redTeams/index.js +16 -0
  803. package/dist/react-native/classic/redTeams/index.js.map +1 -0
  804. package/dist/react-native/classic/schedules/index.d.ts +21 -0
  805. package/dist/react-native/classic/schedules/index.d.ts.map +1 -0
  806. package/dist/react-native/classic/schedules/index.js +19 -0
  807. package/dist/react-native/classic/schedules/index.js.map +1 -0
  808. package/dist/react-native/constants.d.ts +1 -1
  809. package/dist/react-native/constants.d.ts.map +1 -1
  810. package/dist/react-native/constants.js +1 -1
  811. package/dist/react-native/constants.js.map +1 -1
  812. package/dist/react-native/index.d.ts +11 -5
  813. package/dist/react-native/index.d.ts.map +1 -1
  814. package/dist/react-native/index.js +2 -1
  815. package/dist/react-native/index.js.map +1 -1
  816. package/dist/react-native/models/index.d.ts +1 -1
  817. package/dist/react-native/models/index.d.ts.map +1 -1
  818. package/dist/react-native/models/index.js +1 -1
  819. package/dist/react-native/models/index.js.map +1 -1
  820. package/dist/react-native/models/models.d.ts +3081 -24
  821. package/dist/react-native/models/models.d.ts.map +1 -1
  822. package/dist/react-native/models/models.js +3778 -266
  823. package/dist/react-native/models/models.js.map +1 -1
  824. package/dist/react-native/overwriteOpenAIClient.d.ts +3 -0
  825. package/dist/react-native/overwriteOpenAIClient.d.ts.map +1 -0
  826. package/dist/react-native/overwriteOpenAIClient.js +14 -0
  827. package/dist/react-native/overwriteOpenAIClient.js.map +1 -0
  828. package/dist/react-native/restorePollerHelpers.d.ts +24 -0
  829. package/dist/react-native/restorePollerHelpers.d.ts.map +1 -0
  830. package/dist/react-native/restorePollerHelpers.js +91 -0
  831. package/dist/react-native/restorePollerHelpers.js.map +1 -0
  832. package/dist/react-native/static-helpers/pollingHelpers.d.ts +30 -0
  833. package/dist/react-native/static-helpers/pollingHelpers.d.ts.map +1 -0
  834. package/dist/react-native/static-helpers/pollingHelpers.js +79 -0
  835. package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
  836. package/dist/react-native/static-helpers/serialization/serialize-record.d.ts +2 -0
  837. package/dist/react-native/static-helpers/serialization/serialize-record.d.ts.map +1 -0
  838. package/dist/react-native/static-helpers/serialization/serialize-record.js +20 -0
  839. package/dist/react-native/static-helpers/serialization/serialize-record.js.map +1 -0
  840. package/dist/react-native/static-helpers/urlTemplate.d.ts.map +1 -1
  841. package/dist/react-native/static-helpers/urlTemplate.js +22 -12
  842. package/dist/react-native/static-helpers/urlTemplate.js.map +1 -1
  843. package/package.json +11 -11
  844. package/dist/browser/api/inference/operations.d.ts +0 -19
  845. package/dist/browser/api/inference/operations.d.ts.map +0 -1
  846. package/dist/browser/api/inference/operations.js +0 -96
  847. package/dist/browser/api/inference/operations.js.map +0 -1
  848. package/dist/browser/api/inference/options.d.ts +0 -21
  849. package/dist/browser/api/inference/options.d.ts.map +0 -1
  850. package/dist/browser/api/inference/options.js.map +0 -1
  851. package/dist/browser/api/telemetry/index.d.ts +0 -2
  852. package/dist/browser/api/telemetry/index.d.ts.map +0 -1
  853. package/dist/browser/api/telemetry/index.js +0 -4
  854. package/dist/browser/api/telemetry/index.js.map +0 -1
  855. package/dist/browser/api/telemetry/operations.d.ts +0 -22
  856. package/dist/browser/api/telemetry/operations.d.ts.map +0 -1
  857. package/dist/browser/api/telemetry/operations.js +0 -55
  858. package/dist/browser/api/telemetry/operations.js.map +0 -1
  859. package/dist/browser/classic/inference/index.d.ts +0 -11
  860. package/dist/browser/classic/inference/index.d.ts.map +0 -1
  861. package/dist/browser/classic/inference/index.js +0 -14
  862. package/dist/browser/classic/inference/index.js.map +0 -1
  863. package/dist/browser/classic/telemetry/index.d.ts +0 -8
  864. package/dist/browser/classic/telemetry/index.d.ts.map +0 -1
  865. package/dist/browser/classic/telemetry/index.js +0 -13
  866. package/dist/browser/classic/telemetry/index.js.map +0 -1
  867. package/dist/commonjs/api/inference/operations.d.ts +0 -19
  868. package/dist/commonjs/api/inference/operations.d.ts.map +0 -1
  869. package/dist/commonjs/api/inference/operations.js +0 -99
  870. package/dist/commonjs/api/inference/operations.js.map +0 -1
  871. package/dist/commonjs/api/inference/options.d.ts +0 -21
  872. package/dist/commonjs/api/inference/options.d.ts.map +0 -1
  873. package/dist/commonjs/api/inference/options.js.map +0 -1
  874. package/dist/commonjs/api/telemetry/index.d.ts +0 -2
  875. package/dist/commonjs/api/telemetry/index.d.ts.map +0 -1
  876. package/dist/commonjs/api/telemetry/index.js +0 -8
  877. package/dist/commonjs/api/telemetry/index.js.map +0 -1
  878. package/dist/commonjs/api/telemetry/operations.d.ts +0 -22
  879. package/dist/commonjs/api/telemetry/operations.d.ts.map +0 -1
  880. package/dist/commonjs/api/telemetry/operations.js +0 -58
  881. package/dist/commonjs/api/telemetry/operations.js.map +0 -1
  882. package/dist/commonjs/classic/inference/index.d.ts +0 -11
  883. package/dist/commonjs/classic/inference/index.d.ts.map +0 -1
  884. package/dist/commonjs/classic/inference/index.js +0 -17
  885. package/dist/commonjs/classic/inference/index.js.map +0 -1
  886. package/dist/commonjs/classic/telemetry/index.d.ts +0 -8
  887. package/dist/commonjs/classic/telemetry/index.d.ts.map +0 -1
  888. package/dist/commonjs/classic/telemetry/index.js +0 -16
  889. package/dist/commonjs/classic/telemetry/index.js.map +0 -1
  890. package/dist/esm/api/inference/operations.d.ts +0 -19
  891. package/dist/esm/api/inference/operations.d.ts.map +0 -1
  892. package/dist/esm/api/inference/operations.js +0 -96
  893. package/dist/esm/api/inference/operations.js.map +0 -1
  894. package/dist/esm/api/inference/options.d.ts +0 -21
  895. package/dist/esm/api/inference/options.d.ts.map +0 -1
  896. package/dist/esm/api/inference/options.js.map +0 -1
  897. package/dist/esm/api/telemetry/index.d.ts +0 -2
  898. package/dist/esm/api/telemetry/index.d.ts.map +0 -1
  899. package/dist/esm/api/telemetry/index.js +0 -4
  900. package/dist/esm/api/telemetry/index.js.map +0 -1
  901. package/dist/esm/api/telemetry/operations.d.ts +0 -22
  902. package/dist/esm/api/telemetry/operations.d.ts.map +0 -1
  903. package/dist/esm/api/telemetry/operations.js +0 -55
  904. package/dist/esm/api/telemetry/operations.js.map +0 -1
  905. package/dist/esm/classic/inference/index.d.ts +0 -11
  906. package/dist/esm/classic/inference/index.d.ts.map +0 -1
  907. package/dist/esm/classic/inference/index.js +0 -14
  908. package/dist/esm/classic/inference/index.js.map +0 -1
  909. package/dist/esm/classic/telemetry/index.d.ts +0 -8
  910. package/dist/esm/classic/telemetry/index.d.ts.map +0 -1
  911. package/dist/esm/classic/telemetry/index.js +0 -13
  912. package/dist/esm/classic/telemetry/index.js.map +0 -1
  913. package/dist/react-native/api/inference/operations.d.ts +0 -19
  914. package/dist/react-native/api/inference/operations.d.ts.map +0 -1
  915. package/dist/react-native/api/inference/operations.js +0 -96
  916. package/dist/react-native/api/inference/operations.js.map +0 -1
  917. package/dist/react-native/api/inference/options.d.ts +0 -21
  918. package/dist/react-native/api/inference/options.d.ts.map +0 -1
  919. package/dist/react-native/api/inference/options.js.map +0 -1
  920. package/dist/react-native/api/telemetry/index.d.ts +0 -2
  921. package/dist/react-native/api/telemetry/index.d.ts.map +0 -1
  922. package/dist/react-native/api/telemetry/index.js +0 -4
  923. package/dist/react-native/api/telemetry/index.js.map +0 -1
  924. package/dist/react-native/api/telemetry/operations.d.ts +0 -22
  925. package/dist/react-native/api/telemetry/operations.d.ts.map +0 -1
  926. package/dist/react-native/api/telemetry/operations.js +0 -55
  927. package/dist/react-native/api/telemetry/operations.js.map +0 -1
  928. package/dist/react-native/classic/inference/index.d.ts +0 -11
  929. package/dist/react-native/classic/inference/index.d.ts.map +0 -1
  930. package/dist/react-native/classic/inference/index.js +0 -14
  931. package/dist/react-native/classic/inference/index.js.map +0 -1
  932. package/dist/react-native/classic/telemetry/index.d.ts +0 -8
  933. package/dist/react-native/classic/telemetry/index.d.ts.map +0 -1
  934. package/dist/react-native/classic/telemetry/index.js +0 -13
  935. package/dist/react-native/classic/telemetry/index.js.map +0 -1
  936. /package/dist/browser/api/{inference → agents}/options.js +0 -0
  937. /package/dist/{esm/api/inference → browser/api/evaluationRules}/options.js +0 -0
  938. /package/dist/{react-native/api/inference → browser/api/evaluationTaxonomies}/options.js +0 -0
  939. /package/dist/commonjs/api/{inference → agents}/options.js +0 -0
package/README.md CHANGED
@@ -1,15 +1,17 @@
1
1
  # Azure AI Projects client library for JavaScript
2
2
 
3
- The AI Projects client library provides easy access to resources in your Azure AI Foundry project.
3
+ The AI Projects client library provides easy access to resources in your Microsoft Foundry project.
4
4
  Use it to:
5
5
 
6
6
  - **Create and run Agents** using the `.agents` property on the client.
7
- - **Get an AzureOpenAI client** using the `.inference.azureOpenAI` method.
7
+ - **Get an OpenAI client** using the `.getOpenAIClient.` method.
8
8
  - **Enumerate AI Models** deployed to your Foundry Project using the `.deployments` operations.
9
9
  - **Enumerate connected Azure resources** in your Foundry project using the `.connections` operations.
10
10
  - **Upload documents and create Datasets** to reference them using the `.datasets` operations.
11
+ - **Upload, retrieve, list, and delete files** using the OpenAI client obtained from `.getOpenAIClient()`. upload files to be used for fine-tuning and other AI model operations.
11
12
  - **Create and enumerate Search Indexes** using the `.indexes` operations.
12
- - **Enable OpenTelemetry tracing** using the `enable_telemetry` function.
13
+
14
+ The client library uses version `2025-11-15-preview` of the Microsoft Foundry [data plane REST APIs](https://aka.ms/azsdk/azure-ai-projects/rest-api-reference).
13
15
 
14
16
  [Product documentation](https://aka.ms/azsdk/azure-ai-projects/product-doc)
15
17
  | [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/ai/ai-projects/samples)
@@ -26,12 +28,14 @@ Use it to:
26
28
  - [Key concepts](#key-concepts)
27
29
  - [Create and authenticate the client](#create-and-authenticate-the-client)
28
30
  - [Examples](#examples)
31
+ - [Performing Responses operations using OpenAI client](#performing-responses-operations-using-openai-client)
29
32
  - [Performing Agent operations](#performing-agent-operations)
30
- - [Get an authenticated AzureOpenAI client](#get-an-authenticated-azureopenai-client)
31
33
  - [Deployments operations](#deployments-operations)
32
34
  - [Connections operations](#connections-operations)
33
35
  - [Dataset operations](#dataset-operations)
36
+ - [Files operations](#files-operations)
34
37
  - [Indexes operations](#indexes-operations)
38
+ - [Tracing](#tracing)
35
39
  - [Troubleshooting](#troubleshooting)
36
40
  - [Exceptions](#exceptions)
37
41
  - [Reporting issues](#reporting-issues)
@@ -44,7 +48,7 @@ Use it to:
44
48
 
45
49
  - [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)
46
50
  - An [Azure subscription][azure_sub].
47
- - A [project in Azure AI Foundry](https://learn.microsoft.com/azure/ai-studio/how-to/create-projects?tabs=ai-studio).
51
+ - A [project in Microsoft Foundry](https://learn.microsoft.com/azure/ai-studio/how-to/create-projects?tabs=ai-studio).
48
52
 
49
53
  ### Authorization
50
54
 
@@ -64,64 +68,99 @@ npm install @azure/ai-projects @azure/identity
64
68
 
65
69
  ### Create and authenticate the client
66
70
 
67
- To construct an `AIProjectsClient`, the `endpoint` can be fetched from [endpoint][ai_project_client_endpoint]. Below we will assume the environment variable `AZURE_AI_PROJECT_ENDPOINT_STRING` was defined to hold this value:
71
+ To construct an `AIProjectsClient`, the `projectEndpoint` can be fetched from [projectEndpoint][ai_project_client_endpoint]. Below we will assume the environment variable `AZURE_AI_PROJECT_ENDPOINT_STRING` was defined to hold this value:
68
72
 
69
73
  ```ts snippet:setup
70
74
  import { AIProjectClient } from "@azure/ai-projects";
71
75
  import { DefaultAzureCredential } from "@azure/identity";
72
76
 
73
- const endpoint = process.env["AZURE_AI_PROJECT_ENDPOINT_STRING"] || "<project endpoint string>";
74
- const client = new AIProjectClient(endpoint, new DefaultAzureCredential());
77
+ const projectEndpoint =
78
+ process.env["AZURE_AI_PROJECT_ENDPOINT_STRING"] || "<project endpoint string>";
79
+ const client = new AIProjectClient(projectEndpoint, new DefaultAzureCredential());
75
80
  ```
76
81
 
77
- The client uses API version `v1`, refer to the [API documentation][ai_foundry_data_plane_rest_apis] to learn more about the supported features.
82
+ The client uses API version `2025-11-15-preview`, refer to the [API documentation][ai_foundry_data_plane_rest_apis] to learn more about the supported features.
78
83
 
79
84
  ## Examples
80
85
 
81
- ### Performing Agent operations
82
-
83
- The `.agents` property on the `AIProjectClient` gives you access to an authenticated `AgentsClient` from the `azure-ai-agents` package. Below we show how to create an agent and delete it. To see what you can do with the `agent` you created, see the [many samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/ai/ai-agents/samples) associated with the `azure-ai-agents` package.
84
-
85
- ```ts snippet:agentsSample
86
- const agent = await project.agents.createAgent("gpt-4o", {
87
- name: "my-agent",
88
- instructions: "You are a helpful agent",
89
- });
90
- console.log(`Created agent, agent ID : ${agent.id}`);
91
-
92
- // Do something with your Agent!
93
- // See samples here https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/ai/ai-agents/samples
94
- await project.agents.deleteAgent(agent.id);
95
- console.log(`Deleted agent, agent ID: ${agent.id}`);
96
- ```
97
-
98
- ### Get an authenticated AzureOpenAI client
86
+ ### Performing Responses operations using OpenAI client
99
87
 
100
- Your Azure AI Foundry project may have one or more OpenAI models deployed that support chat completions. Use the code below to get an authenticated [AzureOpenAI](https://github.com/openai/openai-python?tab=readme-ov-file#microsoft-azure-openai) from the [openai](https://pypi.org/project/openai/) package, and execute a chat completions call.
88
+ Your Microsoft Foundry project may have one or more OpenAI models deployed that support chat completions. Use the code below to get an authenticated [OpenAI](https://github.com/openai/openai-python?tab=readme-ov-file#microsoft-azure-openai) from the [openai](https://pypi.org/project/openai/) package, and execute a chat completions call.
101
89
 
102
90
  Run the code below. Here we assume `deploymentName` (str) is defined. It's the deployment name of an AI model in your Foundry Project. As shown in the "Models + endpoints" tab, under the "Name" column.
103
91
 
104
- Update the `api_version` value with one found in the "Data plane - inference" row [in this table](https://learn.microsoft.com/azure/ai-foundry/openai/reference#api-specs).
92
+ Update the `api_version` value with one found in the "Data plane - inference" row [in this table](https://learn.microsoft.com/azure/ai-foundry/openai/reference#api-specs)..
105
93
 
106
- You also have the option (not shown) to explicitly specify the Azure OpenAI connection name in your AI Foundry Project, which the `inference.azureOpenAI` method will use to get the inference endpoint and authentication credentials. If not present the default Azure OpenAI connection will be used.
94
+ For openai logging, please refer [OpenAI Logging]( https://github.com/openai/openai-node/tree/master?tab=readme-ov-file#logging).
107
95
 
108
96
  ```ts snippet:openAI
109
- const client = await project.inference.azureOpenAI({
110
- // The API version should match the version of the Azure OpenAI resource.
111
- apiVersion: "2024-10-21",
112
- });
113
- const response = await client.chat.completions.create({
97
+ const openAIClient = await project.getOpenAIClient();
98
+ const response = await openAIClient.responses.create({
114
99
  model: deploymentName,
115
- messages: [{ role: "user", content: "How many feet are in a mile?" }],
100
+ input: "What is the size of France in square miles?",
116
101
  });
117
102
  console.log("response = ", JSON.stringify(response, null, 2));
118
103
  ```
119
104
 
120
- See the "inference" folder in the [package samples][samples] for additional samples.
105
+ See the "responses" folder in the [package samples][samples] for additional samples, including streaming responses.
106
+
107
+ ### Performing Agent operations
108
+
109
+ The `.agents` property on the `AIProjectsClient` gives you access to all Agent operations. Agents use an extension of the
110
+ OpenAI Responses protocol, so you will likely need to get an `OpenAI` client to do Agent operations, as shown in the example below.
121
111
 
112
+ ```ts snippet:agents
113
+ const openAIClient = await project.getOpenAIClient();
114
+ const agent = await project.agents.createVersion("my-agent-basic", {
115
+ kind: "prompt",
116
+ model: deploymentName,
117
+ instructions: "You are a helpful assistant that answers general questions",
118
+ });
119
+ console.log(`Agent created (id: ${agent.id}, name: ${agent.name}, version: ${agent.version})`);
120
+ const conversation = await openAIClient.conversations.create({
121
+ items: [
122
+ { type: "message", role: "user", content: "What is the size of France in square miles?" },
123
+ ],
124
+ });
125
+ console.log(`Created conversation with initial user message (id: ${conversation.id})`);
126
+ // Generate response using the agent
127
+ console.log("\nGenerating response...");
128
+ const response = await openAIClient.responses.create(
129
+ {
130
+ conversation: conversation.id,
131
+ },
132
+ {
133
+ body: { agent: { name: agent.name, type: "agent_reference" } },
134
+ },
135
+ );
136
+ console.log(`Response output: ${response.output_text}`);
137
+ // Add a second user message to the conversation
138
+ console.log("\nAdding a second user message to the conversation...");
139
+ await openAIClient.conversations.items.create(conversation.id, {
140
+ items: [{ type: "message", role: "user", content: "And what is the capital city?" }],
141
+ });
142
+ console.log("Added a second user message to the conversation");
143
+ // Generate second response
144
+ console.log("\nGenerating second response...");
145
+ const response2 = await openAIClient.responses.create(
146
+ {
147
+ conversation: conversation.id,
148
+ },
149
+ {
150
+ body: { agent: { name: agent.name, type: "agent_reference" } },
151
+ },
152
+ );
153
+ console.log(`Response output: ${response2.output_text}`);
154
+ // Clean up
155
+ console.log("\nCleaning up resources...");
156
+ await openAIClient.conversations.delete(conversation.id);
157
+ console.log("Conversation deleted");
158
+ await project.agents.deleteVersion(agent.name, agent.version);
159
+ console.log("Agent deleted");
160
+ ```
122
161
  ### Deployments operations
123
162
 
124
- The code below shows some Deployments operations, which allow you to enumerate the AI models deployed to your AI Foundry Projects. These models can be seen in the "Models + endpoints" tab in your AI Foundry Project. Full samples can be found under the "deployment" folder in the [package samples][samples].
163
+ The code below shows some Deployments operations, which allow you to enumerate the AI models deployed to your Microsoft Foundry Projects. These models can be seen in the "Models + endpoints" tab in your Microsoft Foundry Project. Full samples can be found under the "deployment" folder in the [package samples][samples].
125
164
 
126
165
  ```ts snippet:deployments
127
166
  import { ModelDeployment } from "@azure/ai-projects";
@@ -180,7 +219,7 @@ if (deployments.length > 0) {
180
219
 
181
220
  ### Connections operations
182
221
 
183
- The code below shows some Connection operations, which allow you to enumerate the Azure Resources connected to your AI Foundry Projects. These connections can be seen in the "Management Center", in the "Connected resources" tab in your AI Foundry Project. Full samples can be found under the "connections" folder in the [package samples][samples].
222
+ The code below shows some Connection operations, which allow you to enumerate the Azure Resources connected to your Microsoft Foundry Projects. These connections can be seen in the "Management Center", in the "Connected resources" tab in your Microsoft Foundry Project. Full samples can be found under the "connections" folder in the [package samples][samples].
184
223
 
185
224
  ```ts snippet:connections
186
225
  import { Connection } from "@azure/ai-projects";
@@ -294,6 +333,38 @@ await project.datasets.delete(datasetName, dataset3.version);
294
333
  console.log("All specified Datasets have been deleted.");
295
334
  ```
296
335
 
336
+ ### Files operations
337
+
338
+ The code below shows some Files operations using the OpenAI client, which allow you to upload, retrieve, list, and delete files. These operations are useful for working with files that can be used for fine-tuning and other AI model operations. Full samples can be found under the "files" folder in the [package samples][samples].
339
+
340
+ ```ts snippet:files
341
+ const openAIClient = await project.getOpenAIClient();
342
+ console.log("Uploading file");
343
+ const created = await openAIClient.files.create({
344
+ file: fs.createReadStream(filePath),
345
+ purpose: "fine-tune",
346
+ });
347
+ console.log(`Uploaded file with ID: ${created.id}`);
348
+ const uploadedFile = await openAIClient.files.retrieve(created.id);
349
+ console.log("Processed file metadata:\n", JSON.stringify(uploadedFile, null, 2));
350
+ console.log(`Retrieving file content with ID: ${uploadedFile.id}`);
351
+ const contentResponse = await openAIClient.files.content(uploadedFile.id);
352
+ const buf = Buffer.from(await contentResponse.arrayBuffer());
353
+ console.log(buf.toString("utf-8"));
354
+ // 4) List all files
355
+ console.log("Listing all files:");
356
+ const filesList = await openAIClient.files.list();
357
+ for (const f of filesList.data ?? []) {
358
+ console.log(JSON.stringify(f));
359
+ }
360
+ // 5) Delete the file
361
+ console.log(`Deleting file with ID: ${uploadedFile.id}`);
362
+ const deleted = await openAIClient.files.delete(uploadedFile.id);
363
+ console.log(
364
+ `Successfully deleted file: ${deleted?.id || uploadedFile.id}, deleted=${String(deleted?.deleted ?? true)}`,
365
+ );
366
+ ```
367
+
297
368
  ### Indexes operations
298
369
 
299
370
  The code below shows some Indexes operations. Full samples can be found under the "indexes"
@@ -331,6 +402,11 @@ for await (const i of allIndexes) {
331
402
  console.log("Delete the Index versions created above:");
332
403
  await project.indexes.delete(indexName, version);
333
404
  ```
405
+ ## Tracing
406
+
407
+ **Note:** Tracing functionality is in preliminary preview and is subject to change. Spans, attributes, and events may be modified in future versions.
408
+
409
+ You can add an Application Insights Azure resource to your Microsoft Foundry project. See the Tracing tab in your Microsoft Foundry project. If one was enabled, you can get the Application Insights connection string, configure your AI Projects client, and observe the full execution path through Azure Monitor. Typically, you might want to start tracing before you create a client or Agent.
334
410
 
335
411
  ## Troubleshooting
336
412
 
@@ -1,13 +1,17 @@
1
- import { AgentsClient } from "@azure/ai-agents";
2
- import type { AzureOpenAI } from "openai";
1
+ import OpenAI from "openai";
3
2
  import { AIProjectClientOptionalParams } from "./api/index.js";
3
+ import { AgentsOperations } from "./classic/agents/index.js";
4
+ import { ConnectionsOperations } from "./classic/connections/index.js";
5
+ import { DatasetsOperations } from "./classic/datasets/index.js";
4
6
  import { DeploymentsOperations } from "./classic/deployments/index.js";
7
+ import { EvaluationRulesOperations } from "./classic/evaluationRules/index.js";
8
+ import { EvaluationTaxonomiesOperations } from "./classic/evaluationTaxonomies/index.js";
9
+ import { EvaluatorsOperations } from "./classic/evaluators/index.js";
5
10
  import { IndexesOperations } from "./classic/indexes/index.js";
6
- import { DatasetsOperations } from "./classic/datasets/index.js";
7
- import { ConnectionsOperations } from "./classic/connections/index.js";
8
- import { TelemetryOperations } from "./classic/telemetry/index.js";
9
- import { GetAzureOpenAIClientOptions } from "./api/inference/options.js";
10
- import type { Pipeline } from "@azure/core-rest-pipeline";
11
+ import { InsightsOperations } from "./classic/insights/index.js";
12
+ import { MemoryStoresOperations } from "./classic/memoryStores/index.js";
13
+ import { RedTeamsOperations } from "./classic/redTeams/index.js";
14
+ import { SchedulesOperations } from "./classic/schedules/index.js";
11
15
  import { TokenCredential } from "@azure/core-auth";
12
16
  export { AIProjectClientOptionalParams } from "./api/aiProjectContext.js";
13
17
  /**
@@ -19,24 +23,35 @@ export { AIProjectClientOptionalParams } from "./api/aiProjectContext.js";
19
23
  * @param {string} endpoint - The endpoint to use
20
24
  * @param {TokenCredential} credential - The credential to use
21
25
  * @param {AIProjectClientOptionalParams} [options] - Optional parameters for the client.
26
+ * @property {RedTeamsOperations} redTeams - The operation groups for redTeams
22
27
  * @property {DeploymentsOperations} deployments - The operation groups for deployments
23
28
  * @property {IndexesOperations} indexes - The operation groups for indexes
24
29
  * @property {DatasetsOperations} datasets - The operation groups for datasets
25
30
  * @property {ConnectionsOperations} connections - The operation groups for connections
26
- * @method {getAzureOpenAIClient} getAzureOpenAIClient - get the Azure OpenAI client for the project
27
- * @property {TelemetryOperations} telemetry - The operation groups for telemetry
31
+ * @property {MemoryStoresOperations} memoryStores - The operation groups for memoryStores
32
+ * @property {AgentsOperations} agents - The operation groups for agents
33
+ * @property {getEndpointUrl} getEndpointUrl - gets the endpoint of the client
34
+ * @property {getOpenAIClient} getOpenAIClient - gets the OpenAI client
28
35
  */
29
36
  export declare class AIProjectClient {
30
37
  private _cognitiveScopeClient;
31
38
  private _azureScopeClient;
32
39
  private _endpoint;
33
40
  private _credential;
34
- private _agents;
35
41
  private _options;
36
- private readonly _inference;
37
- /** The pipeline used by this client to make requests */
38
- readonly pipeline: Pipeline;
39
- constructor(endpointParam: string, credential: TokenCredential, options?: AIProjectClientOptionalParams);
42
+ constructor(endpoint: string, credential: TokenCredential, options?: AIProjectClientOptionalParams);
43
+ /** The operation groups for schedules */
44
+ readonly schedules: SchedulesOperations;
45
+ /** The operation groups for insights */
46
+ readonly insights: InsightsOperations;
47
+ /** The operation groups for evaluators */
48
+ readonly evaluators: EvaluatorsOperations;
49
+ /** The operation groups for evaluationTaxonomies */
50
+ readonly evaluationTaxonomies: EvaluationTaxonomiesOperations;
51
+ /** The operation groups for evaluationRules */
52
+ readonly evaluationRules: EvaluationRulesOperations;
53
+ /** The operation groups for redTeams */
54
+ readonly redTeams: RedTeamsOperations;
40
55
  /** The operation groups for deployments */
41
56
  readonly deployments: DeploymentsOperations;
42
57
  /** The operation groups for indexes */
@@ -45,31 +60,19 @@ export declare class AIProjectClient {
45
60
  readonly datasets: DatasetsOperations;
46
61
  /** The operation groups for connections */
47
62
  readonly connections: ConnectionsOperations;
48
- /** The operation groups for inference */
49
- /** The operation groups for telemetry */
50
- readonly telemetry: TelemetryOperations;
51
- /**
52
- * gets the endpoint of the client
53
- * @returns the endpoint of the client
54
- */
55
- getEndpointUrl(): string;
56
- /**
57
- * Gets the Azure OpenAI client for the project.
58
- * @returns The Azure OpenAI client for the project.
59
- */
60
- getAzureOpenAIClient(options?: GetAzureOpenAIClientOptions): Promise<AzureOpenAI>;
63
+ /** The operation groups for memoryStores */
64
+ readonly memoryStores: MemoryStoresOperations;
65
+ /** The operation groups for agents */
66
+ readonly agents: AgentsOperations;
61
67
  /**
62
- * Creates a new instance of AzureAIProjectClient
63
- * @param endpoint - The endpoint to use
64
- * @param credential - The credential to use
65
- * @param options - The parameter for all optional parameters
68
+ * gets the OpenAI client
69
+ * @returns the OpenAI client
66
70
  */
67
- static fromEndpoint(endpoint: string, credential: TokenCredential, options?: AIProjectClientOptionalParams): AIProjectClient;
71
+ getOpenAIClient(): Promise<OpenAI>;
68
72
  /**
69
- * Get the AgentsClient associated with this AIProjectClient.
70
- *
71
- * @returns The AgentsClient associated with this AIProjectClient
73
+ * gets the endpoint of the client
74
+ * @returns the endpoint of the client
72
75
  */
73
- get agents(): AgentsClient;
76
+ get endpoint(): string;
74
77
  }
75
78
  //# sourceMappingURL=aiProjectClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"aiProjectClient.d.ts","sourceRoot":"","sources":["../../src/aiProjectClient.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAqC,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;AAClG,OAAO,EAAE,qBAAqB,EAA6B,MAAM,gCAAgC,CAAC;AAClG,OAAO,EAAE,iBAAiB,EAAyB,MAAM,4BAA4B,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAA0B,MAAM,6BAA6B,CAAC;AACzF,OAAO,EAAE,qBAAqB,EAA6B,MAAM,gCAAgC,CAAC;AAElG,OAAO,EAAE,mBAAmB,EAA2B,MAAM,8BAA8B,CAAC;AAC5F,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAE1E;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,qBAAqB,CAAmB;IAChD,OAAO,CAAC,iBAAiB,CAAmB;IAC5C,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,WAAW,CAAkB;IACrC,OAAO,CAAC,OAAO,CAA2B;IAC1C,OAAO,CAAC,QAAQ,CAAgC;IAChD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAsB;IACjD,wDAAwD;IACxD,SAAgB,QAAQ,EAAE,QAAQ,CAAC;gBAGjC,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,eAAe,EAC3B,OAAO,GAAE,6BAAkC;IAgC7C,2CAA2C;IAC3C,SAAgB,WAAW,EAAE,qBAAqB,CAAC;IACnD,uCAAuC;IACvC,SAAgB,OAAO,EAAE,iBAAiB,CAAC;IAC3C,wCAAwC;IACxC,SAAgB,QAAQ,EAAE,kBAAkB,CAAC;IAC7C,2CAA2C;IAC3C,SAAgB,WAAW,EAAE,qBAAqB,CAAC;IACnD,yCAAyC;IACzC,yCAAyC;IACzC,SAAgB,SAAS,EAAE,mBAAmB,CAAC;IAC/C;;;OAGG;IACI,cAAc,IAAI,MAAM;IAI/B;;;OAGG;IACI,oBAAoB,CAAC,OAAO,CAAC,EAAE,2BAA2B,GAAG,OAAO,CAAC,WAAW,CAAC;IAIxF;;;;;OAKG;IACH,MAAM,CAAC,YAAY,CACjB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,eAAe,EAC3B,OAAO,GAAE,6BAAkC,GAC1C,eAAe;IAIlB;;;;OAIG;IAEH,IAAW,MAAM,IAAI,YAAY,CAUhC;CACF"}
1
+ {"version":3,"file":"aiProjectClient.d.ts","sourceRoot":"","sources":["../../src/aiProjectClient.ts"],"names":[],"mappings":"AAIA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAqC,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;AAClG,OAAO,EAAE,gBAAgB,EAAwB,MAAM,2BAA2B,CAAC;AACnF,OAAO,EAAE,qBAAqB,EAA6B,MAAM,gCAAgC,CAAC;AAClG,OAAO,EAAE,kBAAkB,EAA0B,MAAM,6BAA6B,CAAC;AACzF,OAAO,EAAE,qBAAqB,EAA6B,MAAM,gCAAgC,CAAC;AAClG,OAAO,EACL,yBAAyB,EAE1B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,8BAA8B,EAE/B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAA4B,MAAM,+BAA+B,CAAC;AAC/F,OAAO,EAAE,iBAAiB,EAAyB,MAAM,4BAA4B,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAA0B,MAAM,6BAA6B,CAAC;AACzF,OAAO,EACL,sBAAsB,EAEvB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAA0B,MAAM,6BAA6B,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAA2B,MAAM,8BAA8B,CAAC;AAC5F,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGnD,OAAO,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAE1E;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,qBAAqB,CAAmB;IAChD,OAAO,CAAC,iBAAiB,CAAmB;IAC5C,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,WAAW,CAAkB;IACrC,OAAO,CAAC,QAAQ,CAAgC;gBAG9C,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,eAAe,EAC3B,OAAO,GAAE,6BAAkC;IAoC7C,yCAAyC;IACzC,SAAgB,SAAS,EAAE,mBAAmB,CAAC;IAC/C,wCAAwC;IACxC,SAAgB,QAAQ,EAAE,kBAAkB,CAAC;IAC7C,0CAA0C;IAC1C,SAAgB,UAAU,EAAE,oBAAoB,CAAC;IACjD,oDAAoD;IACpD,SAAgB,oBAAoB,EAAE,8BAA8B,CAAC;IACrE,+CAA+C;IAC/C,SAAgB,eAAe,EAAE,yBAAyB,CAAC;IAC3D,wCAAwC;IACxC,SAAgB,QAAQ,EAAE,kBAAkB,CAAC;IAC7C,2CAA2C;IAC3C,SAAgB,WAAW,EAAE,qBAAqB,CAAC;IACnD,uCAAuC;IACvC,SAAgB,OAAO,EAAE,iBAAiB,CAAC;IAC3C,wCAAwC;IACxC,SAAgB,QAAQ,EAAE,kBAAkB,CAAC;IAC7C,2CAA2C;IAC3C,SAAgB,WAAW,EAAE,qBAAqB,CAAC;IACnD,4CAA4C;IAC5C,SAAgB,YAAY,EAAE,sBAAsB,CAAC;IACrD,sCAAsC;IACtC,SAAgB,MAAM,EAAE,gBAAgB,CAAC;IACzC;;;OAGG;IACU,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC;IAc/C;;;OAGG;IACH,IAAW,QAAQ,IAAI,MAAM,CAE5B;CACF"}
@@ -1,14 +1,22 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
3
  /* eslint-disable tsdoc/syntax */
4
- import { AgentsClient } from "@azure/ai-agents";
4
+ import OpenAI from "openai";
5
+ import { getBearerTokenProvider } from "@azure/identity";
5
6
  import { createAIProject } from "./api/index.js";
7
+ import { _getAgentsOperations } from "./classic/agents/index.js";
8
+ import { _getConnectionsOperations } from "./classic/connections/index.js";
9
+ import { _getDatasetsOperations } from "./classic/datasets/index.js";
6
10
  import { _getDeploymentsOperations } from "./classic/deployments/index.js";
11
+ import { _getEvaluationRulesOperations, } from "./classic/evaluationRules/index.js";
12
+ import { _getEvaluationTaxonomiesOperations, } from "./classic/evaluationTaxonomies/index.js";
13
+ import { _getEvaluatorsOperations } from "./classic/evaluators/index.js";
7
14
  import { _getIndexesOperations } from "./classic/indexes/index.js";
8
- import { _getDatasetsOperations } from "./classic/datasets/index.js";
9
- import { _getConnectionsOperations } from "./classic/connections/index.js";
10
- import { _getInferenceOperations } from "./classic/inference/index.js";
11
- import { _getTelemetryOperations } from "./classic/telemetry/index.js";
15
+ import { _getInsightsOperations } from "./classic/insights/index.js";
16
+ import { _getMemoryStoresOperations, } from "./classic/memoryStores/index.js";
17
+ import { _getRedTeamsOperations } from "./classic/redTeams/index.js";
18
+ import { _getSchedulesOperations } from "./classic/schedules/index.js";
19
+ import { overwriteOpenAIClient } from "./overwriteOpenAIClient.js";
12
20
  /**
13
21
  * The main client for the AIProjectClient service. It provides access to the various operations available in the service.
14
22
  * @class AIProjectClient
@@ -18,51 +26,67 @@ import { _getTelemetryOperations } from "./classic/telemetry/index.js";
18
26
  * @param {string} endpoint - The endpoint to use
19
27
  * @param {TokenCredential} credential - The credential to use
20
28
  * @param {AIProjectClientOptionalParams} [options] - Optional parameters for the client.
29
+ * @property {RedTeamsOperations} redTeams - The operation groups for redTeams
21
30
  * @property {DeploymentsOperations} deployments - The operation groups for deployments
22
31
  * @property {IndexesOperations} indexes - The operation groups for indexes
23
32
  * @property {DatasetsOperations} datasets - The operation groups for datasets
24
33
  * @property {ConnectionsOperations} connections - The operation groups for connections
25
- * @method {getAzureOpenAIClient} getAzureOpenAIClient - get the Azure OpenAI client for the project
26
- * @property {TelemetryOperations} telemetry - The operation groups for telemetry
34
+ * @property {MemoryStoresOperations} memoryStores - The operation groups for memoryStores
35
+ * @property {AgentsOperations} agents - The operation groups for agents
36
+ * @property {getEndpointUrl} getEndpointUrl - gets the endpoint of the client
37
+ * @property {getOpenAIClient} getOpenAIClient - gets the OpenAI client
27
38
  */
28
39
  export class AIProjectClient {
29
40
  _cognitiveScopeClient;
30
41
  _azureScopeClient;
31
42
  _endpoint;
32
43
  _credential;
33
- _agents;
34
44
  _options;
35
- _inference;
36
- /** The pipeline used by this client to make requests */
37
- pipeline;
38
- constructor(endpointParam, credential, options = {}) {
39
- this._endpoint = endpointParam;
45
+ constructor(endpoint, credential, options = {}) {
46
+ this._endpoint = endpoint;
40
47
  this._credential = credential;
41
48
  this._options = options;
42
49
  const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
43
50
  const userAgentPrefix = prefixFromOptions
44
51
  ? `${prefixFromOptions} azsdk-js-client`
45
52
  : `azsdk-js-client`;
46
- this._cognitiveScopeClient = createAIProject(endpointParam, credential, {
53
+ this._cognitiveScopeClient = createAIProject(endpoint, this._credential, {
47
54
  ...options,
48
55
  userAgentOptions: { userAgentPrefix },
49
- });
50
- this._azureScopeClient = createAIProject(endpointParam, credential, {
51
- ...options,
52
56
  credentials: {
53
57
  ...options.credentials,
54
- scopes: ["https://ai.azure.com/.default"],
58
+ scopes: ["https://cognitiveservices.azure.com/.default"],
55
59
  },
60
+ });
61
+ this._azureScopeClient = createAIProject(endpoint, credential, {
62
+ ...options,
56
63
  userAgentOptions: { userAgentPrefix },
57
64
  });
58
- this.pipeline = this._cognitiveScopeClient.pipeline;
65
+ this.schedules = _getSchedulesOperations(this._cognitiveScopeClient);
66
+ this.insights = _getInsightsOperations(this._cognitiveScopeClient);
67
+ this.evaluators = _getEvaluatorsOperations(this._cognitiveScopeClient);
68
+ this.evaluationTaxonomies = _getEvaluationTaxonomiesOperations(this._cognitiveScopeClient);
69
+ this.evaluationRules = _getEvaluationRulesOperations(this._cognitiveScopeClient);
70
+ this.redTeams = _getRedTeamsOperations(this._cognitiveScopeClient);
59
71
  this.deployments = _getDeploymentsOperations(this._azureScopeClient);
60
72
  this.indexes = _getIndexesOperations(this._azureScopeClient);
61
73
  this.datasets = _getDatasetsOperations(this._azureScopeClient, this._options);
62
74
  this.connections = _getConnectionsOperations(this._azureScopeClient);
63
- this._inference = _getInferenceOperations(this._cognitiveScopeClient, this.connections);
64
- this.telemetry = _getTelemetryOperations(this.connections);
75
+ this.memoryStores = _getMemoryStoresOperations(this._cognitiveScopeClient);
76
+ this.agents = _getAgentsOperations(this._azureScopeClient);
65
77
  }
78
+ /** The operation groups for schedules */
79
+ schedules;
80
+ /** The operation groups for insights */
81
+ insights;
82
+ /** The operation groups for evaluators */
83
+ evaluators;
84
+ /** The operation groups for evaluationTaxonomies */
85
+ evaluationTaxonomies;
86
+ /** The operation groups for evaluationRules */
87
+ evaluationRules;
88
+ /** The operation groups for redTeams */
89
+ redTeams;
66
90
  /** The operation groups for deployments */
67
91
  deployments;
68
92
  /** The operation groups for indexes */
@@ -71,47 +95,32 @@ export class AIProjectClient {
71
95
  datasets;
72
96
  /** The operation groups for connections */
73
97
  connections;
74
- /** The operation groups for inference */
75
- /** The operation groups for telemetry */
76
- telemetry;
77
- /**
78
- * gets the endpoint of the client
79
- * @returns the endpoint of the client
80
- */
81
- getEndpointUrl() {
82
- return this._endpoint;
83
- }
84
- /**
85
- * Gets the Azure OpenAI client for the project.
86
- * @returns The Azure OpenAI client for the project.
87
- */
88
- getAzureOpenAIClient(options) {
89
- return this._inference.azureOpenAI(options);
90
- }
98
+ /** The operation groups for memoryStores */
99
+ memoryStores;
100
+ /** The operation groups for agents */
101
+ agents;
91
102
  /**
92
- * Creates a new instance of AzureAIProjectClient
93
- * @param endpoint - The endpoint to use
94
- * @param credential - The credential to use
95
- * @param options - The parameter for all optional parameters
103
+ * gets the OpenAI client
104
+ * @returns the OpenAI client
96
105
  */
97
- static fromEndpoint(endpoint, credential, options = {}) {
98
- return new AIProjectClient(endpoint, credential, options);
106
+ async getOpenAIClient() {
107
+ const scope = "https://ai.azure.com/.default";
108
+ const azureADTokenProvider = await getBearerTokenProvider(this._credential, scope);
109
+ const openAIOptions = {
110
+ apiKey: azureADTokenProvider,
111
+ baseURL: `${this._endpoint}/openai`,
112
+ defaultQuery: { "api-version": this._options?.apiVersion || "2025-11-15-preview" },
113
+ dangerouslyAllowBrowser: true,
114
+ };
115
+ const openaiClient = new OpenAI(openAIOptions);
116
+ return overwriteOpenAIClient(openaiClient);
99
117
  }
100
118
  /**
101
- * Get the AgentsClient associated with this AIProjectClient.
102
- *
103
- * @returns The AgentsClient associated with this AIProjectClient
119
+ * gets the endpoint of the client
120
+ * @returns the endpoint of the client
104
121
  */
105
- // eslint-disable-next-line @azure/azure-sdk/ts-naming-subclients
106
- get agents() {
107
- const { apiVersion, ...clientOptions } = this._options;
108
- if (!this._agents) {
109
- this._agents = new AgentsClient(this._endpoint, this._credential, {
110
- ...clientOptions,
111
- userAgentOptions: this._cognitiveScopeClient.getUserAgent(),
112
- });
113
- }
114
- return this._agents;
122
+ get endpoint() {
123
+ return this._endpoint;
115
124
  }
116
125
  }
117
126
  //# sourceMappingURL=aiProjectClient.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"aiProjectClient.js","sourceRoot":"","sources":["../../src/aiProjectClient.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n/* eslint-disable tsdoc/syntax */\n\nimport { AgentsClient } from \"@azure/ai-agents\";\nimport type { AzureOpenAI } from \"openai\";\nimport { createAIProject, AIProjectContext, AIProjectClientOptionalParams } from \"./api/index.js\";\nimport { DeploymentsOperations, _getDeploymentsOperations } from \"./classic/deployments/index.js\";\nimport { IndexesOperations, _getIndexesOperations } from \"./classic/indexes/index.js\";\nimport { DatasetsOperations, _getDatasetsOperations } from \"./classic/datasets/index.js\";\nimport { ConnectionsOperations, _getConnectionsOperations } from \"./classic/connections/index.js\";\nimport { InferenceOperations, _getInferenceOperations } from \"./classic/inference/index.js\";\nimport { TelemetryOperations, _getTelemetryOperations } from \"./classic/telemetry/index.js\";\nimport { GetAzureOpenAIClientOptions } from \"./api/inference/options.js\";\nimport type { Pipeline } from \"@azure/core-rest-pipeline\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\nexport { AIProjectClientOptionalParams } from \"./api/aiProjectContext.js\";\n\n/**\n * The main client for the AIProjectClient service. It provides access to the various operations available in the service.\n * @class AIProjectClient\n * @extends {AIProjectContext}\n * @description The main client for the AIProjectClient\n * @constructor\n * @param {string} endpoint - The endpoint to use\n * @param {TokenCredential} credential - The credential to use\n * @param {AIProjectClientOptionalParams} [options] - Optional parameters for the client.\n * @property {DeploymentsOperations} deployments - The operation groups for deployments\n * @property {IndexesOperations} indexes - The operation groups for indexes\n * @property {DatasetsOperations} datasets - The operation groups for datasets\n * @property {ConnectionsOperations} connections - The operation groups for connections\n * @method {getAzureOpenAIClient} getAzureOpenAIClient - get the Azure OpenAI client for the project\n * @property {TelemetryOperations} telemetry - The operation groups for telemetry\n */\nexport class AIProjectClient {\n private _cognitiveScopeClient: AIProjectContext;\n private _azureScopeClient: AIProjectContext;\n private _endpoint: string;\n private _credential: TokenCredential;\n private _agents: AgentsClient | undefined;\n private _options: AIProjectClientOptionalParams;\n private readonly _inference: InferenceOperations;\n /** The pipeline used by this client to make requests */\n public readonly pipeline: Pipeline;\n\n constructor(\n endpointParam: string,\n credential: TokenCredential,\n options: AIProjectClientOptionalParams = {},\n ) {\n this._endpoint = endpointParam;\n this._credential = credential;\n this._options = options;\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-client`\n : `azsdk-js-client`;\n this._cognitiveScopeClient = createAIProject(endpointParam, credential, {\n ...options,\n userAgentOptions: { userAgentPrefix },\n });\n\n this._azureScopeClient = createAIProject(endpointParam, credential, {\n ...options,\n credentials: {\n ...options.credentials,\n scopes: [\"https://ai.azure.com/.default\"],\n },\n userAgentOptions: { userAgentPrefix },\n });\n\n this.pipeline = this._cognitiveScopeClient.pipeline;\n this.deployments = _getDeploymentsOperations(this._azureScopeClient);\n this.indexes = _getIndexesOperations(this._azureScopeClient);\n this.datasets = _getDatasetsOperations(this._azureScopeClient, this._options);\n this.connections = _getConnectionsOperations(this._azureScopeClient);\n this._inference = _getInferenceOperations(this._cognitiveScopeClient, this.connections);\n this.telemetry = _getTelemetryOperations(this.connections);\n }\n\n /** The operation groups for deployments */\n public readonly deployments: DeploymentsOperations;\n /** The operation groups for indexes */\n public readonly indexes: IndexesOperations;\n /** The operation groups for datasets */\n public readonly datasets: DatasetsOperations;\n /** The operation groups for connections */\n public readonly connections: ConnectionsOperations;\n /** The operation groups for inference */\n /** The operation groups for telemetry */\n public readonly telemetry: TelemetryOperations;\n /**\n * gets the endpoint of the client\n * @returns the endpoint of the client\n */\n public getEndpointUrl(): string {\n return this._endpoint;\n }\n\n /**\n * Gets the Azure OpenAI client for the project.\n * @returns The Azure OpenAI client for the project.\n */\n public getAzureOpenAIClient(options?: GetAzureOpenAIClientOptions): Promise<AzureOpenAI> {\n return this._inference.azureOpenAI(options);\n }\n\n /**\n * Creates a new instance of AzureAIProjectClient\n * @param endpoint - The endpoint to use\n * @param credential - The credential to use\n * @param options - The parameter for all optional parameters\n */\n static fromEndpoint(\n endpoint: string,\n credential: TokenCredential,\n options: AIProjectClientOptionalParams = {},\n ): AIProjectClient {\n return new AIProjectClient(endpoint, credential, options);\n }\n\n /**\n * Get the AgentsClient associated with this AIProjectClient.\n *\n * @returns The AgentsClient associated with this AIProjectClient\n */\n // eslint-disable-next-line @azure/azure-sdk/ts-naming-subclients\n public get agents(): AgentsClient {\n const { apiVersion, ...clientOptions } = this._options;\n\n if (!this._agents) {\n this._agents = new AgentsClient(this._endpoint, this._credential, {\n ...clientOptions,\n userAgentOptions: this._cognitiveScopeClient.getUserAgent(),\n });\n }\n return this._agents;\n }\n}\n"]}
1
+ {"version":3,"file":"aiProjectClient.js","sourceRoot":"","sources":["../../src/aiProjectClient.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n/* eslint-disable tsdoc/syntax */\n\nimport OpenAI from \"openai\";\nimport { getBearerTokenProvider } from \"@azure/identity\";\nimport { createAIProject, AIProjectContext, AIProjectClientOptionalParams } from \"./api/index.js\";\nimport { AgentsOperations, _getAgentsOperations } from \"./classic/agents/index.js\";\nimport { ConnectionsOperations, _getConnectionsOperations } from \"./classic/connections/index.js\";\nimport { DatasetsOperations, _getDatasetsOperations } from \"./classic/datasets/index.js\";\nimport { DeploymentsOperations, _getDeploymentsOperations } from \"./classic/deployments/index.js\";\nimport {\n EvaluationRulesOperations,\n _getEvaluationRulesOperations,\n} from \"./classic/evaluationRules/index.js\";\nimport {\n EvaluationTaxonomiesOperations,\n _getEvaluationTaxonomiesOperations,\n} from \"./classic/evaluationTaxonomies/index.js\";\nimport { EvaluatorsOperations, _getEvaluatorsOperations } from \"./classic/evaluators/index.js\";\nimport { IndexesOperations, _getIndexesOperations } from \"./classic/indexes/index.js\";\nimport { InsightsOperations, _getInsightsOperations } from \"./classic/insights/index.js\";\nimport {\n MemoryStoresOperations,\n _getMemoryStoresOperations,\n} from \"./classic/memoryStores/index.js\";\nimport { RedTeamsOperations, _getRedTeamsOperations } from \"./classic/redTeams/index.js\";\nimport { SchedulesOperations, _getSchedulesOperations } from \"./classic/schedules/index.js\";\nimport { TokenCredential } from \"@azure/core-auth\";\nimport { overwriteOpenAIClient } from \"./overwriteOpenAIClient.js\";\n\nexport { AIProjectClientOptionalParams } from \"./api/aiProjectContext.js\";\n\n/**\n * The main client for the AIProjectClient service. It provides access to the various operations available in the service.\n * @class AIProjectClient\n * @extends {AIProjectContext}\n * @description The main client for the AIProjectClient\n * @constructor\n * @param {string} endpoint - The endpoint to use\n * @param {TokenCredential} credential - The credential to use\n * @param {AIProjectClientOptionalParams} [options] - Optional parameters for the client.\n * @property {RedTeamsOperations} redTeams - The operation groups for redTeams\n * @property {DeploymentsOperations} deployments - The operation groups for deployments\n * @property {IndexesOperations} indexes - The operation groups for indexes\n * @property {DatasetsOperations} datasets - The operation groups for datasets\n * @property {ConnectionsOperations} connections - The operation groups for connections\n * @property {MemoryStoresOperations} memoryStores - The operation groups for memoryStores\n * @property {AgentsOperations} agents - The operation groups for agents\n * @property {getEndpointUrl} getEndpointUrl - gets the endpoint of the client\n * @property {getOpenAIClient} getOpenAIClient - gets the OpenAI client\n */\nexport class AIProjectClient {\n private _cognitiveScopeClient: AIProjectContext;\n private _azureScopeClient: AIProjectContext;\n private _endpoint: string;\n private _credential: TokenCredential;\n private _options: AIProjectClientOptionalParams;\n\n constructor(\n endpoint: string,\n credential: TokenCredential,\n options: AIProjectClientOptionalParams = {},\n ) {\n this._endpoint = endpoint;\n this._credential = credential;\n this._options = options;\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-client`\n : `azsdk-js-client`;\n this._cognitiveScopeClient = createAIProject(endpoint, this._credential, {\n ...options,\n userAgentOptions: { userAgentPrefix },\n credentials: {\n ...options.credentials,\n scopes: [\"https://cognitiveservices.azure.com/.default\"],\n },\n });\n this._azureScopeClient = createAIProject(endpoint, credential, {\n ...options,\n userAgentOptions: { userAgentPrefix },\n });\n\n this.schedules = _getSchedulesOperations(this._cognitiveScopeClient);\n this.insights = _getInsightsOperations(this._cognitiveScopeClient);\n this.evaluators = _getEvaluatorsOperations(this._cognitiveScopeClient);\n this.evaluationTaxonomies = _getEvaluationTaxonomiesOperations(this._cognitiveScopeClient);\n this.evaluationRules = _getEvaluationRulesOperations(this._cognitiveScopeClient);\n this.redTeams = _getRedTeamsOperations(this._cognitiveScopeClient);\n this.deployments = _getDeploymentsOperations(this._azureScopeClient);\n this.indexes = _getIndexesOperations(this._azureScopeClient);\n this.datasets = _getDatasetsOperations(this._azureScopeClient, this._options);\n this.connections = _getConnectionsOperations(this._azureScopeClient);\n this.memoryStores = _getMemoryStoresOperations(this._cognitiveScopeClient);\n this.agents = _getAgentsOperations(this._azureScopeClient);\n }\n\n /** The operation groups for schedules */\n public readonly schedules: SchedulesOperations;\n /** The operation groups for insights */\n public readonly insights: InsightsOperations;\n /** The operation groups for evaluators */\n public readonly evaluators: EvaluatorsOperations;\n /** The operation groups for evaluationTaxonomies */\n public readonly evaluationTaxonomies: EvaluationTaxonomiesOperations;\n /** The operation groups for evaluationRules */\n public readonly evaluationRules: EvaluationRulesOperations;\n /** The operation groups for redTeams */\n public readonly redTeams: RedTeamsOperations;\n /** The operation groups for deployments */\n public readonly deployments: DeploymentsOperations;\n /** The operation groups for indexes */\n public readonly indexes: IndexesOperations;\n /** The operation groups for datasets */\n public readonly datasets: DatasetsOperations;\n /** The operation groups for connections */\n public readonly connections: ConnectionsOperations;\n /** The operation groups for memoryStores */\n public readonly memoryStores: MemoryStoresOperations;\n /** The operation groups for agents */\n public readonly agents: AgentsOperations;\n /**\n * gets the OpenAI client\n * @returns the OpenAI client\n */\n public async getOpenAIClient(): Promise<OpenAI> {\n const scope = \"https://ai.azure.com/.default\";\n const azureADTokenProvider = await getBearerTokenProvider(this._credential, scope);\n\n const openAIOptions: ConstructorParameters<typeof OpenAI>[0] = {\n apiKey: azureADTokenProvider,\n baseURL: `${this._endpoint}/openai`,\n defaultQuery: { \"api-version\": this._options?.apiVersion || \"2025-11-15-preview\" },\n dangerouslyAllowBrowser: true,\n };\n\n const openaiClient = new OpenAI(openAIOptions);\n return overwriteOpenAIClient(openaiClient);\n }\n /**\n * gets the endpoint of the client\n * @returns the endpoint of the client\n */\n public get endpoint(): string {\n return this._endpoint;\n }\n}\n"]}
@@ -0,0 +1,3 @@
1
+ export { listAgentVersions, deleteAgentVersion, getAgentVersion, createAgentVersionFromManifest, createAgentVersion, listAgents, deleteAgent, updateAgentFromManifest, createAgentFromManifest, updateAgent, createAgent, getAgent, } from "./operations.js";
2
+ export { AgentsListAgentVersionsOptionalParams, AgentsDeleteAgentVersionOptionalParams, AgentsGetAgentVersionOptionalParams, AgentsCreateAgentVersionFromManifestOptionalParams, AgentsCreateAgentVersionOptionalParams, AgentsListAgentsOptionalParams, AgentsDeleteAgentOptionalParams, AgentsUpdateAgentFromManifestOptionalParams, AgentsCreateAgentFromManifestOptionalParams, AgentsUpdateAgentOptionalParams, AgentsCreateAgentOptionalParams, AgentsGetAgentOptionalParams, } from "./options.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/agents/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,8BAA8B,EAC9B,kBAAkB,EAClB,UAAU,EACV,WAAW,EACX,uBAAuB,EACvB,uBAAuB,EACvB,WAAW,EACX,WAAW,EACX,QAAQ,GACT,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,qCAAqC,EACrC,sCAAsC,EACtC,mCAAmC,EACnC,kDAAkD,EAClD,sCAAsC,EACtC,8BAA8B,EAC9B,+BAA+B,EAC/B,2CAA2C,EAC3C,2CAA2C,EAC3C,+BAA+B,EAC/B,+BAA+B,EAC/B,4BAA4B,GAC7B,MAAM,cAAc,CAAC"}
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export { listAgentVersions, deleteAgentVersion, getAgentVersion, createAgentVersionFromManifest, createAgentVersion, listAgents, deleteAgent, updateAgentFromManifest, createAgentFromManifest, updateAgent, createAgent, getAgent, } from "./operations.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/agents/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,8BAA8B,EAC9B,kBAAkB,EAClB,UAAU,EACV,WAAW,EACX,uBAAuB,EACvB,uBAAuB,EACvB,WAAW,EACX,WAAW,EACX,QAAQ,GACT,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n listAgentVersions,\n deleteAgentVersion,\n getAgentVersion,\n createAgentVersionFromManifest,\n createAgentVersion,\n listAgents,\n deleteAgent,\n updateAgentFromManifest,\n createAgentFromManifest,\n updateAgent,\n createAgent,\n getAgent,\n} from \"./operations.js\";\nexport {\n AgentsListAgentVersionsOptionalParams,\n AgentsDeleteAgentVersionOptionalParams,\n AgentsGetAgentVersionOptionalParams,\n AgentsCreateAgentVersionFromManifestOptionalParams,\n AgentsCreateAgentVersionOptionalParams,\n AgentsListAgentsOptionalParams,\n AgentsDeleteAgentOptionalParams,\n AgentsUpdateAgentFromManifestOptionalParams,\n AgentsCreateAgentFromManifestOptionalParams,\n AgentsUpdateAgentOptionalParams,\n AgentsCreateAgentOptionalParams,\n AgentsGetAgentOptionalParams,\n} from \"./options.js\";\n"]}