@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,456 @@
1
+ import { ToolDefinitionUnion, ToolResources, VectorStoreDataSource, VectorStoreConfiguration, AgentsApiResponseFormatOption, ThreadMessageOptions, MessageAttachment, TruncationObject, AgentsApiToolChoiceOption, UpdateToolResourcesOptions, AgentThreadCreationOptions, FilePurpose, VectorStoreExpirationPolicy, VectorStoreChunkingStrategyRequestUnion, ListSortOrder, RunAdditionalFieldList, VectorStoreFileStatusFilter } from "../models/models.js";
2
+ import { OperationOptions } from "@azure-rest/core-client";
3
+ /** Optional parameters. */
4
+ export interface ListVectorStoreFileBatchFilesOptionalParams extends OperationOptions {
5
+ /** Filter by file status. */
6
+ filter?: VectorStoreFileStatusFilter;
7
+ /** A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. */
8
+ limit?: number;
9
+ /** Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. */
10
+ order?: ListSortOrder;
11
+ /** A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. */
12
+ after?: string;
13
+ /** A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. */
14
+ before?: string;
15
+ }
16
+ /** Optional parameters. */
17
+ export interface CancelVectorStoreFileBatchOptionalParams extends OperationOptions {
18
+ }
19
+ /** Optional parameters. */
20
+ export interface GetVectorStoreFileBatchOptionalParams extends OperationOptions {
21
+ }
22
+ /** Optional parameters. */
23
+ export interface CreateVectorStoreFileBatchOptionalParams extends OperationOptions, PollingOptionsParams {
24
+ /** List of file identifiers. */
25
+ fileIds?: string[];
26
+ /** List of Azure assets. */
27
+ dataSources?: VectorStoreDataSource[];
28
+ /** The chunking strategy used to chunk the file(s). If not set, will use the auto strategy. */
29
+ chunkingStrategy?: VectorStoreChunkingStrategyRequestUnion;
30
+ }
31
+ /** Optional parameters. */
32
+ export interface DeleteVectorStoreFileOptionalParams extends OperationOptions {
33
+ }
34
+ /** Optional parameters. */
35
+ export interface GetVectorStoreFileOptionalParams extends OperationOptions {
36
+ }
37
+ /** Optional parameters. */
38
+ export interface CreateVectorStoreFileOptionalParams extends OperationOptions, PollingOptionsParams {
39
+ /** Identifier of the file. */
40
+ fileId?: string;
41
+ /** Azure asset ID. */
42
+ dataSource?: VectorStoreDataSource;
43
+ /** The chunking strategy used to chunk the file(s). If not set, will use the auto strategy. */
44
+ chunkingStrategy?: VectorStoreChunkingStrategyRequestUnion;
45
+ }
46
+ /** Optional parameters. */
47
+ export interface ListVectorStoreFilesOptionalParams extends OperationOptions {
48
+ /** Filter by file status. */
49
+ filter?: VectorStoreFileStatusFilter;
50
+ /** A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. */
51
+ limit?: number;
52
+ /** Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. */
53
+ order?: ListSortOrder;
54
+ /** A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. */
55
+ after?: string;
56
+ /** A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. */
57
+ before?: string;
58
+ }
59
+ /** Optional parameters. */
60
+ export interface DeleteVectorStoreOptionalParams extends OperationOptions {
61
+ }
62
+ /** Optional parameters. */
63
+ export interface ModifyVectorStoreOptionalParams extends OperationOptions {
64
+ /** The name of the vector store. */
65
+ name?: string | null;
66
+ /** Details on when this vector store expires */
67
+ expiresAfter?: VectorStoreExpirationPolicy | null;
68
+ /** A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length. */
69
+ metadata?: Record<string, string> | null;
70
+ }
71
+ /** Optional parameters. */
72
+ export interface GetVectorStoreOptionalParams extends OperationOptions {
73
+ }
74
+ /** Optional parameters. */
75
+ export interface CreateVectorStoreOptionalParams extends OperationOptions, PollingOptionsParams {
76
+ /** A list of file IDs that the vector store should use. Useful for tools like `file_search` that can access files. */
77
+ fileIds?: string[];
78
+ /** The name of the vector store. */
79
+ name?: string;
80
+ /** The vector store configuration, used when vector store is created from Azure asset URIs. */
81
+ storeConfiguration?: VectorStoreConfiguration;
82
+ /** Details on when this vector store expires */
83
+ expiresAfter?: VectorStoreExpirationPolicy;
84
+ /** The chunking strategy used to chunk the file(s). If not set, will use the auto strategy. Only applicable if file_ids is non-empty. */
85
+ chunkingStrategy?: VectorStoreChunkingStrategyRequestUnion;
86
+ /** A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length. */
87
+ metadata?: Record<string, string> | null;
88
+ }
89
+ /** Optional parameters. */
90
+ export interface ListVectorStoresOptionalParams extends OperationOptions {
91
+ /** A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. */
92
+ limit?: number;
93
+ /** Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. */
94
+ order?: ListSortOrder;
95
+ /** A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. */
96
+ after?: string;
97
+ /** A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. */
98
+ before?: string;
99
+ }
100
+ /** Optional parameters. */
101
+ export interface GetFileContentOptionalParams extends OperationOptions {
102
+ }
103
+ /** Optional parameters. */
104
+ export interface GetFileOptionalParams extends OperationOptions {
105
+ }
106
+ /** Optional parameters. */
107
+ export interface DeleteFileOptionalParams extends OperationOptions {
108
+ }
109
+ /**
110
+ * Options for configuring polling behavior.
111
+ */
112
+ export interface PollingOptions {
113
+ /**
114
+ * The interval, in milliseconds, to wait between polling attempts. If not specified, a default interval of 1000ms will be used.
115
+ */
116
+ intervalInMs?: number;
117
+ /**
118
+ * A serialized poller which can be used to resume an existing paused Long-Running-Operation.
119
+ */
120
+ restoreFrom?: string;
121
+ }
122
+ /**
123
+ * Optional parameters configuring polling behavior.
124
+ */
125
+ export interface PollingOptionsParams {
126
+ /** Options for configuring polling behavior. */
127
+ pollingOptions?: PollingOptions;
128
+ }
129
+ /** Optional parameters. */
130
+ export interface UploadFileOptionalParams extends OperationOptions, PollingOptionsParams {
131
+ /** The name of the file. */
132
+ fileName?: string;
133
+ }
134
+ /** Optional parameters. */
135
+ export interface ListFilesOptionalParams extends OperationOptions {
136
+ /** The purpose of the file. */
137
+ purpose?: FilePurpose;
138
+ }
139
+ /** Optional parameters. */
140
+ export interface ListRunStepsOptionalParams extends OperationOptions {
141
+ /**
142
+ * A list of additional fields to include in the response.
143
+ * Currently the only supported value is `step_details.tool_calls[*].file_search.results[*].content` to fetch the file search result content.
144
+ */
145
+ include?: RunAdditionalFieldList[];
146
+ /** A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. */
147
+ limit?: number;
148
+ /** Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. */
149
+ order?: ListSortOrder;
150
+ /** A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. */
151
+ after?: string;
152
+ /** A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. */
153
+ before?: string;
154
+ }
155
+ /** Optional parameters. */
156
+ export interface GetRunStepOptionalParams extends OperationOptions {
157
+ /**
158
+ * A list of additional fields to include in the response.
159
+ * Currently the only supported value is `step_details.tool_calls[*].file_search.results[*].content` to fetch the file search result content.
160
+ */
161
+ include?: RunAdditionalFieldList[];
162
+ }
163
+ /** Optional parameters. */
164
+ export interface CreateThreadAndRunOptionalParams extends OperationOptions {
165
+ /** The details used to create the new thread. If no thread is provided, an empty one will be created. */
166
+ thread?: AgentThreadCreationOptions;
167
+ /** The overridden model that the agent should use to run the thread. */
168
+ model?: string | null;
169
+ /** The overridden system instructions the agent should use to run the thread. */
170
+ instructions?: string | null;
171
+ /** The overridden list of enabled tools the agent should use to run the thread. */
172
+ tools?: ToolDefinitionUnion[] | null;
173
+ /** Override the tools the agent can use for this run. This is useful for modifying the behavior on a per-run basis */
174
+ toolResources?: UpdateToolResourcesOptions | null;
175
+ /**
176
+ * If `true`, returns a stream of events that happen during the Run as server-sent events,
177
+ * terminating when the Run enters a terminal state with a `data: [DONE]` message.
178
+ */
179
+ stream?: boolean;
180
+ /**
181
+ * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output
182
+ * more random, while lower values like 0.2 will make it more focused and deterministic.
183
+ */
184
+ temperature?: number | null;
185
+ /**
186
+ * An alternative to sampling with temperature, called nucleus sampling, where the model
187
+ * considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens
188
+ * comprising the top 10% probability mass are considered.
189
+ *
190
+ * We generally recommend altering this or temperature but not both.
191
+ */
192
+ topP?: number | null;
193
+ /**
194
+ * The maximum number of prompt tokens that may be used over the course of the run. The run will make a best effort to use only
195
+ * the number of prompt tokens specified, across multiple turns of the run. If the run exceeds the number of prompt tokens specified,
196
+ * the run will end with status `incomplete`. See `incomplete_details` for more info.
197
+ */
198
+ maxPromptTokens?: number | null;
199
+ /**
200
+ * The maximum number of completion tokens that may be used over the course of the run. The run will make a best effort to use only
201
+ * the number of completion tokens specified, across multiple turns of the run. If the run exceeds the number of completion tokens
202
+ * specified, the run will end with status `incomplete`. See `incomplete_details` for more info.
203
+ */
204
+ maxCompletionTokens?: number | null;
205
+ /** The strategy to use for dropping messages as the context windows moves forward. */
206
+ truncationStrategy?: TruncationObject | null;
207
+ /** Controls whether or not and which tool is called by the model. */
208
+ toolChoice?: AgentsApiToolChoiceOption | null;
209
+ /** Specifies the format that the model must output. */
210
+ responseFormat?: AgentsApiResponseFormatOption | null;
211
+ /** If `true` functions will run in parallel during tool use. */
212
+ parallelToolCalls?: boolean;
213
+ /** A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length. */
214
+ metadata?: Record<string, string> | null;
215
+ }
216
+ /** Optional parameters. */
217
+ export interface CancelRunOptionalParams extends OperationOptions {
218
+ }
219
+ /** Optional parameters. */
220
+ export interface SubmitToolOutputsToRunOptionalParams extends OperationOptions {
221
+ /** If true, returns a stream of events that happen during the Run as server-sent events, terminating when the run enters a terminal state. */
222
+ stream?: boolean | null;
223
+ }
224
+ /** Optional parameters. */
225
+ export interface UpdateRunOptionalParams extends OperationOptions {
226
+ /** A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length. */
227
+ metadata?: Record<string, string> | null;
228
+ }
229
+ /** Optional parameters. */
230
+ export interface GetRunOptionalParams extends OperationOptions {
231
+ }
232
+ /** Optional parameters. */
233
+ export interface ListRunsOptionalParams extends OperationOptions {
234
+ /** A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. */
235
+ limit?: number;
236
+ /** Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. */
237
+ order?: ListSortOrder;
238
+ /** A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. */
239
+ after?: string;
240
+ /** A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. */
241
+ before?: string;
242
+ }
243
+ /** Optional parameters. */
244
+ export interface CreateRunOptionalParams extends OperationOptions {
245
+ /**
246
+ * A list of additional fields to include in the response.
247
+ * Currently the only supported value is `step_details.tool_calls[*].file_search.results[*].content` to fetch the file search result content.
248
+ */
249
+ include?: RunAdditionalFieldList[];
250
+ /** The overridden model name that the agent should use to run the thread. */
251
+ model?: string | null;
252
+ /** The overridden system instructions that the agent should use to run the thread. */
253
+ instructions?: string | null;
254
+ /**
255
+ * Additional instructions to append at the end of the instructions for the run. This is useful for modifying the behavior
256
+ * on a per-run basis without overriding other instructions.
257
+ */
258
+ additionalInstructions?: string | null;
259
+ /** Adds additional messages to the thread before creating the run. */
260
+ additionalMessages?: ThreadMessageOptions[] | null;
261
+ /** The overridden list of enabled tools that the agent should use to run the thread. */
262
+ tools?: ToolDefinitionUnion[] | null;
263
+ /**
264
+ * If `true`, returns a stream of events that happen during the Run as server-sent events,
265
+ * terminating when the Run enters a terminal state with a `data: [DONE]` message.
266
+ */
267
+ stream?: boolean;
268
+ /**
269
+ * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output
270
+ * more random, while lower values like 0.2 will make it more focused and deterministic.
271
+ */
272
+ temperature?: number | null;
273
+ /**
274
+ * An alternative to sampling with temperature, called nucleus sampling, where the model
275
+ * considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens
276
+ * comprising the top 10% probability mass are considered.
277
+ *
278
+ * We generally recommend altering this or temperature but not both.
279
+ */
280
+ topP?: number | null;
281
+ /**
282
+ * The maximum number of prompt tokens that may be used over the course of the run. The run will make a best effort to use only
283
+ * the number of prompt tokens specified, across multiple turns of the run. If the run exceeds the number of prompt tokens specified,
284
+ * the run will end with status `incomplete`. See `incomplete_details` for more info.
285
+ */
286
+ maxPromptTokens?: number | null;
287
+ /**
288
+ * The maximum number of completion tokens that may be used over the course of the run. The run will make a best effort
289
+ * to use only the number of completion tokens specified, across multiple turns of the run. If the run exceeds the number of
290
+ * completion tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info.
291
+ */
292
+ maxCompletionTokens?: number | null;
293
+ /** The strategy to use for dropping messages as the context windows moves forward. */
294
+ truncationStrategy?: TruncationObject | null;
295
+ /** Controls whether or not and which tool is called by the model. */
296
+ toolChoice?: AgentsApiToolChoiceOption | null;
297
+ /** Specifies the format that the model must output. */
298
+ responseFormat?: AgentsApiResponseFormatOption | null;
299
+ /** If `true` functions will run in parallel during tool use. */
300
+ parallelToolCalls?: boolean;
301
+ /** A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length. */
302
+ metadata?: Record<string, string> | null;
303
+ }
304
+ /** Optional parameters. */
305
+ export interface UpdateMessageOptionalParams extends OperationOptions {
306
+ /** A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length. */
307
+ metadata?: Record<string, string> | null;
308
+ }
309
+ /** Optional parameters. */
310
+ export interface GetMessageOptionalParams extends OperationOptions {
311
+ }
312
+ /** Optional parameters. */
313
+ export interface ListMessagesOptionalParams extends OperationOptions {
314
+ /** Filter messages by the run ID that generated them. */
315
+ runId?: string;
316
+ /** A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. */
317
+ limit?: number;
318
+ /** Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. */
319
+ order?: ListSortOrder;
320
+ /** A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. */
321
+ after?: string;
322
+ /** A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. */
323
+ before?: string;
324
+ }
325
+ /** Optional parameters. */
326
+ export interface CreateMessageOptionalParams extends OperationOptions {
327
+ /** A list of files attached to the message, and the tools they should be added to. */
328
+ attachments?: MessageAttachment[] | null;
329
+ /** A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length. */
330
+ metadata?: Record<string, string> | null;
331
+ }
332
+ /** Optional parameters. */
333
+ export interface ListThreadsOptionalParams extends OperationOptions {
334
+ /** A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. */
335
+ limit?: number;
336
+ /** Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. */
337
+ order?: ListSortOrder;
338
+ /** A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. */
339
+ after?: string;
340
+ /** A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. */
341
+ before?: string;
342
+ }
343
+ /** Optional parameters. */
344
+ export interface DeleteThreadOptionalParams extends OperationOptions {
345
+ }
346
+ /** Optional parameters. */
347
+ export interface UpdateThreadOptionalParams extends OperationOptions {
348
+ /**
349
+ * A set of resources that are made available to the agent's tools in this thread. The resources are specific to the
350
+ * type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires
351
+ * a list of vector store IDs
352
+ */
353
+ toolResources?: ToolResources | null;
354
+ /** A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length. */
355
+ metadata?: Record<string, string> | null;
356
+ }
357
+ /** Optional parameters. */
358
+ export interface GetThreadOptionalParams extends OperationOptions {
359
+ }
360
+ /** Optional parameters. */
361
+ export interface CreateThreadOptionalParams extends OperationOptions {
362
+ /** The initial messages to associate with the new thread. */
363
+ messages?: ThreadMessageOptions[];
364
+ /**
365
+ * A set of resources that are made available to the agent's tools in this thread. The resources are specific to the
366
+ * type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires
367
+ * a list of vector store IDs.
368
+ */
369
+ toolResources?: ToolResources | null;
370
+ /** A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length. */
371
+ metadata?: Record<string, string> | null;
372
+ }
373
+ /** Optional parameters. */
374
+ export interface DeleteAgentOptionalParams extends OperationOptions {
375
+ }
376
+ /** Optional parameters. */
377
+ export interface UpdateAgentOptionalParams extends OperationOptions {
378
+ /** The ID of the model to use. */
379
+ model?: string;
380
+ /** The modified name for the agent to use. */
381
+ name?: string | null;
382
+ /** The modified description for the agent to use. */
383
+ description?: string | null;
384
+ /** The modified system instructions for the new agent to use. */
385
+ instructions?: string | null;
386
+ /** The modified collection of tools to enable for the agent. */
387
+ tools?: ToolDefinitionUnion[];
388
+ /**
389
+ * A set of resources that are used by the agent's tools. The resources are specific to the type of tool. For example,
390
+ * the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.
391
+ */
392
+ toolResources?: ToolResources;
393
+ /**
394
+ * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random,
395
+ * while lower values like 0.2 will make it more focused and deterministic.
396
+ */
397
+ temperature?: number | null;
398
+ /**
399
+ * An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
400
+ * So 0.1 means only the tokens comprising the top 10% probability mass are considered.
401
+ *
402
+ * We generally recommend altering this or temperature but not both.
403
+ */
404
+ topP?: number | null;
405
+ /** The response format of the tool calls used by this agent. */
406
+ responseFormat?: AgentsApiResponseFormatOption | null;
407
+ /** A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length. */
408
+ metadata?: Record<string, string> | null;
409
+ }
410
+ /** Optional parameters. */
411
+ export interface GetAgentOptionalParams extends OperationOptions {
412
+ }
413
+ /** Optional parameters. */
414
+ export interface ListAgentsOptionalParams extends OperationOptions {
415
+ /** A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. */
416
+ limit?: number;
417
+ /** Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. */
418
+ order?: ListSortOrder;
419
+ /** A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. */
420
+ after?: string;
421
+ /** A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. */
422
+ before?: string;
423
+ }
424
+ /** Optional parameters. */
425
+ export interface CreateAgentOptionalParams extends OperationOptions {
426
+ /** The name of the new agent. */
427
+ name?: string | null;
428
+ /** The description of the new agent. */
429
+ description?: string | null;
430
+ /** The system instructions for the new agent to use. */
431
+ instructions?: string | null;
432
+ /** The collection of tools to enable for the new agent. */
433
+ tools?: ToolDefinitionUnion[];
434
+ /**
435
+ * A set of resources that are used by the agent's tools. The resources are specific to the type of tool. For example, the `code_interpreter`
436
+ * tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.
437
+ */
438
+ toolResources?: ToolResources | null;
439
+ /**
440
+ * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random,
441
+ * while lower values like 0.2 will make it more focused and deterministic.
442
+ */
443
+ temperature?: number | null;
444
+ /**
445
+ * An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
446
+ * So 0.1 means only the tokens comprising the top 10% probability mass are considered.
447
+ *
448
+ * We generally recommend altering this or temperature but not both.
449
+ */
450
+ topP?: number | null;
451
+ /** The response format of the tool calls used by this agent. */
452
+ responseFormat?: AgentsApiResponseFormatOption | null;
453
+ /** A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length. */
454
+ metadata?: Record<string, string> | null;
455
+ }
456
+ //# sourceMappingURL=options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/api/options.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,qBAAqB,EACrB,wBAAwB,EACxB,6BAA6B,EAC7B,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,EAChB,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,EAC1B,WAAW,EACX,2BAA2B,EAC3B,uCAAuC,EACvC,aAAa,EACb,sBAAsB,EACtB,2BAA2B,EAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,2BAA2B;AAC3B,MAAM,WAAW,2CAA4C,SAAQ,gBAAgB;IACnF,6BAA6B;IAC7B,MAAM,CAAC,EAAE,2BAA2B,CAAC;IACrC,iHAAiH;IACjH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oHAAoH;IACpH,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,oRAAoR;IACpR,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0RAA0R;IAC1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,SAAQ,gBAAgB;CAAG;AAEnE,2BAA2B;AAC3B,MAAM,WAAW,wBAAyB,SAAQ,gBAAgB;IAChE,iHAAiH;IACjH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oHAAoH;IACpH,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,oRAAoR;IACpR,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0RAA0R;IAC1R,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,2BAA2B;AAC3B,MAAM,WAAW,yBAA0B,SAAQ,gBAAgB;IACjE,iCAAiC;IACjC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,wDAAwD;IACxD,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,2DAA2D;IAC3D,KAAK,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAC9B;;;OAGG;IACH,aAAa,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IACrC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,gEAAgE;IAChE,cAAc,CAAC,EAAE,6BAA6B,GAAG,IAAI,CAAC;IACtD,yPAAyP;IACzP,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;CAC1C"}
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/api/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n ToolDefinitionUnion,\n ToolResources,\n VectorStoreDataSource,\n VectorStoreConfiguration,\n AgentsApiResponseFormatOption,\n ThreadMessageOptions,\n MessageAttachment,\n TruncationObject,\n AgentsApiToolChoiceOption,\n UpdateToolResourcesOptions,\n AgentThreadCreationOptions,\n FilePurpose,\n VectorStoreExpirationPolicy,\n VectorStoreChunkingStrategyRequestUnion,\n ListSortOrder,\n RunAdditionalFieldList,\n VectorStoreFileStatusFilter,\n} from \"../models/models.js\";\nimport { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface ListVectorStoreFileBatchFilesOptionalParams extends OperationOptions {\n /** Filter by file status. */\n filter?: VectorStoreFileStatusFilter;\n /** A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. */\n limit?: number;\n /** Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. */\n order?: ListSortOrder;\n /** A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. */\n after?: string;\n /** A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. */\n before?: string;\n}\n\n/** Optional parameters. */\nexport interface CancelVectorStoreFileBatchOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface GetVectorStoreFileBatchOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface CreateVectorStoreFileBatchOptionalParams\n extends OperationOptions,\n PollingOptionsParams {\n /** List of file identifiers. */\n fileIds?: string[];\n /** List of Azure assets. */\n dataSources?: VectorStoreDataSource[];\n /** The chunking strategy used to chunk the file(s). If not set, will use the auto strategy. */\n chunkingStrategy?: VectorStoreChunkingStrategyRequestUnion;\n}\n\n/** Optional parameters. */\nexport interface DeleteVectorStoreFileOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface GetVectorStoreFileOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface CreateVectorStoreFileOptionalParams\n extends OperationOptions,\n PollingOptionsParams {\n /** Identifier of the file. */\n fileId?: string;\n /** Azure asset ID. */\n dataSource?: VectorStoreDataSource;\n /** The chunking strategy used to chunk the file(s). If not set, will use the auto strategy. */\n chunkingStrategy?: VectorStoreChunkingStrategyRequestUnion;\n}\n\n/** Optional parameters. */\nexport interface ListVectorStoreFilesOptionalParams extends OperationOptions {\n /** Filter by file status. */\n filter?: VectorStoreFileStatusFilter;\n /** A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. */\n limit?: number;\n /** Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. */\n order?: ListSortOrder;\n /** A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. */\n after?: string;\n /** A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. */\n before?: string;\n}\n\n/** Optional parameters. */\nexport interface DeleteVectorStoreOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface ModifyVectorStoreOptionalParams extends OperationOptions {\n /** The name of the vector store. */\n name?: string | null;\n /** Details on when this vector store expires */\n expiresAfter?: VectorStoreExpirationPolicy | null;\n /** A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length. */\n metadata?: Record<string, string> | null;\n}\n\n/** Optional parameters. */\nexport interface GetVectorStoreOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface CreateVectorStoreOptionalParams extends OperationOptions, PollingOptionsParams {\n /** A list of file IDs that the vector store should use. Useful for tools like `file_search` that can access files. */\n fileIds?: string[];\n /** The name of the vector store. */\n name?: string;\n /** The vector store configuration, used when vector store is created from Azure asset URIs. */\n storeConfiguration?: VectorStoreConfiguration;\n /** Details on when this vector store expires */\n expiresAfter?: VectorStoreExpirationPolicy;\n /** The chunking strategy used to chunk the file(s). If not set, will use the auto strategy. Only applicable if file_ids is non-empty. */\n chunkingStrategy?: VectorStoreChunkingStrategyRequestUnion;\n /** A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length. */\n metadata?: Record<string, string> | null;\n}\n\n/** Optional parameters. */\nexport interface ListVectorStoresOptionalParams extends OperationOptions {\n /** A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. */\n limit?: number;\n /** Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. */\n order?: ListSortOrder;\n /** A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. */\n after?: string;\n /** A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. */\n before?: string;\n}\n\n/** Optional parameters. */\nexport interface GetFileContentOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface GetFileOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface DeleteFileOptionalParams extends OperationOptions {}\n\n/**\n * Options for configuring polling behavior.\n */\nexport interface PollingOptions {\n /**\n * The interval, in milliseconds, to wait between polling attempts. If not specified, a default interval of 1000ms will be used.\n */\n intervalInMs?: number;\n /**\n * A serialized poller which can be used to resume an existing paused Long-Running-Operation.\n */\n restoreFrom?: string;\n}\n\n/**\n * Optional parameters configuring polling behavior.\n */\nexport interface PollingOptionsParams {\n /** Options for configuring polling behavior. */\n pollingOptions?: PollingOptions;\n}\n\n/** Optional parameters. */\nexport interface UploadFileOptionalParams extends OperationOptions, PollingOptionsParams {\n /** The name of the file. */\n fileName?: string;\n}\n\n/** Optional parameters. */\nexport interface ListFilesOptionalParams extends OperationOptions {\n /** The purpose of the file. */\n purpose?: FilePurpose;\n}\n\n/** Optional parameters. */\nexport interface ListRunStepsOptionalParams extends OperationOptions {\n /**\n * A list of additional fields to include in the response.\n * Currently the only supported value is `step_details.tool_calls[*].file_search.results[*].content` to fetch the file search result content.\n */\n include?: RunAdditionalFieldList[];\n /** A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. */\n limit?: number;\n /** Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. */\n order?: ListSortOrder;\n /** A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. */\n after?: string;\n /** A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. */\n before?: string;\n}\n\n/** Optional parameters. */\nexport interface GetRunStepOptionalParams extends OperationOptions {\n /**\n * A list of additional fields to include in the response.\n * Currently the only supported value is `step_details.tool_calls[*].file_search.results[*].content` to fetch the file search result content.\n */\n include?: RunAdditionalFieldList[];\n}\n\n/** Optional parameters. */\nexport interface CreateThreadAndRunOptionalParams extends OperationOptions {\n /** The details used to create the new thread. If no thread is provided, an empty one will be created. */\n thread?: AgentThreadCreationOptions;\n /** The overridden model that the agent should use to run the thread. */\n model?: string | null;\n /** The overridden system instructions the agent should use to run the thread. */\n instructions?: string | null;\n /** The overridden list of enabled tools the agent should use to run the thread. */\n tools?: ToolDefinitionUnion[] | null;\n /** Override the tools the agent can use for this run. This is useful for modifying the behavior on a per-run basis */\n toolResources?: UpdateToolResourcesOptions | null;\n /**\n * If `true`, returns a stream of events that happen during the Run as server-sent events,\n * terminating when the Run enters a terminal state with a `data: [DONE]` message.\n */\n stream?: boolean;\n /**\n * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output\n * more random, while lower values like 0.2 will make it more focused and deterministic.\n */\n temperature?: number | null;\n /**\n * An alternative to sampling with temperature, called nucleus sampling, where the model\n * considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens\n * comprising the top 10% probability mass are considered.\n *\n * We generally recommend altering this or temperature but not both.\n */\n topP?: number | null;\n /**\n * The maximum number of prompt tokens that may be used over the course of the run. The run will make a best effort to use only\n * the number of prompt tokens specified, across multiple turns of the run. If the run exceeds the number of prompt tokens specified,\n * the run will end with status `incomplete`. See `incomplete_details` for more info.\n */\n maxPromptTokens?: number | null;\n /**\n * The maximum number of completion tokens that may be used over the course of the run. The run will make a best effort to use only\n * the number of completion tokens specified, across multiple turns of the run. If the run exceeds the number of completion tokens\n * specified, the run will end with status `incomplete`. See `incomplete_details` for more info.\n */\n maxCompletionTokens?: number | null;\n /** The strategy to use for dropping messages as the context windows moves forward. */\n truncationStrategy?: TruncationObject | null;\n /** Controls whether or not and which tool is called by the model. */\n toolChoice?: AgentsApiToolChoiceOption | null;\n /** Specifies the format that the model must output. */\n responseFormat?: AgentsApiResponseFormatOption | null;\n /** If `true` functions will run in parallel during tool use. */\n parallelToolCalls?: boolean;\n /** A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length. */\n metadata?: Record<string, string> | null;\n}\n\n/** Optional parameters. */\nexport interface CancelRunOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface SubmitToolOutputsToRunOptionalParams extends OperationOptions {\n /** If true, returns a stream of events that happen during the Run as server-sent events, terminating when the run enters a terminal state. */\n stream?: boolean | null;\n}\n\n/** Optional parameters. */\nexport interface UpdateRunOptionalParams extends OperationOptions {\n /** A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length. */\n metadata?: Record<string, string> | null;\n}\n\n/** Optional parameters. */\nexport interface GetRunOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface ListRunsOptionalParams extends OperationOptions {\n /** A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. */\n limit?: number;\n /** Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. */\n order?: ListSortOrder;\n /** A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. */\n after?: string;\n /** A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. */\n before?: string;\n}\n\n/** Optional parameters. */\nexport interface CreateRunOptionalParams extends OperationOptions {\n /**\n * A list of additional fields to include in the response.\n * Currently the only supported value is `step_details.tool_calls[*].file_search.results[*].content` to fetch the file search result content.\n */\n include?: RunAdditionalFieldList[];\n /** The overridden model name that the agent should use to run the thread. */\n model?: string | null;\n /** The overridden system instructions that the agent should use to run the thread. */\n instructions?: string | null;\n /**\n * Additional instructions to append at the end of the instructions for the run. This is useful for modifying the behavior\n * on a per-run basis without overriding other instructions.\n */\n additionalInstructions?: string | null;\n /** Adds additional messages to the thread before creating the run. */\n additionalMessages?: ThreadMessageOptions[] | null;\n /** The overridden list of enabled tools that the agent should use to run the thread. */\n tools?: ToolDefinitionUnion[] | null;\n /**\n * If `true`, returns a stream of events that happen during the Run as server-sent events,\n * terminating when the Run enters a terminal state with a `data: [DONE]` message.\n */\n stream?: boolean;\n /**\n * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output\n * more random, while lower values like 0.2 will make it more focused and deterministic.\n */\n temperature?: number | null;\n /**\n * An alternative to sampling with temperature, called nucleus sampling, where the model\n * considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens\n * comprising the top 10% probability mass are considered.\n *\n * We generally recommend altering this or temperature but not both.\n */\n topP?: number | null;\n /**\n * The maximum number of prompt tokens that may be used over the course of the run. The run will make a best effort to use only\n * the number of prompt tokens specified, across multiple turns of the run. If the run exceeds the number of prompt tokens specified,\n * the run will end with status `incomplete`. See `incomplete_details` for more info.\n */\n maxPromptTokens?: number | null;\n /**\n * The maximum number of completion tokens that may be used over the course of the run. The run will make a best effort\n * to use only the number of completion tokens specified, across multiple turns of the run. If the run exceeds the number of\n * completion tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info.\n */\n maxCompletionTokens?: number | null;\n /** The strategy to use for dropping messages as the context windows moves forward. */\n truncationStrategy?: TruncationObject | null;\n /** Controls whether or not and which tool is called by the model. */\n toolChoice?: AgentsApiToolChoiceOption | null;\n /** Specifies the format that the model must output. */\n responseFormat?: AgentsApiResponseFormatOption | null;\n /** If `true` functions will run in parallel during tool use. */\n parallelToolCalls?: boolean;\n /** A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length. */\n metadata?: Record<string, string> | null;\n}\n\n/** Optional parameters. */\nexport interface UpdateMessageOptionalParams extends OperationOptions {\n /** A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length. */\n metadata?: Record<string, string> | null;\n}\n\n/** Optional parameters. */\nexport interface GetMessageOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface ListMessagesOptionalParams extends OperationOptions {\n /** Filter messages by the run ID that generated them. */\n runId?: string;\n /** A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. */\n limit?: number;\n /** Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. */\n order?: ListSortOrder;\n /** A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. */\n after?: string;\n /** A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. */\n before?: string;\n}\n\n/** Optional parameters. */\nexport interface CreateMessageOptionalParams extends OperationOptions {\n /** A list of files attached to the message, and the tools they should be added to. */\n attachments?: MessageAttachment[] | null;\n /** A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length. */\n metadata?: Record<string, string> | null;\n}\n\n/** Optional parameters. */\nexport interface ListThreadsOptionalParams extends OperationOptions {\n /** A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. */\n limit?: number;\n /** Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. */\n order?: ListSortOrder;\n /** A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. */\n after?: string;\n /** A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. */\n before?: string;\n}\n\n/** Optional parameters. */\nexport interface DeleteThreadOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface UpdateThreadOptionalParams extends OperationOptions {\n /**\n * A set of resources that are made available to the agent's tools in this thread. The resources are specific to the\n * type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires\n * a list of vector store IDs\n */\n toolResources?: ToolResources | null;\n /** A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length. */\n metadata?: Record<string, string> | null;\n}\n\n/** Optional parameters. */\nexport interface GetThreadOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface CreateThreadOptionalParams extends OperationOptions {\n /** The initial messages to associate with the new thread. */\n messages?: ThreadMessageOptions[];\n /**\n * A set of resources that are made available to the agent's tools in this thread. The resources are specific to the\n * type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires\n * a list of vector store IDs.\n */\n toolResources?: ToolResources | null;\n /** A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length. */\n metadata?: Record<string, string> | null;\n}\n\n/** Optional parameters. */\nexport interface DeleteAgentOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface UpdateAgentOptionalParams extends OperationOptions {\n /** The ID of the model to use. */\n model?: string;\n /** The modified name for the agent to use. */\n name?: string | null;\n /** The modified description for the agent to use. */\n description?: string | null;\n /** The modified system instructions for the new agent to use. */\n instructions?: string | null;\n /** The modified collection of tools to enable for the agent. */\n tools?: ToolDefinitionUnion[];\n /**\n * A set of resources that are used by the agent's tools. The resources are specific to the type of tool. For example,\n * the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.\n */\n toolResources?: ToolResources;\n /**\n * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random,\n * while lower values like 0.2 will make it more focused and deterministic.\n */\n temperature?: number | null;\n /**\n * An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.\n * So 0.1 means only the tokens comprising the top 10% probability mass are considered.\n *\n * We generally recommend altering this or temperature but not both.\n */\n topP?: number | null;\n /** The response format of the tool calls used by this agent. */\n responseFormat?: AgentsApiResponseFormatOption | null;\n /** A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length. */\n metadata?: Record<string, string> | null;\n}\n\n/** Optional parameters. */\nexport interface GetAgentOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface ListAgentsOptionalParams extends OperationOptions {\n /** A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. */\n limit?: number;\n /** Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. */\n order?: ListSortOrder;\n /** A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. */\n after?: string;\n /** A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. */\n before?: string;\n}\n\n/** Optional parameters. */\nexport interface CreateAgentOptionalParams extends OperationOptions {\n /** The name of the new agent. */\n name?: string | null;\n /** The description of the new agent. */\n description?: string | null;\n /** The system instructions for the new agent to use. */\n instructions?: string | null;\n /** The collection of tools to enable for the new agent. */\n tools?: ToolDefinitionUnion[];\n /**\n * A set of resources that are used by the agent's tools. The resources are specific to the type of tool. For example, the `code_interpreter`\n * tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.\n */\n toolResources?: ToolResources | null;\n /**\n * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random,\n * while lower values like 0.2 will make it more focused and deterministic.\n */\n temperature?: number | null;\n /**\n * An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.\n * So 0.1 means only the tokens comprising the top 10% probability mass are considered.\n *\n * We generally recommend altering this or temperature but not both.\n */\n topP?: number | null;\n /** The response format of the tool calls used by this agent. */\n responseFormat?: AgentsApiResponseFormatOption | null;\n /** A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length. */\n metadata?: Record<string, string> | null;\n}\n"]}
@@ -0,0 +1,9 @@
1
+ import type { PollerLike, OperationState, OperationStatus } from "@azure/core-lro";
2
+ export declare function createPoller<T>({ initOperation, pollOperation, getOperationStatus, getOperationError, intervalInMs, }: {
3
+ initOperation: () => Promise<T>;
4
+ pollOperation: (currentResult: T) => Promise<T>;
5
+ getOperationStatus: (result: T) => OperationStatus;
6
+ getOperationError?: (result: T) => Error | undefined;
7
+ intervalInMs?: number;
8
+ }): PollerLike<OperationState<T>, T>;
9
+ //# sourceMappingURL=poller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"poller.d.ts","sourceRoot":"","sources":["../../../src/api/poller.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAKnF,wBAAgB,YAAY,CAAC,CAAC,EAAE,EAC9B,aAAa,EACb,aAAa,EACb,kBAAkB,EAClB,iBAAiB,EACjB,YAAY,GACb,EAAE;IACD,aAAa,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,CAAC;IAChC,aAAa,EAAE,CAAC,aAAa,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAChD,kBAAkB,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,eAAe,CAAC;IACnD,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,KAAK,GAAG,SAAS,CAAC;IACrD,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CA2InC"}