@azure/ai-agents 1.1.0 → 1.2.0-alpha.20250923.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/dist/browser/api/agentsContext.js +3 -3
- package/dist/browser/api/agentsContext.js.map +1 -1
- package/dist/browser/api/messages/index.d.ts +2 -2
- package/dist/browser/api/messages/index.d.ts.map +1 -1
- package/dist/browser/api/messages/index.js +1 -1
- package/dist/browser/api/messages/index.js.map +1 -1
- package/dist/browser/api/messages/operations.d.ts +6 -2
- package/dist/browser/api/messages/operations.d.ts.map +1 -1
- package/dist/browser/api/messages/operations.js +31 -1
- package/dist/browser/api/messages/operations.js.map +1 -1
- package/dist/browser/api/messages/options.d.ts +3 -0
- package/dist/browser/api/messages/options.d.ts.map +1 -1
- package/dist/browser/api/messages/options.js.map +1 -1
- package/dist/browser/api/operations.d.ts +1 -2
- package/dist/browser/api/operations.d.ts.map +1 -1
- package/dist/browser/api/operations.js +2 -2
- package/dist/browser/api/operations.js.map +1 -1
- package/dist/browser/api/runSteps/operations.js +3 -3
- package/dist/browser/api/runSteps/operations.js.map +1 -1
- package/dist/browser/api/runs/operations.d.ts +3 -3
- package/dist/browser/api/runs/operations.d.ts.map +1 -1
- package/dist/browser/api/runs/operations.js +13 -8
- package/dist/browser/api/runs/operations.js.map +1 -1
- package/dist/browser/api/runs/options.d.ts +5 -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/vectorStoreFiles/operations.js +4 -4
- package/dist/browser/api/vectorStoreFiles/operations.js.map +1 -1
- package/dist/browser/api/vectorStores/operations.js +4 -4
- package/dist/browser/api/vectorStores/operations.js.map +1 -1
- package/dist/browser/classic/messages/index.d.ts +4 -2
- package/dist/browser/classic/messages/index.d.ts.map +1 -1
- package/dist/browser/classic/messages/index.js +2 -1
- package/dist/browser/classic/messages/index.js.map +1 -1
- package/dist/browser/classic/runs/index.d.ts.map +1 -1
- package/dist/browser/classic/runs/index.js +4 -1
- package/dist/browser/classic/runs/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 +4 -2
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +2 -0
- 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 +544 -18
- package/dist/browser/models/models.d.ts.map +1 -1
- package/dist/browser/models/models.js +653 -0
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/models/streamingModels.d.ts +18 -18
- package/dist/browser/models/streamingModels.d.ts.map +1 -1
- package/dist/browser/models/streamingModels.js.map +1 -1
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -1
- package/dist/browser/utils/MCPTool.d.ts +89 -0
- package/dist/browser/utils/MCPTool.d.ts.map +1 -0
- package/dist/browser/utils/MCPTool.js +160 -0
- package/dist/browser/utils/MCPTool.js.map +1 -0
- package/dist/browser/utils/OpenApiTool.d.ts +46 -0
- package/dist/browser/utils/OpenApiTool.d.ts.map +1 -0
- package/dist/browser/utils/OpenApiTool.js +84 -0
- package/dist/browser/utils/OpenApiTool.js.map +1 -0
- package/dist/browser/utils/utils.d.ts +25 -1
- package/dist/browser/utils/utils.d.ts.map +1 -1
- package/dist/browser/utils/utils.js +22 -10
- package/dist/browser/utils/utils.js.map +1 -1
- package/dist/commonjs/api/agentsContext.js +3 -3
- package/dist/commonjs/api/agentsContext.js.map +1 -1
- package/dist/commonjs/api/messages/index.d.ts +2 -2
- package/dist/commonjs/api/messages/index.d.ts.map +1 -1
- package/dist/commonjs/api/messages/index.js +2 -1
- package/dist/commonjs/api/messages/index.js.map +1 -1
- package/dist/commonjs/api/messages/operations.d.ts +6 -2
- package/dist/commonjs/api/messages/operations.d.ts.map +1 -1
- package/dist/commonjs/api/messages/operations.js +33 -0
- package/dist/commonjs/api/messages/operations.js.map +1 -1
- package/dist/commonjs/api/messages/options.d.ts +3 -0
- package/dist/commonjs/api/messages/options.d.ts.map +1 -1
- package/dist/commonjs/api/messages/options.js.map +1 -1
- package/dist/commonjs/api/operations.d.ts +1 -2
- package/dist/commonjs/api/operations.d.ts.map +1 -1
- package/dist/commonjs/api/operations.js +2 -2
- package/dist/commonjs/api/operations.js.map +1 -1
- package/dist/commonjs/api/runSteps/operations.js +3 -3
- package/dist/commonjs/api/runSteps/operations.js.map +1 -1
- package/dist/commonjs/api/runs/operations.d.ts +3 -3
- package/dist/commonjs/api/runs/operations.d.ts.map +1 -1
- package/dist/commonjs/api/runs/operations.js +12 -7
- package/dist/commonjs/api/runs/operations.js.map +1 -1
- package/dist/commonjs/api/runs/options.d.ts +5 -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/vectorStoreFiles/operations.js +4 -4
- package/dist/commonjs/api/vectorStoreFiles/operations.js.map +1 -1
- package/dist/commonjs/api/vectorStores/operations.js +4 -4
- package/dist/commonjs/api/vectorStores/operations.js.map +1 -1
- package/dist/commonjs/classic/messages/index.d.ts +4 -2
- package/dist/commonjs/classic/messages/index.d.ts.map +1 -1
- package/dist/commonjs/classic/messages/index.js +1 -0
- package/dist/commonjs/classic/messages/index.js.map +1 -1
- package/dist/commonjs/classic/runs/index.d.ts.map +1 -1
- package/dist/commonjs/classic/runs/index.js +4 -1
- package/dist/commonjs/classic/runs/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 +4 -2
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +5 -1
- 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 +544 -18
- package/dist/commonjs/models/models.d.ts.map +1 -1
- package/dist/commonjs/models/models.js +741 -0
- package/dist/commonjs/models/models.js.map +1 -1
- package/dist/commonjs/models/streamingModels.d.ts +18 -18
- package/dist/commonjs/models/streamingModels.d.ts.map +1 -1
- package/dist/commonjs/models/streamingModels.js.map +1 -1
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/commonjs/utils/MCPTool.d.ts +89 -0
- package/dist/commonjs/utils/MCPTool.d.ts.map +1 -0
- package/dist/commonjs/utils/MCPTool.js +164 -0
- package/dist/commonjs/utils/MCPTool.js.map +1 -0
- package/dist/commonjs/utils/OpenApiTool.d.ts +46 -0
- package/dist/commonjs/utils/OpenApiTool.d.ts.map +1 -0
- package/dist/commonjs/utils/OpenApiTool.js +88 -0
- package/dist/commonjs/utils/OpenApiTool.js.map +1 -0
- package/dist/commonjs/utils/utils.d.ts +25 -1
- package/dist/commonjs/utils/utils.d.ts.map +1 -1
- package/dist/commonjs/utils/utils.js +22 -10
- package/dist/commonjs/utils/utils.js.map +1 -1
- package/dist/esm/api/agentsContext.js +3 -3
- package/dist/esm/api/agentsContext.js.map +1 -1
- package/dist/esm/api/messages/index.d.ts +2 -2
- package/dist/esm/api/messages/index.d.ts.map +1 -1
- package/dist/esm/api/messages/index.js +1 -1
- package/dist/esm/api/messages/index.js.map +1 -1
- package/dist/esm/api/messages/operations.d.ts +6 -2
- package/dist/esm/api/messages/operations.d.ts.map +1 -1
- package/dist/esm/api/messages/operations.js +31 -1
- package/dist/esm/api/messages/operations.js.map +1 -1
- package/dist/esm/api/messages/options.d.ts +3 -0
- package/dist/esm/api/messages/options.d.ts.map +1 -1
- package/dist/esm/api/messages/options.js.map +1 -1
- package/dist/esm/api/operations.d.ts +1 -2
- package/dist/esm/api/operations.d.ts.map +1 -1
- package/dist/esm/api/operations.js +2 -2
- package/dist/esm/api/operations.js.map +1 -1
- package/dist/esm/api/runSteps/operations.js +3 -3
- package/dist/esm/api/runSteps/operations.js.map +1 -1
- package/dist/esm/api/runs/operations.d.ts +3 -3
- package/dist/esm/api/runs/operations.d.ts.map +1 -1
- package/dist/esm/api/runs/operations.js +13 -8
- package/dist/esm/api/runs/operations.js.map +1 -1
- package/dist/esm/api/runs/options.d.ts +5 -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/vectorStoreFiles/operations.js +4 -4
- package/dist/esm/api/vectorStoreFiles/operations.js.map +1 -1
- package/dist/esm/api/vectorStores/operations.js +4 -4
- package/dist/esm/api/vectorStores/operations.js.map +1 -1
- package/dist/esm/classic/messages/index.d.ts +4 -2
- package/dist/esm/classic/messages/index.d.ts.map +1 -1
- package/dist/esm/classic/messages/index.js +2 -1
- package/dist/esm/classic/messages/index.js.map +1 -1
- package/dist/esm/classic/runs/index.d.ts.map +1 -1
- package/dist/esm/classic/runs/index.js +4 -1
- package/dist/esm/classic/runs/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 +4 -2
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +2 -0
- 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 +544 -18
- package/dist/esm/models/models.d.ts.map +1 -1
- package/dist/esm/models/models.js +653 -0
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/models/streamingModels.d.ts +18 -18
- package/dist/esm/models/streamingModels.d.ts.map +1 -1
- package/dist/esm/models/streamingModels.js.map +1 -1
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -1
- package/dist/esm/utils/MCPTool.d.ts +89 -0
- package/dist/esm/utils/MCPTool.d.ts.map +1 -0
- package/dist/esm/utils/MCPTool.js +160 -0
- package/dist/esm/utils/MCPTool.js.map +1 -0
- package/dist/esm/utils/OpenApiTool.d.ts +46 -0
- package/dist/esm/utils/OpenApiTool.d.ts.map +1 -0
- package/dist/esm/utils/OpenApiTool.js +84 -0
- package/dist/esm/utils/OpenApiTool.js.map +1 -0
- package/dist/esm/utils/utils.d.ts +25 -1
- package/dist/esm/utils/utils.d.ts.map +1 -1
- package/dist/esm/utils/utils.js +22 -10
- package/dist/esm/utils/utils.js.map +1 -1
- package/dist/react-native/api/agentsContext.js +3 -3
- package/dist/react-native/api/agentsContext.js.map +1 -1
- package/dist/react-native/api/messages/index.d.ts +2 -2
- package/dist/react-native/api/messages/index.d.ts.map +1 -1
- package/dist/react-native/api/messages/index.js +1 -1
- package/dist/react-native/api/messages/index.js.map +1 -1
- package/dist/react-native/api/messages/operations.d.ts +6 -2
- package/dist/react-native/api/messages/operations.d.ts.map +1 -1
- package/dist/react-native/api/messages/operations.js +31 -1
- package/dist/react-native/api/messages/operations.js.map +1 -1
- package/dist/react-native/api/messages/options.d.ts +3 -0
- package/dist/react-native/api/messages/options.d.ts.map +1 -1
- package/dist/react-native/api/messages/options.js.map +1 -1
- package/dist/react-native/api/operations.d.ts +1 -2
- package/dist/react-native/api/operations.d.ts.map +1 -1
- package/dist/react-native/api/operations.js +2 -2
- package/dist/react-native/api/operations.js.map +1 -1
- package/dist/react-native/api/runSteps/operations.js +3 -3
- package/dist/react-native/api/runSteps/operations.js.map +1 -1
- package/dist/react-native/api/runs/operations.d.ts +3 -3
- package/dist/react-native/api/runs/operations.d.ts.map +1 -1
- package/dist/react-native/api/runs/operations.js +13 -8
- package/dist/react-native/api/runs/operations.js.map +1 -1
- package/dist/react-native/api/runs/options.d.ts +5 -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/vectorStoreFiles/operations.js +4 -4
- package/dist/react-native/api/vectorStoreFiles/operations.js.map +1 -1
- package/dist/react-native/api/vectorStores/operations.js +4 -4
- package/dist/react-native/api/vectorStores/operations.js.map +1 -1
- package/dist/react-native/classic/messages/index.d.ts +4 -2
- package/dist/react-native/classic/messages/index.d.ts.map +1 -1
- package/dist/react-native/classic/messages/index.js +2 -1
- package/dist/react-native/classic/messages/index.js.map +1 -1
- package/dist/react-native/classic/runs/index.d.ts.map +1 -1
- package/dist/react-native/classic/runs/index.js +4 -1
- package/dist/react-native/classic/runs/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 +4 -2
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +2 -0
- 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 +544 -18
- package/dist/react-native/models/models.d.ts.map +1 -1
- package/dist/react-native/models/models.js +653 -0
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/models/streamingModels.d.ts +18 -18
- package/dist/react-native/models/streamingModels.d.ts.map +1 -1
- package/dist/react-native/models/streamingModels.js.map +1 -1
- package/dist/react-native/static-helpers/urlTemplate.js.map +1 -1
- package/dist/react-native/utils/MCPTool.d.ts +89 -0
- package/dist/react-native/utils/MCPTool.d.ts.map +1 -0
- package/dist/react-native/utils/MCPTool.js +160 -0
- package/dist/react-native/utils/MCPTool.js.map +1 -0
- package/dist/react-native/utils/OpenApiTool.d.ts +46 -0
- package/dist/react-native/utils/OpenApiTool.d.ts.map +1 -0
- package/dist/react-native/utils/OpenApiTool.js +84 -0
- package/dist/react-native/utils/OpenApiTool.js.map +1 -0
- package/dist/react-native/utils/utils.d.ts +25 -1
- package/dist/react-native/utils/utils.d.ts.map +1 -1
- package/dist/react-native/utils/utils.js +22 -10
- package/dist/react-native/utils/utils.js.map +1 -1
- package/package.json +36 -37
|
@@ -21,14 +21,26 @@ 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);
|
|
42
|
+
case "browser_automation":
|
|
43
|
+
return browserAutomationToolDefinitionSerializer(item);
|
|
32
44
|
default:
|
|
33
45
|
return toolDefinitionSerializer(item);
|
|
34
46
|
}
|
|
@@ -43,14 +55,26 @@ export function toolDefinitionUnionDeserializer(item) {
|
|
|
43
55
|
return functionToolDefinitionDeserializer(item);
|
|
44
56
|
case "bing_grounding":
|
|
45
57
|
return bingGroundingToolDefinitionDeserializer(item);
|
|
58
|
+
case "fabric_dataagent":
|
|
59
|
+
return microsoftFabricToolDefinitionDeserializer(item);
|
|
60
|
+
case "sharepoint_grounding":
|
|
61
|
+
return sharepointToolDefinitionDeserializer(item);
|
|
46
62
|
case "azure_ai_search":
|
|
47
63
|
return azureAISearchToolDefinitionDeserializer(item);
|
|
48
64
|
case "openapi":
|
|
49
65
|
return openApiToolDefinitionDeserializer(item);
|
|
66
|
+
case "bing_custom_search":
|
|
67
|
+
return bingCustomSearchToolDefinitionDeserializer(item);
|
|
50
68
|
case "connected_agent":
|
|
51
69
|
return connectedAgentToolDefinitionDeserializer(item);
|
|
70
|
+
case "deep_research":
|
|
71
|
+
return deepResearchToolDefinitionDeserializer(item);
|
|
72
|
+
case "mcp":
|
|
73
|
+
return mcpToolDefinitionDeserializer(item);
|
|
52
74
|
case "azure_function":
|
|
53
75
|
return azureFunctionToolDefinitionDeserializer(item);
|
|
76
|
+
case "browser_automation":
|
|
77
|
+
return browserAutomationToolDefinitionDeserializer(item);
|
|
54
78
|
default:
|
|
55
79
|
return toolDefinitionDeserializer(item);
|
|
56
80
|
}
|
|
@@ -188,6 +212,76 @@ export function bingGroundingSearchConfigurationDeserializer(item) {
|
|
|
188
212
|
freshness: item["freshness"],
|
|
189
213
|
};
|
|
190
214
|
}
|
|
215
|
+
export function microsoftFabricToolDefinitionSerializer(item) {
|
|
216
|
+
return {
|
|
217
|
+
type: item["type"],
|
|
218
|
+
fabric_dataagent: fabricDataAgentToolParametersSerializer(item["fabricDataagent"]),
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
export function microsoftFabricToolDefinitionDeserializer(item) {
|
|
222
|
+
return {
|
|
223
|
+
type: item["type"],
|
|
224
|
+
fabricDataagent: fabricDataAgentToolParametersDeserializer(item["fabric_dataagent"]),
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
export function fabricDataAgentToolParametersSerializer(item) {
|
|
228
|
+
return {
|
|
229
|
+
connections: !item["connectionList"]
|
|
230
|
+
? item["connectionList"]
|
|
231
|
+
: toolConnectionArraySerializer(item["connectionList"]),
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
export function fabricDataAgentToolParametersDeserializer(item) {
|
|
235
|
+
return {
|
|
236
|
+
connectionList: !item["connections"]
|
|
237
|
+
? item["connections"]
|
|
238
|
+
: toolConnectionArrayDeserializer(item["connections"]),
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
export function toolConnectionArraySerializer(result) {
|
|
242
|
+
return result.map((item) => {
|
|
243
|
+
return toolConnectionSerializer(item);
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
export function toolConnectionArrayDeserializer(result) {
|
|
247
|
+
return result.map((item) => {
|
|
248
|
+
return toolConnectionDeserializer(item);
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
export function toolConnectionSerializer(item) {
|
|
252
|
+
return { connection_id: item["connectionId"] };
|
|
253
|
+
}
|
|
254
|
+
export function toolConnectionDeserializer(item) {
|
|
255
|
+
return {
|
|
256
|
+
connectionId: item["connection_id"],
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
export function sharepointToolDefinitionSerializer(item) {
|
|
260
|
+
return {
|
|
261
|
+
type: item["type"],
|
|
262
|
+
sharepoint_grounding: sharepointGroundingToolParametersSerializer(item["sharepointGrounding"]),
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
export function sharepointToolDefinitionDeserializer(item) {
|
|
266
|
+
return {
|
|
267
|
+
type: item["type"],
|
|
268
|
+
sharepointGrounding: sharepointGroundingToolParametersDeserializer(item["sharepoint_grounding"]),
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
export function sharepointGroundingToolParametersSerializer(item) {
|
|
272
|
+
return {
|
|
273
|
+
connections: !item["connectionList"]
|
|
274
|
+
? item["connectionList"]
|
|
275
|
+
: toolConnectionArraySerializer(item["connectionList"]),
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
export function sharepointGroundingToolParametersDeserializer(item) {
|
|
279
|
+
return {
|
|
280
|
+
connectionList: !item["connections"]
|
|
281
|
+
? item["connections"]
|
|
282
|
+
: toolConnectionArrayDeserializer(item["connections"]),
|
|
283
|
+
};
|
|
284
|
+
}
|
|
191
285
|
export function azureAISearchToolDefinitionSerializer(item) {
|
|
192
286
|
return { type: item["type"] };
|
|
193
287
|
}
|
|
@@ -327,6 +421,58 @@ export function functionDefinitionArrayDeserializer(result) {
|
|
|
327
421
|
return functionDefinitionDeserializer(item);
|
|
328
422
|
});
|
|
329
423
|
}
|
|
424
|
+
export function bingCustomSearchToolDefinitionSerializer(item) {
|
|
425
|
+
return {
|
|
426
|
+
type: item["type"],
|
|
427
|
+
bing_custom_search: bingCustomSearchToolParametersSerializer(item["bingCustomSearch"]),
|
|
428
|
+
};
|
|
429
|
+
}
|
|
430
|
+
export function bingCustomSearchToolDefinitionDeserializer(item) {
|
|
431
|
+
return {
|
|
432
|
+
type: item["type"],
|
|
433
|
+
bingCustomSearch: bingCustomSearchToolParametersDeserializer(item["bing_custom_search"]),
|
|
434
|
+
};
|
|
435
|
+
}
|
|
436
|
+
export function bingCustomSearchToolParametersSerializer(item) {
|
|
437
|
+
return {
|
|
438
|
+
search_configurations: bingCustomSearchConfigurationArraySerializer(item["searchConfigurations"]),
|
|
439
|
+
};
|
|
440
|
+
}
|
|
441
|
+
export function bingCustomSearchToolParametersDeserializer(item) {
|
|
442
|
+
return {
|
|
443
|
+
searchConfigurations: bingCustomSearchConfigurationArrayDeserializer(item["search_configurations"]),
|
|
444
|
+
};
|
|
445
|
+
}
|
|
446
|
+
export function bingCustomSearchConfigurationArraySerializer(result) {
|
|
447
|
+
return result.map((item) => {
|
|
448
|
+
return bingCustomSearchConfigurationSerializer(item);
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
export function bingCustomSearchConfigurationArrayDeserializer(result) {
|
|
452
|
+
return result.map((item) => {
|
|
453
|
+
return bingCustomSearchConfigurationDeserializer(item);
|
|
454
|
+
});
|
|
455
|
+
}
|
|
456
|
+
export function bingCustomSearchConfigurationSerializer(item) {
|
|
457
|
+
return {
|
|
458
|
+
connection_id: item["connectionId"],
|
|
459
|
+
instance_name: item["instanceName"],
|
|
460
|
+
market: item["market"],
|
|
461
|
+
set_lang: item["setLang"],
|
|
462
|
+
count: item["count"],
|
|
463
|
+
freshness: item["freshness"],
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
export function bingCustomSearchConfigurationDeserializer(item) {
|
|
467
|
+
return {
|
|
468
|
+
connectionId: item["connection_id"],
|
|
469
|
+
instanceName: item["instance_name"],
|
|
470
|
+
market: item["market"],
|
|
471
|
+
setLang: item["set_lang"],
|
|
472
|
+
count: item["count"],
|
|
473
|
+
freshness: item["freshness"],
|
|
474
|
+
};
|
|
475
|
+
}
|
|
330
476
|
export function connectedAgentToolDefinitionSerializer(item) {
|
|
331
477
|
return {
|
|
332
478
|
type: item["type"],
|
|
@@ -353,6 +499,72 @@ export function connectedAgentDetailsDeserializer(item) {
|
|
|
353
499
|
description: item["description"],
|
|
354
500
|
};
|
|
355
501
|
}
|
|
502
|
+
export function deepResearchToolDefinitionSerializer(item) {
|
|
503
|
+
return {
|
|
504
|
+
type: item["type"],
|
|
505
|
+
deep_research: deepResearchDetailsSerializer(item["deepResearch"]),
|
|
506
|
+
};
|
|
507
|
+
}
|
|
508
|
+
export function deepResearchToolDefinitionDeserializer(item) {
|
|
509
|
+
return {
|
|
510
|
+
type: item["type"],
|
|
511
|
+
deepResearch: deepResearchDetailsDeserializer(item["deep_research"]),
|
|
512
|
+
};
|
|
513
|
+
}
|
|
514
|
+
export function deepResearchDetailsSerializer(item) {
|
|
515
|
+
return {
|
|
516
|
+
deep_research_model: item["model"],
|
|
517
|
+
bing_grounding_connections: deepResearchBingGroundingConnectionArraySerializer(item["bingGroundingConnections"]),
|
|
518
|
+
};
|
|
519
|
+
}
|
|
520
|
+
export function deepResearchDetailsDeserializer(item) {
|
|
521
|
+
return {
|
|
522
|
+
model: item["deep_research_model"],
|
|
523
|
+
bingGroundingConnections: deepResearchBingGroundingConnectionArrayDeserializer(item["bing_grounding_connections"]),
|
|
524
|
+
};
|
|
525
|
+
}
|
|
526
|
+
export function deepResearchBingGroundingConnectionArraySerializer(result) {
|
|
527
|
+
return result.map((item) => {
|
|
528
|
+
return deepResearchBingGroundingConnectionSerializer(item);
|
|
529
|
+
});
|
|
530
|
+
}
|
|
531
|
+
export function deepResearchBingGroundingConnectionArrayDeserializer(result) {
|
|
532
|
+
return result.map((item) => {
|
|
533
|
+
return deepResearchBingGroundingConnectionDeserializer(item);
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
export function deepResearchBingGroundingConnectionSerializer(item) {
|
|
537
|
+
return { connection_id: item["connectionId"] };
|
|
538
|
+
}
|
|
539
|
+
export function deepResearchBingGroundingConnectionDeserializer(item) {
|
|
540
|
+
return {
|
|
541
|
+
connectionId: item["connection_id"],
|
|
542
|
+
};
|
|
543
|
+
}
|
|
544
|
+
export function mcpToolDefinitionSerializer(item) {
|
|
545
|
+
return {
|
|
546
|
+
type: item["type"],
|
|
547
|
+
server_label: item["serverLabel"],
|
|
548
|
+
server_url: item["serverUrl"],
|
|
549
|
+
allowed_tools: !item["allowedTools"]
|
|
550
|
+
? item["allowedTools"]
|
|
551
|
+
: item["allowedTools"].map((p) => {
|
|
552
|
+
return p;
|
|
553
|
+
}),
|
|
554
|
+
};
|
|
555
|
+
}
|
|
556
|
+
export function mcpToolDefinitionDeserializer(item) {
|
|
557
|
+
return {
|
|
558
|
+
type: item["type"],
|
|
559
|
+
serverLabel: item["server_label"],
|
|
560
|
+
serverUrl: item["server_url"],
|
|
561
|
+
allowedTools: !item["allowed_tools"]
|
|
562
|
+
? item["allowed_tools"]
|
|
563
|
+
: item["allowed_tools"].map((p) => {
|
|
564
|
+
return p;
|
|
565
|
+
}),
|
|
566
|
+
};
|
|
567
|
+
}
|
|
356
568
|
export function azureFunctionToolDefinitionSerializer(item) {
|
|
357
569
|
return {
|
|
358
570
|
type: item["type"],
|
|
@@ -403,6 +615,36 @@ export function azureFunctionStorageQueueDeserializer(item) {
|
|
|
403
615
|
queueName: item["queue_name"],
|
|
404
616
|
};
|
|
405
617
|
}
|
|
618
|
+
export function browserAutomationToolDefinitionSerializer(item) {
|
|
619
|
+
return {
|
|
620
|
+
type: item["type"],
|
|
621
|
+
browser_automation: browserAutomationToolParametersSerializer(item["browserAutomation"]),
|
|
622
|
+
};
|
|
623
|
+
}
|
|
624
|
+
export function browserAutomationToolDefinitionDeserializer(item) {
|
|
625
|
+
return {
|
|
626
|
+
type: item["type"],
|
|
627
|
+
browserAutomation: browserAutomationToolParametersDeserializer(item["browser_automation"]),
|
|
628
|
+
};
|
|
629
|
+
}
|
|
630
|
+
export function browserAutomationToolParametersSerializer(item) {
|
|
631
|
+
return {
|
|
632
|
+
connection: browserAutomationToolConnectionParametersSerializer(item["connection"]),
|
|
633
|
+
};
|
|
634
|
+
}
|
|
635
|
+
export function browserAutomationToolParametersDeserializer(item) {
|
|
636
|
+
return {
|
|
637
|
+
connection: browserAutomationToolConnectionParametersDeserializer(item["connection"]),
|
|
638
|
+
};
|
|
639
|
+
}
|
|
640
|
+
export function browserAutomationToolConnectionParametersSerializer(item) {
|
|
641
|
+
return { id: item["id"] };
|
|
642
|
+
}
|
|
643
|
+
export function browserAutomationToolConnectionParametersDeserializer(item) {
|
|
644
|
+
return {
|
|
645
|
+
id: item["id"],
|
|
646
|
+
};
|
|
647
|
+
}
|
|
406
648
|
export function toolResourcesSerializer(item) {
|
|
407
649
|
return {
|
|
408
650
|
code_interpreter: !item["codeInterpreter"]
|
|
@@ -414,6 +656,7 @@ export function toolResourcesSerializer(item) {
|
|
|
414
656
|
azure_ai_search: !item["azureAISearch"]
|
|
415
657
|
? item["azureAISearch"]
|
|
416
658
|
: azureAISearchToolResourceSerializer(item["azureAISearch"]),
|
|
659
|
+
mcp: !item["mcp"] ? item["mcp"] : mcpToolResourceArraySerializer(item["mcp"]),
|
|
417
660
|
};
|
|
418
661
|
}
|
|
419
662
|
export function toolResourcesDeserializer(item) {
|
|
@@ -427,6 +670,7 @@ export function toolResourcesDeserializer(item) {
|
|
|
427
670
|
azureAISearch: !item["azure_ai_search"]
|
|
428
671
|
? item["azure_ai_search"]
|
|
429
672
|
: azureAISearchToolResourceDeserializer(item["azure_ai_search"]),
|
|
673
|
+
mcp: !item["mcp"] ? item["mcp"] : mcpToolResourceArrayDeserializer(item["mcp"]),
|
|
430
674
|
};
|
|
431
675
|
}
|
|
432
676
|
export function codeInterpreterToolResourceSerializer(item) {
|
|
@@ -581,6 +825,66 @@ export function aiSearchIndexResourceDeserializer(item) {
|
|
|
581
825
|
indexAssetId: item["index_asset_id"],
|
|
582
826
|
};
|
|
583
827
|
}
|
|
828
|
+
export function mcpToolResourceArraySerializer(result) {
|
|
829
|
+
return result.map((item) => {
|
|
830
|
+
return mcpToolResourceSerializer(item);
|
|
831
|
+
});
|
|
832
|
+
}
|
|
833
|
+
export function mcpToolResourceArrayDeserializer(result) {
|
|
834
|
+
return result.map((item) => {
|
|
835
|
+
return mcpToolResourceDeserializer(item);
|
|
836
|
+
});
|
|
837
|
+
}
|
|
838
|
+
export function mcpToolResourceSerializer(item) {
|
|
839
|
+
return {
|
|
840
|
+
server_label: item["serverLabel"],
|
|
841
|
+
headers: item["headers"],
|
|
842
|
+
require_approval: !item["requireApproval"]
|
|
843
|
+
? item["requireApproval"]
|
|
844
|
+
: mcpRequiredApprovalSerializer(item["requireApproval"]),
|
|
845
|
+
};
|
|
846
|
+
}
|
|
847
|
+
export function mcpToolResourceDeserializer(item) {
|
|
848
|
+
return {
|
|
849
|
+
serverLabel: item["server_label"],
|
|
850
|
+
headers: item["headers"],
|
|
851
|
+
requireApproval: !item["require_approval"]
|
|
852
|
+
? item["require_approval"]
|
|
853
|
+
: mcpRequiredApprovalDeserializer(item["require_approval"]),
|
|
854
|
+
};
|
|
855
|
+
}
|
|
856
|
+
export function mcpRequiredApprovalSerializer(item) {
|
|
857
|
+
return item;
|
|
858
|
+
}
|
|
859
|
+
export function mcpRequiredApprovalDeserializer(item) {
|
|
860
|
+
return item;
|
|
861
|
+
}
|
|
862
|
+
export function mcpApprovalPerToolSerializer(item) {
|
|
863
|
+
return {
|
|
864
|
+
never: !item["never"] ? item["never"] : mcpToolListSerializer(item["never"]),
|
|
865
|
+
always: !item["always"] ? item["always"] : mcpToolListSerializer(item["always"]),
|
|
866
|
+
};
|
|
867
|
+
}
|
|
868
|
+
export function mcpApprovalPerToolDeserializer(item) {
|
|
869
|
+
return {
|
|
870
|
+
never: !item["never"] ? item["never"] : mcpToolListDeserializer(item["never"]),
|
|
871
|
+
always: !item["always"] ? item["always"] : mcpToolListDeserializer(item["always"]),
|
|
872
|
+
};
|
|
873
|
+
}
|
|
874
|
+
export function mcpToolListSerializer(item) {
|
|
875
|
+
return {
|
|
876
|
+
tool_names: item["toolNames"].map((p) => {
|
|
877
|
+
return p;
|
|
878
|
+
}),
|
|
879
|
+
};
|
|
880
|
+
}
|
|
881
|
+
export function mcpToolListDeserializer(item) {
|
|
882
|
+
return {
|
|
883
|
+
toolNames: item["tool_names"].map((p) => {
|
|
884
|
+
return p;
|
|
885
|
+
}),
|
|
886
|
+
};
|
|
887
|
+
}
|
|
584
888
|
export function agentsResponseFormatSerializer(item) {
|
|
585
889
|
return { type: item["type"] };
|
|
586
890
|
}
|
|
@@ -899,6 +1203,8 @@ export function requiredActionUnionDeserializer(item) {
|
|
|
899
1203
|
switch (item.type) {
|
|
900
1204
|
case "submit_tool_outputs":
|
|
901
1205
|
return submitToolOutputsActionDeserializer(item);
|
|
1206
|
+
case "submit_tool_approval":
|
|
1207
|
+
return submitToolApprovalActionDeserializer(item);
|
|
902
1208
|
default:
|
|
903
1209
|
return requiredActionDeserializer(item);
|
|
904
1210
|
}
|
|
@@ -929,6 +1235,8 @@ export function requiredToolCallUnionDeserializer(item) {
|
|
|
929
1235
|
switch (item.type) {
|
|
930
1236
|
case "function":
|
|
931
1237
|
return requiredFunctionToolCallDeserializer(item);
|
|
1238
|
+
case "mcp":
|
|
1239
|
+
return requiredMcpToolCallDeserializer(item);
|
|
932
1240
|
default:
|
|
933
1241
|
return requiredToolCallDeserializer(item);
|
|
934
1242
|
}
|
|
@@ -946,6 +1254,26 @@ export function requiredFunctionToolCallDetailsDeserializer(item) {
|
|
|
946
1254
|
arguments: item["arguments"],
|
|
947
1255
|
};
|
|
948
1256
|
}
|
|
1257
|
+
export function requiredMcpToolCallDeserializer(item) {
|
|
1258
|
+
return {
|
|
1259
|
+
type: item["type"],
|
|
1260
|
+
id: item["id"],
|
|
1261
|
+
arguments: item["arguments"],
|
|
1262
|
+
name: item["name"],
|
|
1263
|
+
serverLabel: item["server_label"],
|
|
1264
|
+
};
|
|
1265
|
+
}
|
|
1266
|
+
export function submitToolApprovalActionDeserializer(item) {
|
|
1267
|
+
return {
|
|
1268
|
+
type: item["type"],
|
|
1269
|
+
submitToolApproval: submitToolApprovalDetailsDeserializer(item["submit_tool_approval"]),
|
|
1270
|
+
};
|
|
1271
|
+
}
|
|
1272
|
+
export function submitToolApprovalDetailsDeserializer(item) {
|
|
1273
|
+
return {
|
|
1274
|
+
toolCalls: requiredToolCallUnionArrayDeserializer(item["tool_calls"]),
|
|
1275
|
+
};
|
|
1276
|
+
}
|
|
949
1277
|
export function runErrorDeserializer(item) {
|
|
950
1278
|
return {
|
|
951
1279
|
code: item["code"],
|
|
@@ -1147,6 +1475,13 @@ export function threadMessageArrayDeserializer(result) {
|
|
|
1147
1475
|
return threadMessageDeserializer(item);
|
|
1148
1476
|
});
|
|
1149
1477
|
}
|
|
1478
|
+
export function messageDeletionStatusDeserializer(item) {
|
|
1479
|
+
return {
|
|
1480
|
+
id: item["id"],
|
|
1481
|
+
deleted: item["deleted"],
|
|
1482
|
+
object: item["object"],
|
|
1483
|
+
};
|
|
1484
|
+
}
|
|
1150
1485
|
export function _agentsPagedResultThreadRunDeserializer(item) {
|
|
1151
1486
|
return {
|
|
1152
1487
|
data: threadRunArrayDeserializer(item["data"]),
|
|
@@ -1162,11 +1497,23 @@ export function threadRunArrayDeserializer(result) {
|
|
|
1162
1497
|
export function toolOutputSerializer(item) {
|
|
1163
1498
|
return { tool_call_id: item["toolCallId"], output: item["output"] };
|
|
1164
1499
|
}
|
|
1500
|
+
export function toolApprovalSerializer(item) {
|
|
1501
|
+
return {
|
|
1502
|
+
tool_call_id: item["toolCallId"],
|
|
1503
|
+
approve: item["approve"],
|
|
1504
|
+
headers: item["headers"],
|
|
1505
|
+
};
|
|
1506
|
+
}
|
|
1165
1507
|
export function toolOutputArraySerializer(result) {
|
|
1166
1508
|
return result.map((item) => {
|
|
1167
1509
|
return toolOutputSerializer(item);
|
|
1168
1510
|
});
|
|
1169
1511
|
}
|
|
1512
|
+
export function toolApprovalArraySerializer(result) {
|
|
1513
|
+
return result.map((item) => {
|
|
1514
|
+
return toolApprovalSerializer(item);
|
|
1515
|
+
});
|
|
1516
|
+
}
|
|
1170
1517
|
export function runStepDeserializer(item) {
|
|
1171
1518
|
return {
|
|
1172
1519
|
id: item["id"],
|
|
@@ -1204,6 +1551,8 @@ export function runStepDetailsUnionDeserializer(item) {
|
|
|
1204
1551
|
return runStepMessageCreationDetailsDeserializer(item);
|
|
1205
1552
|
case "tool_calls":
|
|
1206
1553
|
return runStepToolCallDetailsDeserializer(item);
|
|
1554
|
+
case "activities":
|
|
1555
|
+
return runStepActivityDetailsDeserializer(item);
|
|
1207
1556
|
default:
|
|
1208
1557
|
return runStepDetailsDeserializer(item);
|
|
1209
1558
|
}
|
|
@@ -1246,10 +1595,26 @@ export function runStepToolCallUnionDeserializer(item) {
|
|
|
1246
1595
|
return runStepBingGroundingToolCallDeserializer(item);
|
|
1247
1596
|
case "azure_ai_search":
|
|
1248
1597
|
return runStepAzureAISearchToolCallDeserializer(item);
|
|
1598
|
+
case "browser_automation":
|
|
1599
|
+
return runStepBrowserAutomationToolCallDeserializer(item);
|
|
1600
|
+
case "mcp":
|
|
1601
|
+
return runStepMcpToolCallDeserializer(item);
|
|
1602
|
+
case "sharepoint_grounding":
|
|
1603
|
+
return runStepSharepointToolCallDeserializer(item);
|
|
1604
|
+
case "fabric_dataagent":
|
|
1605
|
+
return runStepMicrosoftFabricToolCallDeserializer(item);
|
|
1606
|
+
case "bing_custom_search":
|
|
1607
|
+
return runStepBingCustomSearchToolCallDeserializer(item);
|
|
1608
|
+
case "azure_function":
|
|
1609
|
+
return runStepAzureFunctionToolCallDeserializer(item);
|
|
1249
1610
|
case "function":
|
|
1250
1611
|
return runStepFunctionToolCallDeserializer(item);
|
|
1251
1612
|
case "openapi":
|
|
1252
1613
|
return runStepOpenAPIToolCallDeserializer(item);
|
|
1614
|
+
case "deep_research":
|
|
1615
|
+
return runStepDeepResearchToolCallDeserializer(item);
|
|
1616
|
+
case "connected_agent":
|
|
1617
|
+
return runStepConnectedAgentToolCallDeserializer(item);
|
|
1253
1618
|
default:
|
|
1254
1619
|
return runStepToolCallDeserializer(item);
|
|
1255
1620
|
}
|
|
@@ -1359,6 +1724,77 @@ export function runStepAzureAISearchToolCallDeserializer(item) {
|
|
|
1359
1724
|
azureAISearch: item["azure_ai_search"],
|
|
1360
1725
|
};
|
|
1361
1726
|
}
|
|
1727
|
+
export function runStepBrowserAutomationToolCallDeserializer(item) {
|
|
1728
|
+
return {
|
|
1729
|
+
type: item["type"],
|
|
1730
|
+
id: item["id"],
|
|
1731
|
+
browserAutomation: browserAutomationToolCallDetailsDeserializer(item["browser_automation"]),
|
|
1732
|
+
};
|
|
1733
|
+
}
|
|
1734
|
+
export function browserAutomationToolCallDetailsDeserializer(item) {
|
|
1735
|
+
return {
|
|
1736
|
+
input: item["input"],
|
|
1737
|
+
output: item["output"],
|
|
1738
|
+
steps: browserAutomationToolCallStepArrayDeserializer(item["steps"]),
|
|
1739
|
+
};
|
|
1740
|
+
}
|
|
1741
|
+
export function browserAutomationToolCallStepArrayDeserializer(result) {
|
|
1742
|
+
return result.map((item) => {
|
|
1743
|
+
return browserAutomationToolCallStepDeserializer(item);
|
|
1744
|
+
});
|
|
1745
|
+
}
|
|
1746
|
+
export function browserAutomationToolCallStepDeserializer(item) {
|
|
1747
|
+
return {
|
|
1748
|
+
lastStepResult: item["last_step_result"],
|
|
1749
|
+
currentState: item["current_state"],
|
|
1750
|
+
nextStep: item["next_step"],
|
|
1751
|
+
};
|
|
1752
|
+
}
|
|
1753
|
+
export function runStepMcpToolCallDeserializer(item) {
|
|
1754
|
+
return {
|
|
1755
|
+
type: item["type"],
|
|
1756
|
+
id: item["id"],
|
|
1757
|
+
arguments: item["arguments"],
|
|
1758
|
+
name: item["name"],
|
|
1759
|
+
output: item["output"],
|
|
1760
|
+
serverLabel: item["server_label"],
|
|
1761
|
+
};
|
|
1762
|
+
}
|
|
1763
|
+
export function runStepSharepointToolCallDeserializer(item) {
|
|
1764
|
+
return {
|
|
1765
|
+
type: item["type"],
|
|
1766
|
+
id: item["id"],
|
|
1767
|
+
sharePoint: item["sharepoint_grounding"],
|
|
1768
|
+
};
|
|
1769
|
+
}
|
|
1770
|
+
export function runStepMicrosoftFabricToolCallDeserializer(item) {
|
|
1771
|
+
return {
|
|
1772
|
+
type: item["type"],
|
|
1773
|
+
id: item["id"],
|
|
1774
|
+
microsoftFabric: item["fabric_dataagent"],
|
|
1775
|
+
};
|
|
1776
|
+
}
|
|
1777
|
+
export function runStepBingCustomSearchToolCallDeserializer(item) {
|
|
1778
|
+
return {
|
|
1779
|
+
type: item["type"],
|
|
1780
|
+
id: item["id"],
|
|
1781
|
+
bingCustomSearch: item["bing_custom_search"],
|
|
1782
|
+
};
|
|
1783
|
+
}
|
|
1784
|
+
export function runStepAzureFunctionToolCallDeserializer(item) {
|
|
1785
|
+
return {
|
|
1786
|
+
type: item["type"],
|
|
1787
|
+
id: item["id"],
|
|
1788
|
+
azureFunction: azureFunctionToolCallDetailsDeserializer(item["azure_function"]),
|
|
1789
|
+
};
|
|
1790
|
+
}
|
|
1791
|
+
export function azureFunctionToolCallDetailsDeserializer(item) {
|
|
1792
|
+
return {
|
|
1793
|
+
name: item["name"],
|
|
1794
|
+
arguments: item["arguments"],
|
|
1795
|
+
output: item["output"],
|
|
1796
|
+
};
|
|
1797
|
+
}
|
|
1362
1798
|
export function runStepFunctionToolCallDeserializer(item) {
|
|
1363
1799
|
return {
|
|
1364
1800
|
type: item["type"],
|
|
@@ -1379,6 +1815,91 @@ export function runStepOpenAPIToolCallDeserializer(item) {
|
|
|
1379
1815
|
openAPI: item["openapi"],
|
|
1380
1816
|
};
|
|
1381
1817
|
}
|
|
1818
|
+
export function runStepDeepResearchToolCallDeserializer(item) {
|
|
1819
|
+
return {
|
|
1820
|
+
type: item["type"],
|
|
1821
|
+
id: item["id"],
|
|
1822
|
+
deepResearch: runStepDeepResearchToolCallDetailsDeserializer(item["deep_research"]),
|
|
1823
|
+
};
|
|
1824
|
+
}
|
|
1825
|
+
export function runStepDeepResearchToolCallDetailsDeserializer(item) {
|
|
1826
|
+
return {
|
|
1827
|
+
input: item["input"],
|
|
1828
|
+
output: item["output"],
|
|
1829
|
+
};
|
|
1830
|
+
}
|
|
1831
|
+
export function runStepConnectedAgentToolCallDeserializer(item) {
|
|
1832
|
+
return {
|
|
1833
|
+
type: item["type"],
|
|
1834
|
+
id: item["id"],
|
|
1835
|
+
connectedAgent: runStepConnectedAgentDeserializer(item["connected_agent"]),
|
|
1836
|
+
};
|
|
1837
|
+
}
|
|
1838
|
+
export function runStepConnectedAgentDeserializer(item) {
|
|
1839
|
+
return {
|
|
1840
|
+
name: item["name"],
|
|
1841
|
+
arguments: item["arguments"],
|
|
1842
|
+
output: item["output"],
|
|
1843
|
+
runId: item["run_id"],
|
|
1844
|
+
threadId: item["thread_id"],
|
|
1845
|
+
agentId: item["assistant_id"],
|
|
1846
|
+
};
|
|
1847
|
+
}
|
|
1848
|
+
export function runStepActivityDetailsDeserializer(item) {
|
|
1849
|
+
return {
|
|
1850
|
+
type: item["type"],
|
|
1851
|
+
activities: runStepDetailsActivityArrayDeserializer(item["activities"]),
|
|
1852
|
+
};
|
|
1853
|
+
}
|
|
1854
|
+
export function runStepDetailsActivityArrayDeserializer(result) {
|
|
1855
|
+
return result.map((item) => {
|
|
1856
|
+
return runStepDetailsActivityDeserializer(item);
|
|
1857
|
+
});
|
|
1858
|
+
}
|
|
1859
|
+
export function runStepDetailsActivityDeserializer(item) {
|
|
1860
|
+
return {
|
|
1861
|
+
type: item["type"],
|
|
1862
|
+
id: item["id"],
|
|
1863
|
+
serverLabel: item["server_label"],
|
|
1864
|
+
tools: activityFunctionDefinitionRecordDeserializer(item["tools"]),
|
|
1865
|
+
};
|
|
1866
|
+
}
|
|
1867
|
+
export function activityFunctionDefinitionRecordDeserializer(item) {
|
|
1868
|
+
const result = {};
|
|
1869
|
+
Object.keys(item).map((key) => {
|
|
1870
|
+
result[key] = !item[key] ? item[key] : activityFunctionDefinitionDeserializer(item[key]);
|
|
1871
|
+
});
|
|
1872
|
+
return result;
|
|
1873
|
+
}
|
|
1874
|
+
export function activityFunctionDefinitionDeserializer(item) {
|
|
1875
|
+
return {
|
|
1876
|
+
description: item["description"],
|
|
1877
|
+
parameters: activityFunctionParametersDeserializer(item["parameters"]),
|
|
1878
|
+
};
|
|
1879
|
+
}
|
|
1880
|
+
export function activityFunctionParametersDeserializer(item) {
|
|
1881
|
+
return {
|
|
1882
|
+
type: item["type"],
|
|
1883
|
+
properties: functionArgumentRecordDeserializer(item["properties"]),
|
|
1884
|
+
required: item["required"].map((p) => {
|
|
1885
|
+
return p;
|
|
1886
|
+
}),
|
|
1887
|
+
additionalProperties: item["additionalProperties"],
|
|
1888
|
+
};
|
|
1889
|
+
}
|
|
1890
|
+
export function functionArgumentRecordDeserializer(item) {
|
|
1891
|
+
const result = {};
|
|
1892
|
+
Object.keys(item).map((key) => {
|
|
1893
|
+
result[key] = !item[key] ? item[key] : functionArgumentDeserializer(item[key]);
|
|
1894
|
+
});
|
|
1895
|
+
return result;
|
|
1896
|
+
}
|
|
1897
|
+
export function functionArgumentDeserializer(item) {
|
|
1898
|
+
return {
|
|
1899
|
+
type: item["type"],
|
|
1900
|
+
description: item["description"],
|
|
1901
|
+
};
|
|
1902
|
+
}
|
|
1382
1903
|
export function runStepErrorDeserializer(item) {
|
|
1383
1904
|
return {
|
|
1384
1905
|
code: item["code"],
|
|
@@ -1771,6 +2292,10 @@ export function runStepDeltaDetailUnionDeserializer(item) {
|
|
|
1771
2292
|
return runStepDeltaMessageCreationDeserializer(item);
|
|
1772
2293
|
case "tool_calls":
|
|
1773
2294
|
return runStepDeltaToolCallObjectDeserializer(item);
|
|
2295
|
+
case "mcp":
|
|
2296
|
+
return runStepDeltaMCPObjectDeserializer(item);
|
|
2297
|
+
case "openapi":
|
|
2298
|
+
return runStepDeltaOpenAPIObjectDeserializer(item);
|
|
1774
2299
|
default:
|
|
1775
2300
|
return runStepDeltaDetailDeserializer(item);
|
|
1776
2301
|
}
|
|
@@ -1810,16 +2335,60 @@ export function runStepDeltaToolCallDeserializer(item) {
|
|
|
1810
2335
|
}
|
|
1811
2336
|
export function runStepDeltaToolCallUnionDeserializer(item) {
|
|
1812
2337
|
switch (item.type) {
|
|
2338
|
+
case "mcp":
|
|
2339
|
+
return runStepDeltaMcpToolCallDeserializer(item);
|
|
2340
|
+
case "openapi":
|
|
2341
|
+
return runStepDeltaOpenAPIToolCallDeserializer(item);
|
|
2342
|
+
case "connected_agent":
|
|
2343
|
+
return runStepDeltaConnectedAgentToolCallDeserializer(item);
|
|
1813
2344
|
case "function":
|
|
1814
2345
|
return runStepDeltaFunctionToolCallDeserializer(item);
|
|
1815
2346
|
case "file_search":
|
|
1816
2347
|
return runStepDeltaFileSearchToolCallDeserializer(item);
|
|
1817
2348
|
case "code_interpreter":
|
|
1818
2349
|
return runStepDeltaCodeInterpreterToolCallDeserializer(item);
|
|
2350
|
+
case "bing_grounding":
|
|
2351
|
+
return runStepDeltaBingGroundingToolCallDeserializer(item);
|
|
2352
|
+
case "bing_custom_search":
|
|
2353
|
+
return runStepDeltaCustomBingGroundingToolCallDeserializer(item);
|
|
2354
|
+
case "azure_function":
|
|
2355
|
+
return runStepDeltaAzureFunctionToolCallDeserializer(item);
|
|
2356
|
+
case "deep_research":
|
|
2357
|
+
return runStepDeltaDeepResearchToolCallDeserializer(item);
|
|
2358
|
+
case "azure_ai_search":
|
|
2359
|
+
return runStepDeltaAzureAISearchToolCallDeserializer(item);
|
|
2360
|
+
case "fabric_dataagent":
|
|
2361
|
+
return runStepDeltaMicrosoftFabricToolCallDeserializer(item);
|
|
2362
|
+
case "sharepoint_grounding":
|
|
2363
|
+
return runStepDeltaSharepointToolCallDeserializer(item);
|
|
1819
2364
|
default:
|
|
1820
2365
|
return runStepDeltaToolCallDeserializer(item);
|
|
1821
2366
|
}
|
|
1822
2367
|
}
|
|
2368
|
+
export function runStepDeltaMcpToolCallDeserializer(item) {
|
|
2369
|
+
return {
|
|
2370
|
+
index: item["index"],
|
|
2371
|
+
id: item["id"],
|
|
2372
|
+
type: item["type"],
|
|
2373
|
+
arguments: item["arguments"],
|
|
2374
|
+
};
|
|
2375
|
+
}
|
|
2376
|
+
export function runStepDeltaOpenAPIToolCallDeserializer(item) {
|
|
2377
|
+
return {
|
|
2378
|
+
index: item["index"],
|
|
2379
|
+
id: item["id"],
|
|
2380
|
+
type: item["type"],
|
|
2381
|
+
openAPI: item["openapi"],
|
|
2382
|
+
};
|
|
2383
|
+
}
|
|
2384
|
+
export function runStepDeltaConnectedAgentToolCallDeserializer(item) {
|
|
2385
|
+
return {
|
|
2386
|
+
index: item["index"],
|
|
2387
|
+
id: item["id"],
|
|
2388
|
+
type: item["type"],
|
|
2389
|
+
connectedAgent: runStepConnectedAgentDeserializer(item["connected_agent"]),
|
|
2390
|
+
};
|
|
2391
|
+
}
|
|
1823
2392
|
export function runStepDeltaFunctionToolCallDeserializer(item) {
|
|
1824
2393
|
return {
|
|
1825
2394
|
index: item["index"],
|
|
@@ -1907,6 +2476,88 @@ export function runStepDeltaCodeInterpreterImageOutputObjectDeserializer(item) {
|
|
|
1907
2476
|
fileId: item["file_id"],
|
|
1908
2477
|
};
|
|
1909
2478
|
}
|
|
2479
|
+
export function runStepDeltaBingGroundingToolCallDeserializer(item) {
|
|
2480
|
+
return {
|
|
2481
|
+
index: item["index"],
|
|
2482
|
+
id: item["id"],
|
|
2483
|
+
type: item["type"],
|
|
2484
|
+
bingGrounding: item["bing_grounding"],
|
|
2485
|
+
};
|
|
2486
|
+
}
|
|
2487
|
+
export function runStepDeltaCustomBingGroundingToolCallDeserializer(item) {
|
|
2488
|
+
return {
|
|
2489
|
+
index: item["index"],
|
|
2490
|
+
id: item["id"],
|
|
2491
|
+
type: item["type"],
|
|
2492
|
+
bingCustomSearch: item["bing_custom_search"],
|
|
2493
|
+
};
|
|
2494
|
+
}
|
|
2495
|
+
export function runStepDeltaAzureFunctionToolCallDeserializer(item) {
|
|
2496
|
+
return {
|
|
2497
|
+
index: item["index"],
|
|
2498
|
+
id: item["id"],
|
|
2499
|
+
type: item["type"],
|
|
2500
|
+
azureFunction: azureFunctionToolCallDetailsDeserializer(item["azure_function"]),
|
|
2501
|
+
};
|
|
2502
|
+
}
|
|
2503
|
+
export function runStepDeltaDeepResearchToolCallDeserializer(item) {
|
|
2504
|
+
return {
|
|
2505
|
+
index: item["index"],
|
|
2506
|
+
id: item["id"],
|
|
2507
|
+
type: item["type"],
|
|
2508
|
+
deepResearch: runStepDeepResearchToolCallDetailsDeserializer(item["deep_research"]),
|
|
2509
|
+
};
|
|
2510
|
+
}
|
|
2511
|
+
export function runStepDeltaAzureAISearchToolCallDeserializer(item) {
|
|
2512
|
+
return {
|
|
2513
|
+
index: item["index"],
|
|
2514
|
+
id: item["id"],
|
|
2515
|
+
type: item["type"],
|
|
2516
|
+
azureAISearch: item["azure_ai_search"],
|
|
2517
|
+
};
|
|
2518
|
+
}
|
|
2519
|
+
export function runStepDeltaMicrosoftFabricToolCallDeserializer(item) {
|
|
2520
|
+
return {
|
|
2521
|
+
index: item["index"],
|
|
2522
|
+
id: item["id"],
|
|
2523
|
+
type: item["type"],
|
|
2524
|
+
microsoftFabric: item["fabric_dataagent"],
|
|
2525
|
+
};
|
|
2526
|
+
}
|
|
2527
|
+
export function runStepDeltaSharepointToolCallDeserializer(item) {
|
|
2528
|
+
return {
|
|
2529
|
+
index: item["index"],
|
|
2530
|
+
id: item["id"],
|
|
2531
|
+
type: item["type"],
|
|
2532
|
+
sharepointGrounding: item["sharepoint_grounding"],
|
|
2533
|
+
};
|
|
2534
|
+
}
|
|
2535
|
+
export function runStepDeltaMCPObjectDeserializer(item) {
|
|
2536
|
+
return {
|
|
2537
|
+
type: item["type"],
|
|
2538
|
+
toolCalls: !item["tool_calls"]
|
|
2539
|
+
? item["tool_calls"]
|
|
2540
|
+
: runStepDeltaMcpToolCallArrayDeserializer(item["tool_calls"]),
|
|
2541
|
+
};
|
|
2542
|
+
}
|
|
2543
|
+
export function runStepDeltaMcpToolCallArrayDeserializer(result) {
|
|
2544
|
+
return result.map((item) => {
|
|
2545
|
+
return runStepDeltaMcpToolCallDeserializer(item);
|
|
2546
|
+
});
|
|
2547
|
+
}
|
|
2548
|
+
export function runStepDeltaOpenAPIObjectDeserializer(item) {
|
|
2549
|
+
return {
|
|
2550
|
+
type: item["type"],
|
|
2551
|
+
toolCalls: !item["tool_calls"]
|
|
2552
|
+
? item["tool_calls"]
|
|
2553
|
+
: runStepDeltaOpenAPIToolCallArrayDeserializer(item["tool_calls"]),
|
|
2554
|
+
};
|
|
2555
|
+
}
|
|
2556
|
+
export function runStepDeltaOpenAPIToolCallArrayDeserializer(result) {
|
|
2557
|
+
return result.map((item) => {
|
|
2558
|
+
return runStepDeltaOpenAPIToolCallDeserializer(item);
|
|
2559
|
+
});
|
|
2560
|
+
}
|
|
1910
2561
|
export function agentStreamEventDeserializer(item) {
|
|
1911
2562
|
return item;
|
|
1912
2563
|
}
|
|
@@ -1991,5 +2642,7 @@ export var KnownVersions;
|
|
|
1991
2642
|
KnownVersions["V20250501"] = "2025-05-01";
|
|
1992
2643
|
/** Azure AI API version v1. */
|
|
1993
2644
|
KnownVersions["V1"] = "v1";
|
|
2645
|
+
/** Azure AI API version 2025-05-15-preview. */
|
|
2646
|
+
KnownVersions["V20250515Preview"] = "2025-05-15-preview";
|
|
1994
2647
|
})(KnownVersions || (KnownVersions = {}));
|
|
1995
2648
|
//# sourceMappingURL=models.js.map
|