@azure/ai-agents 1.0.0-alpha.20250502.6

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 (248) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +907 -0
  3. package/dist/browser/agentsClient.d.ts +110 -0
  4. package/dist/browser/agentsClient.d.ts.map +1 -0
  5. package/dist/browser/agentsClient.js +203 -0
  6. package/dist/browser/agentsClient.js.map +1 -0
  7. package/dist/browser/api/agentsContext.d.ts +15 -0
  8. package/dist/browser/api/agentsContext.d.ts.map +1 -0
  9. package/dist/browser/api/agentsContext.js +55 -0
  10. package/dist/browser/api/agentsContext.js.map +1 -0
  11. package/dist/browser/api/index.d.ts +4 -0
  12. package/dist/browser/api/index.d.ts.map +1 -0
  13. package/dist/browser/api/index.js +5 -0
  14. package/dist/browser/api/index.js.map +1 -0
  15. package/dist/browser/api/operations.d.ts +212 -0
  16. package/dist/browser/api/operations.d.ts.map +1 -0
  17. package/dist/browser/api/operations.js +1348 -0
  18. package/dist/browser/api/operations.js.map +1 -0
  19. package/dist/browser/api/options.d.ts +456 -0
  20. package/dist/browser/api/options.d.ts.map +1 -0
  21. package/dist/browser/api/options.js +4 -0
  22. package/dist/browser/api/options.js.map +1 -0
  23. package/dist/browser/api/poller.d.ts +9 -0
  24. package/dist/browser/api/poller.d.ts.map +1 -0
  25. package/dist/browser/api/poller.js +137 -0
  26. package/dist/browser/api/poller.js.map +1 -0
  27. package/dist/browser/constants.d.ts +9 -0
  28. package/dist/browser/constants.d.ts.map +1 -0
  29. package/dist/browser/constants.js +11 -0
  30. package/dist/browser/constants.js.map +1 -0
  31. package/dist/browser/index.d.ts +8 -0
  32. package/dist/browser/index.d.ts.map +1 -0
  33. package/dist/browser/index.js +7 -0
  34. package/dist/browser/index.js.map +1 -0
  35. package/dist/browser/logger.d.ts +2 -0
  36. package/dist/browser/logger.d.ts.map +1 -0
  37. package/dist/browser/logger.js +5 -0
  38. package/dist/browser/logger.js.map +1 -0
  39. package/dist/browser/models/index.d.ts +3 -0
  40. package/dist/browser/models/index.d.ts.map +1 -0
  41. package/dist/browser/models/index.js +5 -0
  42. package/dist/browser/models/index.js.map +1 -0
  43. package/dist/browser/models/models.d.ts +1977 -0
  44. package/dist/browser/models/models.d.ts.map +1 -0
  45. package/dist/browser/models/models.js +2053 -0
  46. package/dist/browser/models/models.js.map +1 -0
  47. package/dist/browser/models/streamingModels.d.ts +108 -0
  48. package/dist/browser/models/streamingModels.d.ts.map +1 -0
  49. package/dist/browser/models/streamingModels.js +75 -0
  50. package/dist/browser/models/streamingModels.js.map +1 -0
  51. package/dist/browser/package.json +3 -0
  52. package/dist/browser/static-helpers/multipartHelpers.d.ts +6 -0
  53. package/dist/browser/static-helpers/multipartHelpers.d.ts.map +1 -0
  54. package/dist/browser/static-helpers/multipartHelpers.js +23 -0
  55. package/dist/browser/static-helpers/multipartHelpers.js.map +1 -0
  56. package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
  57. package/dist/browser/static-helpers/urlTemplate.d.ts.map +1 -0
  58. package/dist/browser/static-helpers/urlTemplate.js +169 -0
  59. package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
  60. package/dist/browser/utils.d.ts +214 -0
  61. package/dist/browser/utils.d.ts.map +1 -0
  62. package/dist/browser/utils.js +311 -0
  63. package/dist/browser/utils.js.map +1 -0
  64. package/dist/commonjs/agentsClient.d.ts +110 -0
  65. package/dist/commonjs/agentsClient.d.ts.map +1 -0
  66. package/dist/commonjs/agentsClient.js +207 -0
  67. package/dist/commonjs/agentsClient.js.map +1 -0
  68. package/dist/commonjs/api/agentsContext.d.ts +15 -0
  69. package/dist/commonjs/api/agentsContext.d.ts.map +1 -0
  70. package/dist/commonjs/api/agentsContext.js +58 -0
  71. package/dist/commonjs/api/agentsContext.js.map +1 -0
  72. package/dist/commonjs/api/index.d.ts +4 -0
  73. package/dist/commonjs/api/index.d.ts.map +1 -0
  74. package/dist/commonjs/api/index.js +51 -0
  75. package/dist/commonjs/api/index.js.map +1 -0
  76. package/dist/commonjs/api/operations.d.ts +212 -0
  77. package/dist/commonjs/api/operations.d.ts.map +1 -0
  78. package/dist/commonjs/api/operations.js +1484 -0
  79. package/dist/commonjs/api/operations.js.map +1 -0
  80. package/dist/commonjs/api/options.d.ts +456 -0
  81. package/dist/commonjs/api/options.d.ts.map +1 -0
  82. package/dist/commonjs/api/options.js +5 -0
  83. package/dist/commonjs/api/options.js.map +1 -0
  84. package/dist/commonjs/api/poller.d.ts +9 -0
  85. package/dist/commonjs/api/poller.d.ts.map +1 -0
  86. package/dist/commonjs/api/poller.js +140 -0
  87. package/dist/commonjs/api/poller.js.map +1 -0
  88. package/dist/commonjs/constants.d.ts +9 -0
  89. package/dist/commonjs/constants.d.ts.map +1 -0
  90. package/dist/commonjs/constants.js +14 -0
  91. package/dist/commonjs/constants.js.map +1 -0
  92. package/dist/commonjs/index.d.ts +8 -0
  93. package/dist/commonjs/index.d.ts.map +1 -0
  94. package/dist/commonjs/index.js +13 -0
  95. package/dist/commonjs/index.js.map +1 -0
  96. package/dist/commonjs/logger.d.ts +2 -0
  97. package/dist/commonjs/logger.d.ts.map +1 -0
  98. package/dist/commonjs/logger.js +8 -0
  99. package/dist/commonjs/logger.js.map +1 -0
  100. package/dist/commonjs/models/index.d.ts +3 -0
  101. package/dist/commonjs/models/index.d.ts.map +1 -0
  102. package/dist/commonjs/models/index.js +10 -0
  103. package/dist/commonjs/models/index.js.map +1 -0
  104. package/dist/commonjs/models/models.d.ts +1977 -0
  105. package/dist/commonjs/models/models.d.ts.map +1 -0
  106. package/dist/commonjs/models/models.js +2340 -0
  107. package/dist/commonjs/models/models.js.map +1 -0
  108. package/dist/commonjs/models/streamingModels.d.ts +108 -0
  109. package/dist/commonjs/models/streamingModels.d.ts.map +1 -0
  110. package/dist/commonjs/models/streamingModels.js +78 -0
  111. package/dist/commonjs/models/streamingModels.js.map +1 -0
  112. package/dist/commonjs/package.json +3 -0
  113. package/dist/commonjs/static-helpers/multipartHelpers.d.ts +6 -0
  114. package/dist/commonjs/static-helpers/multipartHelpers.d.ts.map +1 -0
  115. package/dist/commonjs/static-helpers/multipartHelpers.js +26 -0
  116. package/dist/commonjs/static-helpers/multipartHelpers.js.map +1 -0
  117. package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
  118. package/dist/commonjs/static-helpers/urlTemplate.d.ts.map +1 -0
  119. package/dist/commonjs/static-helpers/urlTemplate.js +172 -0
  120. package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -0
  121. package/dist/commonjs/tsdoc-metadata.json +11 -0
  122. package/dist/commonjs/utils.d.ts +214 -0
  123. package/dist/commonjs/utils.d.ts.map +1 -0
  124. package/dist/commonjs/utils.js +317 -0
  125. package/dist/commonjs/utils.js.map +1 -0
  126. package/dist/esm/agentsClient.d.ts +110 -0
  127. package/dist/esm/agentsClient.d.ts.map +1 -0
  128. package/dist/esm/agentsClient.js +203 -0
  129. package/dist/esm/agentsClient.js.map +1 -0
  130. package/dist/esm/api/agentsContext.d.ts +15 -0
  131. package/dist/esm/api/agentsContext.d.ts.map +1 -0
  132. package/dist/esm/api/agentsContext.js +55 -0
  133. package/dist/esm/api/agentsContext.js.map +1 -0
  134. package/dist/esm/api/index.d.ts +4 -0
  135. package/dist/esm/api/index.d.ts.map +1 -0
  136. package/dist/esm/api/index.js +5 -0
  137. package/dist/esm/api/index.js.map +1 -0
  138. package/dist/esm/api/operations.d.ts +212 -0
  139. package/dist/esm/api/operations.d.ts.map +1 -0
  140. package/dist/esm/api/operations.js +1348 -0
  141. package/dist/esm/api/operations.js.map +1 -0
  142. package/dist/esm/api/options.d.ts +456 -0
  143. package/dist/esm/api/options.d.ts.map +1 -0
  144. package/dist/esm/api/options.js +4 -0
  145. package/dist/esm/api/options.js.map +1 -0
  146. package/dist/esm/api/poller.d.ts +9 -0
  147. package/dist/esm/api/poller.d.ts.map +1 -0
  148. package/dist/esm/api/poller.js +137 -0
  149. package/dist/esm/api/poller.js.map +1 -0
  150. package/dist/esm/constants.d.ts +9 -0
  151. package/dist/esm/constants.d.ts.map +1 -0
  152. package/dist/esm/constants.js +11 -0
  153. package/dist/esm/constants.js.map +1 -0
  154. package/dist/esm/index.d.ts +8 -0
  155. package/dist/esm/index.d.ts.map +1 -0
  156. package/dist/esm/index.js +7 -0
  157. package/dist/esm/index.js.map +1 -0
  158. package/dist/esm/logger.d.ts +2 -0
  159. package/dist/esm/logger.d.ts.map +1 -0
  160. package/dist/esm/logger.js +5 -0
  161. package/dist/esm/logger.js.map +1 -0
  162. package/dist/esm/models/index.d.ts +3 -0
  163. package/dist/esm/models/index.d.ts.map +1 -0
  164. package/dist/esm/models/index.js +5 -0
  165. package/dist/esm/models/index.js.map +1 -0
  166. package/dist/esm/models/models.d.ts +1977 -0
  167. package/dist/esm/models/models.d.ts.map +1 -0
  168. package/dist/esm/models/models.js +2053 -0
  169. package/dist/esm/models/models.js.map +1 -0
  170. package/dist/esm/models/streamingModels.d.ts +108 -0
  171. package/dist/esm/models/streamingModels.d.ts.map +1 -0
  172. package/dist/esm/models/streamingModels.js +75 -0
  173. package/dist/esm/models/streamingModels.js.map +1 -0
  174. package/dist/esm/package.json +3 -0
  175. package/dist/esm/static-helpers/multipartHelpers.d.ts +6 -0
  176. package/dist/esm/static-helpers/multipartHelpers.d.ts.map +1 -0
  177. package/dist/esm/static-helpers/multipartHelpers.js +23 -0
  178. package/dist/esm/static-helpers/multipartHelpers.js.map +1 -0
  179. package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
  180. package/dist/esm/static-helpers/urlTemplate.d.ts.map +1 -0
  181. package/dist/esm/static-helpers/urlTemplate.js +169 -0
  182. package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
  183. package/dist/esm/utils.d.ts +214 -0
  184. package/dist/esm/utils.d.ts.map +1 -0
  185. package/dist/esm/utils.js +311 -0
  186. package/dist/esm/utils.js.map +1 -0
  187. package/dist/react-native/agentsClient.d.ts +110 -0
  188. package/dist/react-native/agentsClient.d.ts.map +1 -0
  189. package/dist/react-native/agentsClient.js +203 -0
  190. package/dist/react-native/agentsClient.js.map +1 -0
  191. package/dist/react-native/api/agentsContext.d.ts +15 -0
  192. package/dist/react-native/api/agentsContext.d.ts.map +1 -0
  193. package/dist/react-native/api/agentsContext.js +55 -0
  194. package/dist/react-native/api/agentsContext.js.map +1 -0
  195. package/dist/react-native/api/index.d.ts +4 -0
  196. package/dist/react-native/api/index.d.ts.map +1 -0
  197. package/dist/react-native/api/index.js +5 -0
  198. package/dist/react-native/api/index.js.map +1 -0
  199. package/dist/react-native/api/operations.d.ts +212 -0
  200. package/dist/react-native/api/operations.d.ts.map +1 -0
  201. package/dist/react-native/api/operations.js +1348 -0
  202. package/dist/react-native/api/operations.js.map +1 -0
  203. package/dist/react-native/api/options.d.ts +456 -0
  204. package/dist/react-native/api/options.d.ts.map +1 -0
  205. package/dist/react-native/api/options.js +4 -0
  206. package/dist/react-native/api/options.js.map +1 -0
  207. package/dist/react-native/api/poller.d.ts +9 -0
  208. package/dist/react-native/api/poller.d.ts.map +1 -0
  209. package/dist/react-native/api/poller.js +137 -0
  210. package/dist/react-native/api/poller.js.map +1 -0
  211. package/dist/react-native/constants.d.ts +9 -0
  212. package/dist/react-native/constants.d.ts.map +1 -0
  213. package/dist/react-native/constants.js +11 -0
  214. package/dist/react-native/constants.js.map +1 -0
  215. package/dist/react-native/index.d.ts +8 -0
  216. package/dist/react-native/index.d.ts.map +1 -0
  217. package/dist/react-native/index.js +7 -0
  218. package/dist/react-native/index.js.map +1 -0
  219. package/dist/react-native/logger.d.ts +2 -0
  220. package/dist/react-native/logger.d.ts.map +1 -0
  221. package/dist/react-native/logger.js +5 -0
  222. package/dist/react-native/logger.js.map +1 -0
  223. package/dist/react-native/models/index.d.ts +3 -0
  224. package/dist/react-native/models/index.d.ts.map +1 -0
  225. package/dist/react-native/models/index.js +5 -0
  226. package/dist/react-native/models/index.js.map +1 -0
  227. package/dist/react-native/models/models.d.ts +1977 -0
  228. package/dist/react-native/models/models.d.ts.map +1 -0
  229. package/dist/react-native/models/models.js +2053 -0
  230. package/dist/react-native/models/models.js.map +1 -0
  231. package/dist/react-native/models/streamingModels.d.ts +108 -0
  232. package/dist/react-native/models/streamingModels.d.ts.map +1 -0
  233. package/dist/react-native/models/streamingModels.js +75 -0
  234. package/dist/react-native/models/streamingModels.js.map +1 -0
  235. package/dist/react-native/package.json +3 -0
  236. package/dist/react-native/static-helpers/multipartHelpers.d.ts +6 -0
  237. package/dist/react-native/static-helpers/multipartHelpers.d.ts.map +1 -0
  238. package/dist/react-native/static-helpers/multipartHelpers.js +23 -0
  239. package/dist/react-native/static-helpers/multipartHelpers.js.map +1 -0
  240. package/dist/react-native/static-helpers/urlTemplate.d.ts +5 -0
  241. package/dist/react-native/static-helpers/urlTemplate.d.ts.map +1 -0
  242. package/dist/react-native/static-helpers/urlTemplate.js +169 -0
  243. package/dist/react-native/static-helpers/urlTemplate.js.map +1 -0
  244. package/dist/react-native/utils.d.ts +214 -0
  245. package/dist/react-native/utils.d.ts.map +1 -0
  246. package/dist/react-native/utils.js +311 -0
  247. package/dist/react-native/utils.js.map +1 -0
  248. package/package.json +159 -0
