@azure/ai-projects 2.2.0 → 2.3.0

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 (929) hide show
  1. package/README.md +180 -37
  2. package/dist/browser/aiProjectClient.d.ts +5 -2
  3. package/dist/browser/aiProjectClient.d.ts.map +1 -1
  4. package/dist/browser/aiProjectClient.js +13 -8
  5. package/dist/browser/aiProjectClient.js.map +1 -1
  6. package/dist/browser/api/agents/index.d.ts +2 -2
  7. package/dist/browser/api/agents/index.d.ts.map +1 -1
  8. package/dist/browser/api/agents/index.js +1 -1
  9. package/dist/browser/api/agents/index.js.map +1 -1
  10. package/dist/browser/api/agents/operations.d.ts +147 -18
  11. package/dist/browser/api/agents/operations.d.ts.map +1 -1
  12. package/dist/browser/api/agents/operations.js +679 -42
  13. package/dist/browser/api/agents/operations.js.map +1 -1
  14. package/dist/browser/api/agents/options.d.ts +109 -3
  15. package/dist/browser/api/agents/options.d.ts.map +1 -1
  16. package/dist/browser/api/agents/options.js.map +1 -1
  17. package/dist/browser/api/aiProjectContext.d.ts +9 -0
  18. package/dist/browser/api/aiProjectContext.d.ts.map +1 -1
  19. package/dist/browser/api/aiProjectContext.js +1 -1
  20. package/dist/browser/api/aiProjectContext.js.map +1 -1
  21. package/dist/browser/api/beta/agents/index.d.ts +2 -2
  22. package/dist/browser/api/beta/agents/index.d.ts.map +1 -1
  23. package/dist/browser/api/beta/agents/index.js +1 -1
  24. package/dist/browser/api/beta/agents/index.js.map +1 -1
  25. package/dist/browser/api/beta/agents/operations.d.ts +8 -139
  26. package/dist/browser/api/beta/agents/operations.d.ts.map +1 -1
  27. package/dist/browser/api/beta/agents/operations.js +30 -750
  28. package/dist/browser/api/beta/agents/operations.js.map +1 -1
  29. package/dist/browser/api/beta/agents/options.d.ts +6 -200
  30. package/dist/browser/api/beta/agents/options.d.ts.map +1 -1
  31. package/dist/browser/api/beta/agents/options.js.map +1 -1
  32. package/dist/browser/api/beta/datasets/operations.d.ts +4 -4
  33. package/dist/browser/api/beta/datasets/operations.d.ts.map +1 -1
  34. package/dist/browser/api/beta/datasets/operations.js +19 -9
  35. package/dist/browser/api/beta/datasets/operations.js.map +1 -1
  36. package/dist/browser/api/beta/evaluationTaxonomies/operations.d.ts +4 -4
  37. package/dist/browser/api/beta/evaluationTaxonomies/operations.d.ts.map +1 -1
  38. package/dist/browser/api/beta/evaluationTaxonomies/operations.js +4 -13
  39. package/dist/browser/api/beta/evaluationTaxonomies/operations.js.map +1 -1
  40. package/dist/browser/api/beta/evaluationTaxonomies/options.d.ts +0 -6
  41. package/dist/browser/api/beta/evaluationTaxonomies/options.d.ts.map +1 -1
  42. package/dist/browser/api/beta/evaluationTaxonomies/options.js.map +1 -1
  43. package/dist/browser/api/beta/evaluators/operations.d.ts +14 -9
  44. package/dist/browser/api/beta/evaluators/operations.d.ts.map +1 -1
  45. package/dist/browser/api/beta/evaluators/operations.js +35 -16
  46. package/dist/browser/api/beta/evaluators/operations.js.map +1 -1
  47. package/dist/browser/api/beta/insights/operations.d.ts +3 -3
  48. package/dist/browser/api/beta/insights/operations.d.ts.map +1 -1
  49. package/dist/browser/api/beta/insights/operations.js +13 -13
  50. package/dist/browser/api/beta/insights/operations.js.map +1 -1
  51. package/dist/browser/api/beta/insights/options.d.ts +0 -4
  52. package/dist/browser/api/beta/insights/options.d.ts.map +1 -1
  53. package/dist/browser/api/beta/insights/options.js.map +1 -1
  54. package/dist/browser/api/beta/memoryStores/operations.d.ts +17 -14
  55. package/dist/browser/api/beta/memoryStores/operations.d.ts.map +1 -1
  56. package/dist/browser/api/beta/memoryStores/operations.js +59 -28
  57. package/dist/browser/api/beta/memoryStores/operations.js.map +1 -1
  58. package/dist/browser/api/beta/models/operations.d.ts +6 -6
  59. package/dist/browser/api/beta/models/operations.d.ts.map +1 -1
  60. package/dist/browser/api/beta/models/operations.js +8 -8
  61. package/dist/browser/api/beta/models/operations.js.map +1 -1
  62. package/dist/browser/api/beta/redTeams/operations.d.ts +3 -3
  63. package/dist/browser/api/beta/redTeams/operations.d.ts.map +1 -1
  64. package/dist/browser/api/beta/redTeams/operations.js +6 -10
  65. package/dist/browser/api/beta/redTeams/operations.js.map +1 -1
  66. package/dist/browser/api/beta/redTeams/options.d.ts +0 -4
  67. package/dist/browser/api/beta/redTeams/options.d.ts.map +1 -1
  68. package/dist/browser/api/beta/redTeams/options.js.map +1 -1
  69. package/dist/browser/api/beta/routines/operations.d.ts +8 -8
  70. package/dist/browser/api/beta/routines/operations.d.ts.map +1 -1
  71. package/dist/browser/api/beta/routines/operations.js +55 -44
  72. package/dist/browser/api/beta/routines/operations.js.map +1 -1
  73. package/dist/browser/api/beta/schedules/operations.d.ts +6 -6
  74. package/dist/browser/api/beta/schedules/operations.d.ts.map +1 -1
  75. package/dist/browser/api/beta/schedules/operations.js +9 -22
  76. package/dist/browser/api/beta/schedules/operations.js.map +1 -1
  77. package/dist/browser/api/beta/schedules/options.d.ts +0 -10
  78. package/dist/browser/api/beta/schedules/options.d.ts.map +1 -1
  79. package/dist/browser/api/beta/schedules/options.js.map +1 -1
  80. package/dist/browser/api/beta/skills/operations.d.ts +24 -24
  81. package/dist/browser/api/beta/skills/operations.d.ts.map +1 -1
  82. package/dist/browser/api/beta/skills/operations.js +154 -132
  83. package/dist/browser/api/beta/skills/operations.js.map +1 -1
  84. package/dist/browser/api/beta/skills/options.d.ts +6 -6
  85. package/dist/browser/api/beta/skills/options.d.ts.map +1 -1
  86. package/dist/browser/api/beta/skills/options.js.map +1 -1
  87. package/dist/browser/api/connections/options.d.ts +2 -2
  88. package/dist/browser/api/connections/options.d.ts.map +1 -1
  89. package/dist/browser/api/connections/options.js.map +1 -1
  90. package/dist/browser/api/deployments/operations.d.ts +1 -1
  91. package/dist/browser/api/deployments/operations.d.ts.map +1 -1
  92. package/dist/browser/api/deployments/operations.js +1 -1
  93. package/dist/browser/api/deployments/operations.js.map +1 -1
  94. package/dist/browser/api/evaluationRules/operations.d.ts +4 -4
  95. package/dist/browser/api/evaluationRules/operations.d.ts.map +1 -1
  96. package/dist/browser/api/evaluationRules/operations.js +4 -4
  97. package/dist/browser/api/evaluationRules/operations.js.map +1 -1
  98. package/dist/browser/api/toolboxes/index.d.ts +3 -0
  99. package/dist/browser/api/toolboxes/index.d.ts.map +1 -0
  100. package/dist/browser/api/toolboxes/index.js.map +1 -0
  101. package/dist/browser/api/{beta/toolboxes → toolboxes}/operations.d.ts +21 -21
  102. package/dist/browser/api/toolboxes/operations.d.ts.map +1 -0
  103. package/dist/browser/api/{beta/toolboxes → toolboxes}/operations.js +44 -62
  104. package/dist/browser/api/toolboxes/operations.js.map +1 -0
  105. package/dist/browser/api/{beta/toolboxes → toolboxes}/options.d.ts +5 -5
  106. package/dist/browser/api/toolboxes/options.d.ts.map +1 -0
  107. package/dist/browser/api/toolboxes/options.js.map +1 -0
  108. package/dist/browser/classic/agents/index.d.ts +102 -3
  109. package/dist/browser/classic/agents/index.d.ts.map +1 -1
  110. package/dist/browser/classic/agents/index.js +25 -10
  111. package/dist/browser/classic/agents/index.js.map +1 -1
  112. package/dist/browser/classic/beta/agents/index.d.ts +6 -103
  113. package/dist/browser/classic/beta/agents/index.d.ts.map +1 -1
  114. package/dist/browser/classic/beta/agents/index.js +2 -21
  115. package/dist/browser/classic/beta/agents/index.js.map +1 -1
  116. package/dist/browser/classic/beta/datasets/index.d.ts +4 -4
  117. package/dist/browser/classic/beta/datasets/index.d.ts.map +1 -1
  118. package/dist/browser/classic/beta/datasets/index.js.map +1 -1
  119. package/dist/browser/classic/beta/evaluationTaxonomies/index.d.ts +4 -4
  120. package/dist/browser/classic/beta/evaluationTaxonomies/index.d.ts.map +1 -1
  121. package/dist/browser/classic/beta/evaluationTaxonomies/index.js.map +1 -1
  122. package/dist/browser/classic/beta/evaluators/index.d.ts +14 -9
  123. package/dist/browser/classic/beta/evaluators/index.d.ts.map +1 -1
  124. package/dist/browser/classic/beta/evaluators/index.js.map +1 -1
  125. package/dist/browser/classic/beta/index.d.ts +0 -3
  126. package/dist/browser/classic/beta/index.d.ts.map +1 -1
  127. package/dist/browser/classic/beta/index.js +0 -3
  128. package/dist/browser/classic/beta/index.js.map +1 -1
  129. package/dist/browser/classic/beta/insights/index.d.ts +3 -3
  130. package/dist/browser/classic/beta/insights/index.d.ts.map +1 -1
  131. package/dist/browser/classic/beta/insights/index.js.map +1 -1
  132. package/dist/browser/classic/beta/memoryStores/index.d.ts +17 -14
  133. package/dist/browser/classic/beta/memoryStores/index.d.ts.map +1 -1
  134. package/dist/browser/classic/beta/memoryStores/index.js.map +1 -1
  135. package/dist/browser/classic/beta/models/index.d.ts +4 -4
  136. package/dist/browser/classic/beta/models/index.d.ts.map +1 -1
  137. package/dist/browser/classic/beta/models/index.js +1 -1
  138. package/dist/browser/classic/beta/models/index.js.map +1 -1
  139. package/dist/browser/classic/beta/redTeams/index.d.ts +3 -3
  140. package/dist/browser/classic/beta/redTeams/index.d.ts.map +1 -1
  141. package/dist/browser/classic/beta/redTeams/index.js.map +1 -1
  142. package/dist/browser/classic/beta/routines/index.d.ts +8 -8
  143. package/dist/browser/classic/beta/routines/index.d.ts.map +1 -1
  144. package/dist/browser/classic/beta/routines/index.js.map +1 -1
  145. package/dist/browser/classic/deployments/index.d.ts +1 -1
  146. package/dist/browser/classic/deployments/index.d.ts.map +1 -1
  147. package/dist/browser/classic/deployments/index.js.map +1 -1
  148. package/dist/browser/classic/index.d.ts +1 -1
  149. package/dist/browser/classic/index.d.ts.map +1 -1
  150. package/dist/browser/classic/index.js.map +1 -1
  151. package/dist/browser/classic/toolboxes/index.d.ts +25 -0
  152. package/dist/browser/classic/toolboxes/index.d.ts.map +1 -0
  153. package/dist/{esm/classic/beta → browser/classic}/toolboxes/index.js +4 -4
  154. package/dist/browser/classic/toolboxes/index.js.map +1 -0
  155. package/dist/browser/constants.d.ts +1 -1
  156. package/dist/browser/constants.js +1 -1
  157. package/dist/browser/constants.js.map +1 -1
  158. package/dist/browser/index.d.ts +11 -7
  159. package/dist/browser/index.d.ts.map +1 -1
  160. package/dist/browser/index.js +1 -0
  161. package/dist/browser/index.js.map +1 -1
  162. package/dist/browser/models/index.d.ts +1 -1
  163. package/dist/browser/models/index.d.ts.map +1 -1
  164. package/dist/browser/models/index.js.map +1 -1
  165. package/dist/browser/models/models.d.ts +648 -654
  166. package/dist/browser/models/models.d.ts.map +1 -1
  167. package/dist/browser/models/models.js +953 -584
  168. package/dist/browser/models/models.js.map +1 -1
  169. package/dist/browser/overwriteOpenAIClient.d.ts +2 -1
  170. package/dist/browser/overwriteOpenAIClient.d.ts.map +1 -1
  171. package/dist/browser/overwriteOpenAIClient.js +48 -4
  172. package/dist/browser/overwriteOpenAIClient.js.map +1 -1
  173. package/dist/browser/static-helpers/multipartHelpers.d.ts +2 -1
  174. package/dist/browser/static-helpers/multipartHelpers.d.ts.map +1 -1
  175. package/dist/browser/static-helpers/multipartHelpers.js.map +1 -1
  176. package/dist/browser/static-helpers/platform-types-browser.d.mts +6 -0
  177. package/dist/browser/static-helpers/platform-types-browser.d.mts.map +1 -0
  178. package/dist/browser/static-helpers/platform-types-browser.mjs +4 -0
  179. package/dist/browser/static-helpers/platform-types-browser.mjs.map +1 -0
  180. package/dist/browser/static-helpers/platform-types.d.ts +6 -0
  181. package/dist/browser/static-helpers/platform-types.d.ts.map +1 -0
  182. package/dist/browser/static-helpers/platform-types.js +4 -0
  183. package/dist/browser/static-helpers/platform-types.js.map +1 -0
  184. package/dist/browser/static-helpers/serialization/get-binary-stream-response.d.ts +2 -1
  185. package/dist/browser/static-helpers/serialization/get-binary-stream-response.d.ts.map +1 -1
  186. package/dist/browser/static-helpers/serialization/get-binary-stream-response.js.map +1 -1
  187. package/dist/browser/static-helpers/serialization/serialize-record.js +2 -2
  188. package/dist/browser/static-helpers/serialization/serialize-record.js.map +1 -1
  189. package/dist/browser/static-helpers/urlTemplate.js +7 -7
  190. package/dist/browser/static-helpers/urlTemplate.js.map +1 -1
  191. package/dist/browser/tracing/attributes.d.ts +62 -0
  192. package/dist/browser/tracing/attributes.d.ts.map +1 -0
  193. package/dist/browser/tracing/attributes.js +230 -0
  194. package/dist/browser/tracing/attributes.js.map +1 -0
  195. package/dist/browser/tracing/configuration.d.ts +60 -0
  196. package/dist/browser/tracing/configuration.d.ts.map +1 -0
  197. package/dist/browser/tracing/configuration.js +67 -0
  198. package/dist/browser/tracing/configuration.js.map +1 -0
  199. package/dist/browser/tracing/constants.d.ts +55 -0
  200. package/dist/browser/tracing/constants.d.ts.map +1 -0
  201. package/dist/browser/tracing/constants.js +75 -0
  202. package/dist/browser/tracing/constants.js.map +1 -0
  203. package/dist/browser/tracing/formatters.d.ts +11 -0
  204. package/dist/browser/tracing/formatters.d.ts.map +1 -0
  205. package/dist/browser/tracing/formatters.js +251 -0
  206. package/dist/browser/tracing/formatters.js.map +1 -0
  207. package/dist/browser/tracing/metrics.d.ts +22 -0
  208. package/dist/browser/tracing/metrics.d.ts.map +1 -0
  209. package/dist/browser/tracing/metrics.js +77 -0
  210. package/dist/browser/tracing/metrics.js.map +1 -0
  211. package/dist/browser/tracing/responseTracing.d.ts +4 -0
  212. package/dist/browser/tracing/responseTracing.d.ts.map +1 -0
  213. package/dist/browser/tracing/responseTracing.js +223 -0
  214. package/dist/browser/tracing/responseTracing.js.map +1 -0
  215. package/dist/browser/tracing/tracingClient.d.ts +22 -0
  216. package/dist/browser/tracing/tracingClient.d.ts.map +1 -0
  217. package/dist/browser/tracing/tracingClient.js +37 -0
  218. package/dist/browser/tracing/tracingClient.js.map +1 -0
  219. package/dist/browser/tracing/tracingFetch.d.ts +14 -0
  220. package/dist/browser/tracing/tracingFetch.d.ts.map +1 -0
  221. package/dist/browser/tracing/tracingFetch.js +30 -0
  222. package/dist/browser/tracing/tracingFetch.js.map +1 -0
  223. package/dist/commonjs/aiProjectClient.d.ts +5 -2
  224. package/dist/commonjs/aiProjectClient.d.ts.map +1 -1
  225. package/dist/commonjs/aiProjectClient.js +11 -6
  226. package/dist/commonjs/aiProjectClient.js.map +2 -2
  227. package/dist/commonjs/api/agents/index.d.ts +2 -2
  228. package/dist/commonjs/api/agents/index.d.ts.map +1 -1
  229. package/dist/commonjs/api/agents/index.js +32 -2
  230. package/dist/commonjs/api/agents/index.js.map +2 -2
  231. package/dist/commonjs/api/agents/operations.d.ts +147 -18
  232. package/dist/commonjs/api/agents/operations.d.ts.map +1 -1
  233. package/dist/commonjs/api/agents/operations.js +796 -51
  234. package/dist/commonjs/api/agents/operations.js.map +2 -2
  235. package/dist/commonjs/api/agents/options.d.ts +109 -3
  236. package/dist/commonjs/api/agents/options.d.ts.map +1 -1
  237. package/dist/commonjs/api/agents/options.js.map +1 -1
  238. package/dist/commonjs/api/aiProjectContext.d.ts +9 -0
  239. package/dist/commonjs/api/aiProjectContext.d.ts.map +1 -1
  240. package/dist/commonjs/api/aiProjectContext.js +1 -1
  241. package/dist/commonjs/api/aiProjectContext.js.map +2 -2
  242. package/dist/commonjs/api/beta/agents/index.d.ts +2 -2
  243. package/dist/commonjs/api/beta/agents/index.d.ts.map +1 -1
  244. package/dist/commonjs/api/beta/agents/index.js +2 -40
  245. package/dist/commonjs/api/beta/agents/index.js.map +2 -2
  246. package/dist/commonjs/api/beta/agents/operations.d.ts +8 -139
  247. package/dist/commonjs/api/beta/agents/operations.d.ts.map +1 -1
  248. package/dist/commonjs/api/beta/agents/operations.js +29 -888
  249. package/dist/commonjs/api/beta/agents/operations.js.map +2 -2
  250. package/dist/commonjs/api/beta/agents/options.d.ts +6 -200
  251. package/dist/commonjs/api/beta/agents/options.d.ts.map +1 -1
  252. package/dist/commonjs/api/beta/agents/options.js.map +1 -1
  253. package/dist/commonjs/api/beta/datasets/operations.d.ts +4 -4
  254. package/dist/commonjs/api/beta/datasets/operations.d.ts.map +1 -1
  255. package/dist/commonjs/api/beta/datasets/operations.js +15 -5
  256. package/dist/commonjs/api/beta/datasets/operations.js.map +2 -2
  257. package/dist/commonjs/api/beta/evaluationTaxonomies/operations.d.ts +4 -4
  258. package/dist/commonjs/api/beta/evaluationTaxonomies/operations.d.ts.map +1 -1
  259. package/dist/commonjs/api/beta/evaluationTaxonomies/operations.js +0 -3
  260. package/dist/commonjs/api/beta/evaluationTaxonomies/operations.js.map +2 -2
  261. package/dist/commonjs/api/beta/evaluationTaxonomies/options.d.ts +0 -6
  262. package/dist/commonjs/api/beta/evaluationTaxonomies/options.d.ts.map +1 -1
  263. package/dist/commonjs/api/beta/evaluationTaxonomies/options.js.map +1 -1
  264. package/dist/commonjs/api/beta/evaluators/operations.d.ts +14 -9
  265. package/dist/commonjs/api/beta/evaluators/operations.d.ts.map +1 -1
  266. package/dist/commonjs/api/beta/evaluators/operations.js +21 -7
  267. package/dist/commonjs/api/beta/evaluators/operations.js.map +2 -2
  268. package/dist/commonjs/api/beta/insights/operations.d.ts +3 -3
  269. package/dist/commonjs/api/beta/insights/operations.d.ts.map +1 -1
  270. package/dist/commonjs/api/beta/insights/operations.js +10 -6
  271. package/dist/commonjs/api/beta/insights/operations.js.map +2 -2
  272. package/dist/commonjs/api/beta/insights/options.d.ts +0 -4
  273. package/dist/commonjs/api/beta/insights/options.d.ts.map +1 -1
  274. package/dist/commonjs/api/beta/insights/options.js.map +1 -1
  275. package/dist/commonjs/api/beta/memoryStores/operations.d.ts +17 -14
  276. package/dist/commonjs/api/beta/memoryStores/operations.d.ts.map +1 -1
  277. package/dist/commonjs/api/beta/memoryStores/operations.js +42 -14
  278. package/dist/commonjs/api/beta/memoryStores/operations.js.map +2 -2
  279. package/dist/commonjs/api/beta/models/operations.d.ts +6 -6
  280. package/dist/commonjs/api/beta/models/operations.d.ts.map +1 -1
  281. package/dist/commonjs/api/beta/models/operations.js +4 -4
  282. package/dist/commonjs/api/beta/models/operations.js.map +2 -2
  283. package/dist/commonjs/api/beta/redTeams/operations.d.ts +3 -3
  284. package/dist/commonjs/api/beta/redTeams/operations.d.ts.map +1 -1
  285. package/dist/commonjs/api/beta/redTeams/operations.js +3 -3
  286. package/dist/commonjs/api/beta/redTeams/operations.js.map +2 -2
  287. package/dist/commonjs/api/beta/redTeams/options.d.ts +0 -4
  288. package/dist/commonjs/api/beta/redTeams/options.d.ts.map +1 -1
  289. package/dist/commonjs/api/beta/redTeams/options.js.map +1 -1
  290. package/dist/commonjs/api/beta/routines/operations.d.ts +8 -8
  291. package/dist/commonjs/api/beta/routines/operations.d.ts.map +1 -1
  292. package/dist/commonjs/api/beta/routines/operations.js +47 -20
  293. package/dist/commonjs/api/beta/routines/operations.js.map +2 -2
  294. package/dist/commonjs/api/beta/schedules/operations.d.ts +6 -6
  295. package/dist/commonjs/api/beta/schedules/operations.d.ts.map +1 -1
  296. package/dist/commonjs/api/beta/schedules/operations.js +3 -6
  297. package/dist/commonjs/api/beta/schedules/operations.js.map +2 -2
  298. package/dist/commonjs/api/beta/schedules/options.d.ts +0 -10
  299. package/dist/commonjs/api/beta/schedules/options.d.ts.map +1 -1
  300. package/dist/commonjs/api/beta/schedules/options.js.map +1 -1
  301. package/dist/commonjs/api/beta/skills/operations.d.ts +24 -24
  302. package/dist/commonjs/api/beta/skills/operations.d.ts.map +1 -1
  303. package/dist/commonjs/api/beta/skills/operations.js +159 -137
  304. package/dist/commonjs/api/beta/skills/operations.js.map +2 -2
  305. package/dist/commonjs/api/beta/skills/options.d.ts +6 -6
  306. package/dist/commonjs/api/beta/skills/options.d.ts.map +1 -1
  307. package/dist/commonjs/api/beta/skills/options.js.map +1 -1
  308. package/dist/commonjs/api/connections/options.d.ts +2 -2
  309. package/dist/commonjs/api/connections/options.d.ts.map +1 -1
  310. package/dist/commonjs/api/connections/options.js.map +1 -1
  311. package/dist/commonjs/api/deployments/operations.d.ts +1 -1
  312. package/dist/commonjs/api/deployments/operations.d.ts.map +1 -1
  313. package/dist/commonjs/api/deployments/operations.js.map +1 -1
  314. package/dist/commonjs/api/evaluationRules/operations.d.ts +4 -4
  315. package/dist/commonjs/api/evaluationRules/operations.d.ts.map +1 -1
  316. package/dist/commonjs/api/evaluationRules/operations.js.map +1 -1
  317. package/dist/commonjs/api/toolboxes/index.d.ts +3 -0
  318. package/dist/commonjs/api/toolboxes/index.d.ts.map +1 -0
  319. package/dist/commonjs/api/{beta/toolboxes → toolboxes}/index.js.map +2 -2
  320. package/dist/{esm/api/beta → commonjs/api}/toolboxes/operations.d.ts +21 -21
  321. package/dist/commonjs/api/toolboxes/operations.d.ts.map +1 -0
  322. package/dist/commonjs/api/{beta/toolboxes → toolboxes}/operations.js +36 -54
  323. package/dist/commonjs/api/toolboxes/operations.js.map +7 -0
  324. package/dist/{react-native/api/beta → commonjs/api}/toolboxes/options.d.ts +5 -5
  325. package/dist/commonjs/api/toolboxes/options.d.ts.map +1 -0
  326. package/dist/commonjs/api/toolboxes/options.js.map +7 -0
  327. package/dist/commonjs/classic/agents/index.d.ts +102 -3
  328. package/dist/commonjs/classic/agents/index.d.ts.map +1 -1
  329. package/dist/commonjs/classic/agents/index.js +30 -9
  330. package/dist/commonjs/classic/agents/index.js.map +2 -2
  331. package/dist/commonjs/classic/beta/agents/index.d.ts +6 -103
  332. package/dist/commonjs/classic/beta/agents/index.d.ts.map +1 -1
  333. package/dist/commonjs/classic/beta/agents/index.js +1 -20
  334. package/dist/commonjs/classic/beta/agents/index.js.map +2 -2
  335. package/dist/commonjs/classic/beta/datasets/index.d.ts +4 -4
  336. package/dist/commonjs/classic/beta/datasets/index.d.ts.map +1 -1
  337. package/dist/commonjs/classic/beta/datasets/index.js.map +1 -1
  338. package/dist/commonjs/classic/beta/evaluationTaxonomies/index.d.ts +4 -4
  339. package/dist/commonjs/classic/beta/evaluationTaxonomies/index.d.ts.map +1 -1
  340. package/dist/commonjs/classic/beta/evaluationTaxonomies/index.js.map +1 -1
  341. package/dist/commonjs/classic/beta/evaluators/index.d.ts +14 -9
  342. package/dist/commonjs/classic/beta/evaluators/index.d.ts.map +1 -1
  343. package/dist/commonjs/classic/beta/evaluators/index.js.map +2 -2
  344. package/dist/commonjs/classic/beta/index.d.ts +0 -3
  345. package/dist/commonjs/classic/beta/index.d.ts.map +1 -1
  346. package/dist/commonjs/classic/beta/index.js +0 -3
  347. package/dist/commonjs/classic/beta/index.js.map +2 -2
  348. package/dist/commonjs/classic/beta/insights/index.d.ts +3 -3
  349. package/dist/commonjs/classic/beta/insights/index.d.ts.map +1 -1
  350. package/dist/commonjs/classic/beta/insights/index.js.map +1 -1
  351. package/dist/commonjs/classic/beta/memoryStores/index.d.ts +17 -14
  352. package/dist/commonjs/classic/beta/memoryStores/index.d.ts.map +1 -1
  353. package/dist/commonjs/classic/beta/memoryStores/index.js.map +2 -2
  354. package/dist/commonjs/classic/beta/models/index.d.ts +4 -4
  355. package/dist/commonjs/classic/beta/models/index.d.ts.map +1 -1
  356. package/dist/commonjs/classic/beta/models/index.js +1 -1
  357. package/dist/commonjs/classic/beta/models/index.js.map +2 -2
  358. package/dist/commonjs/classic/beta/redTeams/index.d.ts +3 -3
  359. package/dist/commonjs/classic/beta/redTeams/index.d.ts.map +1 -1
  360. package/dist/commonjs/classic/beta/redTeams/index.js.map +1 -1
  361. package/dist/commonjs/classic/beta/routines/index.d.ts +8 -8
  362. package/dist/commonjs/classic/beta/routines/index.d.ts.map +1 -1
  363. package/dist/commonjs/classic/beta/routines/index.js.map +1 -1
  364. package/dist/commonjs/classic/deployments/index.d.ts +1 -1
  365. package/dist/commonjs/classic/deployments/index.d.ts.map +1 -1
  366. package/dist/commonjs/classic/deployments/index.js.map +1 -1
  367. package/dist/commonjs/classic/index.d.ts +1 -1
  368. package/dist/commonjs/classic/index.d.ts.map +1 -1
  369. package/dist/commonjs/classic/index.js.map +1 -1
  370. package/dist/commonjs/classic/toolboxes/index.d.ts +25 -0
  371. package/dist/commonjs/classic/toolboxes/index.d.ts.map +1 -0
  372. package/dist/commonjs/classic/{beta/toolboxes → toolboxes}/index.js +6 -6
  373. package/dist/commonjs/classic/toolboxes/index.js.map +7 -0
  374. package/dist/commonjs/constants.d.ts +1 -1
  375. package/dist/commonjs/constants.js +1 -1
  376. package/dist/commonjs/constants.js.map +1 -1
  377. package/dist/commonjs/index.d.ts +11 -7
  378. package/dist/commonjs/index.d.ts.map +1 -1
  379. package/dist/commonjs/index.js +5 -2
  380. package/dist/commonjs/index.js.map +3 -3
  381. package/dist/commonjs/models/index.d.ts +1 -1
  382. package/dist/commonjs/models/index.d.ts.map +1 -1
  383. package/dist/commonjs/models/index.js.map +1 -1
  384. package/dist/commonjs/models/models.d.ts +648 -654
  385. package/dist/commonjs/models/models.d.ts.map +1 -1
  386. package/dist/commonjs/models/models.js +1014 -587
  387. package/dist/commonjs/models/models.js.map +2 -2
  388. package/dist/commonjs/overwriteOpenAIClient.d.ts +2 -1
  389. package/dist/commonjs/overwriteOpenAIClient.d.ts.map +1 -1
  390. package/dist/commonjs/overwriteOpenAIClient.js +58 -4
  391. package/dist/commonjs/overwriteOpenAIClient.js.map +2 -2
  392. package/dist/commonjs/static-helpers/multipartHelpers.d.ts +2 -1
  393. package/dist/commonjs/static-helpers/multipartHelpers.d.ts.map +1 -1
  394. package/dist/commonjs/static-helpers/multipartHelpers.js.map +2 -2
  395. package/dist/commonjs/static-helpers/platform-types.d.ts +8 -0
  396. package/dist/commonjs/static-helpers/platform-types.d.ts.map +1 -0
  397. package/dist/commonjs/static-helpers/platform-types.js +16 -0
  398. package/dist/commonjs/static-helpers/platform-types.js.map +7 -0
  399. package/dist/commonjs/static-helpers/serialization/get-binary-stream-response.d.ts +2 -1
  400. package/dist/commonjs/static-helpers/serialization/get-binary-stream-response.d.ts.map +1 -1
  401. package/dist/commonjs/static-helpers/serialization/get-binary-stream-response.js.map +2 -2
  402. package/dist/commonjs/static-helpers/serialization/serialize-record.js +2 -2
  403. package/dist/commonjs/static-helpers/serialization/serialize-record.js.map +2 -2
  404. package/dist/commonjs/static-helpers/urlTemplate.js +7 -7
  405. package/dist/commonjs/static-helpers/urlTemplate.js.map +2 -2
  406. package/dist/commonjs/tracing/attributes.d.ts +62 -0
  407. package/dist/commonjs/tracing/attributes.d.ts.map +1 -0
  408. package/dist/commonjs/tracing/attributes.js +226 -0
  409. package/dist/commonjs/tracing/attributes.js.map +7 -0
  410. package/dist/commonjs/tracing/configuration.d.ts +60 -0
  411. package/dist/commonjs/tracing/configuration.d.ts.map +1 -0
  412. package/dist/commonjs/tracing/configuration.js +68 -0
  413. package/dist/commonjs/tracing/configuration.js.map +7 -0
  414. package/dist/commonjs/tracing/constants.d.ts +55 -0
  415. package/dist/commonjs/tracing/constants.d.ts.map +1 -0
  416. package/dist/commonjs/tracing/constants.js +177 -0
  417. package/dist/commonjs/tracing/constants.js.map +7 -0
  418. package/dist/commonjs/tracing/formatters.d.ts +11 -0
  419. package/dist/commonjs/tracing/formatters.d.ts.map +1 -0
  420. package/dist/commonjs/tracing/formatters.js +213 -0
  421. package/dist/commonjs/tracing/formatters.js.map +7 -0
  422. package/dist/commonjs/tracing/metrics.d.ts +22 -0
  423. package/dist/commonjs/tracing/metrics.d.ts.map +1 -0
  424. package/dist/commonjs/tracing/metrics.js +86 -0
  425. package/dist/commonjs/tracing/metrics.js.map +7 -0
  426. package/dist/commonjs/tracing/responseTracing.d.ts +4 -0
  427. package/dist/commonjs/tracing/responseTracing.d.ts.map +1 -0
  428. package/dist/commonjs/tracing/responseTracing.js +267 -0
  429. package/dist/commonjs/tracing/responseTracing.js.map +7 -0
  430. package/dist/commonjs/tracing/tracingClient.d.ts +22 -0
  431. package/dist/commonjs/tracing/tracingClient.d.ts.map +1 -0
  432. package/dist/commonjs/tracing/tracingClient.js +51 -0
  433. package/dist/commonjs/tracing/tracingClient.js.map +7 -0
  434. package/dist/commonjs/tracing/tracingFetch.d.ts +14 -0
  435. package/dist/commonjs/tracing/tracingFetch.d.ts.map +1 -0
  436. package/dist/commonjs/tracing/tracingFetch.js +45 -0
  437. package/dist/commonjs/tracing/tracingFetch.js.map +7 -0
  438. package/dist/commonjs/tsdoc-metadata.json +1 -1
  439. package/dist/esm/aiProjectClient.d.ts +5 -2
  440. package/dist/esm/aiProjectClient.d.ts.map +1 -1
  441. package/dist/esm/aiProjectClient.js +13 -8
  442. package/dist/esm/aiProjectClient.js.map +1 -1
  443. package/dist/esm/api/agents/index.d.ts +2 -2
  444. package/dist/esm/api/agents/index.d.ts.map +1 -1
  445. package/dist/esm/api/agents/index.js +1 -1
  446. package/dist/esm/api/agents/index.js.map +1 -1
  447. package/dist/esm/api/agents/operations.d.ts +147 -18
  448. package/dist/esm/api/agents/operations.d.ts.map +1 -1
  449. package/dist/esm/api/agents/operations.js +679 -42
  450. package/dist/esm/api/agents/operations.js.map +1 -1
  451. package/dist/esm/api/agents/options.d.ts +109 -3
  452. package/dist/esm/api/agents/options.d.ts.map +1 -1
  453. package/dist/esm/api/agents/options.js.map +1 -1
  454. package/dist/esm/api/aiProjectContext.d.ts +9 -0
  455. package/dist/esm/api/aiProjectContext.d.ts.map +1 -1
  456. package/dist/esm/api/aiProjectContext.js +1 -1
  457. package/dist/esm/api/aiProjectContext.js.map +1 -1
  458. package/dist/esm/api/beta/agents/index.d.ts +2 -2
  459. package/dist/esm/api/beta/agents/index.d.ts.map +1 -1
  460. package/dist/esm/api/beta/agents/index.js +1 -1
  461. package/dist/esm/api/beta/agents/index.js.map +1 -1
  462. package/dist/esm/api/beta/agents/operations.d.ts +8 -139
  463. package/dist/esm/api/beta/agents/operations.d.ts.map +1 -1
  464. package/dist/esm/api/beta/agents/operations.js +30 -750
  465. package/dist/esm/api/beta/agents/operations.js.map +1 -1
  466. package/dist/esm/api/beta/agents/options.d.ts +6 -200
  467. package/dist/esm/api/beta/agents/options.d.ts.map +1 -1
  468. package/dist/esm/api/beta/agents/options.js.map +1 -1
  469. package/dist/esm/api/beta/datasets/operations.d.ts +4 -4
  470. package/dist/esm/api/beta/datasets/operations.d.ts.map +1 -1
  471. package/dist/esm/api/beta/datasets/operations.js +19 -9
  472. package/dist/esm/api/beta/datasets/operations.js.map +1 -1
  473. package/dist/esm/api/beta/evaluationTaxonomies/operations.d.ts +4 -4
  474. package/dist/esm/api/beta/evaluationTaxonomies/operations.d.ts.map +1 -1
  475. package/dist/esm/api/beta/evaluationTaxonomies/operations.js +4 -13
  476. package/dist/esm/api/beta/evaluationTaxonomies/operations.js.map +1 -1
  477. package/dist/esm/api/beta/evaluationTaxonomies/options.d.ts +0 -6
  478. package/dist/esm/api/beta/evaluationTaxonomies/options.d.ts.map +1 -1
  479. package/dist/esm/api/beta/evaluationTaxonomies/options.js.map +1 -1
  480. package/dist/esm/api/beta/evaluators/operations.d.ts +14 -9
  481. package/dist/esm/api/beta/evaluators/operations.d.ts.map +1 -1
  482. package/dist/esm/api/beta/evaluators/operations.js +35 -16
  483. package/dist/esm/api/beta/evaluators/operations.js.map +1 -1
  484. package/dist/esm/api/beta/insights/operations.d.ts +3 -3
  485. package/dist/esm/api/beta/insights/operations.d.ts.map +1 -1
  486. package/dist/esm/api/beta/insights/operations.js +13 -13
  487. package/dist/esm/api/beta/insights/operations.js.map +1 -1
  488. package/dist/esm/api/beta/insights/options.d.ts +0 -4
  489. package/dist/esm/api/beta/insights/options.d.ts.map +1 -1
  490. package/dist/esm/api/beta/insights/options.js.map +1 -1
  491. package/dist/esm/api/beta/memoryStores/operations.d.ts +17 -14
  492. package/dist/esm/api/beta/memoryStores/operations.d.ts.map +1 -1
  493. package/dist/esm/api/beta/memoryStores/operations.js +59 -28
  494. package/dist/esm/api/beta/memoryStores/operations.js.map +1 -1
  495. package/dist/esm/api/beta/models/operations.d.ts +6 -6
  496. package/dist/esm/api/beta/models/operations.d.ts.map +1 -1
  497. package/dist/esm/api/beta/models/operations.js +8 -8
  498. package/dist/esm/api/beta/models/operations.js.map +1 -1
  499. package/dist/esm/api/beta/redTeams/operations.d.ts +3 -3
  500. package/dist/esm/api/beta/redTeams/operations.d.ts.map +1 -1
  501. package/dist/esm/api/beta/redTeams/operations.js +6 -10
  502. package/dist/esm/api/beta/redTeams/operations.js.map +1 -1
  503. package/dist/esm/api/beta/redTeams/options.d.ts +0 -4
  504. package/dist/esm/api/beta/redTeams/options.d.ts.map +1 -1
  505. package/dist/esm/api/beta/redTeams/options.js.map +1 -1
  506. package/dist/esm/api/beta/routines/operations.d.ts +8 -8
  507. package/dist/esm/api/beta/routines/operations.d.ts.map +1 -1
  508. package/dist/esm/api/beta/routines/operations.js +55 -44
  509. package/dist/esm/api/beta/routines/operations.js.map +1 -1
  510. package/dist/esm/api/beta/schedules/operations.d.ts +6 -6
  511. package/dist/esm/api/beta/schedules/operations.d.ts.map +1 -1
  512. package/dist/esm/api/beta/schedules/operations.js +9 -22
  513. package/dist/esm/api/beta/schedules/operations.js.map +1 -1
  514. package/dist/esm/api/beta/schedules/options.d.ts +0 -10
  515. package/dist/esm/api/beta/schedules/options.d.ts.map +1 -1
  516. package/dist/esm/api/beta/schedules/options.js.map +1 -1
  517. package/dist/esm/api/beta/skills/operations.d.ts +24 -24
  518. package/dist/esm/api/beta/skills/operations.d.ts.map +1 -1
  519. package/dist/esm/api/beta/skills/operations.js +154 -132
  520. package/dist/esm/api/beta/skills/operations.js.map +1 -1
  521. package/dist/esm/api/beta/skills/options.d.ts +6 -6
  522. package/dist/esm/api/beta/skills/options.d.ts.map +1 -1
  523. package/dist/esm/api/beta/skills/options.js.map +1 -1
  524. package/dist/esm/api/connections/options.d.ts +2 -2
  525. package/dist/esm/api/connections/options.d.ts.map +1 -1
  526. package/dist/esm/api/connections/options.js.map +1 -1
  527. package/dist/esm/api/deployments/operations.d.ts +1 -1
  528. package/dist/esm/api/deployments/operations.d.ts.map +1 -1
  529. package/dist/esm/api/deployments/operations.js +1 -1
  530. package/dist/esm/api/deployments/operations.js.map +1 -1
  531. package/dist/esm/api/evaluationRules/operations.d.ts +4 -4
  532. package/dist/esm/api/evaluationRules/operations.d.ts.map +1 -1
  533. package/dist/esm/api/evaluationRules/operations.js +4 -4
  534. package/dist/esm/api/evaluationRules/operations.js.map +1 -1
  535. package/dist/esm/api/toolboxes/index.d.ts +3 -0
  536. package/dist/esm/api/toolboxes/index.d.ts.map +1 -0
  537. package/dist/esm/api/toolboxes/index.js.map +1 -0
  538. package/dist/{commonjs/api/beta → esm/api}/toolboxes/operations.d.ts +21 -21
  539. package/dist/esm/api/toolboxes/operations.d.ts.map +1 -0
  540. package/dist/{react-native/api/beta → esm/api}/toolboxes/operations.js +44 -62
  541. package/dist/esm/api/toolboxes/operations.js.map +1 -0
  542. package/dist/{commonjs/api/beta → esm/api}/toolboxes/options.d.ts +5 -5
  543. package/dist/esm/api/toolboxes/options.d.ts.map +1 -0
  544. package/dist/esm/api/toolboxes/options.js.map +1 -0
  545. package/dist/esm/classic/agents/index.d.ts +102 -3
  546. package/dist/esm/classic/agents/index.d.ts.map +1 -1
  547. package/dist/esm/classic/agents/index.js +25 -10
  548. package/dist/esm/classic/agents/index.js.map +1 -1
  549. package/dist/esm/classic/beta/agents/index.d.ts +6 -103
  550. package/dist/esm/classic/beta/agents/index.d.ts.map +1 -1
  551. package/dist/esm/classic/beta/agents/index.js +2 -21
  552. package/dist/esm/classic/beta/agents/index.js.map +1 -1
  553. package/dist/esm/classic/beta/datasets/index.d.ts +4 -4
  554. package/dist/esm/classic/beta/datasets/index.d.ts.map +1 -1
  555. package/dist/esm/classic/beta/datasets/index.js.map +1 -1
  556. package/dist/esm/classic/beta/evaluationTaxonomies/index.d.ts +4 -4
  557. package/dist/esm/classic/beta/evaluationTaxonomies/index.d.ts.map +1 -1
  558. package/dist/esm/classic/beta/evaluationTaxonomies/index.js.map +1 -1
  559. package/dist/esm/classic/beta/evaluators/index.d.ts +14 -9
  560. package/dist/esm/classic/beta/evaluators/index.d.ts.map +1 -1
  561. package/dist/esm/classic/beta/evaluators/index.js.map +1 -1
  562. package/dist/esm/classic/beta/index.d.ts +0 -3
  563. package/dist/esm/classic/beta/index.d.ts.map +1 -1
  564. package/dist/esm/classic/beta/index.js +0 -3
  565. package/dist/esm/classic/beta/index.js.map +1 -1
  566. package/dist/esm/classic/beta/insights/index.d.ts +3 -3
  567. package/dist/esm/classic/beta/insights/index.d.ts.map +1 -1
  568. package/dist/esm/classic/beta/insights/index.js.map +1 -1
  569. package/dist/esm/classic/beta/memoryStores/index.d.ts +17 -14
  570. package/dist/esm/classic/beta/memoryStores/index.d.ts.map +1 -1
  571. package/dist/esm/classic/beta/memoryStores/index.js.map +1 -1
  572. package/dist/esm/classic/beta/models/index.d.ts +4 -4
  573. package/dist/esm/classic/beta/models/index.d.ts.map +1 -1
  574. package/dist/esm/classic/beta/models/index.js +1 -1
  575. package/dist/esm/classic/beta/models/index.js.map +1 -1
  576. package/dist/esm/classic/beta/redTeams/index.d.ts +3 -3
  577. package/dist/esm/classic/beta/redTeams/index.d.ts.map +1 -1
  578. package/dist/esm/classic/beta/redTeams/index.js.map +1 -1
  579. package/dist/esm/classic/beta/routines/index.d.ts +8 -8
  580. package/dist/esm/classic/beta/routines/index.d.ts.map +1 -1
  581. package/dist/esm/classic/beta/routines/index.js.map +1 -1
  582. package/dist/esm/classic/deployments/index.d.ts +1 -1
  583. package/dist/esm/classic/deployments/index.d.ts.map +1 -1
  584. package/dist/esm/classic/deployments/index.js.map +1 -1
  585. package/dist/esm/classic/index.d.ts +1 -1
  586. package/dist/esm/classic/index.d.ts.map +1 -1
  587. package/dist/esm/classic/index.js.map +1 -1
  588. package/dist/esm/classic/toolboxes/index.d.ts +25 -0
  589. package/dist/esm/classic/toolboxes/index.d.ts.map +1 -0
  590. package/dist/{browser/classic/beta → esm/classic}/toolboxes/index.js +4 -4
  591. package/dist/esm/classic/toolboxes/index.js.map +1 -0
  592. package/dist/esm/constants.d.ts +1 -1
  593. package/dist/esm/constants.js +1 -1
  594. package/dist/esm/constants.js.map +1 -1
  595. package/dist/esm/index.d.ts +11 -7
  596. package/dist/esm/index.d.ts.map +1 -1
  597. package/dist/esm/index.js +1 -0
  598. package/dist/esm/index.js.map +1 -1
  599. package/dist/esm/models/index.d.ts +1 -1
  600. package/dist/esm/models/index.d.ts.map +1 -1
  601. package/dist/esm/models/index.js.map +1 -1
  602. package/dist/esm/models/models.d.ts +648 -654
  603. package/dist/esm/models/models.d.ts.map +1 -1
  604. package/dist/esm/models/models.js +953 -584
  605. package/dist/esm/models/models.js.map +1 -1
  606. package/dist/esm/overwriteOpenAIClient.d.ts +2 -1
  607. package/dist/esm/overwriteOpenAIClient.d.ts.map +1 -1
  608. package/dist/esm/overwriteOpenAIClient.js +48 -4
  609. package/dist/esm/overwriteOpenAIClient.js.map +1 -1
  610. package/dist/esm/static-helpers/multipartHelpers.d.ts +2 -1
  611. package/dist/esm/static-helpers/multipartHelpers.d.ts.map +1 -1
  612. package/dist/esm/static-helpers/multipartHelpers.js.map +1 -1
  613. package/dist/esm/static-helpers/platform-types.d.ts +8 -0
  614. package/dist/esm/static-helpers/platform-types.d.ts.map +1 -0
  615. package/dist/esm/static-helpers/platform-types.js +4 -0
  616. package/dist/esm/static-helpers/platform-types.js.map +1 -0
  617. package/dist/esm/static-helpers/serialization/get-binary-stream-response.d.ts +2 -1
  618. package/dist/esm/static-helpers/serialization/get-binary-stream-response.d.ts.map +1 -1
  619. package/dist/esm/static-helpers/serialization/get-binary-stream-response.js.map +1 -1
  620. package/dist/esm/static-helpers/serialization/serialize-record.js +2 -2
  621. package/dist/esm/static-helpers/serialization/serialize-record.js.map +1 -1
  622. package/dist/esm/static-helpers/urlTemplate.js +7 -7
  623. package/dist/esm/static-helpers/urlTemplate.js.map +1 -1
  624. package/dist/esm/tracing/attributes.d.ts +62 -0
  625. package/dist/esm/tracing/attributes.d.ts.map +1 -0
  626. package/dist/esm/tracing/attributes.js +230 -0
  627. package/dist/esm/tracing/attributes.js.map +1 -0
  628. package/dist/esm/tracing/configuration.d.ts +60 -0
  629. package/dist/esm/tracing/configuration.d.ts.map +1 -0
  630. package/dist/esm/tracing/configuration.js +67 -0
  631. package/dist/esm/tracing/configuration.js.map +1 -0
  632. package/dist/esm/tracing/constants.d.ts +55 -0
  633. package/dist/esm/tracing/constants.d.ts.map +1 -0
  634. package/dist/esm/tracing/constants.js +75 -0
  635. package/dist/esm/tracing/constants.js.map +1 -0
  636. package/dist/esm/tracing/formatters.d.ts +11 -0
  637. package/dist/esm/tracing/formatters.d.ts.map +1 -0
  638. package/dist/esm/tracing/formatters.js +251 -0
  639. package/dist/esm/tracing/formatters.js.map +1 -0
  640. package/dist/esm/tracing/metrics.d.ts +22 -0
  641. package/dist/esm/tracing/metrics.d.ts.map +1 -0
  642. package/dist/esm/tracing/metrics.js +77 -0
  643. package/dist/esm/tracing/metrics.js.map +1 -0
  644. package/dist/esm/tracing/responseTracing.d.ts +4 -0
  645. package/dist/esm/tracing/responseTracing.d.ts.map +1 -0
  646. package/dist/esm/tracing/responseTracing.js +223 -0
  647. package/dist/esm/tracing/responseTracing.js.map +1 -0
  648. package/dist/esm/tracing/tracingClient.d.ts +22 -0
  649. package/dist/esm/tracing/tracingClient.d.ts.map +1 -0
  650. package/dist/esm/tracing/tracingClient.js +37 -0
  651. package/dist/esm/tracing/tracingClient.js.map +1 -0
  652. package/dist/esm/tracing/tracingFetch.d.ts +14 -0
  653. package/dist/esm/tracing/tracingFetch.d.ts.map +1 -0
  654. package/dist/esm/tracing/tracingFetch.js +30 -0
  655. package/dist/esm/tracing/tracingFetch.js.map +1 -0
  656. package/dist/react-native/aiProjectClient.d.ts +5 -2
  657. package/dist/react-native/aiProjectClient.d.ts.map +1 -1
  658. package/dist/react-native/aiProjectClient.js +13 -8
  659. package/dist/react-native/aiProjectClient.js.map +1 -1
  660. package/dist/react-native/api/agents/index.d.ts +2 -2
  661. package/dist/react-native/api/agents/index.d.ts.map +1 -1
  662. package/dist/react-native/api/agents/index.js +1 -1
  663. package/dist/react-native/api/agents/index.js.map +1 -1
  664. package/dist/react-native/api/agents/operations.d.ts +147 -18
  665. package/dist/react-native/api/agents/operations.d.ts.map +1 -1
  666. package/dist/react-native/api/agents/operations.js +679 -42
  667. package/dist/react-native/api/agents/operations.js.map +1 -1
  668. package/dist/react-native/api/agents/options.d.ts +109 -3
  669. package/dist/react-native/api/agents/options.d.ts.map +1 -1
  670. package/dist/react-native/api/agents/options.js.map +1 -1
  671. package/dist/react-native/api/aiProjectContext.d.ts +9 -0
  672. package/dist/react-native/api/aiProjectContext.d.ts.map +1 -1
  673. package/dist/react-native/api/aiProjectContext.js +1 -1
  674. package/dist/react-native/api/aiProjectContext.js.map +1 -1
  675. package/dist/react-native/api/beta/agents/index.d.ts +2 -2
  676. package/dist/react-native/api/beta/agents/index.d.ts.map +1 -1
  677. package/dist/react-native/api/beta/agents/index.js +1 -1
  678. package/dist/react-native/api/beta/agents/index.js.map +1 -1
  679. package/dist/react-native/api/beta/agents/operations.d.ts +8 -139
  680. package/dist/react-native/api/beta/agents/operations.d.ts.map +1 -1
  681. package/dist/react-native/api/beta/agents/operations.js +30 -750
  682. package/dist/react-native/api/beta/agents/operations.js.map +1 -1
  683. package/dist/react-native/api/beta/agents/options.d.ts +6 -200
  684. package/dist/react-native/api/beta/agents/options.d.ts.map +1 -1
  685. package/dist/react-native/api/beta/agents/options.js.map +1 -1
  686. package/dist/react-native/api/beta/datasets/operations.d.ts +4 -4
  687. package/dist/react-native/api/beta/datasets/operations.d.ts.map +1 -1
  688. package/dist/react-native/api/beta/datasets/operations.js +19 -9
  689. package/dist/react-native/api/beta/datasets/operations.js.map +1 -1
  690. package/dist/react-native/api/beta/evaluationTaxonomies/operations.d.ts +4 -4
  691. package/dist/react-native/api/beta/evaluationTaxonomies/operations.d.ts.map +1 -1
  692. package/dist/react-native/api/beta/evaluationTaxonomies/operations.js +4 -13
  693. package/dist/react-native/api/beta/evaluationTaxonomies/operations.js.map +1 -1
  694. package/dist/react-native/api/beta/evaluationTaxonomies/options.d.ts +0 -6
  695. package/dist/react-native/api/beta/evaluationTaxonomies/options.d.ts.map +1 -1
  696. package/dist/react-native/api/beta/evaluationTaxonomies/options.js.map +1 -1
  697. package/dist/react-native/api/beta/evaluators/operations.d.ts +14 -9
  698. package/dist/react-native/api/beta/evaluators/operations.d.ts.map +1 -1
  699. package/dist/react-native/api/beta/evaluators/operations.js +35 -16
  700. package/dist/react-native/api/beta/evaluators/operations.js.map +1 -1
  701. package/dist/react-native/api/beta/insights/operations.d.ts +3 -3
  702. package/dist/react-native/api/beta/insights/operations.d.ts.map +1 -1
  703. package/dist/react-native/api/beta/insights/operations.js +13 -13
  704. package/dist/react-native/api/beta/insights/operations.js.map +1 -1
  705. package/dist/react-native/api/beta/insights/options.d.ts +0 -4
  706. package/dist/react-native/api/beta/insights/options.d.ts.map +1 -1
  707. package/dist/react-native/api/beta/insights/options.js.map +1 -1
  708. package/dist/react-native/api/beta/memoryStores/operations.d.ts +17 -14
  709. package/dist/react-native/api/beta/memoryStores/operations.d.ts.map +1 -1
  710. package/dist/react-native/api/beta/memoryStores/operations.js +59 -28
  711. package/dist/react-native/api/beta/memoryStores/operations.js.map +1 -1
  712. package/dist/react-native/api/beta/models/operations.d.ts +6 -6
  713. package/dist/react-native/api/beta/models/operations.d.ts.map +1 -1
  714. package/dist/react-native/api/beta/models/operations.js +8 -8
  715. package/dist/react-native/api/beta/models/operations.js.map +1 -1
  716. package/dist/react-native/api/beta/redTeams/operations.d.ts +3 -3
  717. package/dist/react-native/api/beta/redTeams/operations.d.ts.map +1 -1
  718. package/dist/react-native/api/beta/redTeams/operations.js +6 -10
  719. package/dist/react-native/api/beta/redTeams/operations.js.map +1 -1
  720. package/dist/react-native/api/beta/redTeams/options.d.ts +0 -4
  721. package/dist/react-native/api/beta/redTeams/options.d.ts.map +1 -1
  722. package/dist/react-native/api/beta/redTeams/options.js.map +1 -1
  723. package/dist/react-native/api/beta/routines/operations.d.ts +8 -8
  724. package/dist/react-native/api/beta/routines/operations.d.ts.map +1 -1
  725. package/dist/react-native/api/beta/routines/operations.js +55 -44
  726. package/dist/react-native/api/beta/routines/operations.js.map +1 -1
  727. package/dist/react-native/api/beta/schedules/operations.d.ts +6 -6
  728. package/dist/react-native/api/beta/schedules/operations.d.ts.map +1 -1
  729. package/dist/react-native/api/beta/schedules/operations.js +9 -22
  730. package/dist/react-native/api/beta/schedules/operations.js.map +1 -1
  731. package/dist/react-native/api/beta/schedules/options.d.ts +0 -10
  732. package/dist/react-native/api/beta/schedules/options.d.ts.map +1 -1
  733. package/dist/react-native/api/beta/schedules/options.js.map +1 -1
  734. package/dist/react-native/api/beta/skills/operations.d.ts +24 -24
  735. package/dist/react-native/api/beta/skills/operations.d.ts.map +1 -1
  736. package/dist/react-native/api/beta/skills/operations.js +154 -132
  737. package/dist/react-native/api/beta/skills/operations.js.map +1 -1
  738. package/dist/react-native/api/beta/skills/options.d.ts +6 -6
  739. package/dist/react-native/api/beta/skills/options.d.ts.map +1 -1
  740. package/dist/react-native/api/beta/skills/options.js.map +1 -1
  741. package/dist/react-native/api/connections/options.d.ts +2 -2
  742. package/dist/react-native/api/connections/options.d.ts.map +1 -1
  743. package/dist/react-native/api/connections/options.js.map +1 -1
  744. package/dist/react-native/api/deployments/operations.d.ts +1 -1
  745. package/dist/react-native/api/deployments/operations.d.ts.map +1 -1
  746. package/dist/react-native/api/deployments/operations.js +1 -1
  747. package/dist/react-native/api/deployments/operations.js.map +1 -1
  748. package/dist/react-native/api/evaluationRules/operations.d.ts +4 -4
  749. package/dist/react-native/api/evaluationRules/operations.d.ts.map +1 -1
  750. package/dist/react-native/api/evaluationRules/operations.js +4 -4
  751. package/dist/react-native/api/evaluationRules/operations.js.map +1 -1
  752. package/dist/react-native/api/toolboxes/index.d.ts +3 -0
  753. package/dist/react-native/api/toolboxes/index.d.ts.map +1 -0
  754. package/dist/react-native/api/toolboxes/index.js.map +1 -0
  755. package/dist/react-native/api/{beta/toolboxes → toolboxes}/operations.d.ts +21 -21
  756. package/dist/react-native/api/toolboxes/operations.d.ts.map +1 -0
  757. package/dist/{esm/api/beta → react-native/api}/toolboxes/operations.js +44 -62
  758. package/dist/react-native/api/toolboxes/operations.js.map +1 -0
  759. package/dist/{esm/api/beta → react-native/api}/toolboxes/options.d.ts +5 -5
  760. package/dist/react-native/api/toolboxes/options.d.ts.map +1 -0
  761. package/dist/react-native/api/toolboxes/options.js.map +1 -0
  762. package/dist/react-native/classic/agents/index.d.ts +102 -3
  763. package/dist/react-native/classic/agents/index.d.ts.map +1 -1
  764. package/dist/react-native/classic/agents/index.js +25 -10
  765. package/dist/react-native/classic/agents/index.js.map +1 -1
  766. package/dist/react-native/classic/beta/agents/index.d.ts +6 -103
  767. package/dist/react-native/classic/beta/agents/index.d.ts.map +1 -1
  768. package/dist/react-native/classic/beta/agents/index.js +2 -21
  769. package/dist/react-native/classic/beta/agents/index.js.map +1 -1
  770. package/dist/react-native/classic/beta/datasets/index.d.ts +4 -4
  771. package/dist/react-native/classic/beta/datasets/index.d.ts.map +1 -1
  772. package/dist/react-native/classic/beta/datasets/index.js.map +1 -1
  773. package/dist/react-native/classic/beta/evaluationTaxonomies/index.d.ts +4 -4
  774. package/dist/react-native/classic/beta/evaluationTaxonomies/index.d.ts.map +1 -1
  775. package/dist/react-native/classic/beta/evaluationTaxonomies/index.js.map +1 -1
  776. package/dist/react-native/classic/beta/evaluators/index.d.ts +14 -9
  777. package/dist/react-native/classic/beta/evaluators/index.d.ts.map +1 -1
  778. package/dist/react-native/classic/beta/evaluators/index.js.map +1 -1
  779. package/dist/react-native/classic/beta/index.d.ts +0 -3
  780. package/dist/react-native/classic/beta/index.d.ts.map +1 -1
  781. package/dist/react-native/classic/beta/index.js +0 -3
  782. package/dist/react-native/classic/beta/index.js.map +1 -1
  783. package/dist/react-native/classic/beta/insights/index.d.ts +3 -3
  784. package/dist/react-native/classic/beta/insights/index.d.ts.map +1 -1
  785. package/dist/react-native/classic/beta/insights/index.js.map +1 -1
  786. package/dist/react-native/classic/beta/memoryStores/index.d.ts +17 -14
  787. package/dist/react-native/classic/beta/memoryStores/index.d.ts.map +1 -1
  788. package/dist/react-native/classic/beta/memoryStores/index.js.map +1 -1
  789. package/dist/react-native/classic/beta/models/index.d.ts +4 -4
  790. package/dist/react-native/classic/beta/models/index.d.ts.map +1 -1
  791. package/dist/react-native/classic/beta/models/index.js +1 -1
  792. package/dist/react-native/classic/beta/models/index.js.map +1 -1
  793. package/dist/react-native/classic/beta/redTeams/index.d.ts +3 -3
  794. package/dist/react-native/classic/beta/redTeams/index.d.ts.map +1 -1
  795. package/dist/react-native/classic/beta/redTeams/index.js.map +1 -1
  796. package/dist/react-native/classic/beta/routines/index.d.ts +8 -8
  797. package/dist/react-native/classic/beta/routines/index.d.ts.map +1 -1
  798. package/dist/react-native/classic/beta/routines/index.js.map +1 -1
  799. package/dist/react-native/classic/deployments/index.d.ts +1 -1
  800. package/dist/react-native/classic/deployments/index.d.ts.map +1 -1
  801. package/dist/react-native/classic/deployments/index.js.map +1 -1
  802. package/dist/react-native/classic/index.d.ts +1 -1
  803. package/dist/react-native/classic/index.d.ts.map +1 -1
  804. package/dist/react-native/classic/index.js.map +1 -1
  805. package/dist/react-native/classic/toolboxes/index.d.ts +25 -0
  806. package/dist/react-native/classic/toolboxes/index.d.ts.map +1 -0
  807. package/dist/react-native/classic/{beta/toolboxes → toolboxes}/index.js +4 -4
  808. package/dist/react-native/classic/toolboxes/index.js.map +1 -0
  809. package/dist/react-native/constants.d.ts +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 -7
  813. package/dist/react-native/index.d.ts.map +1 -1
  814. package/dist/react-native/index.js +1 -0
  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.map +1 -1
  819. package/dist/react-native/models/models.d.ts +648 -654
  820. package/dist/react-native/models/models.d.ts.map +1 -1
  821. package/dist/react-native/models/models.js +953 -584
  822. package/dist/react-native/models/models.js.map +1 -1
  823. package/dist/react-native/overwriteOpenAIClient.d.ts +2 -1
  824. package/dist/react-native/overwriteOpenAIClient.d.ts.map +1 -1
  825. package/dist/react-native/overwriteOpenAIClient.js +48 -4
  826. package/dist/react-native/overwriteOpenAIClient.js.map +1 -1
  827. package/dist/react-native/static-helpers/multipartHelpers.d.ts +2 -1
  828. package/dist/react-native/static-helpers/multipartHelpers.d.ts.map +1 -1
  829. package/dist/react-native/static-helpers/multipartHelpers.js.map +1 -1
  830. package/dist/react-native/static-helpers/platform-types-browser.d.mts +6 -0
  831. package/dist/react-native/static-helpers/platform-types-browser.d.mts.map +1 -0
  832. package/dist/react-native/static-helpers/platform-types-browser.mjs +4 -0
  833. package/dist/react-native/static-helpers/platform-types-browser.mjs.map +1 -0
  834. package/dist/react-native/static-helpers/platform-types.d.ts +6 -0
  835. package/dist/react-native/static-helpers/platform-types.d.ts.map +1 -0
  836. package/dist/react-native/static-helpers/platform-types.js +4 -0
  837. package/dist/react-native/static-helpers/platform-types.js.map +1 -0
  838. package/dist/react-native/static-helpers/serialization/get-binary-stream-response-browser.d.mts +13 -0
  839. package/dist/react-native/static-helpers/serialization/get-binary-stream-response-browser.d.mts.map +1 -0
  840. package/dist/react-native/static-helpers/serialization/get-binary-stream-response-browser.mjs +17 -0
  841. package/dist/react-native/static-helpers/serialization/get-binary-stream-response-browser.mjs.map +1 -0
  842. package/dist/react-native/static-helpers/serialization/get-binary-stream-response.d.ts +1 -11
  843. package/dist/react-native/static-helpers/serialization/get-binary-stream-response.d.ts.map +1 -1
  844. package/dist/react-native/static-helpers/serialization/get-binary-stream-response.js +1 -14
  845. package/dist/react-native/static-helpers/serialization/get-binary-stream-response.js.map +1 -1
  846. package/dist/react-native/static-helpers/serialization/serialize-record.js +2 -2
  847. package/dist/react-native/static-helpers/serialization/serialize-record.js.map +1 -1
  848. package/dist/react-native/static-helpers/urlTemplate.js +7 -7
  849. package/dist/react-native/static-helpers/urlTemplate.js.map +1 -1
  850. package/dist/react-native/tracing/attributes.d.ts +62 -0
  851. package/dist/react-native/tracing/attributes.d.ts.map +1 -0
  852. package/dist/react-native/tracing/attributes.js +230 -0
  853. package/dist/react-native/tracing/attributes.js.map +1 -0
  854. package/dist/react-native/tracing/configuration.d.ts +60 -0
  855. package/dist/react-native/tracing/configuration.d.ts.map +1 -0
  856. package/dist/react-native/tracing/configuration.js +67 -0
  857. package/dist/react-native/tracing/configuration.js.map +1 -0
  858. package/dist/react-native/tracing/constants.d.ts +55 -0
  859. package/dist/react-native/tracing/constants.d.ts.map +1 -0
  860. package/dist/react-native/tracing/constants.js +75 -0
  861. package/dist/react-native/tracing/constants.js.map +1 -0
  862. package/dist/react-native/tracing/formatters.d.ts +11 -0
  863. package/dist/react-native/tracing/formatters.d.ts.map +1 -0
  864. package/dist/react-native/tracing/formatters.js +251 -0
  865. package/dist/react-native/tracing/formatters.js.map +1 -0
  866. package/dist/react-native/tracing/metrics.d.ts +22 -0
  867. package/dist/react-native/tracing/metrics.d.ts.map +1 -0
  868. package/dist/react-native/tracing/metrics.js +77 -0
  869. package/dist/react-native/tracing/metrics.js.map +1 -0
  870. package/dist/react-native/tracing/responseTracing.d.ts +4 -0
  871. package/dist/react-native/tracing/responseTracing.d.ts.map +1 -0
  872. package/dist/react-native/tracing/responseTracing.js +223 -0
  873. package/dist/react-native/tracing/responseTracing.js.map +1 -0
  874. package/dist/react-native/tracing/tracingClient.d.ts +22 -0
  875. package/dist/react-native/tracing/tracingClient.d.ts.map +1 -0
  876. package/dist/react-native/tracing/tracingClient.js +37 -0
  877. package/dist/react-native/tracing/tracingClient.js.map +1 -0
  878. package/dist/react-native/tracing/tracingFetch.d.ts +14 -0
  879. package/dist/react-native/tracing/tracingFetch.d.ts.map +1 -0
  880. package/dist/react-native/tracing/tracingFetch.js +30 -0
  881. package/dist/react-native/tracing/tracingFetch.js.map +1 -0
  882. package/package.json +9 -7
  883. package/dist/browser/api/beta/toolboxes/index.d.ts +0 -3
  884. package/dist/browser/api/beta/toolboxes/index.d.ts.map +0 -1
  885. package/dist/browser/api/beta/toolboxes/index.js.map +0 -1
  886. package/dist/browser/api/beta/toolboxes/operations.d.ts.map +0 -1
  887. package/dist/browser/api/beta/toolboxes/operations.js.map +0 -1
  888. package/dist/browser/api/beta/toolboxes/options.d.ts.map +0 -1
  889. package/dist/browser/api/beta/toolboxes/options.js.map +0 -1
  890. package/dist/browser/classic/beta/toolboxes/index.d.ts +0 -25
  891. package/dist/browser/classic/beta/toolboxes/index.d.ts.map +0 -1
  892. package/dist/browser/classic/beta/toolboxes/index.js.map +0 -1
  893. package/dist/commonjs/api/beta/toolboxes/index.d.ts +0 -3
  894. package/dist/commonjs/api/beta/toolboxes/index.d.ts.map +0 -1
  895. package/dist/commonjs/api/beta/toolboxes/operations.d.ts.map +0 -1
  896. package/dist/commonjs/api/beta/toolboxes/operations.js.map +0 -7
  897. package/dist/commonjs/api/beta/toolboxes/options.d.ts.map +0 -1
  898. package/dist/commonjs/api/beta/toolboxes/options.js.map +0 -7
  899. package/dist/commonjs/classic/beta/toolboxes/index.d.ts +0 -25
  900. package/dist/commonjs/classic/beta/toolboxes/index.d.ts.map +0 -1
  901. package/dist/commonjs/classic/beta/toolboxes/index.js.map +0 -7
  902. package/dist/esm/api/beta/toolboxes/index.d.ts +0 -3
  903. package/dist/esm/api/beta/toolboxes/index.d.ts.map +0 -1
  904. package/dist/esm/api/beta/toolboxes/index.js.map +0 -1
  905. package/dist/esm/api/beta/toolboxes/operations.d.ts.map +0 -1
  906. package/dist/esm/api/beta/toolboxes/operations.js.map +0 -1
  907. package/dist/esm/api/beta/toolboxes/options.d.ts.map +0 -1
  908. package/dist/esm/api/beta/toolboxes/options.js.map +0 -1
  909. package/dist/esm/classic/beta/toolboxes/index.d.ts +0 -25
  910. package/dist/esm/classic/beta/toolboxes/index.d.ts.map +0 -1
  911. package/dist/esm/classic/beta/toolboxes/index.js.map +0 -1
  912. package/dist/react-native/api/beta/toolboxes/index.d.ts +0 -3
  913. package/dist/react-native/api/beta/toolboxes/index.d.ts.map +0 -1
  914. package/dist/react-native/api/beta/toolboxes/index.js.map +0 -1
  915. package/dist/react-native/api/beta/toolboxes/operations.d.ts.map +0 -1
  916. package/dist/react-native/api/beta/toolboxes/operations.js.map +0 -1
  917. package/dist/react-native/api/beta/toolboxes/options.d.ts.map +0 -1
  918. package/dist/react-native/api/beta/toolboxes/options.js.map +0 -1
  919. package/dist/react-native/classic/beta/toolboxes/index.d.ts +0 -25
  920. package/dist/react-native/classic/beta/toolboxes/index.d.ts.map +0 -1
  921. package/dist/react-native/classic/beta/toolboxes/index.js.map +0 -1
  922. /package/dist/browser/api/{beta/toolboxes → toolboxes}/index.js +0 -0
  923. /package/dist/browser/api/{beta/toolboxes → toolboxes}/options.js +0 -0
  924. /package/dist/commonjs/api/{beta/toolboxes → toolboxes}/index.js +0 -0
  925. /package/dist/commonjs/api/{beta/toolboxes → toolboxes}/options.js +0 -0
  926. /package/dist/esm/api/{beta/toolboxes → toolboxes}/index.js +0 -0
  927. /package/dist/esm/api/{beta/toolboxes → toolboxes}/options.js +0 -0
  928. /package/dist/react-native/api/{beta/toolboxes → toolboxes}/index.js +0 -0
  929. /package/dist/react-native/api/{beta/toolboxes → toolboxes}/options.js +0 -0
