@azure/ai-agents 1.0.0 → 1.1.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (203) hide show
  1. package/README.md +103 -0
  2. package/dist/browser/api/agentsContext.js +2 -2
  3. package/dist/browser/api/agentsContext.js.map +1 -1
  4. package/dist/browser/api/files/operations.js +6 -6
  5. package/dist/browser/api/files/operations.js.map +1 -1
  6. package/dist/browser/api/messages/operations.js +8 -8
  7. package/dist/browser/api/messages/operations.js.map +1 -1
  8. package/dist/browser/api/operations.js +12 -12
  9. package/dist/browser/api/operations.js.map +1 -1
  10. package/dist/browser/api/runSteps/operations.js +4 -4
  11. package/dist/browser/api/runSteps/operations.js.map +1 -1
  12. package/dist/browser/api/runs/operations.d.ts.map +1 -1
  13. package/dist/browser/api/runs/operations.js +20 -14
  14. package/dist/browser/api/runs/operations.js.map +1 -1
  15. package/dist/browser/api/runs/options.d.ts +7 -1
  16. package/dist/browser/api/runs/options.d.ts.map +1 -1
  17. package/dist/browser/api/runs/options.js.map +1 -1
  18. package/dist/browser/api/threads/operations.js +10 -10
  19. package/dist/browser/api/threads/operations.js.map +1 -1
  20. package/dist/browser/api/vectorStoreFileBatches/operations.d.ts +2 -2
  21. package/dist/browser/api/vectorStoreFileBatches/operations.d.ts.map +1 -1
  22. package/dist/browser/api/vectorStoreFileBatches/operations.js +2 -2
  23. package/dist/browser/api/vectorStoreFileBatches/operations.js.map +1 -1
  24. package/dist/browser/classic/vectorStoreFileBatches/index.d.ts +2 -2
  25. package/dist/browser/classic/vectorStoreFileBatches/index.d.ts.map +1 -1
  26. package/dist/browser/classic/vectorStoreFileBatches/index.js.map +1 -1
  27. package/dist/browser/constants.d.ts +1 -1
  28. package/dist/browser/constants.d.ts.map +1 -1
  29. package/dist/browser/constants.js +1 -1
  30. package/dist/browser/constants.js.map +1 -1
  31. package/dist/browser/index.d.ts +3 -2
  32. package/dist/browser/index.d.ts.map +1 -1
  33. package/dist/browser/index.js +2 -1
  34. package/dist/browser/index.js.map +1 -1
  35. package/dist/browser/models/index.d.ts +1 -1
  36. package/dist/browser/models/index.d.ts.map +1 -1
  37. package/dist/browser/models/index.js.map +1 -1
  38. package/dist/browser/models/models.d.ts +260 -22
  39. package/dist/browser/models/models.d.ts.map +1 -1
  40. package/dist/browser/models/models.js +332 -12
  41. package/dist/browser/models/models.js.map +1 -1
  42. package/dist/browser/utils/MCPTool.d.ts +78 -0
  43. package/dist/browser/utils/MCPTool.d.ts.map +1 -0
  44. package/dist/browser/utils/MCPTool.js +128 -0
  45. package/dist/browser/utils/MCPTool.js.map +1 -0
  46. package/dist/browser/{utils.d.ts → utils/utils.d.ts} +61 -1
  47. package/dist/browser/utils/utils.d.ts.map +1 -0
  48. package/dist/{esm → browser/utils}/utils.js +90 -0
  49. package/dist/browser/utils/utils.js.map +1 -0
  50. package/dist/commonjs/api/agentsContext.js +2 -2
  51. package/dist/commonjs/api/agentsContext.js.map +1 -1
  52. package/dist/commonjs/api/files/operations.js +6 -6
  53. package/dist/commonjs/api/files/operations.js.map +1 -1
  54. package/dist/commonjs/api/messages/operations.js +8 -8
  55. package/dist/commonjs/api/messages/operations.js.map +1 -1
  56. package/dist/commonjs/api/operations.js +12 -12
  57. package/dist/commonjs/api/operations.js.map +1 -1
  58. package/dist/commonjs/api/runSteps/operations.js +4 -4
  59. package/dist/commonjs/api/runSteps/operations.js.map +1 -1
  60. package/dist/commonjs/api/runs/operations.d.ts.map +1 -1
  61. package/dist/commonjs/api/runs/operations.js +19 -13
  62. package/dist/commonjs/api/runs/operations.js.map +1 -1
  63. package/dist/commonjs/api/runs/options.d.ts +7 -1
  64. package/dist/commonjs/api/runs/options.d.ts.map +1 -1
  65. package/dist/commonjs/api/runs/options.js.map +1 -1
  66. package/dist/commonjs/api/threads/operations.js +10 -10
  67. package/dist/commonjs/api/threads/operations.js.map +1 -1
  68. package/dist/commonjs/api/vectorStoreFileBatches/operations.d.ts +2 -2
  69. package/dist/commonjs/api/vectorStoreFileBatches/operations.d.ts.map +1 -1
  70. package/dist/commonjs/api/vectorStoreFileBatches/operations.js +2 -2
  71. package/dist/commonjs/api/vectorStoreFileBatches/operations.js.map +1 -1
  72. package/dist/commonjs/classic/vectorStoreFileBatches/index.d.ts +2 -2
  73. package/dist/commonjs/classic/vectorStoreFileBatches/index.d.ts.map +1 -1
  74. package/dist/commonjs/classic/vectorStoreFileBatches/index.js.map +1 -1
  75. package/dist/commonjs/constants.d.ts +1 -1
  76. package/dist/commonjs/constants.d.ts.map +1 -1
  77. package/dist/commonjs/constants.js +1 -1
  78. package/dist/commonjs/constants.js.map +1 -1
  79. package/dist/commonjs/index.d.ts +3 -2
  80. package/dist/commonjs/index.d.ts.map +1 -1
  81. package/dist/commonjs/index.js +4 -2
  82. package/dist/commonjs/index.js.map +1 -1
  83. package/dist/commonjs/models/index.d.ts +1 -1
  84. package/dist/commonjs/models/index.d.ts.map +1 -1
  85. package/dist/commonjs/models/index.js.map +1 -1
  86. package/dist/commonjs/models/models.d.ts +260 -22
  87. package/dist/commonjs/models/models.d.ts.map +1 -1
  88. package/dist/commonjs/models/models.js +377 -14
  89. package/dist/commonjs/models/models.js.map +1 -1
  90. package/dist/commonjs/tsdoc-metadata.json +11 -11
  91. package/dist/commonjs/utils/MCPTool.d.ts +78 -0
  92. package/dist/commonjs/utils/MCPTool.d.ts.map +1 -0
  93. package/dist/commonjs/utils/MCPTool.js +132 -0
  94. package/dist/commonjs/utils/MCPTool.js.map +1 -0
  95. package/dist/commonjs/{utils.d.ts → utils/utils.d.ts} +61 -1
  96. package/dist/commonjs/utils/utils.d.ts.map +1 -0
  97. package/dist/commonjs/{utils.js → utils/utils.js} +90 -0
  98. package/dist/commonjs/utils/utils.js.map +1 -0
  99. package/dist/esm/api/agentsContext.js +2 -2
  100. package/dist/esm/api/agentsContext.js.map +1 -1
  101. package/dist/esm/api/files/operations.js +6 -6
  102. package/dist/esm/api/files/operations.js.map +1 -1
  103. package/dist/esm/api/messages/operations.js +8 -8
  104. package/dist/esm/api/messages/operations.js.map +1 -1
  105. package/dist/esm/api/operations.js +12 -12
  106. package/dist/esm/api/operations.js.map +1 -1
  107. package/dist/esm/api/runSteps/operations.js +4 -4
  108. package/dist/esm/api/runSteps/operations.js.map +1 -1
  109. package/dist/esm/api/runs/operations.d.ts.map +1 -1
  110. package/dist/esm/api/runs/operations.js +20 -14
  111. package/dist/esm/api/runs/operations.js.map +1 -1
  112. package/dist/esm/api/runs/options.d.ts +7 -1
  113. package/dist/esm/api/runs/options.d.ts.map +1 -1
  114. package/dist/esm/api/runs/options.js.map +1 -1
  115. package/dist/esm/api/threads/operations.js +10 -10
  116. package/dist/esm/api/threads/operations.js.map +1 -1
  117. package/dist/esm/api/vectorStoreFileBatches/operations.d.ts +2 -2
  118. package/dist/esm/api/vectorStoreFileBatches/operations.d.ts.map +1 -1
  119. package/dist/esm/api/vectorStoreFileBatches/operations.js +2 -2
  120. package/dist/esm/api/vectorStoreFileBatches/operations.js.map +1 -1
  121. package/dist/esm/classic/vectorStoreFileBatches/index.d.ts +2 -2
  122. package/dist/esm/classic/vectorStoreFileBatches/index.d.ts.map +1 -1
  123. package/dist/esm/classic/vectorStoreFileBatches/index.js.map +1 -1
  124. package/dist/esm/constants.d.ts +1 -1
  125. package/dist/esm/constants.d.ts.map +1 -1
  126. package/dist/esm/constants.js +1 -1
  127. package/dist/esm/constants.js.map +1 -1
  128. package/dist/esm/index.d.ts +3 -2
  129. package/dist/esm/index.d.ts.map +1 -1
  130. package/dist/esm/index.js +2 -1
  131. package/dist/esm/index.js.map +1 -1
  132. package/dist/esm/models/index.d.ts +1 -1
  133. package/dist/esm/models/index.d.ts.map +1 -1
  134. package/dist/esm/models/index.js.map +1 -1
  135. package/dist/esm/models/models.d.ts +260 -22
  136. package/dist/esm/models/models.d.ts.map +1 -1
  137. package/dist/esm/models/models.js +332 -12
  138. package/dist/esm/models/models.js.map +1 -1
  139. package/dist/esm/utils/MCPTool.d.ts +78 -0
  140. package/dist/esm/utils/MCPTool.d.ts.map +1 -0
  141. package/dist/esm/utils/MCPTool.js +128 -0
  142. package/dist/esm/utils/MCPTool.js.map +1 -0
  143. package/dist/{react-native → esm/utils}/utils.d.ts +61 -1
  144. package/dist/esm/utils/utils.d.ts.map +1 -0
  145. package/dist/{react-native → esm/utils}/utils.js +90 -0
  146. package/dist/esm/utils/utils.js.map +1 -0
  147. package/dist/react-native/api/agentsContext.js +2 -2
  148. package/dist/react-native/api/agentsContext.js.map +1 -1
  149. package/dist/react-native/api/files/operations.js +6 -6
  150. package/dist/react-native/api/files/operations.js.map +1 -1
  151. package/dist/react-native/api/messages/operations.js +8 -8
  152. package/dist/react-native/api/messages/operations.js.map +1 -1
  153. package/dist/react-native/api/operations.js +12 -12
  154. package/dist/react-native/api/operations.js.map +1 -1
  155. package/dist/react-native/api/runSteps/operations.js +4 -4
  156. package/dist/react-native/api/runSteps/operations.js.map +1 -1
  157. package/dist/react-native/api/runs/operations.d.ts.map +1 -1
  158. package/dist/react-native/api/runs/operations.js +20 -14
  159. package/dist/react-native/api/runs/operations.js.map +1 -1
  160. package/dist/react-native/api/runs/options.d.ts +7 -1
  161. package/dist/react-native/api/runs/options.d.ts.map +1 -1
  162. package/dist/react-native/api/runs/options.js.map +1 -1
  163. package/dist/react-native/api/threads/operations.js +10 -10
  164. package/dist/react-native/api/threads/operations.js.map +1 -1
  165. package/dist/react-native/api/vectorStoreFileBatches/operations.d.ts +2 -2
  166. package/dist/react-native/api/vectorStoreFileBatches/operations.d.ts.map +1 -1
  167. package/dist/react-native/api/vectorStoreFileBatches/operations.js +2 -2
  168. package/dist/react-native/api/vectorStoreFileBatches/operations.js.map +1 -1
  169. package/dist/react-native/classic/vectorStoreFileBatches/index.d.ts +2 -2
  170. package/dist/react-native/classic/vectorStoreFileBatches/index.d.ts.map +1 -1
  171. package/dist/react-native/classic/vectorStoreFileBatches/index.js.map +1 -1
  172. package/dist/react-native/constants.d.ts +1 -1
  173. package/dist/react-native/constants.d.ts.map +1 -1
  174. package/dist/react-native/constants.js +1 -1
  175. package/dist/react-native/constants.js.map +1 -1
  176. package/dist/react-native/index.d.ts +3 -2
  177. package/dist/react-native/index.d.ts.map +1 -1
  178. package/dist/react-native/index.js +2 -1
  179. package/dist/react-native/index.js.map +1 -1
  180. package/dist/react-native/models/index.d.ts +1 -1
  181. package/dist/react-native/models/index.d.ts.map +1 -1
  182. package/dist/react-native/models/index.js.map +1 -1
  183. package/dist/react-native/models/models.d.ts +260 -22
  184. package/dist/react-native/models/models.d.ts.map +1 -1
  185. package/dist/react-native/models/models.js +332 -12
  186. package/dist/react-native/models/models.js.map +1 -1
  187. package/dist/react-native/utils/MCPTool.d.ts +78 -0
  188. package/dist/react-native/utils/MCPTool.d.ts.map +1 -0
  189. package/dist/react-native/utils/MCPTool.js +128 -0
  190. package/dist/react-native/utils/MCPTool.js.map +1 -0
  191. package/dist/{esm → react-native/utils}/utils.d.ts +61 -1
  192. package/dist/react-native/utils/utils.d.ts.map +1 -0
  193. package/dist/{browser → react-native/utils}/utils.js +90 -0
  194. package/dist/react-native/utils/utils.js.map +1 -0
  195. package/package.json +1 -1
  196. package/dist/browser/utils.d.ts.map +0 -1
  197. package/dist/browser/utils.js.map +0 -1
  198. package/dist/commonjs/utils.d.ts.map +0 -1
  199. package/dist/commonjs/utils.js.map +0 -1
  200. package/dist/esm/utils.d.ts.map +0 -1
  201. package/dist/esm/utils.js.map +0 -1
  202. package/dist/react-native/utils.d.ts.map +0 -1
  203. package/dist/react-native/utils.js.map +0 -1
