@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.
- package/README.md +103 -0
- package/dist/browser/api/agentsContext.js +2 -2
- package/dist/browser/api/agentsContext.js.map +1 -1
- package/dist/browser/api/files/operations.js +6 -6
- package/dist/browser/api/files/operations.js.map +1 -1
- package/dist/browser/api/messages/operations.js +8 -8
- package/dist/browser/api/messages/operations.js.map +1 -1
- package/dist/browser/api/operations.js +12 -12
- package/dist/browser/api/operations.js.map +1 -1
- package/dist/browser/api/runSteps/operations.js +4 -4
- package/dist/browser/api/runSteps/operations.js.map +1 -1
- package/dist/browser/api/runs/operations.d.ts.map +1 -1
- package/dist/browser/api/runs/operations.js +20 -14
- package/dist/browser/api/runs/operations.js.map +1 -1
- package/dist/browser/api/runs/options.d.ts +7 -1
- package/dist/browser/api/runs/options.d.ts.map +1 -1
- package/dist/browser/api/runs/options.js.map +1 -1
- package/dist/browser/api/threads/operations.js +10 -10
- package/dist/browser/api/threads/operations.js.map +1 -1
- package/dist/browser/api/vectorStoreFileBatches/operations.d.ts +2 -2
- package/dist/browser/api/vectorStoreFileBatches/operations.d.ts.map +1 -1
- package/dist/browser/api/vectorStoreFileBatches/operations.js +2 -2
- package/dist/browser/api/vectorStoreFileBatches/operations.js.map +1 -1
- package/dist/browser/classic/vectorStoreFileBatches/index.d.ts +2 -2
- package/dist/browser/classic/vectorStoreFileBatches/index.d.ts.map +1 -1
- package/dist/browser/classic/vectorStoreFileBatches/index.js.map +1 -1
- package/dist/browser/constants.d.ts +1 -1
- package/dist/browser/constants.d.ts.map +1 -1
- package/dist/browser/constants.js +1 -1
- package/dist/browser/constants.js.map +1 -1
- package/dist/browser/index.d.ts +3 -2
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +2 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/models/index.d.ts +1 -1
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +260 -22
- package/dist/browser/models/models.d.ts.map +1 -1
- package/dist/browser/models/models.js +332 -12
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/utils/MCPTool.d.ts +78 -0
- package/dist/browser/utils/MCPTool.d.ts.map +1 -0
- package/dist/browser/utils/MCPTool.js +128 -0
- package/dist/browser/utils/MCPTool.js.map +1 -0
- package/dist/browser/{utils.d.ts → utils/utils.d.ts} +61 -1
- package/dist/browser/utils/utils.d.ts.map +1 -0
- package/dist/{esm → browser/utils}/utils.js +90 -0
- package/dist/browser/utils/utils.js.map +1 -0
- package/dist/commonjs/api/agentsContext.js +2 -2
- package/dist/commonjs/api/agentsContext.js.map +1 -1
- package/dist/commonjs/api/files/operations.js +6 -6
- package/dist/commonjs/api/files/operations.js.map +1 -1
- package/dist/commonjs/api/messages/operations.js +8 -8
- package/dist/commonjs/api/messages/operations.js.map +1 -1
- package/dist/commonjs/api/operations.js +12 -12
- package/dist/commonjs/api/operations.js.map +1 -1
- package/dist/commonjs/api/runSteps/operations.js +4 -4
- package/dist/commonjs/api/runSteps/operations.js.map +1 -1
- package/dist/commonjs/api/runs/operations.d.ts.map +1 -1
- package/dist/commonjs/api/runs/operations.js +19 -13
- package/dist/commonjs/api/runs/operations.js.map +1 -1
- package/dist/commonjs/api/runs/options.d.ts +7 -1
- package/dist/commonjs/api/runs/options.d.ts.map +1 -1
- package/dist/commonjs/api/runs/options.js.map +1 -1
- package/dist/commonjs/api/threads/operations.js +10 -10
- package/dist/commonjs/api/threads/operations.js.map +1 -1
- package/dist/commonjs/api/vectorStoreFileBatches/operations.d.ts +2 -2
- package/dist/commonjs/api/vectorStoreFileBatches/operations.d.ts.map +1 -1
- package/dist/commonjs/api/vectorStoreFileBatches/operations.js +2 -2
- package/dist/commonjs/api/vectorStoreFileBatches/operations.js.map +1 -1
- package/dist/commonjs/classic/vectorStoreFileBatches/index.d.ts +2 -2
- package/dist/commonjs/classic/vectorStoreFileBatches/index.d.ts.map +1 -1
- package/dist/commonjs/classic/vectorStoreFileBatches/index.js.map +1 -1
- package/dist/commonjs/constants.d.ts +1 -1
- package/dist/commonjs/constants.d.ts.map +1 -1
- package/dist/commonjs/constants.js +1 -1
- package/dist/commonjs/constants.js.map +1 -1
- package/dist/commonjs/index.d.ts +3 -2
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +4 -2
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +1 -1
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/models.d.ts +260 -22
- package/dist/commonjs/models/models.d.ts.map +1 -1
- package/dist/commonjs/models/models.js +377 -14
- package/dist/commonjs/models/models.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/commonjs/utils/MCPTool.d.ts +78 -0
- package/dist/commonjs/utils/MCPTool.d.ts.map +1 -0
- package/dist/commonjs/utils/MCPTool.js +132 -0
- package/dist/commonjs/utils/MCPTool.js.map +1 -0
- package/dist/commonjs/{utils.d.ts → utils/utils.d.ts} +61 -1
- package/dist/commonjs/utils/utils.d.ts.map +1 -0
- package/dist/commonjs/{utils.js → utils/utils.js} +90 -0
- package/dist/commonjs/utils/utils.js.map +1 -0
- package/dist/esm/api/agentsContext.js +2 -2
- package/dist/esm/api/agentsContext.js.map +1 -1
- package/dist/esm/api/files/operations.js +6 -6
- package/dist/esm/api/files/operations.js.map +1 -1
- package/dist/esm/api/messages/operations.js +8 -8
- package/dist/esm/api/messages/operations.js.map +1 -1
- package/dist/esm/api/operations.js +12 -12
- package/dist/esm/api/operations.js.map +1 -1
- package/dist/esm/api/runSteps/operations.js +4 -4
- package/dist/esm/api/runSteps/operations.js.map +1 -1
- package/dist/esm/api/runs/operations.d.ts.map +1 -1
- package/dist/esm/api/runs/operations.js +20 -14
- package/dist/esm/api/runs/operations.js.map +1 -1
- package/dist/esm/api/runs/options.d.ts +7 -1
- package/dist/esm/api/runs/options.d.ts.map +1 -1
- package/dist/esm/api/runs/options.js.map +1 -1
- package/dist/esm/api/threads/operations.js +10 -10
- package/dist/esm/api/threads/operations.js.map +1 -1
- package/dist/esm/api/vectorStoreFileBatches/operations.d.ts +2 -2
- package/dist/esm/api/vectorStoreFileBatches/operations.d.ts.map +1 -1
- package/dist/esm/api/vectorStoreFileBatches/operations.js +2 -2
- package/dist/esm/api/vectorStoreFileBatches/operations.js.map +1 -1
- package/dist/esm/classic/vectorStoreFileBatches/index.d.ts +2 -2
- package/dist/esm/classic/vectorStoreFileBatches/index.d.ts.map +1 -1
- package/dist/esm/classic/vectorStoreFileBatches/index.js.map +1 -1
- package/dist/esm/constants.d.ts +1 -1
- package/dist/esm/constants.d.ts.map +1 -1
- package/dist/esm/constants.js +1 -1
- package/dist/esm/constants.js.map +1 -1
- package/dist/esm/index.d.ts +3 -2
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/index.d.ts +1 -1
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +260 -22
- package/dist/esm/models/models.d.ts.map +1 -1
- package/dist/esm/models/models.js +332 -12
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/utils/MCPTool.d.ts +78 -0
- package/dist/esm/utils/MCPTool.d.ts.map +1 -0
- package/dist/esm/utils/MCPTool.js +128 -0
- package/dist/esm/utils/MCPTool.js.map +1 -0
- package/dist/{react-native → esm/utils}/utils.d.ts +61 -1
- package/dist/esm/utils/utils.d.ts.map +1 -0
- package/dist/{react-native → esm/utils}/utils.js +90 -0
- package/dist/esm/utils/utils.js.map +1 -0
- package/dist/react-native/api/agentsContext.js +2 -2
- package/dist/react-native/api/agentsContext.js.map +1 -1
- package/dist/react-native/api/files/operations.js +6 -6
- package/dist/react-native/api/files/operations.js.map +1 -1
- package/dist/react-native/api/messages/operations.js +8 -8
- package/dist/react-native/api/messages/operations.js.map +1 -1
- package/dist/react-native/api/operations.js +12 -12
- package/dist/react-native/api/operations.js.map +1 -1
- package/dist/react-native/api/runSteps/operations.js +4 -4
- package/dist/react-native/api/runSteps/operations.js.map +1 -1
- package/dist/react-native/api/runs/operations.d.ts.map +1 -1
- package/dist/react-native/api/runs/operations.js +20 -14
- package/dist/react-native/api/runs/operations.js.map +1 -1
- package/dist/react-native/api/runs/options.d.ts +7 -1
- package/dist/react-native/api/runs/options.d.ts.map +1 -1
- package/dist/react-native/api/runs/options.js.map +1 -1
- package/dist/react-native/api/threads/operations.js +10 -10
- package/dist/react-native/api/threads/operations.js.map +1 -1
- package/dist/react-native/api/vectorStoreFileBatches/operations.d.ts +2 -2
- package/dist/react-native/api/vectorStoreFileBatches/operations.d.ts.map +1 -1
- package/dist/react-native/api/vectorStoreFileBatches/operations.js +2 -2
- package/dist/react-native/api/vectorStoreFileBatches/operations.js.map +1 -1
- package/dist/react-native/classic/vectorStoreFileBatches/index.d.ts +2 -2
- package/dist/react-native/classic/vectorStoreFileBatches/index.d.ts.map +1 -1
- package/dist/react-native/classic/vectorStoreFileBatches/index.js.map +1 -1
- package/dist/react-native/constants.d.ts +1 -1
- package/dist/react-native/constants.d.ts.map +1 -1
- package/dist/react-native/constants.js +1 -1
- package/dist/react-native/constants.js.map +1 -1
- package/dist/react-native/index.d.ts +3 -2
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +2 -1
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/models/index.d.ts +1 -1
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/models.d.ts +260 -22
- package/dist/react-native/models/models.d.ts.map +1 -1
- package/dist/react-native/models/models.js +332 -12
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/utils/MCPTool.d.ts +78 -0
- package/dist/react-native/utils/MCPTool.d.ts.map +1 -0
- package/dist/react-native/utils/MCPTool.js +128 -0
- package/dist/react-native/utils/MCPTool.js.map +1 -0
- package/dist/{esm → react-native/utils}/utils.d.ts +61 -1
- package/dist/react-native/utils/utils.d.ts.map +1 -0
- package/dist/{browser → react-native/utils}/utils.js +90 -0
- package/dist/react-native/utils/utils.js.map +1 -0
- package/package.json +1 -1
- package/dist/browser/utils.d.ts.map +0 -1
- package/dist/browser/utils.js.map +0 -1
- package/dist/commonjs/utils.d.ts.map +0 -1
- package/dist/commonjs/utils.js.map +0 -1
- package/dist/esm/utils.d.ts.map +0 -1
- package/dist/esm/utils.js.map +0 -1
- package/dist/react-native/utils.d.ts.map +0 -1
- package/dist/react-native/utils.js.map +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
4
4
|
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
|
|
5
|
-
import {
|
|
5
|
+
import { createFilePartDescriptor } from "../static-helpers/multipartHelpers.js";
|
|
6
6
|
export function toolDefinitionSerializer(item) {
|
|
7
7
|
return { type: item["type"] };
|
|
8
8
|
}
|
|
@@ -21,12 +21,22 @@ export function toolDefinitionUnionSerializer(item) {
|
|
|
21
21
|
return functionToolDefinitionSerializer(item);
|
|
22
22
|
case "bing_grounding":
|
|
23
23
|
return bingGroundingToolDefinitionSerializer(item);
|
|
24
|
+
case "fabric_dataagent":
|
|
25
|
+
return microsoftFabricToolDefinitionSerializer(item);
|
|
26
|
+
case "sharepoint_grounding":
|
|
27
|
+
return sharepointToolDefinitionSerializer(item);
|
|
24
28
|
case "azure_ai_search":
|
|
25
29
|
return azureAISearchToolDefinitionSerializer(item);
|
|
26
30
|
case "openapi":
|
|
27
31
|
return openApiToolDefinitionSerializer(item);
|
|
32
|
+
case "bing_custom_search":
|
|
33
|
+
return bingCustomSearchToolDefinitionSerializer(item);
|
|
28
34
|
case "connected_agent":
|
|
29
35
|
return connectedAgentToolDefinitionSerializer(item);
|
|
36
|
+
case "deep_research":
|
|
37
|
+
return deepResearchToolDefinitionSerializer(item);
|
|
38
|
+
case "mcp":
|
|
39
|
+
return mcpToolDefinitionSerializer(item);
|
|
30
40
|
case "azure_function":
|
|
31
41
|
return azureFunctionToolDefinitionSerializer(item);
|
|
32
42
|
default:
|
|
@@ -43,12 +53,22 @@ export function toolDefinitionUnionDeserializer(item) {
|
|
|
43
53
|
return functionToolDefinitionDeserializer(item);
|
|
44
54
|
case "bing_grounding":
|
|
45
55
|
return bingGroundingToolDefinitionDeserializer(item);
|
|
56
|
+
case "fabric_dataagent":
|
|
57
|
+
return microsoftFabricToolDefinitionDeserializer(item);
|
|
58
|
+
case "sharepoint_grounding":
|
|
59
|
+
return sharepointToolDefinitionDeserializer(item);
|
|
46
60
|
case "azure_ai_search":
|
|
47
61
|
return azureAISearchToolDefinitionDeserializer(item);
|
|
48
62
|
case "openapi":
|
|
49
63
|
return openApiToolDefinitionDeserializer(item);
|
|
64
|
+
case "bing_custom_search":
|
|
65
|
+
return bingCustomSearchToolDefinitionDeserializer(item);
|
|
50
66
|
case "connected_agent":
|
|
51
67
|
return connectedAgentToolDefinitionDeserializer(item);
|
|
68
|
+
case "deep_research":
|
|
69
|
+
return deepResearchToolDefinitionDeserializer(item);
|
|
70
|
+
case "mcp":
|
|
71
|
+
return mcpToolDefinitionDeserializer(item);
|
|
52
72
|
case "azure_function":
|
|
53
73
|
return azureFunctionToolDefinitionDeserializer(item);
|
|
54
74
|
default:
|
|
@@ -188,6 +208,76 @@ export function bingGroundingSearchConfigurationDeserializer(item) {
|
|
|
188
208
|
freshness: item["freshness"],
|
|
189
209
|
};
|
|
190
210
|
}
|
|
211
|
+
export function microsoftFabricToolDefinitionSerializer(item) {
|
|
212
|
+
return {
|
|
213
|
+
type: item["type"],
|
|
214
|
+
fabric_dataagent: fabricDataAgentToolParametersSerializer(item["fabricDataagent"]),
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
export function microsoftFabricToolDefinitionDeserializer(item) {
|
|
218
|
+
return {
|
|
219
|
+
type: item["type"],
|
|
220
|
+
fabricDataagent: fabricDataAgentToolParametersDeserializer(item["fabric_dataagent"]),
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
export function fabricDataAgentToolParametersSerializer(item) {
|
|
224
|
+
return {
|
|
225
|
+
connections: !item["connectionList"]
|
|
226
|
+
? item["connectionList"]
|
|
227
|
+
: toolConnectionArraySerializer(item["connectionList"]),
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
export function fabricDataAgentToolParametersDeserializer(item) {
|
|
231
|
+
return {
|
|
232
|
+
connectionList: !item["connections"]
|
|
233
|
+
? item["connections"]
|
|
234
|
+
: toolConnectionArrayDeserializer(item["connections"]),
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
export function toolConnectionArraySerializer(result) {
|
|
238
|
+
return result.map((item) => {
|
|
239
|
+
return toolConnectionSerializer(item);
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
export function toolConnectionArrayDeserializer(result) {
|
|
243
|
+
return result.map((item) => {
|
|
244
|
+
return toolConnectionDeserializer(item);
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
export function toolConnectionSerializer(item) {
|
|
248
|
+
return { connection_id: item["connectionId"] };
|
|
249
|
+
}
|
|
250
|
+
export function toolConnectionDeserializer(item) {
|
|
251
|
+
return {
|
|
252
|
+
connectionId: item["connection_id"],
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
export function sharepointToolDefinitionSerializer(item) {
|
|
256
|
+
return {
|
|
257
|
+
type: item["type"],
|
|
258
|
+
sharepoint_grounding: sharepointGroundingToolParametersSerializer(item["sharepointGrounding"]),
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
export function sharepointToolDefinitionDeserializer(item) {
|
|
262
|
+
return {
|
|
263
|
+
type: item["type"],
|
|
264
|
+
sharepointGrounding: sharepointGroundingToolParametersDeserializer(item["sharepoint_grounding"]),
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
export function sharepointGroundingToolParametersSerializer(item) {
|
|
268
|
+
return {
|
|
269
|
+
connections: !item["connectionList"]
|
|
270
|
+
? item["connectionList"]
|
|
271
|
+
: toolConnectionArraySerializer(item["connectionList"]),
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
export function sharepointGroundingToolParametersDeserializer(item) {
|
|
275
|
+
return {
|
|
276
|
+
connectionList: !item["connections"]
|
|
277
|
+
? item["connections"]
|
|
278
|
+
: toolConnectionArrayDeserializer(item["connections"]),
|
|
279
|
+
};
|
|
280
|
+
}
|
|
191
281
|
export function azureAISearchToolDefinitionSerializer(item) {
|
|
192
282
|
return { type: item["type"] };
|
|
193
283
|
}
|
|
@@ -327,6 +417,48 @@ export function functionDefinitionArrayDeserializer(result) {
|
|
|
327
417
|
return functionDefinitionDeserializer(item);
|
|
328
418
|
});
|
|
329
419
|
}
|
|
420
|
+
export function bingCustomSearchToolDefinitionSerializer(item) {
|
|
421
|
+
return {
|
|
422
|
+
type: item["type"],
|
|
423
|
+
bing_custom_search: bingCustomSearchToolParametersSerializer(item["bingCustomSearch"]),
|
|
424
|
+
};
|
|
425
|
+
}
|
|
426
|
+
export function bingCustomSearchToolDefinitionDeserializer(item) {
|
|
427
|
+
return {
|
|
428
|
+
type: item["type"],
|
|
429
|
+
bingCustomSearch: bingCustomSearchToolParametersDeserializer(item["bing_custom_search"]),
|
|
430
|
+
};
|
|
431
|
+
}
|
|
432
|
+
export function bingCustomSearchToolParametersSerializer(item) {
|
|
433
|
+
return {
|
|
434
|
+
search_configurations: bingCustomSearchConfigurationArraySerializer(item["searchConfigurations"]),
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
export function bingCustomSearchToolParametersDeserializer(item) {
|
|
438
|
+
return {
|
|
439
|
+
searchConfigurations: bingCustomSearchConfigurationArrayDeserializer(item["search_configurations"]),
|
|
440
|
+
};
|
|
441
|
+
}
|
|
442
|
+
export function bingCustomSearchConfigurationArraySerializer(result) {
|
|
443
|
+
return result.map((item) => {
|
|
444
|
+
return bingCustomSearchConfigurationSerializer(item);
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
export function bingCustomSearchConfigurationArrayDeserializer(result) {
|
|
448
|
+
return result.map((item) => {
|
|
449
|
+
return bingCustomSearchConfigurationDeserializer(item);
|
|
450
|
+
});
|
|
451
|
+
}
|
|
452
|
+
export function bingCustomSearchConfigurationDeserializer(item) {
|
|
453
|
+
return {
|
|
454
|
+
connectionId: item["connection_id"],
|
|
455
|
+
instanceName: item["instance_name"],
|
|
456
|
+
market: item["market"],
|
|
457
|
+
setLang: item["set_lang"],
|
|
458
|
+
count: item["count"],
|
|
459
|
+
freshness: item["freshness"],
|
|
460
|
+
};
|
|
461
|
+
}
|
|
330
462
|
export function connectedAgentToolDefinitionSerializer(item) {
|
|
331
463
|
return {
|
|
332
464
|
type: item["type"],
|
|
@@ -339,6 +471,16 @@ export function connectedAgentToolDefinitionDeserializer(item) {
|
|
|
339
471
|
connectedAgent: connectedAgentDetailsDeserializer(item["connected_agent"]),
|
|
340
472
|
};
|
|
341
473
|
}
|
|
474
|
+
export function bingCustomSearchConfigurationSerializer(item) {
|
|
475
|
+
return {
|
|
476
|
+
connection_id: item["connectionId"],
|
|
477
|
+
instance_name: item["instanceName"],
|
|
478
|
+
market: item["market"],
|
|
479
|
+
set_lang: item["setLang"],
|
|
480
|
+
count: item["count"],
|
|
481
|
+
freshness: item["freshness"],
|
|
482
|
+
};
|
|
483
|
+
}
|
|
342
484
|
export function connectedAgentDetailsSerializer(item) {
|
|
343
485
|
return {
|
|
344
486
|
id: item["id"],
|
|
@@ -353,6 +495,72 @@ export function connectedAgentDetailsDeserializer(item) {
|
|
|
353
495
|
description: item["description"],
|
|
354
496
|
};
|
|
355
497
|
}
|
|
498
|
+
export function deepResearchToolDefinitionSerializer(item) {
|
|
499
|
+
return {
|
|
500
|
+
type: item["type"],
|
|
501
|
+
deep_research: deepResearchDetailsSerializer(item["deepResearch"]),
|
|
502
|
+
};
|
|
503
|
+
}
|
|
504
|
+
export function deepResearchToolDefinitionDeserializer(item) {
|
|
505
|
+
return {
|
|
506
|
+
type: item["type"],
|
|
507
|
+
deepResearch: deepResearchDetailsDeserializer(item["deep_research"]),
|
|
508
|
+
};
|
|
509
|
+
}
|
|
510
|
+
export function deepResearchDetailsSerializer(item) {
|
|
511
|
+
return {
|
|
512
|
+
deep_research_model: item["model"],
|
|
513
|
+
bing_grounding_connections: deepResearchBingGroundingConnectionArraySerializer(item["bingGroundingConnections"]),
|
|
514
|
+
};
|
|
515
|
+
}
|
|
516
|
+
export function deepResearchDetailsDeserializer(item) {
|
|
517
|
+
return {
|
|
518
|
+
model: item["deep_research_model"],
|
|
519
|
+
bingGroundingConnections: deepResearchBingGroundingConnectionArrayDeserializer(item["bing_grounding_connections"]),
|
|
520
|
+
};
|
|
521
|
+
}
|
|
522
|
+
export function deepResearchBingGroundingConnectionArraySerializer(result) {
|
|
523
|
+
return result.map((item) => {
|
|
524
|
+
return deepResearchBingGroundingConnectionSerializer(item);
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
export function deepResearchBingGroundingConnectionArrayDeserializer(result) {
|
|
528
|
+
return result.map((item) => {
|
|
529
|
+
return deepResearchBingGroundingConnectionDeserializer(item);
|
|
530
|
+
});
|
|
531
|
+
}
|
|
532
|
+
export function deepResearchBingGroundingConnectionSerializer(item) {
|
|
533
|
+
return { connection_id: item["connectionId"] };
|
|
534
|
+
}
|
|
535
|
+
export function deepResearchBingGroundingConnectionDeserializer(item) {
|
|
536
|
+
return {
|
|
537
|
+
connectionId: item["connection_id"],
|
|
538
|
+
};
|
|
539
|
+
}
|
|
540
|
+
export function mcpToolDefinitionSerializer(item) {
|
|
541
|
+
return {
|
|
542
|
+
type: item["type"],
|
|
543
|
+
server_label: item["serverLabel"],
|
|
544
|
+
server_url: item["serverUrl"],
|
|
545
|
+
allowed_tools: !item["allowedTools"]
|
|
546
|
+
? item["allowedTools"]
|
|
547
|
+
: item["allowedTools"].map((p) => {
|
|
548
|
+
return p;
|
|
549
|
+
}),
|
|
550
|
+
};
|
|
551
|
+
}
|
|
552
|
+
export function mcpToolDefinitionDeserializer(item) {
|
|
553
|
+
return {
|
|
554
|
+
type: item["type"],
|
|
555
|
+
serverLabel: item["server_label"],
|
|
556
|
+
serverUrl: item["server_url"],
|
|
557
|
+
allowedTools: !item["allowed_tools"]
|
|
558
|
+
? item["allowed_tools"]
|
|
559
|
+
: item["allowed_tools"].map((p) => {
|
|
560
|
+
return p;
|
|
561
|
+
}),
|
|
562
|
+
};
|
|
563
|
+
}
|
|
356
564
|
export function azureFunctionToolDefinitionSerializer(item) {
|
|
357
565
|
return {
|
|
358
566
|
type: item["type"],
|
|
@@ -414,6 +622,7 @@ export function toolResourcesSerializer(item) {
|
|
|
414
622
|
azure_ai_search: !item["azureAISearch"]
|
|
415
623
|
? item["azureAISearch"]
|
|
416
624
|
: azureAISearchToolResourceSerializer(item["azureAISearch"]),
|
|
625
|
+
mcp: !item["mcp"] ? item["mcp"] : mcpToolResourceArraySerializer(item["mcp"]),
|
|
417
626
|
};
|
|
418
627
|
}
|
|
419
628
|
export function toolResourcesDeserializer(item) {
|
|
@@ -427,6 +636,7 @@ export function toolResourcesDeserializer(item) {
|
|
|
427
636
|
azureAISearch: !item["azure_ai_search"]
|
|
428
637
|
? item["azure_ai_search"]
|
|
429
638
|
: azureAISearchToolResourceDeserializer(item["azure_ai_search"]),
|
|
639
|
+
mcp: !item["mcp"] ? item["mcp"] : mcpToolResourceArrayDeserializer(item["mcp"]),
|
|
430
640
|
};
|
|
431
641
|
}
|
|
432
642
|
export function codeInterpreterToolResourceSerializer(item) {
|
|
@@ -581,6 +791,30 @@ export function aiSearchIndexResourceDeserializer(item) {
|
|
|
581
791
|
indexAssetId: item["index_asset_id"],
|
|
582
792
|
};
|
|
583
793
|
}
|
|
794
|
+
export function mcpToolResourceArraySerializer(result) {
|
|
795
|
+
return result.map((item) => {
|
|
796
|
+
return mcpToolResourceSerializer(item);
|
|
797
|
+
});
|
|
798
|
+
}
|
|
799
|
+
export function mcpToolResourceArrayDeserializer(result) {
|
|
800
|
+
return result.map((item) => {
|
|
801
|
+
return mcpToolResourceDeserializer(item);
|
|
802
|
+
});
|
|
803
|
+
}
|
|
804
|
+
export function mcpToolResourceSerializer(item) {
|
|
805
|
+
return {
|
|
806
|
+
server_label: item["serverLabel"],
|
|
807
|
+
headers: item["headers"],
|
|
808
|
+
require_approval: item["requireApproval"],
|
|
809
|
+
};
|
|
810
|
+
}
|
|
811
|
+
export function mcpToolResourceDeserializer(item) {
|
|
812
|
+
return {
|
|
813
|
+
serverLabel: item["server_label"],
|
|
814
|
+
headers: item["headers"],
|
|
815
|
+
requireApproval: item["require_approval"],
|
|
816
|
+
};
|
|
817
|
+
}
|
|
584
818
|
export function agentsResponseFormatSerializer(item) {
|
|
585
819
|
return { type: item["type"] };
|
|
586
820
|
}
|
|
@@ -798,12 +1032,6 @@ export function messageAttachmentToolDefinitionSerializer(item) {
|
|
|
798
1032
|
export function messageAttachmentToolDefinitionDeserializer(item) {
|
|
799
1033
|
return item;
|
|
800
1034
|
}
|
|
801
|
-
export function _messageAttachmentToolSerializer(item) {
|
|
802
|
-
return item;
|
|
803
|
-
}
|
|
804
|
-
export function _messageAttachmentToolDeserializer(item) {
|
|
805
|
-
return item;
|
|
806
|
-
}
|
|
807
1035
|
export function truncationObjectSerializer(item) {
|
|
808
1036
|
return { type: item["type"], last_messages: item["lastMessages"] };
|
|
809
1037
|
}
|
|
@@ -896,6 +1124,8 @@ export function requiredActionUnionDeserializer(item) {
|
|
|
896
1124
|
switch (item.type) {
|
|
897
1125
|
case "submit_tool_outputs":
|
|
898
1126
|
return submitToolOutputsActionDeserializer(item);
|
|
1127
|
+
case "submit_tool_approval":
|
|
1128
|
+
return submitToolApprovalActionDeserializer(item);
|
|
899
1129
|
default:
|
|
900
1130
|
return requiredActionDeserializer(item);
|
|
901
1131
|
}
|
|
@@ -926,6 +1156,8 @@ export function requiredToolCallUnionDeserializer(item) {
|
|
|
926
1156
|
switch (item.type) {
|
|
927
1157
|
case "function":
|
|
928
1158
|
return requiredFunctionToolCallDeserializer(item);
|
|
1159
|
+
case "mcp":
|
|
1160
|
+
return requiredMcpToolCallDeserializer(item);
|
|
929
1161
|
default:
|
|
930
1162
|
return requiredToolCallDeserializer(item);
|
|
931
1163
|
}
|
|
@@ -943,6 +1175,26 @@ export function requiredFunctionToolCallDetailsDeserializer(item) {
|
|
|
943
1175
|
arguments: item["arguments"],
|
|
944
1176
|
};
|
|
945
1177
|
}
|
|
1178
|
+
export function requiredMcpToolCallDeserializer(item) {
|
|
1179
|
+
return {
|
|
1180
|
+
type: item["type"],
|
|
1181
|
+
id: item["id"],
|
|
1182
|
+
arguments: item["arguments"],
|
|
1183
|
+
name: item["name"],
|
|
1184
|
+
serverLabel: item["server_label"],
|
|
1185
|
+
};
|
|
1186
|
+
}
|
|
1187
|
+
export function submitToolApprovalActionDeserializer(item) {
|
|
1188
|
+
return {
|
|
1189
|
+
type: item["type"],
|
|
1190
|
+
submitToolApproval: submitToolApprovalDetailsDeserializer(item["submit_tool_approval"]),
|
|
1191
|
+
};
|
|
1192
|
+
}
|
|
1193
|
+
export function submitToolApprovalDetailsDeserializer(item) {
|
|
1194
|
+
return {
|
|
1195
|
+
toolCalls: requiredToolCallUnionArrayDeserializer(item["tool_calls"]),
|
|
1196
|
+
};
|
|
1197
|
+
}
|
|
946
1198
|
export function runErrorDeserializer(item) {
|
|
947
1199
|
return {
|
|
948
1200
|
code: item["code"],
|
|
@@ -1159,11 +1411,23 @@ export function threadRunArrayDeserializer(result) {
|
|
|
1159
1411
|
export function toolOutputSerializer(item) {
|
|
1160
1412
|
return { tool_call_id: item["toolCallId"], output: item["output"] };
|
|
1161
1413
|
}
|
|
1414
|
+
export function toolApprovalSerializer(item) {
|
|
1415
|
+
return {
|
|
1416
|
+
tool_call_id: item["toolCallId"],
|
|
1417
|
+
approve: item["approve"],
|
|
1418
|
+
headers: item["headers"],
|
|
1419
|
+
};
|
|
1420
|
+
}
|
|
1162
1421
|
export function toolOutputArraySerializer(result) {
|
|
1163
1422
|
return result.map((item) => {
|
|
1164
1423
|
return toolOutputSerializer(item);
|
|
1165
1424
|
});
|
|
1166
1425
|
}
|
|
1426
|
+
export function toolApprovalArraySerializer(result) {
|
|
1427
|
+
return result.map((item) => {
|
|
1428
|
+
return toolApprovalSerializer(item);
|
|
1429
|
+
});
|
|
1430
|
+
}
|
|
1167
1431
|
export function runStepDeserializer(item) {
|
|
1168
1432
|
return {
|
|
1169
1433
|
id: item["id"],
|
|
@@ -1243,10 +1507,20 @@ export function runStepToolCallUnionDeserializer(item) {
|
|
|
1243
1507
|
return runStepBingGroundingToolCallDeserializer(item);
|
|
1244
1508
|
case "azure_ai_search":
|
|
1245
1509
|
return runStepAzureAISearchToolCallDeserializer(item);
|
|
1510
|
+
case "mcp":
|
|
1511
|
+
return runStepMcpToolCallDeserializer(item);
|
|
1512
|
+
case "sharepoint_grounding":
|
|
1513
|
+
return runStepSharepointToolCallDeserializer(item);
|
|
1514
|
+
case "fabric_dataagent":
|
|
1515
|
+
return runStepMicrosoftFabricToolCallDeserializer(item);
|
|
1516
|
+
case "bing_custom_search":
|
|
1517
|
+
return runStepBingCustomSearchToolCallDeserializer(item);
|
|
1246
1518
|
case "function":
|
|
1247
1519
|
return runStepFunctionToolCallDeserializer(item);
|
|
1248
1520
|
case "openapi":
|
|
1249
1521
|
return runStepOpenAPIToolCallDeserializer(item);
|
|
1522
|
+
case "deep_research":
|
|
1523
|
+
return runStepDeepResearchToolCallDeserializer(item);
|
|
1250
1524
|
default:
|
|
1251
1525
|
return runStepToolCallDeserializer(item);
|
|
1252
1526
|
}
|
|
@@ -1356,6 +1630,37 @@ export function runStepAzureAISearchToolCallDeserializer(item) {
|
|
|
1356
1630
|
azureAISearch: item["azure_ai_search"],
|
|
1357
1631
|
};
|
|
1358
1632
|
}
|
|
1633
|
+
export function runStepMcpToolCallDeserializer(item) {
|
|
1634
|
+
return {
|
|
1635
|
+
type: item["type"],
|
|
1636
|
+
id: item["id"],
|
|
1637
|
+
arguments: item["arguments"],
|
|
1638
|
+
name: item["name"],
|
|
1639
|
+
output: item["output"],
|
|
1640
|
+
serverLabel: item["server_label"],
|
|
1641
|
+
};
|
|
1642
|
+
}
|
|
1643
|
+
export function runStepSharepointToolCallDeserializer(item) {
|
|
1644
|
+
return {
|
|
1645
|
+
type: item["type"],
|
|
1646
|
+
id: item["id"],
|
|
1647
|
+
sharePoint: item["sharepoint_grounding"],
|
|
1648
|
+
};
|
|
1649
|
+
}
|
|
1650
|
+
export function runStepMicrosoftFabricToolCallDeserializer(item) {
|
|
1651
|
+
return {
|
|
1652
|
+
type: item["type"],
|
|
1653
|
+
id: item["id"],
|
|
1654
|
+
microsoftFabric: item["fabric_dataagent"],
|
|
1655
|
+
};
|
|
1656
|
+
}
|
|
1657
|
+
export function runStepBingCustomSearchToolCallDeserializer(item) {
|
|
1658
|
+
return {
|
|
1659
|
+
type: item["type"],
|
|
1660
|
+
id: item["id"],
|
|
1661
|
+
bingCustomSearch: item["bing_custom_search"],
|
|
1662
|
+
};
|
|
1663
|
+
}
|
|
1359
1664
|
export function runStepFunctionToolCallDeserializer(item) {
|
|
1360
1665
|
return {
|
|
1361
1666
|
type: item["type"],
|
|
@@ -1376,6 +1681,19 @@ export function runStepOpenAPIToolCallDeserializer(item) {
|
|
|
1376
1681
|
openAPI: item["openapi"],
|
|
1377
1682
|
};
|
|
1378
1683
|
}
|
|
1684
|
+
export function runStepDeepResearchToolCallDeserializer(item) {
|
|
1685
|
+
return {
|
|
1686
|
+
type: item["type"],
|
|
1687
|
+
id: item["id"],
|
|
1688
|
+
deepResearch: runStepDeepResearchToolCallDetailsDeserializer(item["deep_research"]),
|
|
1689
|
+
};
|
|
1690
|
+
}
|
|
1691
|
+
export function runStepDeepResearchToolCallDetailsDeserializer(item) {
|
|
1692
|
+
return {
|
|
1693
|
+
input: item["input"],
|
|
1694
|
+
output: item["output"],
|
|
1695
|
+
};
|
|
1696
|
+
}
|
|
1379
1697
|
export function runStepErrorDeserializer(item) {
|
|
1380
1698
|
return {
|
|
1381
1699
|
code: item["code"],
|
|
@@ -1425,11 +1743,11 @@ export function fileInfoDeserializer(item) {
|
|
|
1425
1743
|
};
|
|
1426
1744
|
}
|
|
1427
1745
|
export function _uploadFileRequestSerializer(item) {
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
];
|
|
1746
|
+
const filePart = createFilePartDescriptor("file", item["file"], "application/octet-stream");
|
|
1747
|
+
if (!filePart.filename) {
|
|
1748
|
+
filePart.filename = item["filename"];
|
|
1749
|
+
}
|
|
1750
|
+
return [filePart, { name: "purpose", body: item["purpose"] }];
|
|
1433
1751
|
}
|
|
1434
1752
|
export function fileDeletionStatusDeserializer(item) {
|
|
1435
1753
|
return {
|
|
@@ -1984,6 +2302,8 @@ export var DoneEvent;
|
|
|
1984
2302
|
/** Azure AI Agents API versions */
|
|
1985
2303
|
export var KnownVersions;
|
|
1986
2304
|
(function (KnownVersions) {
|
|
2305
|
+
/** Azure AI API version 2025-05-15-preview. */
|
|
2306
|
+
KnownVersions["V20250515Preview"] = "2025-05-15-preview";
|
|
1987
2307
|
/** Azure AI API version 2025-05-01. */
|
|
1988
2308
|
KnownVersions["V20250501"] = "2025-05-01";
|
|
1989
2309
|
/** Azure AI API version v1. */
|