@@ -0,0 +1,137 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { delay } from "@azure/core-util";
4
+ const DEFAULT_POLL_INTERVAL_IN_MS = 1000;
5
+ export function createPoller({ initOperation, pollOperation, getOperationStatus, getOperationError, intervalInMs, }) {
6
+ let state;
7
+ const statePromise = initOperation().then((result) => {
8
+ state = {
9
+ result,
10
+ status: getOperationStatus(result),
11
+ };
12
+ return state;
13
+ });
14
+ let resultPromise;
15
+ const abortController = new AbortController();
16
+ const handlers = new Map();
17
+ const handleProgressEvents = async () => handlers.forEach((h) => h(state));
18
+ const currentPollIntervalInMs = intervalInMs !== null && intervalInMs !== void 0 ? intervalInMs : DEFAULT_POLL_INTERVAL_IN_MS;
19
+ const poller = {
20
+ get operationState() {
21
+ return state;
22
+ },
23
+ get result() {
24
+ return state === null || state === void 0 ? void 0 : state.result;
25
+ },
26
+ get isDone() {
27
+ var _a;
28
+ return ["succeeded", "failed", "canceled"].includes((_a = state === null || state === void 0 ? void 0 : state.status) !== null && _a !== void 0 ? _a : "");
29
+ },
30
+ onProgress: (callback) => {
31
+ const s = Symbol();
32
+ handlers.set(s, callback);
33
+ return () => handlers.delete(s);
34
+ },
35
+ serialize: async () => {
36
+ await statePromise;
37
+ return JSON.stringify({
38
+ state,
39
+ });
40
+ },
41
+ submitted: async () => {
42
+ await statePromise;
43
+ },
44
+ pollUntilDone: async (pollOptions) => {
45
+ resultPromise !== null && resultPromise !== void 0 ? resultPromise : (resultPromise = (async () => {
46
+ var _a;
47
+ await statePromise;
48
+ if (!state) {
49
+ throw new Error("Poller is not initialized");
50
+ }
51
+ const { abortSignal: inputAbortSignal } = pollOptions || {};
52
+ function abortListener() {
53
+ abortController.abort();
54
+ }
55
+ const abortSignal = abortController.signal;
56
+ if (inputAbortSignal === null || inputAbortSignal === void 0 ? void 0 : inputAbortSignal.aborted) {
57
+ abortController.abort();
58
+ }
59
+ else if (!abortSignal.aborted) {
60
+ inputAbortSignal === null || inputAbortSignal === void 0 ? void 0 : inputAbortSignal.addEventListener("abort", abortListener, { once: true });
61
+ }
62
+ try {
63
+ if (!poller.isDone) {
64
+ await poller.poll({ abortSignal });
65
+ while (!poller.isDone) {
66
+ await delay(currentPollIntervalInMs, { abortSignal });
67
+ await poller.poll({ abortSignal });
68
+ }
69
+ }
70
+ }
71
+ finally {
72
+ inputAbortSignal === null || inputAbortSignal === void 0 ? void 0 : inputAbortSignal.removeEventListener("abort", abortListener);
73
+ }
74
+ switch (state.status) {
75
+ case "succeeded":
76
+ return poller.result;
77
+ case "canceled":
78
+ throw new Error("Operation cancelled");
79
+ case "failed":
80
+ throw (_a = state.error) !== null && _a !== void 0 ? _a : new Error("Operation failed");
81
+ case "notStarted":
82
+ case "running":
83
+ throw new Error("Polling completed without succeeding or failing");
84
+ }
85
+ })().finally(() => {
86
+ resultPromise = undefined;
87
+ }));
88
+ return resultPromise;
89
+ },
90
+ async poll(pollOptions) {
91
+ var _a, _b, _c;
92
+ // Check state before polling
93
+ await statePromise;
94
+ if (!state || !state.result) {
95
+ throw new Error("Poller is not initialized");
96
+ }
97
+ switch (state.status) {
98
+ case "succeeded":
99
+ return state;
100
+ case "canceled":
101
+ throw new Error("Operation was canceled");
102
+ case "failed":
103
+ throw (_a = state.error) !== null && _a !== void 0 ? _a : new Error("Operation failed");
104
+ }
105
+ // Poll
106
+ if ((_b = pollOptions === null || pollOptions === void 0 ? void 0 : pollOptions.abortSignal) === null || _b === void 0 ? void 0 : _b.aborted) {
107
+ throw new Error("Operation aborted");
108
+ }
109
+ const result = await pollOperation(state.result);
110
+ state = {
111
+ result,
112
+ status: getOperationStatus(result),
113
+ error: getOperationError ? getOperationError(result) : undefined,
114
+ };
115
+ await handleProgressEvents();
116
+ switch (state.status) {
117
+ case "canceled":
118
+ throw new Error("Operation was canceled");
119
+ case "failed":
120
+ throw (_c = state.error) !== null && _c !== void 0 ? _c : new Error("Operation failed");
121
+ }
122
+ return state;
123
+ },
124
+ then(onfulfilled, onrejected) {
125
+ return poller.pollUntilDone().then(onfulfilled, onrejected);
126
+ },
127
+ catch(onrejected) {
128
+ return poller.pollUntilDone().catch(onrejected);
129
+ },
130
+ finally(onfinally) {
131
+ return poller.pollUntilDone().finally(onfinally);
132
+ },
133
+ [Symbol.toStringTag]: "Poller",
134
+ };
135
+ return poller;
136
+ }
137
+ //# sourceMappingURL=poller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"poller.js","sourceRoot":"","sources":["../../../src/api/poller.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAIzC,MAAM,2BAA2B,GAAG,IAAI,CAAC;AAEzC,MAAM,UAAU,YAAY,CAAI,EAC9B,aAAa,EACb,aAAa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AAO;YACP,IAAI,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,WAAW,0CAAE,OAAO,EAAE,CAAC;gBACtC,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;YACvC,CAAC;YACD,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YACjD,KAAK,GAAG;gBACN,MAAM;gBACN,MAAM,EAAE,kBAAkB,CAAC,MAAM,CAAC;gBAClC,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS;aACjE,CAAC;YAEF,MAAM,oBAAoB,EAAE,CAAC;YAC7B,QAAQ,KAAK,CAAC,MAAM,EAAE,CAAC;gBACrB,KAAK,UAAU;oBACb,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;gBAC5C,KAAK,QAAQ;oBACX,MAAM,MAAA,KAAK,CAAC,KAAK,mCAAI,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;YACvD,CAAC;YACD,OAAO,KAAK,CAAC;QACf,CAAC;QAED,IAAI,CACF,WAAqE,EACrE,UAAuE;YAEvE,OAAO,MAAM,CAAC,aAAa,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;QAC9D,CAAC;QACD,KAAK,CACH,UAAuE;YAEvE,OAAO,MAAM,CAAC,aAAa,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QAClD,CAAC;QACD,OAAO,CAAC,SAA2C;YACjD,OAAO,MAAM,CAAC,aAAa,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QACnD,CAAC;QACD,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,QAAQ;KAC/B,CAAC;IACF,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { delay } from \"@azure/core-util\";\nimport type { PollerLike, OperationState, OperationStatus } from \"@azure/core-lro\";\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\n\nconst DEFAULT_POLL_INTERVAL_IN_MS = 1000;\n\nexport function createPoller<T>({\n initOperation,\n pollOperation,\n getOperationStatus,\n getOperationError,\n intervalInMs,\n}: {\n initOperation: () => Promise<T>;\n pollOperation: (currentResult: T) => Promise<T>;\n getOperationStatus: (result: T) => OperationStatus;\n getOperationError?: (result: T) => Error | undefined;\n intervalInMs?: number;\n}): PollerLike<OperationState<T>, T> {\n let state: OperationState<T>;\n const statePromise = initOperation().then((result) => {\n state = {\n result,\n status: getOperationStatus(result),\n };\n return state;\n });\n\n let resultPromise: Promise<T> | undefined;\n const abortController = new AbortController();\n type Handler = (state: OperationState<T>) => void;\n const handlers = new Map<symbol, Handler>();\n const handleProgressEvents = async (): Promise<void> => handlers.forEach((h) => h(state));\n const currentPollIntervalInMs = intervalInMs ?? DEFAULT_POLL_INTERVAL_IN_MS;\n\n const poller: PollerLike<OperationState<T>, T> = {\n get operationState(): OperationState<T> | undefined {\n return state;\n },\n get result(): T | undefined {\n return state?.result;\n },\n get isDone(): boolean {\n return [\"succeeded\", \"failed\", \"canceled\"].includes(state?.status ?? \"\");\n },\n onProgress: (callback: (state: OperationState<T>) => void) => {\n const s = Symbol();\n handlers.set(s, callback);\n return () => handlers.delete(s);\n },\n serialize: async () => {\n await statePromise;\n return JSON.stringify({\n state,\n });\n },\n submitted: async () => {\n await statePromise;\n },\n pollUntilDone: async (pollOptions?: { abortSignal?: AbortSignalLike }) => {\n resultPromise ??= (async () => {\n await statePromise;\n if (!state) {\n throw new Error(\"Poller is not initialized\");\n }\n const { abortSignal: inputAbortSignal } = pollOptions || {};\n function abortListener(): void {\n abortController.abort();\n }\n const abortSignal = abortController.signal;\n if (inputAbortSignal?.aborted) {\n abortController.abort();\n } else if (!abortSignal.aborted) {\n inputAbortSignal?.addEventListener(\"abort\", abortListener, { once: true });\n }\n\n try {\n if (!poller.isDone) {\n await poller.poll({ abortSignal });\n while (!poller.isDone) {\n await delay(currentPollIntervalInMs, { abortSignal });\n await poller.poll({ abortSignal });\n }\n }\n } finally {\n inputAbortSignal?.removeEventListener(\"abort\", abortListener);\n }\n switch (state.status) {\n case \"succeeded\":\n return poller.result as T;\n case \"canceled\":\n throw new Error(\"Operation cancelled\");\n case \"failed\":\n throw state.error ?? new Error(\"Operation failed\");\n case \"notStarted\":\n case \"running\":\n throw new Error(\"Polling completed without succeeding or failing\");\n }\n })().finally(() => {\n resultPromise = undefined;\n });\n return resultPromise;\n },\n\n async poll(pollOptions?: { abortSignal?: AbortSignalLike }): Promise<OperationState<T>> {\n // Check state before polling\n await statePromise;\n if (!state || !state.result) {\n throw new Error(\"Poller is not initialized\");\n }\n switch (state.status) {\n case \"succeeded\":\n return state;\n case \"canceled\":\n throw new Error(\"Operation was canceled\");\n case \"failed\":\n throw state.error ?? new Error(\"Operation failed\");\n }\n\n // Poll\n if (pollOptions?.abortSignal?.aborted) {\n throw new Error(\"Operation aborted\");\n }\n const result = await pollOperation(state.result);\n state = {\n result,\n status: getOperationStatus(result),\n error: getOperationError ? getOperationError(result) : undefined,\n };\n\n await handleProgressEvents();\n switch (state.status) {\n case \"canceled\":\n throw new Error(\"Operation was canceled\");\n case \"failed\":\n throw state.error ?? new Error(\"Operation failed\");\n }\n return state;\n },\n\n then<T1 = T, T2 = never>(\n onfulfilled?: ((value: T) => T1 | PromiseLike<T1>) | undefined | null,\n onrejected?: ((reason: any) => T2 | PromiseLike<T2>) | undefined | null,\n ): Promise<T1 | T2> {\n return poller.pollUntilDone().then(onfulfilled, onrejected);\n },\n catch<T2 = never>(\n onrejected?: ((reason: any) => T2 | PromiseLike<T2>) | undefined | null,\n ): Promise<T | T2> {\n return poller.pollUntilDone().catch(onrejected);\n },\n finally(onfinally?: (() => void) | undefined | null): Promise<T> {\n return poller.pollUntilDone().finally(onfinally);\n },\n [Symbol.toStringTag]: \"Poller\",\n };\n return poller;\n}\n"]}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Current version of the `@azure/ai-agents` package.
3
+ */
4
+ export declare const SDK_VERSION = "1.0.0-beta.1";
5
+ /**
6
+ * The package name of the `@azure/ai-agents` package.
7
+ */
8
+ export declare const PACKAGE_NAME = "@azure/ai-agents";
9
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,WAAW,iBAAiB,CAAC;AAE1C;;GAEG;AACH,eAAO,MAAM,YAAY,qBAAqB,CAAC"}
@@ -0,0 +1,11 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ /**
4
+ * Current version of the `@azure/ai-agents` package.
5
+ */
6
+ export const SDK_VERSION = `1.0.0-beta.1`;
7
+ /**
8
+ * The package name of the `@azure/ai-agents` package.
9
+ */
10
+ export const PACKAGE_NAME = "@azure/ai-agents";
11
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,cAAc,CAAC;AAE1C;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,kBAAkB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Current version of the `@azure/ai-agents` package.\n */\nexport const SDK_VERSION = `1.0.0-beta.1`;\n\n/**\n * The package name of the `@azure/ai-agents` package.\n */\nexport const PACKAGE_NAME = \"@azure/ai-agents\";\n"]}
@@ -0,0 +1,8 @@
1
+ import { FileContents } from "./static-helpers/multipartHelpers.js";
2
+ export * from "./models/streamingModels.js";
3
+ export * from "./utils.js";
4
+ export { AgentsClient } from "./agentsClient.js";
5
+ export { ToolDefinition, ToolDefinitionUnion, CodeInterpreterToolDefinition, FileSearchToolDefinition, FileSearchToolDefinitionDetails, FileSearchRankingOptions, FunctionToolDefinition, FunctionDefinition, BingGroundingToolDefinition, ToolConnectionList, ToolConnection, MicrosoftFabricToolDefinition, SharepointToolDefinition, AzureAISearchToolDefinition, OpenApiToolDefinition, OpenApiFunctionDefinition, OpenApiAuthDetails, OpenApiAuthDetailsUnion, OpenApiAuthType, OpenApiAnonymousAuthDetails, OpenApiConnectionAuthDetails, OpenApiConnectionSecurityScheme, OpenApiManagedAuthDetails, OpenApiManagedSecurityScheme, BingCustomSearchToolDefinition, SearchConfigurationList, SearchConfiguration, ConnectedAgentToolDefinition, ConnectedAgentDetails, AzureFunctionToolDefinition, AzureFunctionDefinition, AzureFunctionBinding, AzureFunctionStorageQueue, ToolResources, CodeInterpreterToolResource, VectorStoreDataSource, VectorStoreDataSourceAssetType, FileSearchToolResource, VectorStoreConfigurations, VectorStoreConfiguration, AzureAISearchResource, AISearchIndexResource, AzureAISearchQueryType, AgentsApiResponseFormat, ResponseFormat, ResponseFormatJsonSchemaType, ResponseFormatJsonSchema, AgentsApiResponseFormatOption, AgentsApiResponseFormatMode, Agent, OpenAIPageableListOfAgent, AgentDeletionStatus, ThreadMessageOptions, MessageRole, MessageInputContent, MessageInputContentBlock, MessageInputContentBlockUnion, MessageBlockType, MessageInputTextBlock, MessageInputImageFileBlock, MessageImageFileParam, ImageDetailLevel, MessageInputImageUrlBlock, MessageImageUrlParam, MessageAttachment, MessageAttachmentToolDefinition, AgentThread, ThreadDeletionStatus, OpenAIPageableListOfAgentThread, ThreadMessage, MessageStatus, MessageIncompleteDetails, MessageIncompleteDetailsReason, MessageContent, MessageContentUnion, MessageTextContent, MessageTextDetails, MessageTextAnnotation, MessageTextAnnotationUnion, MessageTextUrlCitationAnnotation, MessageTextUrlCitationDetails, MessageTextFileCitationAnnotation, MessageTextFileCitationDetails, MessageTextFilePathAnnotation, MessageTextFilePathDetails, MessageImageFileContent, MessageImageFileDetails, OpenAIPageableListOfThreadMessage, TruncationObject, TruncationStrategy, AgentsNamedToolChoice, AgentsNamedToolChoiceType, FunctionName, AgentsApiToolChoiceOption, AgentsApiToolChoiceOptionMode, ThreadRun, RunStatus, RequiredAction, RequiredActionUnion, SubmitToolOutputsAction, SubmitToolOutputsDetails, RequiredToolCall, RequiredToolCallUnion, RequiredFunctionToolCall, RequiredFunctionToolCallDetails, RunError, IncompleteRunDetails, IncompleteDetailsReason, RunCompletionUsage, UpdateToolResourcesOptions, UpdateCodeInterpreterToolResourceOptions, UpdateFileSearchToolResourceOptions, OpenAIPageableListOfThreadRun, ToolOutput, AgentThreadCreationOptions, RunStep, RunStepType, RunStepStatus, RunStepDetails, RunStepDetailsUnion, RunStepMessageCreationDetails, RunStepMessageCreationReference, RunStepToolCallDetails, RunStepToolCall, RunStepToolCallUnion, RunStepCodeInterpreterToolCall, RunStepCodeInterpreterToolCallDetails, RunStepCodeInterpreterToolCallOutput, RunStepCodeInterpreterToolCallOutputUnion, RunStepCodeInterpreterLogOutput, RunStepCodeInterpreterImageOutput, RunStepCodeInterpreterImageReference, RunStepFileSearchToolCall, RunStepFileSearchToolCallResults, RunStepFileSearchToolCallResult, FileSearchToolCallContent, RunStepBingGroundingToolCall, RunStepAzureAISearchToolCall, RunStepSharepointToolCall, RunStepMicrosoftFabricToolCall, RunStepCustomSearchToolCall, RunStepFunctionToolCall, RunStepFunctionToolCallDetails, RunStepOpenAPIToolCall, RunStepError, RunStepErrorCode, RunStepCompletionUsage, OpenAIPageableListOfRunStep, FileListResponse, OpenAIFile, FilePurpose, FileState, FileDeletionStatus, OpenAIPageableListOfVectorStore, VectorStore, VectorStoreFileCount, VectorStoreStatus, VectorStoreExpirationPolicy, VectorStoreExpirationPolicyAnchor, VectorStoreChunkingStrategyRequest, VectorStoreChunkingStrategyRequestUnion, VectorStoreChunkingStrategyRequestType, VectorStoreAutoChunkingStrategyRequest, VectorStoreStaticChunkingStrategyRequest, VectorStoreStaticChunkingStrategyOptions, VectorStoreDeletionStatus, OpenAIPageableListOfVectorStoreFile, VectorStoreFile, VectorStoreFileStatus, VectorStoreFileError, VectorStoreFileErrorCode, VectorStoreChunkingStrategyResponse, VectorStoreChunkingStrategyResponseUnion, VectorStoreChunkingStrategyResponseType, VectorStoreAutoChunkingStrategyResponse, VectorStoreStaticChunkingStrategyResponse, VectorStoreFileDeletionStatus, VectorStoreFileBatch, VectorStoreFileBatchStatus, MessageDeltaChunk, MessageDelta, MessageDeltaContent, MessageDeltaContentUnion, MessageDeltaImageFileContent, MessageDeltaImageFileContentObject, MessageDeltaTextContent, MessageDeltaTextContentObject, MessageDeltaTextAnnotation, MessageDeltaTextAnnotationUnion, MessageDeltaTextUrlCitationAnnotation, MessageDeltaTextUrlCitationDetails, MessageDeltaTextFileCitationAnnotation, MessageDeltaTextFileCitationAnnotationObject, MessageDeltaTextFilePathAnnotation, MessageDeltaTextFilePathAnnotationObject, RunStepDeltaChunk, RunStepDelta, RunStepDeltaDetail, RunStepDeltaDetailUnion, RunStepDeltaMessageCreation, RunStepDeltaMessageCreationObject, RunStepDeltaToolCallObject, RunStepDeltaToolCall, RunStepDeltaToolCallUnion, RunStepDeltaFunctionToolCall, RunStepDeltaFunction, RunStepDeltaFileSearchToolCall, RunStepDeltaCodeInterpreterToolCall, RunStepDeltaCodeInterpreterDetailItemObject, RunStepDeltaCodeInterpreterOutput, RunStepDeltaCodeInterpreterOutputUnion, RunStepDeltaCodeInterpreterLogOutput, RunStepDeltaCodeInterpreterImageOutput, RunStepDeltaCodeInterpreterImageOutputObject, AgentStreamEvent, ThreadStreamEvent, RunStreamEvent, RunStepStreamEvent, MessageStreamEvent, ErrorEvent, DoneEvent, ListSortOrder, RunAdditionalFieldList, VectorStoreFileStatusFilter, KnownVersions, } from "./models/index.js";
6
+ export { AgentsClientOptionalParams, ListVectorStoreFileBatchFilesOptionalParams, CancelVectorStoreFileBatchOptionalParams, GetVectorStoreFileBatchOptionalParams, CreateVectorStoreFileBatchOptionalParams, DeleteVectorStoreFileOptionalParams, GetVectorStoreFileOptionalParams, CreateVectorStoreFileOptionalParams, ListVectorStoreFilesOptionalParams, DeleteVectorStoreOptionalParams, ModifyVectorStoreOptionalParams, GetVectorStoreOptionalParams, CreateVectorStoreOptionalParams, ListVectorStoresOptionalParams, GetFileContentOptionalParams, GetFileOptionalParams, DeleteFileOptionalParams, UploadFileOptionalParams, ListFilesOptionalParams, ListRunStepsOptionalParams, GetRunStepOptionalParams, CreateThreadAndRunOptionalParams, CancelRunOptionalParams, SubmitToolOutputsToRunOptionalParams, UpdateRunOptionalParams, GetRunOptionalParams, ListRunsOptionalParams, CreateRunOptionalParams, UpdateMessageOptionalParams, GetMessageOptionalParams, ListMessagesOptionalParams, CreateMessageOptionalParams, ListThreadsOptionalParams, DeleteThreadOptionalParams, UpdateThreadOptionalParams, GetThreadOptionalParams, CreateThreadOptionalParams, DeleteAgentOptionalParams, UpdateAgentOptionalParams, GetAgentOptionalParams, ListAgentsOptionalParams, CreateAgentOptionalParams, PollingOptionsParams, PollingOptions, } from "./api/index.js";
7
+ export { FileContents };
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,cAAc,6BAA6B,CAAC;AAC5C,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,6BAA6B,EAC7B,wBAAwB,EACxB,+BAA+B,EAC/B,wBAAwB,EACxB,sBAAsB,EACtB,kBAAkB,EAClB,2BAA2B,EAC3B,kBAAkB,EAClB,cAAc,EACd,6BAA6B,EAC7B,wBAAwB,EACxB,2BAA2B,EAC3B,qBAAqB,EACrB,yBAAyB,EACzB,kBAAkB,EAClB,uBAAuB,EACvB,eAAe,EACf,2B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+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export * from "./models/streamingModels.js";
4
+ export * from "./utils.js";
5
+ export { AgentsClient } from "./agentsClient.js";
6
+ export { KnownVersions, } from "./models/index.js";
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAiOL,aAAa,GACd,MAAM,mBAAmB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { FileContents } from \"./static-helpers/multipartHelpers.js\";\nexport * from \"./models/streamingModels.js\";\nexport * from \"./utils.js\";\nexport { AgentsClient } from \"./agentsClient.js\";\nexport {\n ToolDefinition,\n ToolDefinitionUnion,\n CodeInterpreterToolDefinition,\n FileSearchToolDefinition,\n FileSearchToolDefinitionDetails,\n FileSearchRankingOptions,\n FunctionToolDefinition,\n FunctionDefinition,\n BingGroundingToolDefinition,\n ToolConnectionList,\n ToolConnection,\n MicrosoftFabricToolDefinition,\n SharepointToolDefinition,\n AzureAISearchToolDefinition,\n OpenApiToolDefinition,\n OpenApiFunctionDefinition,\n OpenApiAuthDetails,\n OpenApiAuthDetailsUnion,\n OpenApiAuthType,\n OpenApiAnonymousAuthDetails,\n OpenApiConnectionAuthDetails,\n OpenApiConnectionSecurityScheme,\n OpenApiManagedAuthDetails,\n OpenApiManagedSecurityScheme,\n BingCustomSearchToolDefinition,\n SearchConfigurationList,\n SearchConfiguration,\n ConnectedAgentToolDefinition,\n ConnectedAgentDetails,\n AzureFunctionToolDefinition,\n AzureFunctionDefinition,\n AzureFunctionBinding,\n AzureFunctionStorageQueue,\n ToolResources,\n CodeInterpreterToolResource,\n VectorStoreDataSource,\n VectorStoreDataSourceAssetType,\n FileSearchToolResource,\n VectorStoreConfigurations,\n VectorStoreConfiguration,\n AzureAISearchResource,\n AISearchIndexResource,\n AzureAISearchQueryType,\n AgentsApiResponseFormat,\n ResponseFormat,\n ResponseFormatJsonSchemaType,\n ResponseFormatJsonSchema,\n AgentsApiResponseFormatOption,\n AgentsApiResponseFormatMode,\n Agent,\n OpenAIPageableListOfAgent,\n AgentDeletionStatus,\n ThreadMessageOptions,\n MessageRole,\n MessageInputContent,\n MessageInputContentBlock,\n MessageInputContentBlockUnion,\n MessageBlockType,\n MessageInputTextBlock,\n MessageInputImageFileBlock,\n MessageImageFileParam,\n ImageDetailLevel,\n MessageInputImageUrlBlock,\n MessageImageUrlParam,\n MessageAttachment,\n MessageAttachmentToolDefinition,\n AgentThread,\n ThreadDeletionStatus,\n OpenAIPageableListOfAgentThread,\n ThreadMessage,\n MessageStatus,\n MessageIncompleteDetails,\n MessageIncompleteDetailsReason,\n MessageContent,\n MessageContentUnion,\n MessageTextContent,\n MessageTextDetails,\n MessageTextAnnotation,\n MessageTextAnnotationUnion,\n MessageTextUrlCitationAnnotation,\n MessageTextUrlCitationDetails,\n MessageTextFileCitationAnnotation,\n MessageTextFileCitationDetails,\n MessageTextFilePathAnnotation,\n MessageTextFilePathDetails,\n MessageImageFileContent,\n MessageImageFileDetails,\n OpenAIPageableListOfThreadMessage,\n TruncationObject,\n TruncationStrategy,\n AgentsNamedToolChoice,\n AgentsNamedToolChoiceType,\n FunctionName,\n AgentsApiToolChoiceOption,\n AgentsApiToolChoiceOptionMode,\n ThreadRun,\n RunStatus,\n RequiredAction,\n RequiredActionUnion,\n SubmitToolOutputsAction,\n SubmitToolOutputsDetails,\n RequiredToolCall,\n RequiredToolCallUnion,\n RequiredFunctionToolCall,\n RequiredFunctionToolCallDetails,\n RunError,\n IncompleteRunDetails,\n IncompleteDetailsReason,\n RunCompletionUsage,\n UpdateToolResourcesOptions,\n UpdateCodeInterpreterToolResourceOptions,\n UpdateFileSearchToolResourceOptions,\n OpenAIPageableListOfThreadRun,\n ToolOutput,\n AgentThreadCreationOptions,\n RunStep,\n RunStepType,\n RunStepStatus,\n RunStepDetails,\n RunStepDetailsUnion,\n RunStepMessageCreationDetails,\n RunStepMessageCreationReference,\n RunStepToolCallDetails,\n RunStepToolCall,\n RunStepToolCallUnion,\n RunStepCodeInterpreterToolCall,\n RunStepCodeInterpreterToolCallDetails,\n RunStepCodeInterpreterToolCallOutput,\n RunStepCodeInterpreterToolCallOutputUnion,\n RunStepCodeInterpreterLogOutput,\n RunStepCodeInterpreterImageOutput,\n RunStepCodeInterpreterImageReference,\n RunStepFileSearchToolCall,\n RunStepFileSearchToolCallResults,\n RunStepFileSearchToolCallResult,\n FileSearchToolCallContent,\n RunStepBingGroundingToolCall,\n RunStepAzureAISearchToolCall,\n RunStepSharepointToolCall,\n RunStepMicrosoftFabricToolCall,\n RunStepCustomSearchToolCall,\n RunStepFunctionToolCall,\n RunStepFunctionToolCallDetails,\n RunStepOpenAPIToolCall,\n RunStepError,\n RunStepErrorCode,\n RunStepCompletionUsage,\n OpenAIPageableListOfRunStep,\n FileListResponse,\n OpenAIFile,\n FilePurpose,\n FileState,\n FileDeletionStatus,\n OpenAIPageableListOfVectorStore,\n VectorStore,\n VectorStoreFileCount,\n VectorStoreStatus,\n VectorStoreExpirationPolicy,\n VectorStoreExpirationPolicyAnchor,\n VectorStoreChunkingStrategyRequest,\n VectorStoreChunkingStrategyRequestUnion,\n VectorStoreChunkingStrategyRequestType,\n VectorStoreAutoChunkingStrategyRequest,\n VectorStoreStaticChunkingStrategyRequest,\n VectorStoreStaticChunkingStrategyOptions,\n VectorStoreDeletionStatus,\n OpenAIPageableListOfVectorStoreFile,\n VectorStoreFile,\n VectorStoreFileStatus,\n VectorStoreFileError,\n VectorStoreFileErrorCode,\n VectorStoreChunkingStrategyResponse,\n VectorStoreChunkingStrategyResponseUnion,\n VectorStoreChunkingStrategyResponseType,\n VectorStoreAutoChunkingStrategyResponse,\n VectorStoreStaticChunkingStrategyResponse,\n VectorStoreFileDeletionStatus,\n VectorStoreFileBatch,\n VectorStoreFileBatchStatus,\n MessageDeltaChunk,\n MessageDelta,\n MessageDeltaContent,\n MessageDeltaContentUnion,\n MessageDeltaImageFileContent,\n MessageDeltaImageFileContentObject,\n MessageDeltaTextContent,\n MessageDeltaTextContentObject,\n MessageDeltaTextAnnotation,\n MessageDeltaTextAnnotationUnion,\n MessageDeltaTextUrlCitationAnnotation,\n MessageDeltaTextUrlCitationDetails,\n MessageDeltaTextFileCitationAnnotation,\n MessageDeltaTextFileCitationAnnotationObject,\n MessageDeltaTextFilePathAnnotation,\n MessageDeltaTextFilePathAnnotationObject,\n RunStepDeltaChunk,\n RunStepDelta,\n RunStepDeltaDetail,\n RunStepDeltaDetailUnion,\n RunStepDeltaMessageCreation,\n RunStepDeltaMessageCreationObject,\n RunStepDeltaToolCallObject,\n RunStepDeltaToolCall,\n RunStepDeltaToolCallUnion,\n RunStepDeltaFunctionToolCall,\n RunStepDeltaFunction,\n RunStepDeltaFileSearchToolCall,\n RunStepDeltaCodeInterpreterToolCall,\n RunStepDeltaCodeInterpreterDetailItemObject,\n RunStepDeltaCodeInterpreterOutput,\n RunStepDeltaCodeInterpreterOutputUnion,\n RunStepDeltaCodeInterpreterLogOutput,\n RunStepDeltaCodeInterpreterImageOutput,\n RunStepDeltaCodeInterpreterImageOutputObject,\n AgentStreamEvent,\n ThreadStreamEvent,\n RunStreamEvent,\n RunStepStreamEvent,\n MessageStreamEvent,\n ErrorEvent,\n DoneEvent,\n ListSortOrder,\n RunAdditionalFieldList,\n VectorStoreFileStatusFilter,\n KnownVersions,\n} from \"./models/index.js\";\nexport {\n AgentsClientOptionalParams,\n ListVectorStoreFileBatchFilesOptionalParams,\n CancelVectorStoreFileBatchOptionalParams,\n GetVectorStoreFileBatchOptionalParams,\n CreateVectorStoreFileBatchOptionalParams,\n DeleteVectorStoreFileOptionalParams,\n GetVectorStoreFileOptionalParams,\n CreateVectorStoreFileOptionalParams,\n ListVectorStoreFilesOptionalParams,\n DeleteVectorStoreOptionalParams,\n ModifyVectorStoreOptionalParams,\n GetVectorStoreOptionalParams,\n CreateVectorStoreOptionalParams,\n ListVectorStoresOptionalParams,\n GetFileContentOptionalParams,\n GetFileOptionalParams,\n DeleteFileOptionalParams,\n UploadFileOptionalParams,\n ListFilesOptionalParams,\n ListRunStepsOptionalParams,\n GetRunStepOptionalParams,\n CreateThreadAndRunOptionalParams,\n CancelRunOptionalParams,\n SubmitToolOutputsToRunOptionalParams,\n UpdateRunOptionalParams,\n GetRunOptionalParams,\n ListRunsOptionalParams,\n CreateRunOptionalParams,\n UpdateMessageOptionalParams,\n GetMessageOptionalParams,\n ListMessagesOptionalParams,\n CreateMessageOptionalParams,\n ListThreadsOptionalParams,\n DeleteThreadOptionalParams,\n UpdateThreadOptionalParams,\n GetThreadOptionalParams,\n CreateThreadOptionalParams,\n DeleteAgentOptionalParams,\n UpdateAgentOptionalParams,\n GetAgentOptionalParams,\n ListAgentsOptionalParams,\n CreateAgentOptionalParams,\n PollingOptionsParams,\n PollingOptions,\n} from \"./api/index.js\";\nexport { FileContents };\n"]}
@@ -0,0 +1,2 @@
1
+ export declare const logger: import("@azure/logger").AzureLogger;
2
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,qCAAkC,CAAC"}
@@ -0,0 +1,5 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { createClientLogger } from "@azure/logger";
4
+ export const logger = createClientLogger("ai-agents");
5
+ //# sourceMappingURL=logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,WAAW,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { createClientLogger } from \"@azure/logger\";\nexport const logger = createClientLogger(\"ai-agents\");\n"]}
@@ -0,0 +1,3 @@
1
+ export * from "./streamingModels.js";
2
+ export { ToolDefinition, ToolDefinitionUnion, CodeInterpreterToolDefinition, FileSearchToolDefinition, FileSearchToolDefinitionDetails, FileSearchRankingOptions, FunctionToolDefinition, FunctionDefinition, BingGroundingToolDefinition, ToolConnectionList, ToolConnection, MicrosoftFabricToolDefinition, SharepointToolDefinition, AzureAISearchToolDefinition, OpenApiToolDefinition, OpenApiFunctionDefinition, OpenApiAuthDetails, OpenApiAuthDetailsUnion, OpenApiAuthType, OpenApiAnonymousAuthDetails, OpenApiConnectionAuthDetails, OpenApiConnectionSecurityScheme, OpenApiManagedAuthDetails, OpenApiManagedSecurityScheme, BingCustomSearchToolDefinition, SearchConfigurationList, SearchConfiguration, ConnectedAgentToolDefinition, ConnectedAgentDetails, AzureFunctionToolDefinition, AzureFunctionDefinition, AzureFunctionBinding, AzureFunctionStorageQueue, ToolResources, CodeInterpreterToolResource, VectorStoreDataSource, VectorStoreDataSourceAssetType, FileSearchToolResource, VectorStoreConfigurations, VectorStoreConfiguration, AzureAISearchResource, AISearchIndexResource, AzureAISearchQueryType, AgentsApiResponseFormat, ResponseFormat, ResponseFormatJsonSchemaType, ResponseFormatJsonSchema, AgentsApiResponseFormatOption, AgentsApiResponseFormatMode, Agent, OpenAIPageableListOfAgent, AgentDeletionStatus, ThreadMessageOptions, MessageRole, MessageInputContent, MessageInputContentBlock, MessageInputContentBlockUnion, MessageBlockType, MessageInputTextBlock, MessageInputImageFileBlock, MessageImageFileParam, ImageDetailLevel, MessageInputImageUrlBlock, MessageImageUrlParam, MessageAttachment, MessageAttachmentToolDefinition, AgentThread, ThreadDeletionStatus, OpenAIPageableListOfAgentThread, ThreadMessage, MessageStatus, MessageIncompleteDetails, MessageIncompleteDetailsReason, MessageContent, MessageContentUnion, MessageTextContent, MessageTextDetails, MessageTextAnnotation, MessageTextAnnotationUnion, MessageTextUrlCitationAnnotation, MessageTextUrlCitationDetails, MessageTextFileCitationAnnotation, MessageTextFileCitationDetails, MessageTextFilePathAnnotation, MessageTextFilePathDetails, MessageImageFileContent, MessageImageFileDetails, OpenAIPageableListOfThreadMessage, TruncationObject, TruncationStrategy, AgentsNamedToolChoice, AgentsNamedToolChoiceType, FunctionName, AgentsApiToolChoiceOption, AgentsApiToolChoiceOptionMode, ThreadRun, RunStatus, RequiredAction, RequiredActionUnion, SubmitToolOutputsAction, SubmitToolOutputsDetails, RequiredToolCall, RequiredToolCallUnion, RequiredFunctionToolCall, RequiredFunctionToolCallDetails, RunError, IncompleteRunDetails, IncompleteDetailsReason, RunCompletionUsage, UpdateToolResourcesOptions, UpdateCodeInterpreterToolResourceOptions, UpdateFileSearchToolResourceOptions, OpenAIPageableListOfThreadRun, ToolOutput, AgentThreadCreationOptions, RunStep, RunStepType, RunStepStatus, RunStepDetails, RunStepDetailsUnion, RunStepMessageCreationDetails, RunStepMessageCreationReference, RunStepToolCallDetails, RunStepToolCall, RunStepToolCallUnion, RunStepCodeInterpreterToolCall, RunStepCodeInterpreterToolCallDetails, RunStepCodeInterpreterToolCallOutput, RunStepCodeInterpreterToolCallOutputUnion, RunStepCodeInterpreterLogOutput, RunStepCodeInterpreterImageOutput, RunStepCodeInterpreterImageReference, RunStepFileSearchToolCall, RunStepFileSearchToolCallResults, RunStepFileSearchToolCallResult, FileSearchToolCallContent, RunStepBingGroundingToolCall, RunStepAzureAISearchToolCall, RunStepSharepointToolCall, RunStepMicrosoftFabricToolCall, RunStepCustomSearchToolCall, RunStepFunctionToolCall, RunStepFunctionToolCallDetails, RunStepOpenAPIToolCall, RunStepError, RunStepErrorCode, RunStepCompletionUsage, OpenAIPageableListOfRunStep, FileListResponse, OpenAIFile, FilePurpose, FileState, FileDeletionStatus, OpenAIPageableListOfVectorStore, VectorStore, VectorStoreFileCount, VectorStoreStatus, VectorStoreExpirationPolicy, VectorStoreExpirationPolicyAnchor, VectorStoreChunkingStrategyRequest, VectorStoreChunkingStrategyRequestUnion, VectorStoreChunkingStrategyRequestType, VectorStoreAutoChunkingStrategyRequest, VectorStoreStaticChunkingStrategyRequest, VectorStoreStaticChunkingStrategyOptions, VectorStoreDeletionStatus, OpenAIPageableListOfVectorStoreFile, VectorStoreFile, VectorStoreFileStatus, VectorStoreFileError, VectorStoreFileErrorCode, VectorStoreChunkingStrategyResponse, VectorStoreChunkingStrategyResponseUnion, VectorStoreChunkingStrategyResponseType, VectorStoreAutoChunkingStrategyResponse, VectorStoreStaticChunkingStrategyResponse, VectorStoreFileDeletionStatus, VectorStoreFileBatch, VectorStoreFileBatchStatus, MessageDeltaChunk, MessageDelta, MessageDeltaContent, MessageDeltaContentUnion, MessageDeltaImageFileContent, MessageDeltaImageFileContentObject, MessageDeltaTextContent, MessageDeltaTextContentObject, MessageDeltaTextAnnotation, MessageDeltaTextAnnotationUnion, MessageDeltaTextUrlCitationAnnotation, MessageDeltaTextUrlCitationDetails, MessageDeltaTextFileCitationAnnotation, MessageDeltaTextFileCitationAnnotationObject, MessageDeltaTextFilePathAnnotation, MessageDeltaTextFilePathAnnotationObject, RunStepDeltaChunk, RunStepDelta, RunStepDeltaDetail, RunStepDeltaDetailUnion, RunStepDeltaMessageCreation, RunStepDeltaMessageCreationObject, RunStepDeltaToolCallObject, RunStepDeltaToolCall, RunStepDeltaToolCallUnion, RunStepDeltaFunctionToolCall, RunStepDeltaFunction, RunStepDeltaFileSearchToolCall, RunStepDeltaCodeInterpreterToolCall, RunStepDeltaCodeInterpreterDetailItemObject, RunStepDeltaCodeInterpreterOutput, RunStepDeltaCodeInterpreterOutputUnion, RunStepDeltaCodeInterpreterLogOutput, RunStepDeltaCodeInterpreterImageOutput, RunStepDeltaCodeInterpreterImageOutputObject, AgentStreamEvent, ThreadStreamEvent, RunStreamEvent, RunStepStreamEvent, MessageStreamEvent, ErrorEvent, DoneEvent, ListSortOrder, RunAdditionalFieldList, VectorStoreFileStatusFilter, KnownVersions, } from "./models.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAGA,cAAc,sBAAsB,CAAC;AACrC,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,6BAA6B,EAC7B,wBAAwB,EACxB,+BAA+B,EAC/B,wBAAwB,EACxB,sBAAsB,EACtB,kBAAkB,EAClB,2BAA2B,EAC3B,kBAAkB,EAClB,cAAc,EACd,6BAA6B,EAC7B,wBAAwB,EACxB,2BAA2B,EAC3B,qBAAqB,EACrB,yBAAyB,EACzB,kBAAkB,EAClB,uBAAuB,EACvB,eAAe,EACf,2BAA2B,EAC3B,4BAA4B,EAC5B,+BAA+B,EAC/B,yBAAyB,EACzB,4BAA4B,EAC5B,8BAA8B,EAC9B,uBAAuB,EACvB,mBAAmB,EACnB,4BAA4B,EAC5B,qBAAqB,EACrB,2BAA2B,EAC3B,uBAAuB,EACvB,oBAAoB,EACpB,yBAAyB,EACzB,aAAa,EACb,2BAA2B,EAC3B,qBAAqB,EACrB,8BAA8B,EAC9B,sBAAsB,EACtB,yBAAyB,EACzB,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACvB,cAAc,EACd,4BAA4B,EAC5B,wBAAwB,EACxB,6BAA6B,EAC7B,2BAA2B,EAC3B,KAAK,EACL,yBAAyB,EACzB,mBAAmB,EACnB,oBAAoB,EACpB,WAAW,EACX,mBAAmB,EACnB,wBAAwB,EACxB,6BAA6B,EAC7B,gBAAgB,EAChB,qBAAqB,EACrB,0BAA0B,EAC1B,qBAAqB,EACrB,gBAAgB,EAChB,yBAAyB,EACzB,oBAAoB,EACpB,iBAAiB,EACjB,+BAA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AA+B,EAC/B,WAAW,EACX,oBAAoB,EACpB,iBAAiB,EACjB,2BAA2B,EAC3B,iCAAiC,EACjC,kCAAkC,EAClC,uCAAuC,EACvC,sCAAsC,EACtC,sCAAsC,EACtC,wCAAwC,EACxC,wCAAwC,EACxC,yBAAyB,EACzB,mCAAmC,EACnC,eAAe,EACf,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,mCAAmC,EACnC,wCAAwC,EACxC,uCAAuC,EACvC,uCAAuC,EACvC,yCAAyC,EACzC,6BAA6B,EAC7B,oBAAoB,EACpB,0BAA0B,EAC1B,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,EACnB,wBAAwB,EACxB,4BAA4B,EAC5B,kCAAkC,EAClC,uBAAuB,EACvB,6BAA6B,EAC7B,0BAA0B,EAC1B,+BAA+B,EAC/B,qCAAqC,EACrC,kCAAkC,EAClC,sCAAsC,EACtC,4CAA4C,EAC5C,kCAAkC,EAClC,wCAAwC,EACxC,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,EAClB,uBAAuB,EACvB,2BAA2B,EAC3B,iCAAiC,EACjC,0BAA0B,EAC1B,oBAAoB,EACpB,yBAAyB,EACzB,4BAA4B,EAC5B,oBAAoB,EACpB,8BAA8B,EAC9B,mCAAmC,EACnC,2CAA2C,EAC3C,iCAAiC,EACjC,sCAAsC,EACtC,oCAAoC,EACpC,sCAAsC,EACtC,4CAA4C,EAC5C,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,UAAU,EACV,SAAS,EACT,aAAa,EACb,sBAAsB,EACtB,2BAA2B,EAC3B,aAAa,GACd,MAAM,aAAa,CAAC"}
@@ -0,0 +1,5 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export * from "./streamingModels.js";
4
+ export { KnownVersions, } from "./models.js";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAiOL,aAAa,GACd,MAAM,aAAa,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"./streamingModels.js\";\nexport {\n ToolDefinition,\n ToolDefinitionUnion,\n CodeInterpreterToolDefinition,\n FileSearchToolDefinition,\n FileSearchToolDefinitionDetails,\n FileSearchRankingOptions,\n FunctionToolDefinition,\n FunctionDefinition,\n BingGroundingToolDefinition,\n ToolConnectionList,\n ToolConnection,\n MicrosoftFabricToolDefinition,\n SharepointToolDefinition,\n AzureAISearchToolDefinition,\n OpenApiToolDefinition,\n OpenApiFunctionDefinition,\n OpenApiAuthDetails,\n OpenApiAuthDetailsUnion,\n OpenApiAuthType,\n OpenApiAnonymousAuthDetails,\n OpenApiConnectionAuthDetails,\n OpenApiConnectionSecurityScheme,\n OpenApiManagedAuthDetails,\n OpenApiManagedSecurityScheme,\n BingCustomSearchToolDefinition,\n SearchConfigurationList,\n SearchConfiguration,\n ConnectedAgentToolDefinition,\n ConnectedAgentDetails,\n AzureFunctionToolDefinition,\n AzureFunctionDefinition,\n AzureFunctionBinding,\n AzureFunctionStorageQueue,\n ToolResources,\n CodeInterpreterToolResource,\n VectorStoreDataSource,\n VectorStoreDataSourceAssetType,\n FileSearchToolResource,\n VectorStoreConfigurations,\n VectorStoreConfiguration,\n AzureAISearchResource,\n AISearchIndexResource,\n AzureAISearchQueryType,\n AgentsApiResponseFormat,\n ResponseFormat,\n ResponseFormatJsonSchemaType,\n ResponseFormatJsonSchema,\n AgentsApiResponseFormatOption,\n AgentsApiResponseFormatMode,\n Agent,\n OpenAIPageableListOfAgent,\n AgentDeletionStatus,\n ThreadMessageOptions,\n MessageRole,\n MessageInputContent,\n MessageInputContentBlock,\n MessageInputContentBlockUnion,\n MessageBlockType,\n MessageInputTextBlock,\n MessageInputImageFileBlock,\n MessageImageFileParam,\n ImageDetailLevel,\n MessageInputImageUrlBlock,\n MessageImageUrlParam,\n MessageAttachment,\n MessageAttachmentToolDefinition,\n AgentThread,\n ThreadDeletionStatus,\n OpenAIPageableListOfAgentThread,\n ThreadMessage,\n MessageStatus,\n MessageIncompleteDetails,\n MessageIncompleteDetailsReason,\n MessageContent,\n MessageContentUnion,\n MessageTextContent,\n MessageTextDetails,\n MessageTextAnnotation,\n MessageTextAnnotationUnion,\n MessageTextUrlCitationAnnotation,\n MessageTextUrlCitationDetails,\n MessageTextFileCitationAnnotation,\n MessageTextFileCitationDetails,\n MessageTextFilePathAnnotation,\n MessageTextFilePathDetails,\n MessageImageFileContent,\n MessageImageFileDetails,\n OpenAIPageableListOfThreadMessage,\n TruncationObject,\n TruncationStrategy,\n AgentsNamedToolChoice,\n AgentsNamedToolChoiceType,\n FunctionName,\n AgentsApiToolChoiceOption,\n AgentsApiToolChoiceOptionMode,\n ThreadRun,\n RunStatus,\n RequiredAction,\n RequiredActionUnion,\n SubmitToolOutputsAction,\n SubmitToolOutputsDetails,\n RequiredToolCall,\n RequiredToolCallUnion,\n RequiredFunctionToolCall,\n RequiredFunctionToolCallDetails,\n RunError,\n IncompleteRunDetails,\n IncompleteDetailsReason,\n RunCompletionUsage,\n UpdateToolResourcesOptions,\n UpdateCodeInterpreterToolResourceOptions,\n UpdateFileSearchToolResourceOptions,\n OpenAIPageableListOfThreadRun,\n ToolOutput,\n AgentThreadCreationOptions,\n RunStep,\n RunStepType,\n RunStepStatus,\n RunStepDetails,\n RunStepDetailsUnion,\n RunStepMessageCreationDetails,\n RunStepMessageCreationReference,\n RunStepToolCallDetails,\n RunStepToolCall,\n RunStepToolCallUnion,\n RunStepCodeInterpreterToolCall,\n RunStepCodeInterpreterToolCallDetails,\n RunStepCodeInterpreterToolCallOutput,\n RunStepCodeInterpreterToolCallOutputUnion,\n RunStepCodeInterpreterLogOutput,\n RunStepCodeInterpreterImageOutput,\n RunStepCodeInterpreterImageReference,\n RunStepFileSearchToolCall,\n RunStepFileSearchToolCallResults,\n RunStepFileSearchToolCallResult,\n FileSearchToolCallContent,\n RunStepBingGroundingToolCall,\n RunStepAzureAISearchToolCall,\n RunStepSharepointToolCall,\n RunStepMicrosoftFabricToolCall,\n RunStepCustomSearchToolCall,\n RunStepFunctionToolCall,\n RunStepFunctionToolCallDetails,\n RunStepOpenAPIToolCall,\n RunStepError,\n RunStepErrorCode,\n RunStepCompletionUsage,\n OpenAIPageableListOfRunStep,\n FileListResponse,\n OpenAIFile,\n FilePurpose,\n FileState,\n FileDeletionStatus,\n OpenAIPageableListOfVectorStore,\n VectorStore,\n VectorStoreFileCount,\n VectorStoreStatus,\n VectorStoreExpirationPolicy,\n VectorStoreExpirationPolicyAnchor,\n VectorStoreChunkingStrategyRequest,\n VectorStoreChunkingStrategyRequestUnion,\n VectorStoreChunkingStrategyRequestType,\n VectorStoreAutoChunkingStrategyRequest,\n VectorStoreStaticChunkingStrategyRequest,\n VectorStoreStaticChunkingStrategyOptions,\n VectorStoreDeletionStatus,\n OpenAIPageableListOfVectorStoreFile,\n VectorStoreFile,\n VectorStoreFileStatus,\n VectorStoreFileError,\n VectorStoreFileErrorCode,\n VectorStoreChunkingStrategyResponse,\n VectorStoreChunkingStrategyResponseUnion,\n VectorStoreChunkingStrategyResponseType,\n VectorStoreAutoChunkingStrategyResponse,\n VectorStoreStaticChunkingStrategyResponse,\n VectorStoreFileDeletionStatus,\n VectorStoreFileBatch,\n VectorStoreFileBatchStatus,\n MessageDeltaChunk,\n MessageDelta,\n MessageDeltaContent,\n MessageDeltaContentUnion,\n MessageDeltaImageFileContent,\n MessageDeltaImageFileContentObject,\n MessageDeltaTextContent,\n MessageDeltaTextContentObject,\n MessageDeltaTextAnnotation,\n MessageDeltaTextAnnotationUnion,\n MessageDeltaTextUrlCitationAnnotation,\n MessageDeltaTextUrlCitationDetails,\n MessageDeltaTextFileCitationAnnotation,\n MessageDeltaTextFileCitationAnnotationObject,\n MessageDeltaTextFilePathAnnotation,\n MessageDeltaTextFilePathAnnotationObject,\n RunStepDeltaChunk,\n RunStepDelta,\n RunStepDeltaDetail,\n RunStepDeltaDetailUnion,\n RunStepDeltaMessageCreation,\n RunStepDeltaMessageCreationObject,\n RunStepDeltaToolCallObject,\n RunStepDeltaToolCall,\n RunStepDeltaToolCallUnion,\n RunStepDeltaFunctionToolCall,\n RunStepDeltaFunction,\n RunStepDeltaFileSearchToolCall,\n RunStepDeltaCodeInterpreterToolCall,\n RunStepDeltaCodeInterpreterDetailItemObject,\n RunStepDeltaCodeInterpreterOutput,\n RunStepDeltaCodeInterpreterOutputUnion,\n RunStepDeltaCodeInterpreterLogOutput,\n RunStepDeltaCodeInterpreterImageOutput,\n RunStepDeltaCodeInterpreterImageOutputObject,\n AgentStreamEvent,\n ThreadStreamEvent,\n RunStreamEvent,\n RunStepStreamEvent,\n MessageStreamEvent,\n ErrorEvent,\n DoneEvent,\n ListSortOrder,\n RunAdditionalFieldList,\n VectorStoreFileStatusFilter,\n KnownVersions,\n} from \"./models.js\";\n"]}