@@ -2,13 +2,13 @@ import type { FileContents } from "../static-helpers/multipartHelpers.js";
2
2
  /** An abstract representation of an input tool definition that an agent can use. */
3
3
  export interface ToolDefinition {
4
4
  /** The object type. */
5
- /** The discriminator possible values: code_interpreter, file_search, function, bing_grounding, azure_ai_search, openapi, connected_agent, azure_function */
5
+ /** The discriminator possible values: code_interpreter, file_search, function, bing_grounding, fabric_dataagent, sharepoint_grounding, azure_ai_search, openapi, bing_custom_search, connected_agent, deep_research, mcp, azure_function */
6
6
  type: string;
7
7
  }
8
8
  export declare function toolDefinitionSerializer(item: ToolDefinition): any;
9
9
  export declare function toolDefinitionDeserializer(item: any): ToolDefinition;
10
10
  /** Alias for ToolDefinitionUnion */
11
- export type ToolDefinitionUnion = CodeInterpreterToolDefinition | FileSearchToolDefinition | FunctionToolDefinition | BingGroundingToolDefinition | AzureAISearchToolDefinition | OpenApiToolDefinition | ConnectedAgentToolDefinition | AzureFunctionToolDefinition | ToolDefinition;
11
+ export type ToolDefinitionUnion = CodeInterpreterToolDefinition | FileSearchToolDefinition | FunctionToolDefinition | BingGroundingToolDefinition | MicrosoftFabricToolDefinition | SharepointToolDefinition | AzureAISearchToolDefinition | OpenApiToolDefinition | BingCustomSearchToolDefinition | ConnectedAgentToolDefinition | DeepResearchToolDefinition | MCPToolDefinition | AzureFunctionToolDefinition | ToolDefinition;
12
12
  export declare function toolDefinitionUnionSerializer(item: ToolDefinitionUnion): any;