@@ -1,3 +1,4 @@
1
+ import type { NodeReadableStream } from "../static-helpers/platform-types.js";
1
2
  import type { FileContents } from "../static-helpers/multipartHelpers.js";
2
3
  /**
3
4
  * This file contains only generated model types and their (de)serializers.
@@ -11,6 +12,8 @@ export interface Agent {
11
12
  id: string;
12
13
  /** The name of the agent. */
13
14
  name: string;
15
+ /** The operational state of the agent. Controls whether the agent endpoint accepts or rejects requests. */
16
+ readonly state: AgentState;
14
17
  /** The latest version of the agent. */
15
18
  versions: {
16
19
  latest: AgentVersion;
@@ -26,6 +29,8 @@ export interface Agent {
26
29
  agent_card?: AgentCard;
27
30
  }
28
31
  export declare function agentDeserializer(item: any): Agent;
32
+ /** The operational state of an agent. */
33
+ export type AgentState = "enabled" | "disabled";
29
34
  /**
30
35
  * Helper interface for agent version references.
31
36
  */
@@ -46,7 +51,7 @@ export interface AgentVersion {
46
51
  * Keys are strings with a maximum length of 64 characters. Values are strings
47
52
  * with a maximum length of 512 characters.
48
53
  */
49
- metadata: Record<string, string>;
54
+ metadata?: Record<string, string>;
50
55
  /** The object type, which is always 'agent.version'. */
51
56
  object: "agent.version";
52
57
  /** The unique identifier of the agent version. */
@@ -61,6 +66,8 @@ export interface AgentVersion {
61
66
  created_at: Date;
62
67
  /** The definition of the agent. */
63
68
  definition: AgentDefinitionUnion;
69
+ /** Whether this agent version is a draft (candidate) rather than a release. Draft versions are recorded but excluded from default 'latest' resolution and are not auto-promoted. Defaults to false. */
70
+ draft?: boolean;
64
71
  /** The provisioning status of the agent version. Defaults to 'active' for non-hosted agents. For hosted agents, reflects infrastructure readiness. */
65
72
  status?: AgentVersionStatus;
66
73
  /** The instance identity of the agent */
@@ -107,11 +114,6 @@ export declare function raiConfigDeserializer(item: any): RaiConfig;
107
114
  /** The hosted agent definition. */
108
115
  export interface HostedAgentDefinition extends AgentDefinition {
109
116
  kind: "hosted";
110
- /**
111
- * An array of tools the hosted agent's model may call while generating a response. You
112
- * can specify which tool to use by setting the `tool_choice` parameter.
113
- */
114
- tools?: ToolUnion[];
115
117
  /** The CPU configuration for the hosted agent. */
116
118
  cpu: string;
117
119
  /** The memory configuration for the hosted agent. */
@@ -139,7 +141,7 @@ export interface Tool {
139
141
  export declare function toolSerializer(item: Tool): any;
140
142
  export declare function toolDeserializer(item: any): Tool;
141
143
  /** Alias for ToolUnion */
142
- export type ToolUnion = BingGroundingTool | MicrosoftFabricPreviewTool | SharepointPreviewTool | AzureAISearchTool | OpenApiTool | BingCustomSearchPreviewTool | BrowserAutomationPreviewTool | AzureFunctionTool | CaptureStructuredOutputsTool | A2APreviewTool | WorkIQPreviewTool | FabricIQPreviewTool | MemorySearchPreviewTool | ToolboxSearchPreviewTool | CodeInterpreterTool | FunctionTool | FileSearchTool | ComputerUsePreviewTool | WebSearchTool | MCPTool | ImageGenTool | LocalShellToolParam | FunctionShellToolParam | CustomToolParam | WebSearchPreviewTool | ApplyPatchToolParam | ComputerTool | NamespaceToolParam | ToolSearchToolParam | Tool;
144
+ export type ToolUnion = BingGroundingTool | MicrosoftFabricPreviewTool | SharepointPreviewTool | AzureAISearchTool | OpenApiTool | BingCustomSearchPreviewTool | BrowserAutomationPreviewTool | AzureFunctionTool | CaptureStructuredOutputsTool | A2APreviewTool | WorkIQPreviewTool | FabricIQPreviewTool | MemorySearchPreviewTool | CodeInterpreterTool | FileSearchTool | WebSearchTool | MCPTool | FunctionTool | ComputerUsePreviewTool | ImageGenTool | LocalShellToolParam | FunctionShellToolParam | CustomToolParam | WebSearchPreviewTool | ApplyPatchToolParam | ComputerTool | NamespaceToolParam | ToolSearchToolParam | Tool;
143
145
  export declare function toolUnionSerializer(item: ToolUnion): any;
144
146
  export declare function toolUnionDeserializer(item: any): ToolUnion;
145
147
  /** Type of ToolType */
@@ -148,15 +150,11 @@ export type ToolType = "function" | "file_search" | "computer" | "computer_use_p
148
150
  export interface BingGroundingTool extends Tool {
149
151
  /** The object type, which is always 'bing_grounding'. */
150
152
  type: "bing_grounding";
151
- /** Optional user-defined name for this tool or configuration. */
153
+ /** Deprecated. This property is deprecated and will be removed in a future version. */
152
154
  name?: string;
153
- /** Optional user-defined description for this tool or configuration. */
155
+ /** Deprecated. This property is deprecated and will be removed in a future version. */
154
156
  description?: string;
155
- /**
156
- * Per-tool configuration map. Keys are tool names or `*` (catch-all default).
157
- * Resolution order: exact tool name match takes priority over `*`.
158
- * Unknown tool names are silently ignored at runtime.
159
- */
157
+ /** Deprecated. This property is deprecated and will be removed in a future version. */
160
158
  tool_configs?: Record<string, ToolConfig>;
161
159
  /** The bing grounding search tool parameters. */
162
160
  bing_grounding: BingGroundingSearchToolParameters;
@@ -211,16 +209,6 @@ export declare function bingGroundingSearchConfigurationDeserializer(item: any):
211
209
  export interface MicrosoftFabricPreviewTool extends Tool {
212
210
  /** The object type, which is always 'fabric_dataagent_preview'. */
213
211
  type: "fabric_dataagent_preview";
214
- /** Optional user-defined name for this tool or configuration. */
215
- name?: string;
216
- /** Optional user-defined description for this tool or configuration. */
217
- description?: string;
218
- /**
219
- * Per-tool configuration map. Keys are tool names or `*` (catch-all default).
220
- * Resolution order: exact tool name match takes priority over `*`.
221
- * Unknown tool names are silently ignored at runtime.
222
- */
223
- tool_configs?: Record<string, ToolConfig>;
224
212
  /** The fabric data agent tool parameters. */
225
213
  fabric_dataagent_preview: FabricDataAgentToolParameters;
226
214
  }
@@ -249,16 +237,6 @@ export declare function toolProjectConnectionDeserializer(item: any): ToolProjec
249
237
  export interface SharepointPreviewTool extends Tool {
250
238
  /** The object type, which is always 'sharepoint_grounding_preview'. */
251
239
  type: "sharepoint_grounding_preview";
252
- /** Optional user-defined name for this tool or configuration. */
253
- name?: string;
254
- /** Optional user-defined description for this tool or configuration. */
255
- description?: string;
256
- /**
257
- * Per-tool configuration map. Keys are tool names or `*` (catch-all default).
258
- * Resolution order: exact tool name match takes priority over `*`.
259
- * Unknown tool names are silently ignored at runtime.
260
- */
261
- tool_configs?: Record<string, ToolConfig>;
262
240
  /** The sharepoint grounding tool parameters. */
263
241
  sharepoint_grounding_preview: SharepointGroundingToolParameters;
264
242
  }
@@ -278,15 +256,11 @@ export declare function sharepointGroundingToolParametersDeserializer(item: any)
278
256
  export interface AzureAISearchTool extends Tool {
279
257
  /** The object type, which is always 'azure_ai_search'. */
280
258
  type: "azure_ai_search";
281
- /** Optional user-defined name for this tool or configuration. */
259
+ /** Deprecated. This property is deprecated and will be removed in a future version. */
282
260
  name?: string;
283
- /** Optional user-defined description for this tool or configuration. */
261
+ /** Deprecated. This property is deprecated and will be removed in a future version. */
284
262
  description?: string;
285
- /**
286
- * Per-tool configuration map. Keys are tool names or `*` (catch-all default).
287
- * Resolution order: exact tool name match takes priority over `*`.
288
- * Unknown tool names are silently ignored at runtime.
289
- */
263
+ /** Deprecated. This property is deprecated and will be removed in a future version. */
290
264
  tool_configs?: Record<string, ToolConfig>;
291
265
  /** The azure ai search index resource. */
292
266
  azure_ai_search: AzureAISearchToolResource;
@@ -328,14 +302,10 @@ export type AzureAISearchQueryType = "simple" | "semantic" | "vector" | "vector_
328
302
  export interface OpenApiTool extends Tool {
329
303
  /** The object type, which is always 'openapi'. */
330
304
  type: "openapi";
305
+ /** Deprecated. This property is deprecated and will be removed in a future version. */
306
+ tool_configs?: Record<string, ToolConfig>;
331
307
  /** The openapi function definition. */
332
308
  openapi: OpenApiFunctionDefinition;
333
- /**
334
- * Per-tool configuration map. Keys are tool names or `*` (catch-all default).
335
- * Resolution order: exact tool name match takes priority over `*`.
336
- * Unknown tool names are silently ignored at runtime.
337
- */
338
- tool_configs?: Record<string, ToolConfig>;
339
309
  }
340
310
  export declare function openApiToolSerializer(item: OpenApiTool): any;
341
311
  export declare function openApiToolDeserializer(item: any): OpenApiTool;
@@ -433,16 +403,6 @@ export declare function _openApiFunctionDefinitionFunctionDeserializer(item: any
433
403
  export interface BingCustomSearchPreviewTool extends Tool {
434
404
  /** The object type, which is always 'bing_custom_search_preview'. */
435
405
  type: "bing_custom_search_preview";
436
- /** Optional user-defined name for this tool or configuration. */
437
- name?: string;
438
- /** Optional user-defined description for this tool or configuration. */
439
- description?: string;
440
- /**
441
- * Per-tool configuration map. Keys are tool names or `*` (catch-all default).
442
- * Resolution order: exact tool name match takes priority over `*`.
443
- * Unknown tool names are silently ignored at runtime.
444
- */
445
- tool_configs?: Record<string, ToolConfig>;
446
406
  /** The bing custom search tool parameters. */
447
407
  bing_custom_search_preview: BingCustomSearchToolParameters;
448
408
  }
@@ -481,16 +441,6 @@ export declare function bingCustomSearchConfigurationDeserializer(item: any): Bi
481
441
  export interface BrowserAutomationPreviewTool extends Tool {
482
442
  /** The object type, which is always 'browser_automation_preview'. */
483
443
  type: "browser_automation_preview";
484
- /** Optional user-defined name for this tool or configuration. */
485
- name?: string;
486
- /** Optional user-defined description for this tool or configuration. */
487
- description?: string;
488
- /**
489
- * Per-tool configuration map. Keys are tool names or `*` (catch-all default).
490
- * Resolution order: exact tool name match takes priority over `*`.
491
- * Unknown tool names are silently ignored at runtime.
492
- */
493
- tool_configs?: Record<string, ToolConfig>;
494
444
  /** The Browser Automation Tool parameters. */
495
445
  browser_automation_preview: BrowserAutomationToolParameters;
496
446
  }
@@ -514,14 +464,10 @@ export declare function browserAutomationToolConnectionParametersDeserializer(it
514
464
  export interface AzureFunctionTool extends Tool {
515
465
  /** The object type, which is always 'browser_automation'. */
516
466
  type: "azure_function";
467
+ /** Deprecated. This property is deprecated and will be removed in a future version. */
468
+ tool_configs?: Record<string, ToolConfig>;
517
469
  /** The Azure Function Tool definition. */
518
470
  azure_function: AzureFunctionDefinition;
519
- /**
520
- * Per-tool configuration map. Keys are tool names or `*` (catch-all default).
521
- * Resolution order: exact tool name match takes priority over `*`.
522
- * Unknown tool names are silently ignored at runtime.
523
- */
524
- tool_configs?: Record<string, ToolConfig>;
525
471
  }
526
472
  export declare function azureFunctionToolSerializer(item: AzureFunctionTool): any;
527
473
  export declare function azureFunctionToolDeserializer(item: any): AzureFunctionTool;
@@ -573,15 +519,11 @@ export declare function azureFunctionStorageQueueDeserializer(item: any): AzureF
573
519
  export interface CaptureStructuredOutputsTool extends Tool {
574
520
  /** The type of the tool. Always `capture_structured_outputs`. */
575
521
  type: "capture_structured_outputs";
576
- /** Optional user-defined name for this tool or configuration. */
522
+ /** Deprecated. This property is deprecated and will be removed in a future version. */
577
523
  name?: string;
578
- /** Optional user-defined description for this tool or configuration. */
524
+ /** Deprecated. This property is deprecated and will be removed in a future version. */
579
525
  description?: string;
580
- /**
581
- * Per-tool configuration map. Keys are tool names or `*` (catch-all default).
582
- * Resolution order: exact tool name match takes priority over `*`.
583
- * Unknown tool names are silently ignored at runtime.
584
- */
526
+ /** Deprecated. This property is deprecated and will be removed in a future version. */
585
527
  tool_configs?: Record<string, ToolConfig>;
586
528
  /** The structured outputs to capture from the model. */
587
529
  outputs: StructuredOutputDefinition;
@@ -597,7 +539,7 @@ export interface StructuredOutputDefinition {
597
539
  /** The JSON schema for the structured output. */
598
540
  schema: Record<string, unknown>;
599
541
  /** Whether to enforce strict validation. Default `true`. */
600
- strict: boolean;
542
+ strict?: boolean;
601
543
  }
602
544
  export declare function structuredOutputDefinitionSerializer(item: StructuredOutputDefinition): any;
603
545
  export declare function structuredOutputDefinitionDeserializer(item: any): StructuredOutputDefinition;
@@ -605,16 +547,6 @@ export declare function structuredOutputDefinitionDeserializer(item: any): Struc
605
547
  export interface A2APreviewTool extends Tool {
606
548
  /** The type of the tool. Always `"a2a_preview`. */
607
549
  type: "a2a_preview";
608
- /** Optional user-defined name for this tool or configuration. */
609
- name?: string;
610
- /** Optional user-defined description for this tool or configuration. */
611
- description?: string;
612
- /**
613
- * Per-tool configuration map. Keys are tool names or `*` (catch-all default).
614
- * Resolution order: exact tool name match takes priority over `*`.
615
- * Unknown tool names are silently ignored at runtime.
616
- */
617
- tool_configs?: Record<string, ToolConfig>;
618
550
  /** Base URL of the agent. */
619
551
  base_url?: string;
620
552
  /**
@@ -627,6 +559,12 @@ export interface A2APreviewTool extends Tool {
627
559
  * The connection stores authentication and other connection details needed to connect to the A2A server.
628
560
  */
629
561
  project_connection_id?: string;
562
+ /**
563
+ * When `true`, Foundry sends its credentials when fetching the remote
564
+ * agent's Agent Card. The service defaults to `false` if a value is not
565
+ * specified by the caller (anonymous fetch).
566
+ */
567
+ send_credentials_for_agent_card?: boolean;
630
568
  }
631
569
  export declare function a2APreviewToolSerializer(item: A2APreviewTool): any;
632
570
  export declare function a2APreviewToolDeserializer(item: any): A2APreviewTool;
@@ -636,16 +574,6 @@ export interface WorkIQPreviewTool extends Tool {
636
574
  type: "work_iq_preview";
637
575
  /** The ID of the WorkIQ project connection. */
638
576
  project_connection_id: string;
639
- /** Optional user-defined name for this tool or configuration. */
640
- name?: string;
641
- /** Optional user-defined description for this tool or configuration. */
642
- description?: string;
643
- /**
644
- * Per-tool configuration map. Keys are tool names or `*` (catch-all default).
645
- * Resolution order: exact tool name match takes priority over `*`.
646
- * Unknown tool names are silently ignored at runtime.
647
- */
648
- tool_configs?: Record<string, ToolConfig>;
649
577
  }
650
578
  export declare function workIQPreviewToolSerializer(item: WorkIQPreviewTool): any;
651
579
  export declare function workIQPreviewToolDeserializer(item: any): WorkIQPreviewTool;
@@ -661,16 +589,6 @@ export interface FabricIQPreviewTool extends Tool {
661
589
  server_url?: string;
662
590
  /** (Optional) Whether the agent requires approval before executing actions. Default is always. */
663
591
  require_approval?: MCPToolRequireApproval | string;
664
- /** Optional user-defined name for this tool or configuration. */
665
- name?: string;
666
- /** Optional user-defined description for this tool or configuration. */
667
- description?: string;
668
- /**
669
- * Per-tool configuration map. Keys are tool names or `*` (catch-all default).
670
- * Resolution order: exact tool name match takes priority over `*`.
671
- * Unknown tool names are silently ignored at runtime.
672
- */
673
- tool_configs?: Record<string, ToolConfig>;
674
592
  }
675
593
  export declare function fabricIQPreviewToolSerializer(item: FabricIQPreviewTool): any;
676
594
  export declare function fabricIQPreviewToolDeserializer(item: any): FabricIQPreviewTool;
@@ -702,16 +620,6 @@ export declare function mcpToolFilterDeserializer(item: any): MCPToolFilter;
702
620
  export interface MemorySearchPreviewTool extends Tool {
703
621
  /** The type of the tool. Always `memory_search_preview`. */
704
622
  type: "memory_search_preview";
705
- /** Optional user-defined name for this tool or configuration. */
706
- name?: string;
707
- /** Optional user-defined description for this tool or configuration. */
708
- description?: string;
709
- /**
710
- * Per-tool configuration map. Keys are tool names or `*` (catch-all default).
711
- * Resolution order: exact tool name match takes priority over `*`.
712
- * Unknown tool names are silently ignored at runtime.
713
- */
714
- tool_configs?: Record<string, ToolConfig>;
715
623
  /** The name of the memory store to use. */
716
624
  memory_store_name: string;
717
625
  /**
@@ -734,40 +642,15 @@ export interface MemorySearchOptions {
734
642
  }
735
643
  export declare function memorySearchOptionsSerializer(item: MemorySearchOptions): any;
736
644
  export declare function memorySearchOptionsDeserializer(item: any): MemorySearchOptions;
737
- /**
738
- * A tool for searching over the agent's toolbox.
739
- * When present, deferred tools are hidden from `tools/list` and only
740
- * discoverable via `search_tools` queries at runtime.
741
- */
742
- export interface ToolboxSearchPreviewTool extends Tool {
743
- /** The type of the tool. Always `toolbox_search_preview`. */
744
- type: "toolbox_search_preview";
745
- /** Optional user-defined name for this tool or configuration. */
746
- name?: string;
747
- /** Optional user-defined description for this tool or configuration. */
748
- description?: string;
749
- /**
750
- * Per-tool configuration map. Keys are tool names or `*` (catch-all default).
751
- * Resolution order: exact tool name match takes priority over `*`.
752
- * Unknown tool names are silently ignored at runtime.
753
- */
754
- tool_configs?: Record<string, ToolConfig>;
755
- }
756
- export declare function toolboxSearchPreviewToolSerializer(item: ToolboxSearchPreviewTool): any;
757
- export declare function toolboxSearchPreviewToolDeserializer(item: any): ToolboxSearchPreviewTool;
758
645
  /** A tool that runs Python code to help generate a response to a prompt. */
759
646
  export interface CodeInterpreterTool extends Tool {
760
647
  /** The type of the code interpreter tool. Always `code_interpreter`. */
761
648
  type: "code_interpreter";
762
- /** Optional user-defined name for this tool or configuration. */
649
+ /** Deprecated. This property is deprecated and will be removed in a future version. */
763
650
  name?: string;
764
- /** Optional user-defined description for this tool or configuration. */
651
+ /** Deprecated. This property is deprecated and will be removed in a future version. */
765
652
  description?: string;
766
- /**
767
- * Per-tool configuration map. Keys are tool names or `*` (catch-all default).
768
- * Resolution order: exact tool name match takes priority over `*`.
769
- * Unknown tool names are silently ignored at runtime.
770
- */
653
+ /** Deprecated. This property is deprecated and will be removed in a future version. */
771
654
  tool_configs?: Record<string, ToolConfig>;
772
655
  /**
773
656
  * The code interpreter container. Can be a container ID or an object that
@@ -851,9 +734,9 @@ export interface FunctionTool extends Tool {
851
734
  /** A description of the function tool. */
852
735
  description?: string;
853
736
  /** The parameters schema for the function. */
854
- parameters: Record<string, unknown>;
737
+ parameters?: Record<string, unknown>;
855
738
  /** Whether the function arguments must strictly match the parameters schema. */
856
- strict: boolean;
739
+ strict?: boolean;
857
740
  /** Whether this function is deferred and loaded via tool search. */
858
741
  defer_loading?: boolean;
859
742
  }
@@ -871,15 +754,11 @@ export interface FileSearchTool extends Tool {
871
754
  ranking_options?: RankingOptions;
872
755
  /** Filters to apply to the file search. */
873
756
  filters?: Filters;
874
- /** Optional user-defined name for this tool or configuration. */
757
+ /** Deprecated. This property is deprecated and will be removed in a future version. */
875
758
  name?: string;
876
- /** Optional user-defined description for this tool or configuration. */
759
+ /** Deprecated. This property is deprecated and will be removed in a future version. */
877
760
  description?: string;
878
- /**
879
- * Per-tool configuration map. Keys are tool names or `*` (catch-all default).
880
- * Resolution order: exact tool name match takes priority over `*`.
881
- * Unknown tool names are silently ignored at runtime.
882
- */
761
+ /** Deprecated. This property is deprecated and will be removed in a future version. */
883
762
  tool_configs?: Record<string, ToolConfig>;
884
763
  }
885
764
  export declare function fileSearchToolSerializer(item: FileSearchTool): any;
@@ -986,15 +865,11 @@ export interface WebSearchTool extends Tool {
986
865
  user_location?: WebSearchApproximateLocation;
987
866
  /** High level guidance for the amount of context window space to use for the search. One of `low`, `medium`, or `high`. `medium` is the default. */
988
867
  search_context_size?: "low" | "medium" | "high";
989
- /** Optional user-defined name for this tool or configuration. */
868
+ /** Deprecated. This property is deprecated and will be removed in a future version. */
990
869
  name?: string;
991
- /** Optional user-defined description for this tool or configuration. */
870
+ /** Deprecated. This property is deprecated and will be removed in a future version. */
992
871
  description?: string;
993
- /**
994
- * Per-tool configuration map. Keys are tool names or `*` (catch-all default).
995
- * Resolution order: exact tool name match takes priority over `*`.
996
- * Unknown tool names are silently ignored at runtime.
997
- */
872
+ /** Deprecated. This property is deprecated and will be removed in a future version. */
998
873
  tool_configs?: Record<string, ToolConfig>;
999
874
  /**
1000
875
  * The project connections attached to this tool. There can be a maximum of 1 connection
@@ -1045,14 +920,14 @@ export interface MCPTool extends Tool {
1045
920
  /** A label for this MCP server, used to identify it in tool calls. */
1046
921
  server_label: string;
1047
922
  /**
1048
- * The URL for the MCP server. One of `server_url` or `connector_id` must be
1049
- * provided.
923
+ * The URL for the MCP server. One of `server_url`, `connector_id`, or
924
+ * `tunnel_id` must be provided.
1050
925
  */
1051
926
  server_url?: string;
1052
927
  /**
1053
928
  * Identifier for service connectors, like those available in ChatGPT. One of
1054
- * `server_url` or `connector_id` must be provided. Learn more about service
1055
- * connectors [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
929
+ * `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more
930
+ * about service connectors [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
1056
931
  * Currently supported `connector_id` values are:
1057
932
  * - Dropbox: `connector_dropbox`
1058
933
  * - Gmail: `connector_gmail`
@@ -1064,6 +939,11 @@ export interface MCPTool extends Tool {
1064
939
  * - SharePoint: `connector_sharepoint`
1065
940
  */
1066
941
  connector_id?: "connector_dropbox" | "connector_gmail" | "connector_googlecalendar" | "connector_googledrive" | "connector_microsoftteams" | "connector_outlookcalendar" | "connector_outlookemail" | "connector_sharepoint";
942
+ /**
943
+ * The Secure MCP Tunnel ID to use instead of a direct server URL. One of
944
+ * `server_url`, `connector_id`, or `tunnel_id` must be provided.
945
+ */
946
+ tunnel_id?: string;
1067
947
  /**
1068
948
  * An OAuth access token that can be used with a remote MCP server, either
1069
949
  * with a custom MCP server URL or a service connector. Your application
@@ -1082,11 +962,7 @@ export interface MCPTool extends Tool {
1082
962
  defer_loading?: boolean;
1083
963
  /** The connection ID in the project for the MCP server. The connection stores authentication and other connection details needed to connect to the MCP server. */
1084
964
  project_connection_id?: string;
1085
- /**
1086
- * Per-tool configuration map. Keys are tool names or `*` (catch-all default).
1087
- * Resolution order: exact tool name match takes priority over `*`.
1088
- * Unknown tool names are silently ignored at runtime.
1089
- */
965
+ /** Deprecated. This property is deprecated and will be removed in a future version. */
1090
966
  tool_configs?: Record<string, ToolConfig>;
1091
967
  }
1092
968
  export declare function mcpToolSerializer(item: MCPTool): any;
@@ -1110,10 +986,7 @@ export interface ImageGenTool extends Tool {
1110
986
  * or `auto`. Default: `auto`.
1111
987
  */
1112
988
  quality?: "low" | "medium" | "high" | "auto";
1113
- /**
1114
- * The size of the generated image. One of `1024x1024`, `1024x1536`,
1115
- * `1536x1024`, or `auto`. Default: `auto`.
1116
- */
989
+ /** The size of the generated images. For `gpt-image-2` and `gpt-image-2-2026-04-21`, arbitrary resolutions are supported as `WIDTHxHEIGHT` strings, for example `1536x864`. Width and height must both be divisible by 16 and the requested aspect ratio must be between 1:3 and 3:1. Resolutions above `2560x1440` are experimental, and the maximum supported resolution is `3840x2160`. The requested size must also satisfy the model's current pixel and edge limits. The standard sizes `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models; `auto` is supported for models that allow automatic sizing. For `dall-e-2`, use one of `256x256`, `512x512`, or `1024x1024`. For `dall-e-3`, use one of `1024x1024`, `1792x1024`, or `1024x1792`. */
1117
990
  size?: "1024x1024" | "1024x1536" | "1536x1024" | "auto";
1118
991
  /**
1119
992
  * The output format of the generated image. One of `png`, `webp`, or
@@ -1140,15 +1013,11 @@ export interface ImageGenTool extends Tool {
1140
1013
  partial_images?: number;
1141
1014
  /** Whether to generate a new image or edit an existing image. Default: `auto`. */
1142
1015
  action?: ImageGenAction;
1143
- /** Optional user-defined name for this tool or configuration. */
1016
+ /** Deprecated. This property is deprecated and will be removed in a future version. */
1144
1017
  name?: string;
1145
- /** Optional user-defined description for this tool or configuration. */
1018
+ /** Deprecated. This property is deprecated and will be removed in a future version. */
1146
1019
  description?: string;
1147
- /**
1148
- * Per-tool configuration map. Keys are tool names or `*` (catch-all default).
1149
- * Resolution order: exact tool name match takes priority over `*`.
1150
- * Unknown tool names are silently ignored at runtime.
1151
- */
1020
+ /** Deprecated. This property is deprecated and will be removed in a future version. */
1152
1021
  tool_configs?: Record<string, ToolConfig>;
1153
1022
  }
1154
1023
  export declare function imageGenToolSerializer(item: ImageGenTool): any;
@@ -1170,15 +1039,11 @@ export type ImageGenAction = "generate" | "edit" | "auto";
1170
1039
  export interface LocalShellToolParam extends Tool {
1171
1040
  /** The type of the local shell tool. Always `local_shell`. */
1172
1041
  type: "local_shell";
1173
- /** Optional user-defined name for this tool or configuration. */
1042
+ /** Deprecated. This property is deprecated and will be removed in a future version. */
1174
1043
  name?: string;
1175
- /** Optional user-defined description for this tool or configuration. */
1044
+ /** Deprecated. This property is deprecated and will be removed in a future version. */
1176
1045
  description?: string;
1177
- /**
1178
- * Per-tool configuration map. Keys are tool names or `*` (catch-all default).
1179
- * Resolution order: exact tool name match takes priority over `*`.
1180
- * Unknown tool names are silently ignored at runtime.
1181
- */
1046
+ /** Deprecated. This property is deprecated and will be removed in a future version. */
1182
1047
  tool_configs?: Record<string, ToolConfig>;
1183
1048
  }
1184
1049
  export declare function localShellToolParamSerializer(item: LocalShellToolParam): any;
@@ -1189,15 +1054,11 @@ export interface FunctionShellToolParam extends Tool {
1189
1054
  type: "shell";
1190
1055
  /** The environment configuration for the function shell tool. */
1191
1056
  environment?: FunctionShellToolParamEnvironmentUnion;
1192
- /** Optional user-defined name for this tool or configuration. */
1057
+ /** Deprecated. This property is deprecated and will be removed in a future version. */
1193
1058
  name?: string;
1194
- /** Optional user-defined description for this tool or configuration. */
1059
+ /** Deprecated. This property is deprecated and will be removed in a future version. */
1195
1060
  description?: string;
1196
- /**
1197
- * Per-tool configuration map. Keys are tool names or `*` (catch-all default).
1198
- * Resolution order: exact tool name match takes priority over `*`.
1199
- * Unknown tool names are silently ignored at runtime.
1200
- */
1061
+ /** Deprecated. This property is deprecated and will be removed in a future version. */
1201
1062
  tool_configs?: Record<string, ToolConfig>;
1202
1063
  }
1203
1064
  export declare function functionShellToolParamSerializer(item: FunctionShellToolParam): any;
@@ -1472,10 +1333,10 @@ export interface ProtocolVersionRecord {
1472
1333
  export declare function protocolVersionRecordSerializer(item: ProtocolVersionRecord): any;
1473
1334
  export declare function protocolVersionRecordDeserializer(item: any): ProtocolVersionRecord;
1474
1335
  /** Type of AgentProtocol */
1475
- export type AgentProtocol = "activity_protocol" | "responses" | "mcp" | "invocations" | "invocations_ws";
1336
+ export type AgentProtocol = "activity" | "responses" | "a2a" | "mcp" | "invocations" | "invocations_ws";
1476
1337
  /** Code-based deployment configuration for a hosted agent. */
1477
1338
  export interface CodeConfiguration {
1478
- /** The runtime identifier for code execution (e.g., 'python_3_11', 'python_3_12', 'python_3_13'). */
1339
+ /** The runtime identifier for code execution ('python_3_14'). */
1479
1340
  runtime: string;
1480
1341
  /** The entry point command and arguments for the code execution. */
1481
1342
  entry_point: string[];
@@ -1608,6 +1469,7 @@ export declare function promptAgentDefinitionDeserializer(item: any): PromptAgen
1608
1469
  export interface Reasoning {
1609
1470
  effort?: ReasoningEffort;
1610
1471
  summary?: "auto" | "concise" | "detailed";
1472
+ context?: "auto" | "current_turn" | "all_turns";
1611
1473
  generate_summary?: "auto" | "concise" | "detailed";
1612
1474
  }
1613
1475
  export declare function reasoningSerializer(item: Reasoning): any;
@@ -1928,8 +1790,8 @@ export declare function managedAgentIdentityBlueprintReferenceDeserializer(item:
1928
1790
  export interface AgentEndpointConfig {
1929
1791
  /** The version selector of the agent endpoint determines how traffic is routed to different versions of the agent. */
1930
1792
  version_selector?: VersionSelector;
1931
- /** The protocols that the agent supports */
1932
- protocols?: AgentEndpointProtocol[];
1793
+ /** Per-protocol configuration for the agent endpoint. */
1794
+ protocol_configuration?: ProtocolConfiguration;
1933
1795
  /** The authorization schemes supported by the agent endpoint */
1934
1796
  authorization_schemes?: AgentEndpointAuthorizationSchemeUnion[];
1935
1797
  }
@@ -1947,7 +1809,7 @@ export declare function versionSelectionRuleUnionArraySerializer(result: Array<V
1947
1809
  export declare function versionSelectionRuleUnionArrayDeserializer(result: Array<VersionSelectionRuleUnion>): any[];
1948
1810
  /** model interface VersionSelectionRule */
1949
1811
  export interface VersionSelectionRule {
1950
- type: VersionSelectorType;
1812
+ type: VersionSelectionRuleType;
1951
1813
  /** The agent version to route traffic to */
1952
1814
  agent_version: string;
1953
1815
  }
@@ -1957,8 +1819,8 @@ export declare function versionSelectionRuleDeserializer(item: any): VersionSele
1957
1819
  export type VersionSelectionRuleUnion = FixedRatioVersionSelectionRule | VersionSelectionRule;
1958
1820
  export declare function versionSelectionRuleUnionSerializer(item: VersionSelectionRuleUnion): any;
1959
1821
  export declare function versionSelectionRuleUnionDeserializer(item: any): VersionSelectionRuleUnion;
1960
- /** Type of VersionSelectorType */
1961
- export type VersionSelectorType = "FixedRatio";
1822
+ /** Type of VersionSelectionRuleType */
1823
+ export type VersionSelectionRuleType = "FixedRatio";
1962
1824
  /** model interface FixedRatioVersionSelectionRule */
1963
1825
  export interface FixedRatioVersionSelectionRule extends VersionSelectionRule {
1964
1826
  type: "FixedRatio";
@@ -1967,8 +1829,55 @@ export interface FixedRatioVersionSelectionRule extends VersionSelectionRule {
1967
1829
  }
1968
1830
  export declare function fixedRatioVersionSelectionRuleSerializer(item: FixedRatioVersionSelectionRule): any;
1969
1831
  export declare function fixedRatioVersionSelectionRuleDeserializer(item: any): FixedRatioVersionSelectionRule;
1970
- /** Type of AgentEndpointProtocol */
1971
- export type AgentEndpointProtocol = "activity" | "responses" | "a2a" | "mcp" | "invocations" | "invocations_ws";
1832
+ /** Per-protocol configuration for the agent endpoint. */
1833
+ export interface ProtocolConfiguration {
1834
+ /** Configuration for the activity protocol. */
1835
+ activity?: ActivityProtocolConfiguration;
1836
+ /** Configuration for the responses protocol. */
1837
+ responses?: ResponsesProtocolConfiguration;
1838
+ /** Configuration for the A2A protocol. */
1839
+ a2a?: A2AProtocolConfiguration;
1840
+ /** Configuration for the MCP protocol. */
1841
+ mcp?: McpProtocolConfiguration;
1842
+ /** Configuration for the invocations protocol. */
1843
+ invocations?: InvocationsProtocolConfiguration;
1844
+ /** Configuration for the WebSocket-based invocations protocol. */
1845
+ invocations_ws?: InvocationsWsProtocolConfiguration;
1846
+ }
1847
+ export declare function protocolConfigurationSerializer(item: ProtocolConfiguration): any;
1848
+ export declare function protocolConfigurationDeserializer(item: any): ProtocolConfiguration;
1849
+ /** Configuration specific to the activity protocol. */
1850
+ export interface ActivityProtocolConfiguration {
1851
+ /** Whether to enable the M365 public endpoint for the activity protocol. */
1852
+ enable_m365_public_endpoint?: boolean;
1853
+ }
1854
+ export declare function activityProtocolConfigurationSerializer(item: ActivityProtocolConfiguration): any;
1855
+ export declare function activityProtocolConfigurationDeserializer(item: any): ActivityProtocolConfiguration;
1856
+ /** Configuration specific to the responses protocol. */
1857
+ export interface ResponsesProtocolConfiguration {
1858
+ }
1859
+ export declare function responsesProtocolConfigurationSerializer(_item: ResponsesProtocolConfiguration): any;
1860
+ export declare function responsesProtocolConfigurationDeserializer(item: any): ResponsesProtocolConfiguration;
1861
+ /** Configuration specific to the A2A protocol. */
1862
+ export interface A2AProtocolConfiguration {
1863
+ }
1864
+ export declare function a2AProtocolConfigurationSerializer(_item: A2AProtocolConfiguration): any;
1865
+ export declare function a2AProtocolConfigurationDeserializer(item: any): A2AProtocolConfiguration;
1866
+ /** Configuration specific to the MCP protocol. */
1867
+ export interface McpProtocolConfiguration {
1868
+ }
1869
+ export declare function mcpProtocolConfigurationSerializer(_item: McpProtocolConfiguration): any;
1870
+ export declare function mcpProtocolConfigurationDeserializer(item: any): McpProtocolConfiguration;
1871
+ /** Configuration specific to the invocations protocol. */
1872
+ export interface InvocationsProtocolConfiguration {
1873
+ }
1874
+ export declare function invocationsProtocolConfigurationSerializer(_item: InvocationsProtocolConfiguration): any;
1875
+ export declare function invocationsProtocolConfigurationDeserializer(item: any): InvocationsProtocolConfiguration;
1876
+ /** Configuration specific to the WebSocket-based invocations protocol. */
1877
+ export interface InvocationsWsProtocolConfiguration {
1878
+ }
1879
+ export declare function invocationsWsProtocolConfigurationSerializer(_item: InvocationsWsProtocolConfiguration): any;
1880
+ export declare function invocationsWsProtocolConfigurationDeserializer(item: any): InvocationsWsProtocolConfiguration;
1972
1881
  export declare function agentEndpointAuthorizationSchemeUnionArraySerializer(result: Array<AgentEndpointAuthorizationSchemeUnion>): any[];
1973
1882
  export declare function agentEndpointAuthorizationSchemeUnionArrayDeserializer(result: Array<AgentEndpointAuthorizationSchemeUnion>): any[];
1974
1883
  /** model interface AgentEndpointAuthorizationScheme */
@@ -1978,43 +1887,17 @@ export interface AgentEndpointAuthorizationScheme {
1978
1887
  export declare function agentEndpointAuthorizationSchemeSerializer(item: AgentEndpointAuthorizationScheme): any;
1979
1888
  export declare function agentEndpointAuthorizationSchemeDeserializer(item: any): AgentEndpointAuthorizationScheme;
1980
1889
  /** Alias for AgentEndpointAuthorizationSchemeUnion */
1981
- export type AgentEndpointAuthorizationSchemeUnion = EntraAuthorizationScheme | BotServiceAuthorizationScheme | BotServiceRbacAuthorizationScheme | AgentEndpointAuthorizationScheme;
1890
+ export type AgentEndpointAuthorizationSchemeUnion = EntraAuthorizationScheme | BotServiceAuthorizationScheme | BotServiceRbacAuthorizationScheme | BotServiceTenantAuthorizationScheme | AgentEndpointAuthorizationScheme;
1982
1891
  export declare function agentEndpointAuthorizationSchemeUnionSerializer(item: AgentEndpointAuthorizationSchemeUnion): any;
1983
1892
  export declare function agentEndpointAuthorizationSchemeUnionDeserializer(item: any): AgentEndpointAuthorizationSchemeUnion;
1984
1893
  /** Type of AgentEndpointAuthorizationSchemeType */
1985
- export type AgentEndpointAuthorizationSchemeType = "Entra" | "BotService" | "BotServiceRbac";
1894
+ export type AgentEndpointAuthorizationSchemeType = "Entra" | "BotService" | "BotServiceRbac" | "BotServiceTenant";
1986
1895
  /** model interface EntraAuthorizationScheme */
1987
1896
  export interface EntraAuthorizationScheme extends AgentEndpointAuthorizationScheme {
1988
1897
  type: "Entra";
1989
- /** The source from which the per-user isolation key is derived for requests authorized via this scheme. Defaults to Entra-based isolation when omitted. */
1990
- isolation_key_source?: IsolationKeySourceUnion;
1991
1898
  }
1992
1899
  export declare function entraAuthorizationSchemeSerializer(item: EntraAuthorizationScheme): any;
1993
1900
  export declare function entraAuthorizationSchemeDeserializer(item: any): EntraAuthorizationScheme;
1994
- /** model interface IsolationKeySource */
1995
- export interface IsolationKeySource {
1996
- kind: IsolationKeySourceKind;
1997
- }
1998
- export declare function isolationKeySourceSerializer(item: IsolationKeySource): any;
1999
- export declare function isolationKeySourceDeserializer(item: any): IsolationKeySource;
2000
- /** Alias for IsolationKeySourceUnion */
2001
- export type IsolationKeySourceUnion = EntraIsolationKeySource | HeaderIsolationKeySource | IsolationKeySource;
2002
- export declare function isolationKeySourceUnionSerializer(item: IsolationKeySourceUnion): any;
2003
- export declare function isolationKeySourceUnionDeserializer(item: any): IsolationKeySourceUnion;
2004
- /** Type of IsolationKeySourceKind */
2005
- export type IsolationKeySourceKind = "Entra" | "Header";
2006
- /** model interface EntraIsolationKeySource */
2007
- export interface EntraIsolationKeySource extends IsolationKeySource {
2008
- kind: "Entra";
2009
- }
2010
- export declare function entraIsolationKeySourceSerializer(item: EntraIsolationKeySource): any;
2011
- export declare function entraIsolationKeySourceDeserializer(item: any): EntraIsolationKeySource;
2012
- /** model interface HeaderIsolationKeySource */
2013
- export interface HeaderIsolationKeySource extends IsolationKeySource {
2014
- kind: "Header";
2015
- }
2016
- export declare function headerIsolationKeySourceSerializer(item: HeaderIsolationKeySource): any;
2017
- export declare function headerIsolationKeySourceDeserializer(item: any): HeaderIsolationKeySource;
2018
1901
  /** model interface BotServiceAuthorizationScheme */
2019
1902
  export interface BotServiceAuthorizationScheme extends AgentEndpointAuthorizationScheme {
2020
1903
  type: "BotService";
@@ -2027,6 +1910,12 @@ export interface BotServiceRbacAuthorizationScheme extends AgentEndpointAuthoriz
2027
1910
  }
2028
1911
  export declare function botServiceRbacAuthorizationSchemeSerializer(item: BotServiceRbacAuthorizationScheme): any;
2029
1912
  export declare function botServiceRbacAuthorizationSchemeDeserializer(item: any): BotServiceRbacAuthorizationScheme;
1913
+ /** model interface BotServiceTenantAuthorizationScheme */
1914
+ export interface BotServiceTenantAuthorizationScheme extends AgentEndpointAuthorizationScheme {
1915
+ type: "BotServiceTenant";
1916
+ }
1917
+ export declare function botServiceTenantAuthorizationSchemeSerializer(item: BotServiceTenantAuthorizationScheme): any;
1918
+ export declare function botServiceTenantAuthorizationSchemeDeserializer(item: any): BotServiceTenantAuthorizationScheme;
2030
1919
  /** model interface AgentCard */
2031
1920
  export interface AgentCard {
2032
1921
  /** The version of the agent card. */
@@ -2171,6 +2060,8 @@ export interface ContinuousEvaluationRuleAction extends EvaluationRuleAction {
2171
2060
  evalId: string;
2172
2061
  /** Maximum number of evaluation runs allowed per hour. */
2173
2062
  maxHourlyRuns?: number;
2063
+ /** Percentage (0-100] chance that a matching event triggers an evaluation. When omitted, the service-default is to evaluate every event, which is equivalent to setting a sampling rate of 100. */
2064
+ samplingRate?: number;
2174
2065
  }
2175
2066
  export declare function continuousEvaluationRuleActionSerializer(item: ContinuousEvaluationRuleAction): any;
2176
2067
  export declare function continuousEvaluationRuleActionDeserializer(item: any): ContinuousEvaluationRuleAction;
@@ -2699,204 +2590,279 @@ export interface SessionDirectoryEntry {
2699
2590
  modified_time: Date;
2700
2591
  }
2701
2592
  export declare function sessionDirectoryEntryDeserializer(item: any): SessionDirectoryEntry;
2702
- /** Caller-supplied inputs for an optimization job. */
2703
- export interface OptimizationJobInputs {
2704
- /** The agent (and pinned version) being optimized. */
2705
- agent: AgentIdentifier;
2706
- /** Reference to a registered training dataset (required). */
2707
- train_dataset_reference: DatasetRef;
2708
- /** Optional held-out validation dataset for measuring generalization of the final candidate. */
2709
- validation_dataset_reference?: DatasetRef;
2710
- /** Job-level evaluators (referenced by name). Per-task criteria may override. Default: ['task_adherence']. */
2711
- evaluators?: string[];
2712
- /** Tuning knobs and run-mode. */
2713
- options?: OptimizationOptions;
2593
+ export declare function toolboxToolUnionArraySerializer(result: Array<ToolboxToolUnion>): any[];
2594
+ export declare function toolboxToolUnionArrayDeserializer(result: Array<ToolboxToolUnion>): any[];
2595
+ /** An abstract representation of a tool stored in a toolbox. */
2596
+ export interface ToolboxTool {
2597
+ /** The type of tool. */
2598
+ /** The discriminator possible values: code_interpreter, file_search, web_search, mcp, azure_ai_search, openapi, a2a_preview, browser_automation_preview, reminder_preview, work_iq_preview, fabric_iq_preview, toolbox_search_preview */
2599
+ type: ToolboxToolType;
2600
+ /** Optional user-defined name for this tool or configuration. */
2601
+ name?: string;
2602
+ /** Optional user-defined description for this tool or configuration. */
2603
+ description?: string;
2604
+ /**
2605
+ * Per-tool configuration map. Keys are tool names or `*` (catch-all default).
2606
+ * Resolution order: exact tool name match takes priority over `*`.
2607
+ * Unknown tool names are silently ignored at runtime.
2608
+ */
2609
+ tool_configs?: Record<string, ToolConfig>;
2714
2610
  }
2715
- export declare function optimizationJobInputsSerializer(item: OptimizationJobInputs): any;
2716
- export declare function optimizationJobInputsDeserializer(item: any): OptimizationJobInputs;
2717
- /** Identifies the registered Foundry agent to optimize (request-only). Skills, tools, and system_prompt are specified in options.optimization_config. */
2718
- export interface AgentIdentifier {
2719
- /** Registered Foundry agent name (required). */
2720
- agent_name: string;
2721
- /** Pinned agent version. Defaults to latest if omitted. */
2722
- agent_version?: string;
2611
+ export declare function toolboxToolSerializer(item: ToolboxTool): any;
2612
+ export declare function toolboxToolDeserializer(item: any): ToolboxTool;
2613
+ /** Alias for ToolboxToolUnion */
2614
+ export type ToolboxToolUnion = CodeInterpreterToolboxTool | FileSearchToolboxTool | WebSearchToolboxTool | MCPToolboxTool | AzureAISearchToolboxTool | OpenApiToolboxTool | A2APreviewToolboxTool | BrowserAutomationPreviewToolboxTool | ReminderPreviewToolboxTool | WorkIQPreviewToolboxTool | FabricIQPreviewToolboxTool | ToolboxSearchPreviewToolboxTool | ToolboxTool;
2615
+ export declare function toolboxToolUnionSerializer(item: ToolboxToolUnion): any;
2616
+ export declare function toolboxToolUnionDeserializer(item: any): ToolboxToolUnion;
2617
+ /** Supported tool types for tools stored in a toolbox. */
2618
+ export type ToolboxToolType = "code_interpreter" | "file_search" | "web_search" | "mcp" | "azure_ai_search" | "openapi" | "a2a_preview" | "browser_automation_preview" | "reminder_preview" | "work_iq_preview" | "fabric_iq_preview" | "toolbox_search_preview";
2619
+ /** A code interpreter tool stored in a toolbox. */
2620
+ export interface CodeInterpreterToolboxTool extends ToolboxTool {
2621
+ type: "code_interpreter";
2622
+ /**
2623
+ * The code interpreter container. Can be a container ID or an object that
2624
+ * specifies uploaded file IDs to make available to your code, along with an
2625
+ * optional `memory_limit` setting.
2626
+ * If not provided, the service assumes auto.
2627
+ */
2628
+ container?: string | AutoCodeInterpreterToolParam;
2723
2629
  }
2724
- export declare function agentIdentifierSerializer(item: AgentIdentifier): any;
2725
- export declare function agentIdentifierDeserializer(item: any): AgentIdentifier;
2726
- /** Reference to a registered dataset in the Foundry Dataset Service. */
2727
- export interface DatasetRef {
2728
- /** Dataset name. */
2729
- name: string;
2730
- /** Dataset version. If not specified, the latest version is used. */
2731
- version?: string;
2630
+ export declare function codeInterpreterToolboxToolSerializer(item: CodeInterpreterToolboxTool): any;
2631
+ export declare function codeInterpreterToolboxToolDeserializer(item: any): CodeInterpreterToolboxTool;
2632
+ /** A file search tool stored in a toolbox. */
2633
+ export interface FileSearchToolboxTool extends ToolboxTool {
2634
+ type: "file_search";
2635
+ /** The maximum number of results to return. This number should be between 1 and 50 inclusive. */
2636
+ max_num_results?: number;
2637
+ /** Ranking options for search. */
2638
+ ranking_options?: RankingOptions;
2639
+ filters?: Filters;
2640
+ /** The IDs of the vector stores to search. */
2641
+ vector_store_ids?: string[];
2732
2642
  }
2733
- export declare function datasetRefSerializer(item: DatasetRef): any;
2734
- export declare function datasetRefDeserializer(item: any): DatasetRef;
2735
- /** Tuning knobs and run-mode for an optimization job. */
2736
- export interface OptimizationOptions {
2737
- /** Maximum optimization iterations per strategy. Must be >= 1. Default: 5. */
2738
- max_iterations?: number;
2739
- /** Per-target-attribute configuration overrides. Contains skills, tools, system_prompt for the agent, plus model space for model optimization. */
2740
- optimization_config?: Record<string, any>;
2741
- /** Model deployment used for evaluation. Defaults to server config (typically 'gpt-4o'). */
2742
- eval_model?: string;
2743
- /** Model deployment for optimization reasoning (must be gpt-5 family). Falls back to the default eval model when not set. */
2744
- optimization_model?: string;
2745
- /** Evaluation granularity. Null/omitted means per-item single-turn. Set to 'conversation' for per-conversation multi-turn simulation scoring. */
2746
- evaluation_level?: EvaluationLevel;
2643
+ export declare function fileSearchToolboxToolSerializer(item: FileSearchToolboxTool): any;
2644
+ export declare function fileSearchToolboxToolDeserializer(item: any): FileSearchToolboxTool;
2645
+ /** A web search tool stored in a toolbox. */
2646
+ export interface WebSearchToolboxTool extends ToolboxTool {
2647
+ type: "web_search";
2648
+ filters?: WebSearchToolFilters;
2649
+ user_location?: WebSearchApproximateLocation;
2650
+ /** High level guidance for the amount of context window space to use for the search. One of `low`, `medium`, or `high`. `medium` is the default. */
2651
+ search_context_size?: "low" | "medium" | "high";
2652
+ /**
2653
+ * The project connections attached to this tool. There can be a maximum of 1 connection
2654
+ * resource attached to the tool.
2655
+ */
2656
+ custom_search_configuration?: WebSearchConfiguration;
2747
2657
  }
2748
- export declare function optimizationOptionsSerializer(item: OptimizationOptions): any;
2749
- export declare function optimizationOptionsDeserializer(item: any): OptimizationOptions;
2750
- /** The level at which evaluation is performed. */
2751
- export type EvaluationLevel = "turn" | "conversation";
2752
- /** Agent optimization job resource — a long-running job that optimizes an agent's configuration (instructions, model, skills, tools) to maximize evaluation scores. On success, the result contains scored candidates. */
2753
- export interface OptimizationJob {
2754
- /** Server-assigned unique identifier. */
2755
- readonly id: string;
2756
- /** Current lifecycle status. */
2757
- readonly status: JobStatus;
2758
- /** Error details — populated only on failure. */
2759
- readonly error?: ErrorModel;
2760
- /** Result produced on success. */
2761
- readonly result?: OptimizationJobResult;
2762
- /** Caller-supplied inputs. */
2763
- inputs?: OptimizationJobInputs;
2764
- /** The timestamp when the job was created, represented in Unix time. */
2765
- readonly created_at: Date;
2766
- /** The timestamp when the job was last updated (status, progress, or result change), represented in Unix time. */
2767
- readonly updated_at?: Date;
2768
- /** Progress while in flight. Absent in terminal states. */
2769
- readonly progress?: OptimizationJobProgress;
2770
- /** Metadata about the dataset used for this optimization job. */
2771
- readonly dataset?: DatasetInfo;
2658
+ export declare function webSearchToolboxToolSerializer(item: WebSearchToolboxTool): any;
2659
+ export declare function webSearchToolboxToolDeserializer(item: any): WebSearchToolboxTool;
2660
+ /** An MCP tool stored in a toolbox. */
2661
+ export interface MCPToolboxTool extends ToolboxTool {
2662
+ type: "mcp";
2663
+ /** A label for this MCP server, used to identify it in tool calls. */
2664
+ server_label: string;
2665
+ /**
2666
+ * The URL for the MCP server. One of `server_url`, `connector_id`, or
2667
+ * `tunnel_id` must be provided.
2668
+ */
2669
+ server_url?: string;
2670
+ /**
2671
+ * Identifier for service connectors, like those available in ChatGPT. One of
2672
+ * `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more
2673
+ * about service connectors [here](/docs/guides/tools-remote-mcp#connectors).
2674
+ * Currently supported `connector_id` values are:
2675
+ * - Dropbox: `connector_dropbox`
2676
+ * - Gmail: `connector_gmail`
2677
+ * - Google Calendar: `connector_googlecalendar`
2678
+ * - Google Drive: `connector_googledrive`
2679
+ * - Microsoft Teams: `connector_microsoftteams`
2680
+ * - Outlook Calendar: `connector_outlookcalendar`
2681
+ * - Outlook Email: `connector_outlookemail`
2682
+ * - SharePoint: `connector_sharepoint`
2683
+ */
2684
+ connector_id?: "connector_dropbox" | "connector_gmail" | "connector_googlecalendar" | "connector_googledrive" | "connector_microsoftteams" | "connector_outlookcalendar" | "connector_outlookemail" | "connector_sharepoint";
2685
+ /**
2686
+ * The Secure MCP Tunnel ID to use instead of a direct server URL. One of
2687
+ * `server_url`, `connector_id`, or `tunnel_id` must be provided.
2688
+ */
2689
+ tunnel_id?: string;
2690
+ /**
2691
+ * An OAuth access token that can be used with a remote MCP server, either
2692
+ * with a custom MCP server URL or a service connector. Your application
2693
+ * must handle the OAuth authorization flow and provide the token here.
2694
+ */
2695
+ authorization?: string;
2696
+ /** Optional description of the MCP server, used to provide more context. */
2697
+ server_description?: string;
2698
+ headers?: Record<string, string>;
2699
+ allowed_tools?: string[] | MCPToolFilter;
2700
+ require_approval?: MCPToolRequireApproval | "always" | "never";
2701
+ /** Whether this MCP tool is deferred and discovered via tool search. */
2702
+ defer_loading?: boolean;
2703
+ /** The connection ID in the project for the MCP server. The connection stores authentication and other connection details needed to connect to the MCP server. */
2704
+ project_connection_id?: string;
2772
2705
  }
2773
- export declare function optimizationJobDeserializer(item: any): OptimizationJob;
2774
- /** Extensible status values shared by Foundry jobs. */
2775
- export type JobStatus = "queued" | "in_progress" | "succeeded" | "failed" | "cancelled";
2776
- /** Terminal-state result body. Populated when status is succeeded or failed. */
2777
- export interface OptimizationJobResult {
2778
- /** Evaluation scores for the original (un-optimized) agent configuration. */
2779
- baseline?: OptimizationCandidate;
2780
- /** The highest-scoring candidate found during optimization. */
2781
- best?: OptimizationCandidate;
2782
- /** All evaluated candidates including baseline. */
2783
- candidates?: OptimizationCandidate[];
2784
- /** The options used for this optimization run. */
2785
- options?: OptimizationOptions;
2786
- /** Non-fatal warnings from the optimization run (e.g., target attribute failures that were skipped). */
2787
- warnings?: string[];
2788
- /** True when all target attributes failed — only the baseline was evaluated. */
2789
- all_target_attributes_failed?: boolean;
2706
+ export declare function mcpToolboxToolSerializer(item: MCPToolboxTool): any;
2707
+ export declare function mcpToolboxToolDeserializer(item: any): MCPToolboxTool;
2708
+ /** An Azure AI Search tool stored in a toolbox. */
2709
+ export interface AzureAISearchToolboxTool extends ToolboxTool {
2710
+ type: "azure_ai_search";
2711
+ /** The azure ai search index resource. */
2712
+ azure_ai_search: AzureAISearchToolResource;
2790
2713
  }
2791
- export declare function optimizationJobResultDeserializer(item: any): OptimizationJobResult;
2792
- /** Aggregated evaluation result for a single candidate agent configuration across all tasks. */
2793
- export interface OptimizationCandidate {
2794
- /** Server-assigned candidate identifier. Use with GET /candidates/{id} sub-endpoints. */
2795
- candidate_id?: string;
2796
- /** Display name of the candidate (e.g., 'baseline', 'instruction-v2'). */
2797
- name: string;
2798
- /** The agent configuration that produced this candidate. */
2799
- config: OptimizationAgentDefinition;
2800
- /** What was mutated from the baseline (e.g., {system_prompt: 'new prompt'}). */
2801
- mutations: Record<string, any>;
2802
- /** Average composite score across all tasks. */
2803
- avg_score: number;
2804
- /** Average token usage across all tasks. */
2805
- avg_tokens: number;
2806
- /** Fraction of tasks that met the pass threshold. */
2807
- pass_rate: number;
2808
- /** Individual task-level scores. */
2809
- task_scores: OptimizationTaskResult[];
2810
- /** Whether this candidate is on the Pareto frontier (score vs cost). */
2811
- is_pareto_optimal: boolean;
2812
- /** Foundry evaluation identifier used to score this candidate. */
2813
- eval_id?: string;
2814
- /** Foundry evaluation run identifier for this candidate's scoring run. */
2815
- eval_run_id?: string;
2816
- /** Promotion metadata. Null if the candidate has not been promoted. */
2817
- promotion?: PromotionInfo;
2714
+ export declare function azureAISearchToolboxToolSerializer(item: AzureAISearchToolboxTool): any;
2715
+ export declare function azureAISearchToolboxToolDeserializer(item: any): AzureAISearchToolboxTool;
2716
+ /** An OpenAPI tool stored in a toolbox. */
2717
+ export interface OpenApiToolboxTool extends ToolboxTool {
2718
+ type: "openapi";
2719
+ /** The openapi function definition. */
2720
+ openapi: OpenApiFunctionDefinition;
2818
2721
  }
2819
- export declare function optimizationCandidateDeserializer(item: any): OptimizationCandidate;
2820
- /** Agent definition returned in response payloads (includes resolved config). */
2821
- export interface OptimizationAgentDefinition {
2822
- /** Agent name. */
2823
- agent_name?: string;
2824
- /** Agent version. */
2825
- agent_version?: string;
2826
- /** Model deployment name. */
2827
- model?: string;
2828
- /** System prompt / instructions. */
2829
- system_prompt?: string;
2830
- /** Agent skills. */
2831
- skills?: Record<string, any>[];
2832
- /** Agent tools. */
2833
- tools?: Record<string, any>[];
2834
- }
2835
- export declare function optimizationAgentDefinitionDeserializer(item: any): OptimizationAgentDefinition;
2836
- export declare function optimizationTaskResultArrayDeserializer(result: Array<OptimizationTaskResult>): any[];
2837
- /** Per-task evaluation result for a single candidate. */
2838
- export interface OptimizationTaskResult {
2839
- /** Task name (from the dataset). */
2840
- task_name: string;
2841
- /** The user query / input for the task. */
2842
- query?: string;
2843
- /** Per-evaluator scores keyed by evaluator name. */
2844
- scores: Record<string, number>;
2845
- /** Composite score combining all evaluator scores. */
2846
- composite_score: number;
2847
- /** Total tokens consumed during the agent run for this task. */
2848
- tokens: number;
2849
- /** Wall-clock seconds for this task's agent execution. */
2850
- duration_seconds: number;
2851
- /** Whether the task met the pass threshold. */
2852
- passed: boolean;
2853
- /** Error message if the task failed during execution. */
2854
- error_message?: string;
2855
- /** Per-evaluator reasoning keyed by evaluator name. */
2856
- rationales?: Record<string, string>;
2857
- /** Raw agent response text. */
2858
- response?: string;
2859
- /** Identifier of the agent run that produced this result. */
2860
- run_id?: string;
2861
- }
2862
- export declare function optimizationTaskResultDeserializer(item: any): OptimizationTaskResult;
2863
- /** Promotion metadata recorded when a candidate is deployed to a Foundry agent. */
2864
- export interface PromotionInfo {
2865
- /** Timestamp when promotion occurred, represented in Unix time. */
2866
- promoted_at: Date;
2867
- /** Name of the Foundry agent this candidate was promoted to. */
2868
- agent_name: string;
2869
- /** Version of the Foundry agent this candidate was promoted to. */
2870
- agent_version: string;
2722
+ export declare function openApiToolboxToolSerializer(item: OpenApiToolboxTool): any;
2723
+ export declare function openApiToolboxToolDeserializer(item: any): OpenApiToolboxTool;
2724
+ /** An A2A tool stored in a toolbox. */
2725
+ export interface A2APreviewToolboxTool extends ToolboxTool {
2726
+ type: "a2a_preview";
2727
+ /** Base URL of the agent. */
2728
+ base_url?: string;
2729
+ /**
2730
+ * The path to the agent card relative to the `base_url`.
2731
+ * If not provided, defaults to `/.well-known/agent-card.json`
2732
+ */
2733
+ agent_card_path?: string;
2734
+ /**
2735
+ * The connection ID in the project for the A2A server.
2736
+ * The connection stores authentication and other connection details needed to connect to the A2A server.
2737
+ */
2738
+ project_connection_id?: string;
2739
+ /**
2740
+ * When `true`, Foundry sends its credentials when fetching the remote
2741
+ * agent's Agent Card. The service defaults to `false` if a value is not
2742
+ * specified by the caller (anonymous fetch).
2743
+ */
2744
+ send_credentials_for_agent_card?: boolean;
2871
2745
  }
2872
- export declare function promotionInfoDeserializer(item: any): PromotionInfo;
2873
- export declare function optimizationCandidateArrayDeserializer(result: Array<OptimizationCandidate>): any[];
2874
- /** In-flight progress; only populated while status is queued or in_progress. */
2875
- export interface OptimizationJobProgress {
2876
- /** 1-based current iteration index. */
2877
- current_iteration: number;
2878
- /** Best score observed so far across all candidates. */
2879
- best_score: number;
2880
- /** Wall-clock time elapsed in seconds since the job began executing. */
2881
- elapsed_seconds: number;
2746
+ export declare function a2APreviewToolboxToolSerializer(item: A2APreviewToolboxTool): any;
2747
+ export declare function a2APreviewToolboxToolDeserializer(item: any): A2APreviewToolboxTool;
2748
+ /** A browser automation tool stored in a toolbox. */
2749
+ export interface BrowserAutomationPreviewToolboxTool extends ToolboxTool {
2750
+ type: "browser_automation_preview";
2751
+ /** The Browser Automation Tool parameters. */
2752
+ browser_automation_preview: BrowserAutomationToolParameters;
2882
2753
  }
2883
- export declare function optimizationJobProgressDeserializer(item: any): OptimizationJobProgress;
2884
- /** Metadata about the dataset used for optimization, surfaced in the response. */
2885
- export interface DatasetInfo {
2886
- /** Dataset name when using a registered dataset reference. Null for inline datasets. */
2887
- name?: string;
2888
- /** Dataset version when using a registered dataset reference. Null for inline datasets. */
2754
+ export declare function browserAutomationPreviewToolboxToolSerializer(item: BrowserAutomationPreviewToolboxTool): any;
2755
+ export declare function browserAutomationPreviewToolboxToolDeserializer(item: any): BrowserAutomationPreviewToolboxTool;
2756
+ /** A reminder tool stored in a toolbox. */
2757
+ export interface ReminderPreviewToolboxTool extends ToolboxTool {
2758
+ type: "reminder_preview";
2759
+ }
2760
+ export declare function reminderPreviewToolboxToolSerializer(item: ReminderPreviewToolboxTool): any;
2761
+ export declare function reminderPreviewToolboxToolDeserializer(item: any): ReminderPreviewToolboxTool;
2762
+ /** A WorkIQ tool stored in a toolbox. */
2763
+ export interface WorkIQPreviewToolboxTool extends ToolboxTool {
2764
+ type: "work_iq_preview";
2765
+ /** The ID of the WorkIQ project connection. */
2766
+ project_connection_id: string;
2767
+ }
2768
+ export declare function workIQPreviewToolboxToolSerializer(item: WorkIQPreviewToolboxTool): any;
2769
+ export declare function workIQPreviewToolboxToolDeserializer(item: any): WorkIQPreviewToolboxTool;
2770
+ /** A FabricIQ tool stored in a toolbox. */
2771
+ export interface FabricIQPreviewToolboxTool extends ToolboxTool {
2772
+ type: "fabric_iq_preview";
2773
+ /** The ID of the FabricIQ project connection. */
2774
+ project_connection_id: string;
2775
+ /** (Optional) The label of the FabricIQ MCP server to connect to. */
2776
+ server_label?: string;
2777
+ /** (Optional) The URL of the FabricIQ MCP server. If not provided, the URL from the project connection will be used. */
2778
+ server_url?: string;
2779
+ /** (Optional) Whether the agent requires approval before executing actions. Default is always. */
2780
+ require_approval?: MCPToolRequireApproval | string;
2781
+ }
2782
+ export declare function fabricIQPreviewToolboxToolSerializer(item: FabricIQPreviewToolboxTool): any;
2783
+ export declare function fabricIQPreviewToolboxToolDeserializer(item: any): FabricIQPreviewToolboxTool;
2784
+ /** A toolbox search tool stored in a toolbox. */
2785
+ export interface ToolboxSearchPreviewToolboxTool extends ToolboxTool {
2786
+ /** The type of the tool. Always `toolbox_search_preview`. */
2787
+ type: "toolbox_search_preview";
2788
+ }
2789
+ export declare function toolboxSearchPreviewToolboxToolSerializer(item: ToolboxSearchPreviewToolboxTool): any;
2790
+ export declare function toolboxSearchPreviewToolboxToolDeserializer(item: any): ToolboxSearchPreviewToolboxTool;
2791
+ export declare function toolboxSkillUnionArraySerializer(result: Array<ToolboxSkillUnion>): any[];
2792
+ export declare function toolboxSkillUnionArrayDeserializer(result: Array<ToolboxSkillUnion>): any[];
2793
+ /** A skill source included in a toolbox. */
2794
+ export interface ToolboxSkill {
2795
+ /** The type of skill source. */
2796
+ /** The discriminator possible values: skill_reference */
2797
+ type: string;
2798
+ }
2799
+ export declare function toolboxSkillSerializer(item: ToolboxSkill): any;
2800
+ export declare function toolboxSkillDeserializer(item: any): ToolboxSkill;
2801
+ /** Alias for ToolboxSkillUnion */
2802
+ export type ToolboxSkillUnion = ToolboxSkillReference | ToolboxSkill;
2803
+ export declare function toolboxSkillUnionSerializer(item: ToolboxSkillUnion): any;
2804
+ export declare function toolboxSkillUnionDeserializer(item: any): ToolboxSkillUnion;
2805
+ /** A reference to an existing skill to include in a toolbox. */
2806
+ export interface ToolboxSkillReference extends ToolboxSkill {
2807
+ /** The type of skill source. */
2808
+ type: "skill_reference";
2809
+ /** The name of the skill. */
2810
+ name: string;
2811
+ /** The version of the skill. If not specified, the skill's default version is used. When a version is specified, the reference is pinned to that immutable version. */
2889
2812
  version?: string;
2890
- /** Number of tasks/rows in the dataset. */
2891
- task_count: number;
2892
- /** True when the dataset was provided inline in the request body. */
2893
- is_inline: boolean;
2894
2813
  }
2895
- export declare function datasetInfoDeserializer(item: any): DatasetInfo;
2814
+ export declare function toolboxSkillReferenceSerializer(item: ToolboxSkillReference): any;
2815
+ export declare function toolboxSkillReferenceDeserializer(item: any): ToolboxSkillReference;
2816
+ /** Policy configuration for a toolbox, including content safety and other governance settings. */
2817
+ export interface ToolboxPolicies {
2818
+ /** Responsible AI content filtering configuration. */
2819
+ rai_config?: RaiConfig;
2820
+ }
2821
+ export declare function toolboxPoliciesSerializer(item: ToolboxPolicies): any;
2822
+ export declare function toolboxPoliciesDeserializer(item: any): ToolboxPolicies;
2823
+ /** A specific version of a toolbox. */
2824
+ export interface ToolboxVersionObject {
2825
+ /**
2826
+ * Set of 16 key-value pairs that can be attached to an object. This can be
2827
+ * useful for storing additional information about the object in a structured
2828
+ * format, and querying for objects via API or the dashboard.
2829
+ *
2830
+ * Keys are strings with a maximum length of 64 characters. Values are strings
2831
+ * with a maximum length of 512 characters.
2832
+ */
2833
+ metadata: Record<string, string> | null;
2834
+ /** The unique identifier of the toolbox version. */
2835
+ id: string;
2836
+ /** The name of the toolbox. */
2837
+ name: string;
2838
+ /** The version identifier of the toolbox. Toolbox versions are immutable and every update creates a new version. */
2839
+ version: string;
2840
+ /** A human-readable description of the toolbox. */
2841
+ description?: string;
2842
+ /** The Unix timestamp (seconds) when the toolbox version was created. */
2843
+ created_at: Date;
2844
+ /** The list of tools contained in this toolbox version. */
2845
+ tools: ToolboxToolUnion[];
2846
+ /** The list of skill sources included in this toolbox version. */
2847
+ skills?: ToolboxSkillUnion[];
2848
+ /** Policy configuration for the toolbox version. */
2849
+ policies?: ToolboxPolicies;
2850
+ }
2851
+ export declare function toolboxVersionObjectDeserializer(item: any): ToolboxVersionObject;
2852
+ /** A toolbox that stores reusable tool definitions for agents. */
2853
+ export interface ToolboxObject {
2854
+ /** The unique identifier of the toolbox. */
2855
+ id: string;
2856
+ /** The name of the toolbox. */
2857
+ name: string;
2858
+ /** The version identifier that the toolbox currently points to. Defaults to the latest version. Can be changed via updateToolbox. */
2859
+ default_version: string;
2860
+ }
2861
+ export declare function toolboxObjectDeserializer(item: any): ToolboxObject;
2896
2862
  /** The response data for a requested list of items. */
2897
- export interface _AgentsPagedResultOptimizationJob {
2863
+ export interface _AgentsPagedResultToolboxObject {
2898
2864
  /** The requested list of items. */
2899
- data: OptimizationJob[];
2865
+ data: ToolboxObject[];
2900
2866
  /** The first ID represented in this list. */
2901
2867
  first_id?: string;
2902
2868
  /** The last ID represented in this list. */
@@ -2904,12 +2870,12 @@ export interface _AgentsPagedResultOptimizationJob {
2904
2870
  /** A value indicating whether there are additional values available not captured in this list. */
2905
2871
  has_more: boolean;
2906
2872
  }
2907
- export declare function _agentsPagedResultOptimizationJobDeserializer(item: any): _AgentsPagedResultOptimizationJob;
2908
- export declare function optimizationJobArrayDeserializer(result: Array<OptimizationJob>): any[];
2873
+ export declare function _agentsPagedResultToolboxObjectDeserializer(item: any): _AgentsPagedResultToolboxObject;
2874
+ export declare function toolboxObjectArrayDeserializer(result: Array<ToolboxObject>): any[];
2909
2875
  /** The response data for a requested list of items. */
2910
- export interface AgentsPagedResultOptimizationCandidate {
2876
+ export interface _AgentsPagedResultToolboxVersionObject {
2911
2877
  /** The requested list of items. */
2912
- data: OptimizationCandidate[];
2878
+ data: ToolboxVersionObject[];
2913
2879
  /** The first ID represented in this list. */
2914
2880
  first_id?: string;
2915
2881
  /** The last ID represented in this list. */
@@ -2917,86 +2883,8 @@ export interface AgentsPagedResultOptimizationCandidate {
2917
2883
  /** A value indicating whether there are additional values available not captured in this list. */
2918
2884
  has_more: boolean;
2919
2885
  }
2920
- export declare function agentsPagedResultOptimizationCandidateDeserializer(item: any): AgentsPagedResultOptimizationCandidate;
2921
- /** Candidate metadata returned by GET /candidates/{id}. */
2922
- export interface CandidateMetadata {
2923
- /** Server-assigned candidate identifier. */
2924
- candidate_id: string;
2925
- /** Owning optimization job id. */
2926
- job_id: string;
2927
- /** Display name of the candidate. */
2928
- candidate_name: string;
2929
- /** Candidate lifecycle status. */
2930
- status: string;
2931
- /** Candidate's aggregate score. */
2932
- score?: number;
2933
- /** Whether detailed results are available for this candidate. */
2934
- has_results: boolean;
2935
- /** Timestamp when the candidate was created, represented in Unix time. */
2936
- created_at: Date;
2937
- /** Timestamp when the candidate was last updated, represented in Unix time. */
2938
- updated_at: Date;
2939
- /** Promotion metadata. Null if not promoted. */
2940
- promotion?: PromotionInfo;
2941
- /** Files in the candidate's blob directory. */
2942
- files: CandidateFileInfo[];
2943
- }
2944
- export declare function candidateMetadataDeserializer(item: any): CandidateMetadata;
2945
- export declare function candidateFileInfoArrayDeserializer(result: Array<CandidateFileInfo>): any[];
2946
- /** File entry in a candidate's blob directory. */
2947
- export interface CandidateFileInfo {
2948
- /** Relative path of the file. */
2949
- path: string;
2950
- /** File type category (e.g. 'config', 'results'). */
2951
- type: string;
2952
- /** File size in bytes. */
2953
- size_bytes: number;
2954
- }
2955
- export declare function candidateFileInfoDeserializer(item: any): CandidateFileInfo;
2956
- /** Deploy-config blob for a candidate. Suitable for setting OPTIMIZATION_CONFIG on a hosted-agent version. */
2957
- export interface CandidateDeployConfig {
2958
- /** System prompt / instructions. */
2959
- instructions?: string;
2960
- /** Foundry deployment name. */
2961
- model?: string;
2962
- /** Optional sampling temperature. */
2963
- temperature?: number;
2964
- /** Optional skill overrides. */
2965
- skills?: Record<string, any>[];
2966
- /** Optional tool overrides. */
2967
- tools?: Record<string, any>[];
2968
- }
2969
- export declare function candidateDeployConfigDeserializer(item: any): CandidateDeployConfig;
2970
- /** Full per-task evaluation results for a candidate, returned by GET /candidates/{id}/results. */
2971
- export interface CandidateResults {
2972
- /** Owning candidate id. */
2973
- candidate_id: string;
2974
- /** Per-task evaluation rows. */
2975
- results: OptimizationTaskResult[];
2976
- }
2977
- export declare function candidateResultsDeserializer(item: any): CandidateResults;
2978
- /** Request body for promoting a candidate to a Foundry agent version. */
2979
- export interface PromoteCandidateRequest {
2980
- /** Name of the Foundry agent to promote to. */
2981
- agent_name: string;
2982
- /** Version of the Foundry agent to promote to. */
2983
- agent_version: string;
2984
- }
2985
- export declare function promoteCandidateRequestSerializer(item: PromoteCandidateRequest): any;
2986
- /** Response after successfully promoting a candidate. */
2987
- export interface PromoteCandidateResponse {
2988
- /** The promoted candidate id. */
2989
- candidate_id: string;
2990
- /** Status after promotion. */
2991
- status: string;
2992
- /** Timestamp when promotion occurred, represented in Unix time. */
2993
- promoted_at: Date;
2994
- /** Name of the Foundry agent promoted to. */
2995
- agent_name: string;
2996
- /** Version of the Foundry agent promoted to. */
2997
- agent_version: string;
2998
- }
2999
- export declare function promoteCandidateResponseDeserializer(item: any): PromoteCandidateResponse;
2886
+ export declare function _agentsPagedResultToolboxVersionObjectDeserializer(item: any): _AgentsPagedResultToolboxVersionObject;
2887
+ export declare function toolboxVersionObjectArrayDeserializer(result: Array<ToolboxVersionObject>): any[];
3000
2888
  /** Evaluation Taxonomy Definition */
3001
2889
  export interface EvaluationTaxonomy {
3002
2890
  /** Asset ID, a unique identifier for the asset */
@@ -3172,6 +3060,8 @@ export interface EvaluatorVersion {
3172
3060
  evaluator_type: EvaluatorType;
3173
3061
  /** The categories of the evaluator */
3174
3062
  categories: EvaluatorCategory[];
3063
+ /** Evaluation levels this evaluator supports (e.g., `turn`, `conversation`). When omitted on create, the service defaults to `["turn"]`. On update, omitting this field leaves it unchanged; an empty list is rejected. Custom code-based evaluators support only `turn`; custom prompt-based evaluators support exactly one level (`turn` or `conversation`). */
3064
+ supported_evaluation_levels?: EvaluationLevel[];
3175
3065
  /** Definition of the evaluator */
3176
3066
  definition: EvaluatorDefinitionUnion;
3177
3067
  /** Provenance artifacts from the generation pipeline. Read-only; present only on evaluator versions created via an EvaluatorGenerationJob. Each artifact resolves to a versioned Foundry Dataset. */
@@ -3199,10 +3089,12 @@ export declare function evaluatorVersionDeserializer(item: any): EvaluatorVersio
3199
3089
  export type EvaluatorType = "builtin" | "custom";
3200
3090
  /** The category of the evaluator */
3201
3091
  export type EvaluatorCategory = "quality" | "safety" | "agents";
3092
+ /** The level at which evaluation is performed. */
3093
+ export type EvaluationLevel = "turn" | "conversation";
3202
3094
  /** Base evaluator configuration with discriminator */
3203
3095
  export interface EvaluatorDefinition {
3204
3096
  /** The type of evaluator definition */
3205
- /** The discriminator possible values: code, prompt, rubric */
3097
+ /** The discriminator possible values: code, prompt, rubric, endpoint */
3206
3098
  type: EvaluatorDefinitionType;
3207
3099
  /** The JSON schema (Draft 2020-12) for the evaluator's input parameters. This includes parameters like type, properties, required. */
3208
3100
  init_parameters?: Record<string, unknown>;
@@ -3214,11 +3106,11 @@ export interface EvaluatorDefinition {
3214
3106
  export declare function evaluatorDefinitionSerializer(item: EvaluatorDefinition): any;
3215
3107
  export declare function evaluatorDefinitionDeserializer(item: any): EvaluatorDefinition;
3216
3108
  /** Alias for EvaluatorDefinitionUnion */
3217
- export type EvaluatorDefinitionUnion = CodeBasedEvaluatorDefinition | PromptBasedEvaluatorDefinition | RubricBasedEvaluatorDefinition | EvaluatorDefinition;
3109
+ export type EvaluatorDefinitionUnion = CodeBasedEvaluatorDefinition | PromptBasedEvaluatorDefinition | RubricBasedEvaluatorDefinition | EndpointBasedEvaluatorDefinition | EvaluatorDefinition;
3218
3110
  export declare function evaluatorDefinitionUnionSerializer(item: EvaluatorDefinitionUnion): any;
3219
3111
  export declare function evaluatorDefinitionUnionDeserializer(item: any): EvaluatorDefinitionUnion;
3220
3112
  /** The type of evaluator definition */
3221
- export type EvaluatorDefinitionType = "prompt" | "code" | "prompt_and_code" | "service" | "openai_graders" | "rubric";
3113
+ export type EvaluatorDefinitionType = "prompt" | "code" | "prompt_and_code" | "service" | "openai_graders" | "endpoint" | "rubric";
3222
3114
  export declare function evaluatorMetricRecordSerializer(item: Record<string, EvaluatorMetric>): Record<string, any>;
3223
3115
  export declare function evaluatorMetricRecordDeserializer(item: Record<string, any>): Record<string, EvaluatorMetric>;
3224
3116
  /** Evaluator Metric */
@@ -3286,11 +3178,19 @@ export interface Dimension {
3286
3178
  description: string;
3287
3179
  /** Relative weight of this dimension (1-10). The generation pipeline assigns exactly one dimension weight 8-10; all others use 1-6. User edits are not constrained by this heuristic. */
3288
3180
  weight: number;
3289
- /** When true, the LLM judge always scores this dimension regardless of relevance (skips applicability assessment). The service-generated general quality/policy dimension has this set to true and is non-editable. Users may set this on their own custom dimensions. */
3181
+ /** When true, the LLM judge always scores this dimension regardless of relevance (skips applicability assessment). The service-generated general quality/policy dimension has this set to true and is non-editable. Users may set this on their own custom dimensions. The service defaults to `false` if a value is not specified by the caller. */
3290
3182
  always_applicable?: boolean;
3291
3183
  }
3292
3184
  export declare function dimensionSerializer(item: Dimension): any;
3293
3185
  export declare function dimensionDeserializer(item: any): Dimension;
3186
+ /** Endpoint-based evaluator definition. The customer owns and hosts an HTTP endpoint that implements the evaluation contract. The evaluator references a Project Connection by name; the connection stores the endpoint URL and credentials (API Key or Entra ID). At execution time, the service resolves the connection to obtain the endpoint URL and authentication details, then calls the endpoint for each evaluation row. */
3187
+ export interface EndpointBasedEvaluatorDefinition extends EvaluatorDefinition {
3188
+ type: "endpoint";
3189
+ /** Name of the Project Connection that stores the endpoint URL and credentials. The connection must exist on the project and have a non-empty target URL. Supported auth types: ApiKey (sends `api-key` header) and AAD/Entra ID (acquires a bearer token via the project's Managed Identity). */
3190
+ connection_name: string;
3191
+ }
3192
+ export declare function endpointBasedEvaluatorDefinitionSerializer(item: EndpointBasedEvaluatorDefinition): any;
3193
+ export declare function endpointBasedEvaluatorDefinitionDeserializer(item: any): EndpointBasedEvaluatorDefinition;
3294
3194
  /** Service-managed provenance artifacts produced by an evaluator generation job. Present only on EvaluatorVersion resources created via the generation pipeline. The combined-JSONL Foundry Dataset is read-only and resolves to a versioned dataset in a service-reserved namespace. */
3295
3195
  export interface EvaluatorGenerationArtifacts {
3296
3196
  /** Reference to the single Foundry Dataset (one combined JSONL file, version-aligned to `EvaluatorVersion.version`) holding all artifacts produced by the generation pipeline. Each row in the JSONL carries a `kind` field discriminating its content (e.g. `spec`, `tools`, `context`). */
@@ -3421,6 +3321,8 @@ export interface DatasetEvaluatorGenerationJobSource extends EvaluatorGeneration
3421
3321
  }
3422
3322
  export declare function datasetEvaluatorGenerationJobSourceSerializer(item: DatasetEvaluatorGenerationJobSource): any;
3423
3323
  export declare function datasetEvaluatorGenerationJobSourceDeserializer(item: any): DatasetEvaluatorGenerationJobSource;
3324
+ /** Extensible status values shared by Foundry jobs. */
3325
+ export type JobStatus = "queued" | "in_progress" | "succeeded" | "failed" | "cancelled";
3424
3326
  /** Token consumption summary for an evaluator generation job. Populated when the job reaches a terminal state. */
3425
3327
  export interface EvaluatorGenerationTokenUsage {
3426
3328
  /** Number of input (prompt) tokens consumed. */
@@ -3779,7 +3681,7 @@ export interface MemoryStoreDefaultOptions {
3779
3681
  user_profile_details?: string;
3780
3682
  /** Whether to enable chat summary extraction and storage. Defaults to `true`. */
3781
3683
  chat_summary_enabled: boolean;
3782
- /** Whether to enable procedural memory extraction and storage. Defaults to `true`. */
3684
+ /** Whether to enable procedural memory extraction and storage. The service defaults to `true` if a value is not specified by the caller. */
3783
3685
  procedural_memory_enabled?: boolean;
3784
3686
  /** The default time-to-live for memories in seconds. A value of `0` indicates that memories do not expire. Defaults to `0`. */
3785
3687
  default_ttl_seconds?: number;
@@ -3908,7 +3810,6 @@ export interface ResponseUsageInputTokensDetails {
3908
3810
  export declare function responseUsageInputTokensDetailsDeserializer(item: any): ResponseUsageInputTokensDetails;
3909
3811
  /** model interface ResponseUsageOutputTokensDetails */
3910
3812
  export interface ResponseUsageOutputTokensDetails {
3911
- /** The number of output tokens used for reasoning. */
3912
3813
  reasoning_tokens: number;
3913
3814
  }
3914
3815
  export declare function responseUsageOutputTokensDetailsDeserializer(item: any): ResponseUsageOutputTokensDetails;
@@ -3994,8 +3895,6 @@ export declare function modelVersionArraySerializer(result: Array<ModelVersion>)
3994
3895
  export declare function modelVersionArrayDeserializer(result: Array<ModelVersion>): any[];
3995
3896
  /** Model Version Definition */
3996
3897
  export interface ModelVersion {
3997
- /** System related metadata */
3998
- readonly systemData?: SystemDataV3;
3999
3898
  /** URI of the model artifact in blob storage */
4000
3899
  blobUri: string;
4001
3900
  /** The weight type of the model */
@@ -4023,18 +3922,6 @@ export interface ModelVersion {
4023
3922
  }
4024
3923
  export declare function modelVersionSerializer(item: ModelVersion): any;
4025
3924
  export declare function modelVersionDeserializer(item: any): ModelVersion;
4026
- /** System metadata for a resource */
4027
- export interface SystemDataV3 {
4028
- /** Timestamp of resource creation */
4029
- createdAt?: Date;
4030
- /** Identity that created the resource */
4031
- createdBy?: string;
4032
- /** Type of identity that created the resource */
4033
- createdByType?: string;
4034
- /** Timestamp of last resource modification */
4035
- lastModifiedAt?: Date;
4036
- }
4037
- export declare function systemDataV3Deserializer(item: any): SystemDataV3;
4038
3925
  /** The weight type of the model. */
4039
3926
  export type FoundryModelWeightType = "FullWeight" | "LoRA" | "DraftModel";
4040
3927
  /** Source information for the model */
@@ -4138,7 +4025,7 @@ export interface RedTeam {
4138
4025
  numTurns?: number;
4139
4026
  /** List of attack strategies or nested lists of attack strategies. */
4140
4027
  attackStrategies?: AttackStrategy[];
4141
- /** Simulation-only or Simulation + Evaluation. Default false, if true the scan outputs conversation not evaluation result. */
4028
+ /** Simulation-only or Simulation + Evaluation. If `true` the scan outputs conversation not evaluation result. The service defaults to `false` if a value is not specified by the caller. */
4142
4029
  simulationOnly?: boolean;
4143
4030
  /** List of risk categories to generate attack objectives for. */
4144
4031
  riskCategories?: RiskCategory[];
@@ -4193,7 +4080,7 @@ export declare function routineTriggerUnionRecordDeserializer(item: Record<strin
4193
4080
  /** Base model for a routine trigger. */
4194
4081
  export interface RoutineTrigger {
4195
4082
  /** The trigger type. */
4196
- /** The discriminator possible values: schedule, timer, github_issue_opened */
4083
+ /** The discriminator possible values: schedule, timer, github_issue, custom */
4197
4084
  type: RoutineTriggerType;
4198
4085
  }
4199
4086
  export declare function routineTriggerSerializer(item: RoutineTrigger): any;
@@ -4301,15 +4188,15 @@ export declare function invokeAgentInvocationsApiRoutineActionDeserializer(item:
4301
4188
  /** A routine definition returned by the service. */
4302
4189
  export interface Routine {
4303
4190
  /** The routine name. */
4304
- name: string;
4191
+ name?: string;
4305
4192
  /** A human-readable description of the routine. */
4306
4193
  description?: string;
4307
4194
  /** Whether the routine is enabled. */
4308
4195
  enabled: boolean;
4309
4196
  /** The triggers configured for the routine. */
4310
- triggers: Record<string, RoutineTriggerUnion>;
4197
+ triggers?: Record<string, RoutineTriggerUnion>;
4311
4198
  /** The action executed when the routine fires. */
4312
- action: RoutineActionUnion;
4199
+ action?: RoutineActionUnion;
4313
4200
  /** The time when the routine was created. */
4314
4201
  created_at?: Date;
4315
4202
  /** The time when the routine was last updated. */
@@ -4347,13 +4234,15 @@ export interface RoutineRun {
4347
4234
  /** The unique run identifier for the routine attempt. */
4348
4235
  readonly id: string;
4349
4236
  /** The run status. */
4350
- status?: string;
4237
+ status?: RoutineRunStatus;
4351
4238
  /** The AgentExtensions lifecycle phase for the routine attempt. */
4352
4239
  phase?: RoutineRunPhase;
4353
4240
  /** The trigger type that produced the routine attempt. */
4354
4241
  trigger_type?: RoutineTriggerType;
4355
4242
  /** The configured trigger name that produced the routine attempt. */
4356
4243
  trigger_name?: string;
4244
+ /** The event payload captured from the event that triggered the routine attempt, when available. */
4245
+ trigger_event_payload?: Record<string, any>;
4357
4246
  /** The source path that created the routine attempt. */
4358
4247
  attempt_source?: RoutineAttemptSource;
4359
4248
  /** The action type dispatched for the routine attempt. */
@@ -4390,6 +4279,9 @@ export interface RoutineRun {
4390
4279
  error_message?: string;
4391
4280
  }
4392
4281
  export declare function routineRunDeserializer(item: any): RoutineRun;
4282
+ /** The status of a routine run. */
4283
+ export type RoutineRunStatus = string;
4284
+ export declare function routineRunStatusDeserializer(item: any): RoutineRunStatus;
4393
4285
  /** Known lifecycle phases recorded for a routine run. */
4394
4286
  export type RoutineRunPhase = "queued" | "dispatching" | "completed" | "failed";
4395
4287
  /** Known source paths that can produce a routine run. */
@@ -4637,103 +4529,6 @@ export interface _PagedScheduleRun {
4637
4529
  }
4638
4530
  export declare function _pagedScheduleRunDeserializer(item: any): _PagedScheduleRun;
4639
4531
  export declare function scheduleRunArrayDeserializer(result: Array<ScheduleRun>): any[];
4640
- export declare function toolboxSkillUnionArraySerializer(result: Array<ToolboxSkillUnion>): any[];
4641
- export declare function toolboxSkillUnionArrayDeserializer(result: Array<ToolboxSkillUnion>): any[];
4642
- /** A skill source included in a toolbox. */
4643
- export interface ToolboxSkill {
4644
- /** The type of skill source. */
4645
- /** The discriminator possible values: skill_reference */
4646
- type: string;
4647
- }
4648
- export declare function toolboxSkillSerializer(item: ToolboxSkill): any;
4649
- export declare function toolboxSkillDeserializer(item: any): ToolboxSkill;
4650
- /** Alias for ToolboxSkillUnion */
4651
- export type ToolboxSkillUnion = ToolboxSkillReference | ToolboxSkill;
4652
- export declare function toolboxSkillUnionSerializer(item: ToolboxSkillUnion): any;
4653
- export declare function toolboxSkillUnionDeserializer(item: any): ToolboxSkillUnion;
4654
- /** A reference to an existing skill to include in a toolbox. */
4655
- export interface ToolboxSkillReference extends ToolboxSkill {
4656
- /** The type of skill source. */
4657
- type: "skill_reference";
4658
- /** The name of the skill. */
4659
- name: string;
4660
- /** The version of the skill. If not specified, the skill's default version is used. When a version is specified, the reference is pinned to that immutable version. */
4661
- version?: string;
4662
- }
4663
- export declare function toolboxSkillReferenceSerializer(item: ToolboxSkillReference): any;
4664
- export declare function toolboxSkillReferenceDeserializer(item: any): ToolboxSkillReference;
4665
- /** Policy configuration for a toolbox, including content safety and other governance settings. */
4666
- export interface ToolboxPolicies {
4667
- /** Responsible AI content filtering configuration. */
4668
- rai_config?: RaiConfig;
4669
- }
4670
- export declare function toolboxPoliciesSerializer(item: ToolboxPolicies): any;
4671
- export declare function toolboxPoliciesDeserializer(item: any): ToolboxPolicies;
4672
- /** A specific version of a toolbox. */
4673
- export interface ToolboxVersionObject {
4674
- /**
4675
- * Set of 16 key-value pairs that can be attached to an object. This can be
4676
- * useful for storing additional information about the object in a structured
4677
- * format, and querying for objects via API or the dashboard.
4678
- *
4679
- * Keys are strings with a maximum length of 64 characters. Values are strings
4680
- * with a maximum length of 512 characters.
4681
- */
4682
- metadata: Record<string, string>;
4683
- /** The unique identifier of the toolbox version. */
4684
- id: string;
4685
- /** The name of the toolbox. */
4686
- name: string;
4687
- /** The version identifier of the toolbox. Toolbox versions are immutable and every update creates a new version. */
4688
- version: string;
4689
- /** A human-readable description of the toolbox. */
4690
- description?: string;
4691
- /** The Unix timestamp (seconds) when the toolbox version was created. */
4692
- created_at: Date;
4693
- /** The list of tools contained in this toolbox version. */
4694
- tools: ToolUnion[];
4695
- /** The list of skill sources included in this toolbox version. */
4696
- skills?: ToolboxSkillUnion[];
4697
- /** Policy configuration for the toolbox version. */
4698
- policies?: ToolboxPolicies;
4699
- }
4700
- export declare function toolboxVersionObjectDeserializer(item: any): ToolboxVersionObject;
4701
- /** A toolbox that stores reusable tool definitions for agents. */
4702
- export interface ToolboxObject {
4703
- /** The unique identifier of the toolbox. */
4704
- id: string;
4705
- /** The name of the toolbox. */
4706
- name: string;
4707
- /** The version identifier that the toolbox currently points to. Defaults to the latest version. Can be changed via updateToolbox. */
4708
- default_version: string;
4709
- }
4710
- export declare function toolboxObjectDeserializer(item: any): ToolboxObject;
4711
- /** The response data for a requested list of items. */
4712
- export interface _AgentsPagedResultToolboxObject {
4713
- /** The requested list of items. */
4714
- data: ToolboxObject[];
4715
- /** The first ID represented in this list. */
4716
- first_id?: string;
4717
- /** The last ID represented in this list. */
4718
- last_id?: string;
4719
- /** A value indicating whether there are additional values available not captured in this list. */
4720
- has_more: boolean;
4721
- }
4722
- export declare function _agentsPagedResultToolboxObjectDeserializer(item: any): _AgentsPagedResultToolboxObject;
4723
- export declare function toolboxObjectArrayDeserializer(result: Array<ToolboxObject>): any[];
4724
- /** The response data for a requested list of items. */
4725
- export interface _AgentsPagedResultToolboxVersionObject {
4726
- /** The requested list of items. */
4727
- data: ToolboxVersionObject[];
4728
- /** The first ID represented in this list. */
4729
- first_id?: string;
4730
- /** The last ID represented in this list. */
4731
- last_id?: string;
4732
- /** A value indicating whether there are additional values available not captured in this list. */
4733
- has_more: boolean;
4734
- }
4735
- export declare function _agentsPagedResultToolboxVersionObjectDeserializer(item: any): _AgentsPagedResultToolboxVersionObject;
4736
- export declare function toolboxVersionObjectArrayDeserializer(result: Array<ToolboxVersionObject>): any[];
4737
4532
  /** A skill resource. */
4738
4533
  export interface Skill {
4739
4534
  /** The unique identifier of the skill. */
@@ -5084,6 +4879,221 @@ export interface _AgentsPagedResultDataGenerationJob {
5084
4879
  export declare function _agentsPagedResultDataGenerationJobDeserializer(item: any): _AgentsPagedResultDataGenerationJob;
5085
4880
  export declare function dataGenerationJobArraySerializer(result: Array<DataGenerationJob>): any[];
5086
4881
  export declare function dataGenerationJobArrayDeserializer(result: Array<DataGenerationJob>): any[];
4882
+ /** Agent optimization job resource — a long-running job that optimizes an agent's configuration (instructions, model, skills, tools) to maximize evaluation scores. On success, the result contains scored candidates. */
4883
+ export interface OptimizationJob {
4884
+ /** Server-assigned unique identifier. */
4885
+ readonly id: string;
4886
+ /** Caller-supplied inputs. */
4887
+ inputs?: OptimizationJobInputs;
4888
+ /** Result produced on success. */
4889
+ readonly result?: OptimizationJobResult;
4890
+ /** Current lifecycle status. */
4891
+ readonly status: JobStatus;
4892
+ /** Error details — populated only on failure. */
4893
+ readonly error?: ErrorModel;
4894
+ /** The timestamp when the job was created, represented in Unix time. */
4895
+ readonly created_at: Date;
4896
+ /** The timestamp when the job was last updated, represented in Unix time. */
4897
+ readonly updated_at: Date;
4898
+ /** Progress snapshot. May be present in terminal states reflecting last-known progress. */
4899
+ readonly progress?: OptimizationJobProgress;
4900
+ /** Non-fatal warnings emitted at any point during optimization. */
4901
+ readonly warnings?: string[];
4902
+ }
4903
+ export declare function optimizationJobSerializer(item: OptimizationJob): any;
4904
+ export declare function optimizationJobDeserializer(item: any): OptimizationJob;
4905
+ /** Caller-supplied inputs for an optimization job. */
4906
+ export interface OptimizationJobInputs {
4907
+ /** The agent (and pinned version) being optimized. */
4908
+ agent: OptimizationAgentIdentifier;
4909
+ /** Training dataset — either inline items or a reference to a registered dataset. Required. */
4910
+ train_dataset: OptimizationDatasetInputUnion;
4911
+ /** Optional held-out validation dataset for measuring generalization of the final candidate. */
4912
+ validation_dataset?: OptimizationDatasetInputUnion;
4913
+ /** Job-level evaluators referenced by name and optional version. Required; at least one must be provided. */
4914
+ evaluators: OptimizationEvaluatorRef[];
4915
+ /** Tuning knobs and run-mode. */
4916
+ options?: OptimizationOptions;
4917
+ }
4918
+ export declare function optimizationJobInputsSerializer(item: OptimizationJobInputs): any;
4919
+ export declare function optimizationJobInputsDeserializer(item: any): OptimizationJobInputs;
4920
+ /** Identifies the registered Foundry agent to optimize (request-only). Skills, tools, and system_prompt are specified in options.optimization_config. */
4921
+ export interface OptimizationAgentIdentifier {
4922
+ /** Registered Foundry agent name (required). */
4923
+ agent_name: string;
4924
+ /** Pinned agent version. Defaults to latest if omitted. */
4925
+ agent_version?: string;
4926
+ }
4927
+ export declare function optimizationAgentIdentifierSerializer(item: OptimizationAgentIdentifier): any;
4928
+ export declare function optimizationAgentIdentifierDeserializer(item: any): OptimizationAgentIdentifier;
4929
+ /** Base discriminated model for dataset input. Either inline items or a registered reference. */
4930
+ export interface OptimizationDatasetInput {
4931
+ /** Dataset input type discriminator. */
4932
+ /** The discriminator possible values: inline, reference */
4933
+ type: OptimizationDatasetInputType;
4934
+ }
4935
+ export declare function optimizationDatasetInputSerializer(item: OptimizationDatasetInput): any;
4936
+ export declare function optimizationDatasetInputDeserializer(item: any): OptimizationDatasetInput;
4937
+ /** Alias for OptimizationDatasetInputUnion */
4938
+ export type OptimizationDatasetInputUnion = OptimizationInlineDatasetInput | OptimizationReferenceDatasetInput | OptimizationDatasetInput;
4939
+ export declare function optimizationDatasetInputUnionSerializer(item: OptimizationDatasetInputUnion): any;
4940
+ export declare function optimizationDatasetInputUnionDeserializer(item: any): OptimizationDatasetInputUnion;
4941
+ /** Discriminator values for the dataset input union. */
4942
+ export type OptimizationDatasetInputType = "inline" | "reference";
4943
+ /** Inline dataset — items supplied directly in the request body. */
4944
+ export interface OptimizationInlineDatasetInput extends OptimizationDatasetInput {
4945
+ /** Dataset input type discriminator. */
4946
+ type: "inline";
4947
+ /** Dataset items. */
4948
+ items: OptimizationDatasetItem[];
4949
+ }
4950
+ export declare function optimizationInlineDatasetInputSerializer(item: OptimizationInlineDatasetInput): any;
4951
+ export declare function optimizationInlineDatasetInputDeserializer(item: any): OptimizationInlineDatasetInput;
4952
+ export declare function optimizationDatasetItemArraySerializer(result: Array<OptimizationDatasetItem>): any[];
4953
+ export declare function optimizationDatasetItemArrayDeserializer(result: Array<OptimizationDatasetItem>): any[];
4954
+ /** A single item in an inline dataset. */
4955
+ export interface OptimizationDatasetItem {
4956
+ /** The user query / prompt. */
4957
+ query?: string;
4958
+ /** Expected ground truth answer. */
4959
+ ground_truth?: string;
4960
+ /** Desired number of conversation turns for simulation mode (1-20). */
4961
+ desired_num_turns?: number;
4962
+ /** Per-item evaluation criteria. */
4963
+ criteria?: OptimizationDatasetCriterion[];
4964
+ }
4965
+ export declare function optimizationDatasetItemSerializer(item: OptimizationDatasetItem): any;
4966
+ export declare function optimizationDatasetItemDeserializer(item: any): OptimizationDatasetItem;
4967
+ export declare function optimizationDatasetCriterionArraySerializer(result: Array<OptimizationDatasetCriterion>): any[];
4968
+ export declare function optimizationDatasetCriterionArrayDeserializer(result: Array<OptimizationDatasetCriterion>): any[];
4969
+ /** Evaluation criterion: a name + instruction pair used for per-item scoring. */
4970
+ export interface OptimizationDatasetCriterion {
4971
+ /** Criterion name. */
4972
+ name: string;
4973
+ /** Criterion instruction / description. */
4974
+ instruction: string;
4975
+ }
4976
+ export declare function optimizationDatasetCriterionSerializer(item: OptimizationDatasetCriterion): any;
4977
+ export declare function optimizationDatasetCriterionDeserializer(item: any): OptimizationDatasetCriterion;
4978
+ /** Reference to a registered Foundry dataset. */
4979
+ export interface OptimizationReferenceDatasetInput extends OptimizationDatasetInput {
4980
+ /** Dataset input type discriminator. */
4981
+ type: "reference";
4982
+ /** Registered dataset name. */
4983
+ name: string;
4984
+ /** Dataset version. If not specified, the latest version is used. */
4985
+ version?: string;
4986
+ }
4987
+ export declare function optimizationReferenceDatasetInputSerializer(item: OptimizationReferenceDatasetInput): any;
4988
+ export declare function optimizationReferenceDatasetInputDeserializer(item: any): OptimizationReferenceDatasetInput;
4989
+ export declare function optimizationEvaluatorRefArraySerializer(result: Array<OptimizationEvaluatorRef>): any[];
4990
+ export declare function optimizationEvaluatorRefArrayDeserializer(result: Array<OptimizationEvaluatorRef>): any[];
4991
+ /** Reference to a named evaluator, optionally pinned to a version. */
4992
+ export interface OptimizationEvaluatorRef {
4993
+ /** Evaluator name. */
4994
+ name: string;
4995
+ /** Evaluator version. If not specified, the latest version is used. */
4996
+ version?: string;
4997
+ }
4998
+ export declare function optimizationEvaluatorRefSerializer(item: OptimizationEvaluatorRef): any;
4999
+ export declare function optimizationEvaluatorRefDeserializer(item: any): OptimizationEvaluatorRef;
5000
+ /** Tuning knobs and run-mode for an optimization job. */
5001
+ export interface OptimizationOptions {
5002
+ /** Maximum number of optimization candidates to generate. Must be >= 1. Default: 5. */
5003
+ max_candidates?: number;
5004
+ /** Per-target-attribute configuration overrides. Contains skills, tools, system_prompt for the agent, plus model space for model optimization. */
5005
+ optimization_config?: Record<string, any>;
5006
+ /** Model deployment used for evaluation. Defaults to server config (typically 'gpt-4o'). */
5007
+ eval_model?: string;
5008
+ /** Model deployment for optimization reasoning (must be gpt-5 family). Falls back to the default eval model when not set. */
5009
+ optimization_model?: string;
5010
+ /** Evaluation granularity. Null/omitted means per-item single-turn. Set to 'conversation' for per-conversation multi-turn simulation scoring. */
5011
+ evaluation_level?: EvaluationLevel;
5012
+ }
5013
+ export declare function optimizationOptionsSerializer(item: OptimizationOptions): any;
5014
+ export declare function optimizationOptionsDeserializer(item: any): OptimizationOptions;
5015
+ /** Terminal-state result body. Populated when status is succeeded or failed. */
5016
+ export interface OptimizationJobResult {
5017
+ /** Candidate ID of the original (un-optimized) baseline evaluation. */
5018
+ baseline?: string;
5019
+ /** Candidate ID of the highest-scoring candidate found during optimization. */
5020
+ best?: string;
5021
+ /** All evaluated candidates including baseline. */
5022
+ candidates?: OptimizationCandidate[];
5023
+ }
5024
+ export declare function optimizationJobResultDeserializer(item: any): OptimizationJobResult;
5025
+ export declare function optimizationCandidateArrayDeserializer(result: Array<OptimizationCandidate>): any[];
5026
+ /** Aggregated evaluation result for a single candidate agent configuration across all tasks. */
5027
+ export interface OptimizationCandidate {
5028
+ /** Server-assigned candidate identifier. Use with GET /candidates/{id} sub-endpoints. */
5029
+ candidate_id?: string;
5030
+ /** Display name of the candidate (e.g., 'baseline', 'instruction-v2'). */
5031
+ name: string;
5032
+ /** What was mutated from the baseline (e.g., {system_prompt: 'new prompt'}). */
5033
+ mutations?: Record<string, any>;
5034
+ /** Average composite score across all tasks. */
5035
+ avg_score: number;
5036
+ /** Average token usage across all tasks. */
5037
+ avg_tokens: number;
5038
+ /** Foundry evaluation identifier used to score this candidate. */
5039
+ eval_id?: string;
5040
+ /** Foundry evaluation run identifier for this candidate's scoring run. */
5041
+ eval_run_id?: string;
5042
+ /** Promotion metadata. Null if the candidate has not been promoted. */
5043
+ promotion?: PromotionInfo;
5044
+ }
5045
+ export declare function optimizationCandidateDeserializer(item: any): OptimizationCandidate;
5046
+ /** Promotion metadata recorded when a candidate is deployed to a Foundry agent. */
5047
+ export interface PromotionInfo {
5048
+ /** Timestamp when promotion occurred, represented in Unix time. */
5049
+ promoted_at: Date;
5050
+ /** Name of the Foundry agent this candidate was promoted to. */
5051
+ agent_name: string;
5052
+ /** Version of the Foundry agent this candidate was promoted to. */
5053
+ agent_version: string;
5054
+ }
5055
+ export declare function promotionInfoDeserializer(item: any): PromotionInfo;
5056
+ /** In-flight progress; only populated while status is queued or in_progress. */
5057
+ export interface OptimizationJobProgress {
5058
+ /** Number of candidates whose evaluation has completed so far. */
5059
+ candidates_completed: number;
5060
+ /** Best score observed so far across all candidates. */
5061
+ best_score: number;
5062
+ /** Wall-clock time elapsed in seconds since the job began executing. */
5063
+ elapsed_seconds: number;
5064
+ }
5065
+ export declare function optimizationJobProgressDeserializer(item: any): OptimizationJobProgress;
5066
+ /** The response data for a requested list of items. */
5067
+ export interface _AgentsPagedResultOptimizationJobListItem {
5068
+ /** The requested list of items. */
5069
+ data: OptimizationJobListItem[];
5070
+ /** The first ID represented in this list. */
5071
+ first_id?: string;
5072
+ /** The last ID represented in this list. */
5073
+ last_id?: string;
5074
+ /** A value indicating whether there are additional values available not captured in this list. */
5075
+ has_more: boolean;
5076
+ }
5077
+ export declare function _agentsPagedResultOptimizationJobListItemDeserializer(item: any): _AgentsPagedResultOptimizationJobListItem;
5078
+ export declare function optimizationJobListItemArrayDeserializer(result: Array<OptimizationJobListItem>): any[];
5079
+ /** Slim job representation returned by the LIST endpoint. */
5080
+ export interface OptimizationJobListItem {
5081
+ /** Server-assigned unique identifier. */
5082
+ readonly id: string;
5083
+ /** Current lifecycle status. */
5084
+ readonly status: JobStatus;
5085
+ /** Error details — populated only on failure. */
5086
+ readonly error?: ErrorModel;
5087
+ /** The timestamp when the job was created, represented in Unix time. */
5088
+ readonly created_at: Date;
5089
+ /** The timestamp when the job was last updated, represented in Unix time. */
5090
+ readonly updated_at: Date;
5091
+ /** Progress snapshot. May be present in terminal states reflecting last-known progress. */
5092
+ readonly progress?: OptimizationJobProgress;
5093
+ /** The agent targeted by this optimization job. */
5094
+ readonly agent?: OptimizationAgentIdentifier;
5095
+ }
5096
+ export declare function optimizationJobListItemDeserializer(item: any): OptimizationJobListItem;
5087
5097
  /** model interface UpdateToolboxRequest */
5088
5098
  export interface UpdateToolboxRequest {
5089
5099
  /** The name of the toolbox to update. */
@@ -5098,11 +5108,11 @@ export declare function _listVersionsRequestTypeSerializer(item: _ListVersionsRe
5098
5108
  /** Type of AgentType */
5099
5109
  export type AgentType = "agent" | "agent.version" | "agent.deleted" | "agent.version.deleted" | "agent.container";
5100
5110
  /** Feature opt-in keys for agent definition operations supporting hosted or workflow agents. */
5101
- export type AgentDefinitionOptInKeys = "HostedAgents=V1Preview" | "WorkflowAgents=V1Preview" | "AgentEndpoints=V1Preview" | "CodeAgents=V1Preview" | "ExternalAgents=V1Preview";
5111
+ export type AgentDefinitionOptInKeys = "WorkflowAgents=V1Preview" | "ExternalAgents=V1Preview" | "DraftAgents=V1Preview";
5102
5112
  /** Type of PageOrder */
5103
5113
  export type PageOrder = "asc" | "desc";
5104
5114
  /** Type of FoundryFeaturesOptInKeys */
5105
- export type FoundryFeaturesOptInKeys = "Evaluations=V1Preview" | "Schedules=V1Preview" | "RedTeams=V1Preview" | "Insights=V1Preview" | "MemoryStores=V1Preview" | "Routines=V1Preview" | "Toolboxes=V1Preview" | "Skills=V1Preview" | "DataGenerationJobs=V1Preview" | "Models=V1Preview" | "AgentsOptimization=V1Preview";
5115
+ export type FoundryFeaturesOptInKeys = "Evaluations=V1Preview" | "Schedules=V1Preview" | "RedTeams=V1Preview" | "Insights=V1Preview" | "MemoryStores=V1Preview" | "Routines=V1Preview" | "Skills=V1Preview" | "DataGenerationJobs=V1Preview" | "Models=V1Preview" | "AgentsOptimization=V2Preview";
5106
5116
  /** The type of pending upload. */
5107
5117
  export type PendingUploadType = "None" | "BlobReference" | "TemporaryBlobReference";
5108
5118
  /** Type of MemoryStoreType */
@@ -5112,7 +5122,7 @@ export declare enum KnownApiVersions {
5112
5122
  /** Microsoft Foundry API version v1. */
5113
5123
  v1 = "v1"
5114
5124
  }
5115
- export type DownloadVersionResponse = {
5125
+ export type AgentsDownloadSessionFileResponse = {
5116
5126
  /**
5117
5127
  * BROWSER ONLY
5118
5128
  *
@@ -5126,9 +5136,9 @@ export type DownloadVersionResponse = {
5126
5136
  * The response body as a node.js Readable stream.
5127
5137
  * Always `undefined` in the browser.
5128
5138
  */
5129
- readableStreamBody?: NodeJS.ReadableStream;
5139
+ readableStreamBody?: NodeReadableStream;
5130
5140
  };
5131
- export type BetaSkillsDownloadResponse = {
5141
+ export type AgentsDownloadAgentCodeResponse = {
5132
5142
  /**
5133
5143
  * BROWSER ONLY
5134
5144
  *
@@ -5142,25 +5152,9 @@ export type BetaSkillsDownloadResponse = {
5142
5152
  * The response body as a node.js Readable stream.
5143
5153
  * Always `undefined` in the browser.
5144
5154
  */
5145
- readableStreamBody?: NodeJS.ReadableStream;
5155
+ readableStreamBody?: NodeReadableStream;
5146
5156
  };
5147
- export type BetaAgentsGetCandidateFileResponse = {
5148
- /**
5149
- * BROWSER ONLY
5150
- *
5151
- * The response body as a browser Blob.
5152
- * Always `undefined` in node.js.
5153
- */
5154
- blobBody?: Promise<Blob>;
5155
- /**
5156
- * NODEJS ONLY
5157
- *
5158
- * The response body as a node.js Readable stream.
5159
- * Always `undefined` in the browser.
5160
- */
5161
- readableStreamBody?: NodeJS.ReadableStream;
5162
- };
5163
- export type BetaAgentsDownloadSessionFileResponse = {
5157
+ export type DownloadVersionResponse = {
5164
5158
  /**
5165
5159
  * BROWSER ONLY
5166
5160
  *
@@ -5174,9 +5168,9 @@ export type BetaAgentsDownloadSessionFileResponse = {
5174
5168
  * The response body as a node.js Readable stream.
5175
5169
  * Always `undefined` in the browser.
5176
5170
  */
5177
- readableStreamBody?: NodeJS.ReadableStream;
5171
+ readableStreamBody?: NodeReadableStream;
5178
5172
  };
5179
- export type BetaAgentsDownloadAgentCodeResponse = {
5173
+ export type BetaSkillsDownloadResponse = {
5180
5174
  /**
5181
5175
  * BROWSER ONLY
5182
5176
  *
@@ -5190,6 +5184,6 @@ export type BetaAgentsDownloadAgentCodeResponse = {
5190
5184
  * The response body as a node.js Readable stream.
5191
5185
  * Always `undefined` in the browser.
5192
5186
  */
5193
- readableStreamBody?: NodeJS.ReadableStream;
5187
+ readableStreamBody?: NodeReadableStream;
5194
5188
  };
5195
5189
  //# sourceMappingURL=models.d.ts.map