13
13
  export declare function toolDefinitionUnionDeserializer(item: any): ToolDefinitionUnion;
14
14
  /** The input definition information for a code interpreter tool as used to configure an agent. */
@@ -89,7 +89,7 @@ export interface BingGroundingSearchToolParameters {
89
89
  export declare function bingGroundingSearchToolParametersSerializer(item: BingGroundingSearchToolParameters): any;
90
90
  export declare function bingGroundingSearchToolParametersDeserializer(item: any): BingGroundingSearchToolParameters;
91
91
  export declare function bingGroundingSearchConfigurationArraySerializer(result: Array<BingGroundingSearchConfiguration>): any[];
92
- export declare function bingGroundingSearchConfigurationArrayDeserializer(result: Array<BingGroundingSearchConfiguration> | undefined): any[];
92
+ export declare function bingGroundingSearchConfigurationArrayDeserializer(result: Array<BingGroundingSearchConfiguration>): any[];
93
93
  /** Search configuration for Bing Grounding */
94
94
  export interface BingGroundingSearchConfiguration {
95
95
  /** Connection id for grounding with bing search */
@@ -105,6 +105,53 @@ export interface BingGroundingSearchConfiguration {
105
105
  }
106
106
  export declare function bingGroundingSearchConfigurationSerializer(item: BingGroundingSearchConfiguration): any;
107
107
  export declare function bingGroundingSearchConfigurationDeserializer(item: any): BingGroundingSearchConfiguration;
108
+ /** The input definition information for a Microsoft Fabric tool as used to configure an agent. */
109
+ export interface MicrosoftFabricToolDefinition extends ToolDefinition {
110
+ /** The object type, which is always 'fabric_dataagent'. */
111
+ type: "fabric_dataagent";
112
+ /** The fabric data agent tool parameters. */
113
+ fabricDataagent: FabricDataAgentToolParameters;
114
+ }
115
+ export declare function microsoftFabricToolDefinitionSerializer(item: MicrosoftFabricToolDefinition): any;
116
+ export declare function microsoftFabricToolDefinitionDeserializer(item: any): MicrosoftFabricToolDefinition;
117
+ /** The fabric data agent tool parameters. */
118
+ export interface FabricDataAgentToolParameters {
119
+ /**
120
+ * The connections attached to this tool. There can be a maximum of 1 connection
121
+ * resource attached to the tool.
122
+ */
123
+ connectionList?: ToolConnection[];
124
+ }
125
+ export declare function fabricDataAgentToolParametersSerializer(item: FabricDataAgentToolParameters): any;
126
+ export declare function fabricDataAgentToolParametersDeserializer(item: any): FabricDataAgentToolParameters;
127
+ export declare function toolConnectionArraySerializer(result: Array<ToolConnection>): any[];
128
+ export declare function toolConnectionArrayDeserializer(result: Array<ToolConnection>): any[];
129
+ /** A connection resource. */
130
+ export interface ToolConnection {
131
+ /** A connection in a ToolConnectionList attached to this tool. */
132
+ connectionId: string;
133
+ }
134
+ export declare function toolConnectionSerializer(item: ToolConnection): any;
135
+ export declare function toolConnectionDeserializer(item: any): ToolConnection;
136
+ /** The input definition information for a sharepoint tool as used to configure an agent. */
137
+ export interface SharepointToolDefinition extends ToolDefinition {
138
+ /** The object type, which is always 'sharepoint_grounding'. */
139
+ type: "sharepoint_grounding";
140
+ /** The sharepoint grounding tool parameters. */
141
+ sharepointGrounding: SharepointGroundingToolParameters;
142
+ }
143
+ export declare function sharepointToolDefinitionSerializer(item: SharepointToolDefinition): any;
144
+ export declare function sharepointToolDefinitionDeserializer(item: any): SharepointToolDefinition;
145
+ /** The sharepoint grounding tool parameters. */
146
+ export interface SharepointGroundingToolParameters {
147
+ /**
148
+ * The connections attached to this tool. There can be a maximum of 1 connection
149
+ * resource attached to the tool.
150
+ */
151
+ connectionList?: ToolConnection[];
152
+ }
153
+ export declare function sharepointGroundingToolParametersSerializer(item: SharepointGroundingToolParameters): any;
154
+ export declare function sharepointGroundingToolParametersDeserializer(item: any): SharepointGroundingToolParameters;
108
155
  /** The input definition information for an Azure AI search tool as used to configure an agent. */
109
156
  export interface AzureAISearchToolDefinition extends ToolDefinition {
110
157
  /** The object type, which is always 'azure_ai_search'. */
@@ -198,6 +245,28 @@ export declare function openApiManagedSecuritySchemeSerializer(item: OpenApiMana
198
245
  export declare function openApiManagedSecuritySchemeDeserializer(item: any): OpenApiManagedSecurityScheme;
199
246
  export declare function functionDefinitionArraySerializer(result: Array<FunctionDefinition>): any[];
200
247
  export declare function functionDefinitionArrayDeserializer(result: Array<FunctionDefinition>): any[];
248
+ /** The input definition information for a Bing custom search tool as used to configure an agent. */
249
+ export interface BingCustomSearchToolDefinition extends ToolDefinition {
250
+ /** The object type, which is always 'bing_custom_search'. */
251
+ type: "bing_custom_search";
252
+ /** The bing custom search tool parameters. */
253
+ bingCustomSearch: BingCustomSearchToolParameters;
254
+ }
255
+ export declare function bingCustomSearchToolDefinitionSerializer(item: BingCustomSearchToolDefinition): any;
256
+ export declare function bingCustomSearchToolDefinitionDeserializer(item: any): BingCustomSearchToolDefinition;
257
+ /** The bing custom search tool parameters. */
258
+ export interface BingCustomSearchToolParameters {
259
+ /**
260
+ * The connections attached to this tool. There can be a maximum of 1 connection
261
+ * resource attached to the tool.
262
+ */
263
+ searchConfigurations: BingCustomSearchConfiguration[];
264
+ }
265
+ export declare function bingCustomSearchToolParametersSerializer(item: BingCustomSearchToolParameters): any;
266
+ export declare function bingCustomSearchToolParametersDeserializer(item: any): BingCustomSearchToolParameters;
267
+ export declare function bingCustomSearchConfigurationArraySerializer(result: Array<BingCustomSearchConfiguration>): any[];
268
+ export declare function bingCustomSearchConfigurationArrayDeserializer(result: Array<BingCustomSearchConfiguration>): any[];
269
+ export declare function bingCustomSearchConfigurationDeserializer(item: any): BingCustomSearchConfiguration;
201
270
  /** The input definition information for a connected agent tool which defines a domain specific sub-agent */
202
271
  export interface ConnectedAgentToolDefinition extends ToolDefinition {
203
272
  /** The object type, which is always 'connected_agent'. */
@@ -207,6 +276,22 @@ export interface ConnectedAgentToolDefinition extends ToolDefinition {
207
276
  }
208
277
  export declare function connectedAgentToolDefinitionSerializer(item: ConnectedAgentToolDefinition): any;
209
278
  export declare function connectedAgentToolDefinitionDeserializer(item: any): ConnectedAgentToolDefinition;
279
+ /** A bing custom search configuration. */
280
+ export interface BingCustomSearchConfiguration {
281
+ /** Connection id for grounding with bing search */
282
+ connectionId: string;
283
+ /** Name of the custom configuration instance given to config. */
284
+ instanceName: string;
285
+ /** The market where the results come from. */
286
+ market?: string;
287
+ /** The language to use for user interface strings when calling Bing API. */
288
+ setLang?: string;
289
+ /** The number of search results to return in the bing api response */
290
+ count?: number;
291
+ /** Filter search results by a specific time range. Accepted values: https://learn.microsoft.com/bing/search-apis/bing-web-search/reference/query-parameters */
292
+ freshness?: string;
293
+ }
294
+ export declare function bingCustomSearchConfigurationSerializer(item: BingCustomSearchConfiguration): any;
210
295
  /** Information for connecting one agent to another as a tool */
211
296
  export interface ConnectedAgentDetails {
212
297
  /** The identifier of the child agent. */
@@ -218,6 +303,46 @@ export interface ConnectedAgentDetails {
218
303
  }
219
304
  export declare function connectedAgentDetailsSerializer(item: ConnectedAgentDetails): any;
220
305
  export declare function connectedAgentDetailsDeserializer(item: any): ConnectedAgentDetails;
306
+ /** The input definition information for a Deep Research tool as used to configure an agent. */
307
+ export interface DeepResearchToolDefinition extends ToolDefinition {
308
+ /** The object type, which is always 'deep_research'. */
309
+ type: "deep_research";
310
+ /** The deep_research tool definition configuration. */
311
+ deepResearch: DeepResearchDetails;
312
+ }
313
+ export declare function deepResearchToolDefinitionSerializer(item: DeepResearchToolDefinition): any;
314
+ export declare function deepResearchToolDefinitionDeserializer(item: any): DeepResearchToolDefinition;
315
+ /** The details of the Deep Research tool. */
316
+ export interface DeepResearchDetails {
317
+ /** The deep research model deployment name. */
318
+ model: string;
319
+ /** The array containing Bing grounding connection IDs to enhance deep research capabilities. */
320
+ bingGroundingConnections: DeepResearchBingGroundingConnection[];
321
+ }
322
+ export declare function deepResearchDetailsSerializer(item: DeepResearchDetails): any;
323
+ export declare function deepResearchDetailsDeserializer(item: any): DeepResearchDetails;
324
+ export declare function deepResearchBingGroundingConnectionArraySerializer(result: Array<DeepResearchBingGroundingConnection>): any[];
325
+ export declare function deepResearchBingGroundingConnectionArrayDeserializer(result: Array<DeepResearchBingGroundingConnection>): any[];
326
+ /** The connection resource ID for the Bing grounding resource . */
327
+ export interface DeepResearchBingGroundingConnection {
328
+ /** The connection ID for the Bing grounding connection. */
329
+ connectionId: string;
330
+ }
331
+ export declare function deepResearchBingGroundingConnectionSerializer(item: DeepResearchBingGroundingConnection): any;
332
+ export declare function deepResearchBingGroundingConnectionDeserializer(item: any): DeepResearchBingGroundingConnection;
333
+ /** The input definition information for a MCP tool which defines a MCP server endpoint */
334
+ export interface MCPToolDefinition extends ToolDefinition {
335
+ /** The object type, which is always 'mcp'. */
336
+ type: "mcp";
337
+ /** The label for the MCP server */
338
+ serverLabel: string;
339
+ /** The endpoint for the MCP server */
340
+ serverUrl: string;
341
+ /** List of allowed tools for MCP server */
342
+ allowedTools?: string[];
343
+ }
344
+ export declare function mcpToolDefinitionSerializer(item: MCPToolDefinition): any;
345
+ export declare function mcpToolDefinitionDeserializer(item: any): MCPToolDefinition;
221
346
  /** The input definition information for a azure function tool as used to configure an agent. */
222
347
  export interface AzureFunctionToolDefinition extends ToolDefinition {
223
348
  /** The object type, which is always 'azure_function'. */
@@ -268,6 +393,8 @@ export interface ToolResources {
268
393
  fileSearch?: FileSearchToolResource;
269
394
  /** Resources to be used by the `azure_ai_search` tool consisting of index IDs and names. */
270
395
  azureAISearch?: AzureAISearchToolResource;
396
+ /** Resources to be used by the `mcp` tool consisting of a server label and headers. */
397
+ mcp?: MCPToolResource[];
271
398
  }
272
399
  export declare function toolResourcesSerializer(item: ToolResources): any;
273
400
  export declare function toolResourcesDeserializer(item: any): ToolResources;
@@ -373,6 +500,19 @@ export declare function aiSearchIndexResourceSerializer(item: AISearchIndexResou
373
500
  export declare function aiSearchIndexResourceDeserializer(item: any): AISearchIndexResource;
374
501
  /** Available query types for Azure AI Search tool. */
375
502
  export type AzureAISearchQueryType = "simple" | "semantic" | "vector" | "vector_simple_hybrid" | "vector_semantic_hybrid";
503
+ export declare function mcpToolResourceArraySerializer(result: Array<MCPToolResource>): any[];
504
+ export declare function mcpToolResourceArrayDeserializer(result: Array<MCPToolResource>): any[];
505
+ /** A set of resources that are used by the `mcp` tool. */
506
+ export interface MCPToolResource {
507
+ /** The label for the MCP server */
508
+ serverLabel: string;
509
+ /** The headers for the MCP server updates */
510
+ headers: Record<string, string>;
511
+ /** Does MCP server require approval */
512
+ requireApproval?: "never" | "always";
513
+ }
514
+ export declare function mcpToolResourceSerializer(item: MCPToolResource): any;
515
+ export declare function mcpToolResourceDeserializer(item: any): MCPToolResource;
376
516
  /**
377
517
  * An object describing the expected output of the model. If `json_object` only `function` type `tools` are allowed to be passed to the Run.
378
518
  * If `text` the model can return text or any value needed.
@@ -612,10 +752,6 @@ export declare function messageAttachmentToolDefinitionArrayDeserializer(result:
612
752
  export type MessageAttachmentToolDefinition = CodeInterpreterToolDefinition | FileSearchToolDefinition;
613
753
  export declare function messageAttachmentToolDefinitionSerializer(item: MessageAttachmentToolDefinition): any;
614
754
  export declare function messageAttachmentToolDefinitionDeserializer(item: any): MessageAttachmentToolDefinition;
615
- /** Alias for _MessageAttachmentTool */
616
- export type _MessageAttachmentTool = CodeInterpreterToolDefinition | FileSearchToolDefinition;
617
- export declare function _messageAttachmentToolSerializer(item: _MessageAttachmentTool): any;
618
- export declare function _messageAttachmentToolDeserializer(item: any): _MessageAttachmentTool;
619
755
  /**
620
756
  * Controls for how a thread will be truncated prior to the run. Use this to control the initial
621
757
  * context window of the run.
@@ -644,7 +780,7 @@ export interface AgentsNamedToolChoice {
644
780
  export declare function agentsNamedToolChoiceSerializer(item: AgentsNamedToolChoice): any;
645
781
  export declare function agentsNamedToolChoiceDeserializer(item: any): AgentsNamedToolChoice;
646
782
  /** Available tool types for agents named tools. */
647
- export type AgentsNamedToolChoiceType = "function" | "code_interpreter" | "file_search" | "bing_grounding" | "azure_ai_search" | "connected_agent";
783
+ export type AgentsNamedToolChoiceType = "function" | "code_interpreter" | "file_search" | "bing_grounding" | "fabric_dataagent" | "sharepoint_grounding" | "azure_ai_search" | "bing_custom_search" | "connected_agent" | "deep_research" | "mcp";
648
784
  /** The function name that will be used, if using the `function` tool */
649
785
  export interface FunctionName {
650
786
  /** The name of the function to call */
@@ -723,12 +859,12 @@ export type RunStatus = "queued" | "in_progress" | "requires_action" | "cancelli
723
859
  /** An abstract representation of a required action for an agent thread run to continue. */
724
860
  export interface RequiredAction {
725
861
  /** The object type. */
726
- /** The discriminator possible values: submit_tool_outputs */
862
+ /** The discriminator possible values: submit_tool_outputs, submit_tool_approval */
727
863
  type: string;
728
864
  }
729
865
  export declare function requiredActionDeserializer(item: any): RequiredAction;
730
866
  /** Alias for RequiredActionUnion */
731
- export type RequiredActionUnion = SubmitToolOutputsAction | RequiredAction;
867
+ export type RequiredActionUnion = SubmitToolOutputsAction | SubmitToolApprovalAction | RequiredAction;
732
868
  export declare function requiredActionUnionDeserializer(item: any): RequiredActionUnion;
733
869
  /** The details for required tool calls that must be submitted for an agent thread run to continue. */
734
870
  export interface SubmitToolOutputsAction extends RequiredAction {
@@ -748,14 +884,14 @@ export declare function requiredToolCallUnionArrayDeserializer(result: Array<Req
748
884
  /** An abstract representation of a tool invocation needed by the model to continue a run. */
749
885
  export interface RequiredToolCall {
750
886
  /** The object type for the required tool call. */
751
- /** The discriminator possible values: function */
887
+ /** The discriminator possible values: function, mcp */
752
888
  type: string;
753
889
  /** The ID of the tool call. This ID must be referenced when submitting tool outputs. */
754
890
  id: string;
755
891
  }
756
892
  export declare function requiredToolCallDeserializer(item: any): RequiredToolCall;
757
893
  /** Alias for RequiredToolCallUnion */
758
- export type RequiredToolCallUnion = RequiredFunctionToolCall | RequiredToolCall;
894
+ export type RequiredToolCallUnion = RequiredFunctionToolCall | RequiredMcpToolCall | RequiredToolCall;
759
895
  export declare function requiredToolCallUnionDeserializer(item: any): RequiredToolCallUnion;
760
896
  /** A representation of a requested call to a function tool, needed by the model to continue evaluation of a run. */
761
897
  export interface RequiredFunctionToolCall extends RequiredToolCall {
@@ -773,6 +909,32 @@ export interface RequiredFunctionToolCallDetails {
773
909
  arguments: string;
774
910
  }
775
911
  export declare function requiredFunctionToolCallDetailsDeserializer(item: any): RequiredFunctionToolCallDetails;
912
+ /** A representation of a requested call to a MCP tool, needed by the model to continue evaluation of a run. */
913
+ export interface RequiredMcpToolCall extends RequiredToolCall {
914
+ /** The object type of the required tool call. Always 'mcp' for MCP tools. */
915
+ type: "mcp";
916
+ /** The arguments to use when invoking the mcp tool, as provided by the model. Arguments are presented as a JSON document that should be validated and parsed for evaluation. */
917
+ arguments: string;
918
+ /** The name of the function used on the MCP server. */
919
+ name: string;
920
+ /** The label of the MCP server. */
921
+ serverLabel: string;
922
+ }
923
+ export declare function requiredMcpToolCallDeserializer(item: any): RequiredMcpToolCall;
924
+ /** The details for required tool call approval that must be submitted for an agent thread run to continue. */
925
+ export interface SubmitToolApprovalAction extends RequiredAction {
926
+ /** The object type, which is always 'submit_tool_approval'. */
927
+ type: "submit_tool_approval";
928
+ /** The details describing tools that should be approved to continue run. */
929
+ submitToolApproval: SubmitToolApprovalDetails;
930
+ }
931
+ export declare function submitToolApprovalActionDeserializer(item: any): SubmitToolApprovalAction;
932
+ /** The details describing tools that should be approved. */
933
+ export interface SubmitToolApprovalDetails {
934
+ /** The list of tool calls that must be approved for the agent thread run to continue. */
935
+ toolCalls: RequiredToolCallUnion[];
936
+ }
937
+ export declare function submitToolApprovalDetailsDeserializer(item: any): SubmitToolApprovalDetails;
776
938
  /** The details of an error as encountered by an agent thread run. */
777
939
  export interface RunError {
778
940
  /** The status for the error. */
@@ -1025,7 +1187,18 @@ export interface ToolOutput {
1025
1187
  output?: string;
1026
1188
  }
1027
1189
  export declare function toolOutputSerializer(item: ToolOutput): any;
1190
+ /** The data provided during a tool outputs submission to resolve pending tool calls and allow the model to continue. */
1191
+ export interface ToolApproval {
1192
+ /** The ID of the tool call being resolved, as provided in the tool calls of a required action from a run. */
1193
+ toolCallId: string;
1194
+ /** The approval boolean value to be submitted. */
1195
+ approve: boolean;
1196
+ /** Headers to be attached to the approval. */
1197
+ headers?: Record<string, string>;
1198
+ }
1199
+ export declare function toolApprovalSerializer(item: ToolApproval): any;
1028
1200
  export declare function toolOutputArraySerializer(result: Array<ToolOutput>): any[];
1201
+ export declare function toolApprovalArraySerializer(result: Array<ToolApproval>): any[];
1029
1202
  /** Detailed information about a single step of an agent thread run. */
1030
1203
  export interface RunStep {
1031
1204
  /** The identifier, which can be referenced in API endpoints. */
@@ -1102,14 +1275,14 @@ export declare function runStepToolCallUnionArrayDeserializer(result: Array<RunS
1102
1275
  /** An abstract representation of a detailed tool call as recorded within a run step for an existing run. */
1103
1276
  export interface RunStepToolCall {
1104
1277
  /** The object type. */
1105
- /** The discriminator possible values: code_interpreter, file_search, bing_grounding, azure_ai_search, function, openapi */
1278
+ /** The discriminator possible values: code_interpreter, file_search, bing_grounding, azure_ai_search, mcp, sharepoint_grounding, fabric_dataagent, bing_custom_search, function, openapi, deep_research */
1106
1279
  type: string;
1107
1280
  /** The ID of the tool call. This ID must be referenced when you submit tool outputs. */
1108
1281
  id: string;
1109
1282
  }
1110
1283
  export declare function runStepToolCallDeserializer(item: any): RunStepToolCall;
1111
1284
  /** Alias for RunStepToolCallUnion */
1112
- export type RunStepToolCallUnion = RunStepCodeInterpreterToolCall | RunStepFileSearchToolCall | RunStepBingGroundingToolCall | RunStepAzureAISearchToolCall | RunStepFunctionToolCall | RunStepOpenAPIToolCall | RunStepToolCall;
1285
+ export type RunStepToolCallUnion = RunStepCodeInterpreterToolCall | RunStepFileSearchToolCall | RunStepBingGroundingToolCall | RunStepAzureAISearchToolCall | RunStepMcpToolCall | RunStepSharepointToolCall | RunStepMicrosoftFabricToolCall | RunStepBingCustomSearchToolCall | RunStepFunctionToolCall | RunStepOpenAPIToolCall | RunStepDeepResearchToolCall | RunStepToolCall;
1113
1286
  export declare function runStepToolCallUnionDeserializer(item: any): RunStepToolCallUnion;
1114
1287
  /**
1115
1288
  * A record of a call to a code interpreter tool, issued by the model in evaluation of a defined tool, that
@@ -1228,6 +1401,56 @@ export interface RunStepAzureAISearchToolCall extends RunStepToolCall {
1228
1401
  azureAISearch: Record<string, string>;
1229
1402
  }
1230
1403
  export declare function runStepAzureAISearchToolCallDeserializer(item: any): RunStepAzureAISearchToolCall;
1404
+ /**
1405
+ * A record of a call to a MCP tool, issued by the model in evaluation of a defined tool, that represents
1406
+ * executed MCP actions.
1407
+ */
1408
+ export interface RunStepMcpToolCall extends RunStepToolCall {
1409
+ /** The object type, which is always 'mcp'. */
1410
+ type: "mcp";
1411
+ /** Arguments to the MCP tool call, as provided by the model. Arguments are presented as a JSON document that should be validated and parsed for evaluation. */
1412
+ arguments: string;
1413
+ /** Name of the function used on the MCP server. */
1414
+ name: string;
1415
+ /** Output of the MCP tool call. */
1416
+ output: string;
1417
+ /** The label for the MCP server */
1418
+ serverLabel?: string;
1419
+ }
1420
+ export declare function runStepMcpToolCallDeserializer(item: any): RunStepMcpToolCall;
1421
+ /**
1422
+ * A record of a call to a SharePoint tool, issued by the model in evaluation of a defined tool, that represents
1423
+ * executed SharePoint actions.
1424
+ */
1425
+ export interface RunStepSharepointToolCall extends RunStepToolCall {
1426
+ /** The object type, which is always 'sharepoint_grounding'. */
1427
+ type: "sharepoint_grounding";
1428
+ /** Reserved for future use. */
1429
+ sharePoint: Record<string, string>;
1430
+ }
1431
+ export declare function runStepSharepointToolCallDeserializer(item: any): RunStepSharepointToolCall;
1432
+ /**
1433
+ * A record of a call to a Microsoft Fabric tool, issued by the model in evaluation of a defined tool, that represents
1434
+ * executed Microsoft Fabric operations.
1435
+ */
1436
+ export interface RunStepMicrosoftFabricToolCall extends RunStepToolCall {
1437
+ /** The object type, which is always 'fabric_dataagent'. */
1438
+ type: "fabric_dataagent";
1439
+ /** Reserved for future use. */
1440
+ microsoftFabric: Record<string, string>;
1441
+ }
1442
+ export declare function runStepMicrosoftFabricToolCallDeserializer(item: any): RunStepMicrosoftFabricToolCall;
1443
+ /**
1444
+ * A record of a call to a bing custom search tool, issued by the model in evaluation of a defined tool, that represents
1445
+ * executed search with bing custom search.
1446
+ */
1447
+ export interface RunStepBingCustomSearchToolCall extends RunStepToolCall {
1448
+ /** The object type, which is always 'bing_custom_search'. */
1449
+ type: "bing_custom_search";
1450
+ /** Reserved for future use. */
1451
+ bingCustomSearch: Record<string, string>;
1452
+ }
1453
+ export declare function runStepBingCustomSearchToolCallDeserializer(item: any): RunStepBingCustomSearchToolCall;
1231
1454
  /**
1232
1455
  * A record of a call to a function tool, issued by the model in evaluation of a defined tool, that represents the inputs
1233
1456
  * and output consumed and emitted by the specified function.
@@ -1258,6 +1481,25 @@ export interface RunStepOpenAPIToolCall extends RunStepToolCall {
1258
1481
  openAPI: Record<string, string>;
1259
1482
  }
1260
1483
  export declare function runStepOpenAPIToolCallDeserializer(item: any): RunStepOpenAPIToolCall;
1484
+ /**
1485
+ * A record of a call to a Deep Research tool, issued by the model in evaluation of a defined tool, that represents
1486
+ * executed deep research operations.
1487
+ */
1488
+ export interface RunStepDeepResearchToolCall extends RunStepToolCall {
1489
+ /** The object type, which is always 'deep_research'. */
1490
+ type: "deep_research";
1491
+ /** The detailed information about the automated browser tasks performed by the model. */
1492
+ deepResearch: RunStepDeepResearchToolCallDetails;
1493
+ }
1494
+ export declare function runStepDeepResearchToolCallDeserializer(item: any): RunStepDeepResearchToolCall;
1495
+ /** The detailed information about the deep research tasks performed by the model. */
1496
+ export interface RunStepDeepResearchToolCallDetails {
1497
+ /** The input provided by the model to the deep research tool. */
1498
+ input: string;
1499
+ /** The final output for the deep research tool. */
1500
+ output?: string;
1501
+ }
1502
+ export declare function runStepDeepResearchToolCallDetailsDeserializer(item: any): RunStepDeepResearchToolCallDetails;
1261
1503
  /** The error information associated with a failed run step. */
1262
1504
  export interface RunStepError {
1263
1505
  /** The error code for this error. */
@@ -1335,11 +1577,7 @@ export interface _UploadFileRequest {
1335
1577
  /** The name of the file. */
1336
1578
  filename?: string;
1337
1579
  }
1338
- export declare function _uploadFileRequestSerializer(item: _UploadFileRequest): Array<{
1339
- name: "file" | "purpose";
1340
- body: any;
1341
- filename?: string;
1342
- }>;
1580
+ export declare function _uploadFileRequestSerializer(item: _UploadFileRequest): any;
1343
1581
  /** A status response from a file deletion operation. */
1344
1582
  export interface FileDeletionStatus {
1345
1583
  /** The ID of the resource specified for deletion. */
@@ -1843,10 +2081,8 @@ export interface RunStepDeltaCodeInterpreterImageOutputObject {
1843
2081
  }
1844
2082
  export declare function runStepDeltaCodeInterpreterImageOutputObjectDeserializer(item: any): RunStepDeltaCodeInterpreterImageOutputObject;
1845
2083
  /** Alias for AgentStreamEvent */
1846
- export type AgentStreamEvent = string | (ThreadStreamEvent | RunStreamEvent | RunStepStreamEvent | MessageStreamEvent | ErrorEvent | DoneEvent);
2084
+ export type AgentStreamEvent = string | ThreadStreamEvent | RunStreamEvent | RunStepStreamEvent | MessageStreamEvent | ErrorEvent | DoneEvent;
1847
2085
  export declare function agentStreamEventDeserializer(item: any): AgentStreamEvent;
1848
- /** Alias for _ */
1849
- export type _ = ThreadStreamEvent | RunStreamEvent | RunStepStreamEvent | MessageStreamEvent | ErrorEvent | DoneEvent;
1850
2086
  /** Thread operation related streaming events */
1851
2087
  export declare enum ThreadStreamEvent {
1852
2088
  /** Event emitted when a thread is created */
@@ -1923,6 +2159,8 @@ export type RunAdditionalFieldList = "step_details.tool_calls[*].file_search.res
1923
2159
  export type VectorStoreFileStatusFilter = "in_progress" | "completed" | "failed" | "cancelled";
1924
2160
  /** Azure AI Agents API versions */
1925
2161
  export declare enum KnownVersions {
2162
+ /** Azure AI API version 2025-05-15-preview. */
2163
+ V20250515Preview = "2025-05-15-preview",
1926
2164
  /** Azure AI API version 2025-05-01. */
1927
2165
  V20250501 = "2025-05-01",
1928
2166
  /** Azure AI API version v1. */