@azure/ai-agents 1.1.0-beta.3 → 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/README.md +0 -76
- package/dist/browser/api/agentsContext.js +2 -2
- 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 +12 -10
- package/dist/browser/api/runs/operations.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.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 +1 -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 +309 -31
- package/dist/browser/models/models.d.ts.map +1 -1
- package/dist/browser/models/models.js +341 -14
- 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 +12 -1
- package/dist/browser/utils/MCPTool.d.ts.map +1 -1
- package/dist/browser/utils/MCPTool.js +29 -2
- package/dist/browser/utils/MCPTool.js.map +1 -1
- 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 +14 -50
- package/dist/browser/utils/utils.d.ts.map +1 -1
- package/dist/browser/utils/utils.js +13 -91
- package/dist/browser/utils/utils.js.map +1 -1
- package/dist/commonjs/api/agentsContext.js +2 -2
- 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 -10
- package/dist/commonjs/api/runs/operations.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.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 +3 -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 +309 -31
- package/dist/commonjs/models/models.d.ts.map +1 -1
- package/dist/commonjs/models/models.js +385 -15
- 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 +12 -1
- package/dist/commonjs/utils/MCPTool.d.ts.map +1 -1
- package/dist/commonjs/utils/MCPTool.js +29 -2
- package/dist/commonjs/utils/MCPTool.js.map +1 -1
- 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 +14 -50
- package/dist/commonjs/utils/utils.d.ts.map +1 -1
- package/dist/commonjs/utils/utils.js +13 -91
- package/dist/commonjs/utils/utils.js.map +1 -1
- package/dist/esm/api/agentsContext.js +2 -2
- 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 +12 -10
- package/dist/esm/api/runs/operations.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.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 +1 -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 +309 -31
- package/dist/esm/models/models.d.ts.map +1 -1
- package/dist/esm/models/models.js +341 -14
- 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 +12 -1
- package/dist/esm/utils/MCPTool.d.ts.map +1 -1
- package/dist/esm/utils/MCPTool.js +29 -2
- package/dist/esm/utils/MCPTool.js.map +1 -1
- 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 +14 -50
- package/dist/esm/utils/utils.d.ts.map +1 -1
- package/dist/esm/utils/utils.js +13 -91
- package/dist/esm/utils/utils.js.map +1 -1
- package/dist/react-native/api/agentsContext.js +2 -2
- 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 +12 -10
- package/dist/react-native/api/runs/operations.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.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 +1 -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 +309 -31
- package/dist/react-native/models/models.d.ts.map +1 -1
- package/dist/react-native/models/models.js +341 -14
- 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 +12 -1
- package/dist/react-native/utils/MCPTool.d.ts.map +1 -1
- package/dist/react-native/utils/MCPTool.js +29 -2
- package/dist/react-native/utils/MCPTool.js.map +1 -1
- 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 +14 -50
- package/dist/react-native/utils/utils.d.ts.map +1 -1
- package/dist/react-native/utils/utils.js +13 -91
- package/dist/react-native/utils/utils.js.map +1 -1
- package/package.json +36 -37
|
@@ -39,6 +39,8 @@ export function toolDefinitionUnionSerializer(item) {
|
|
|
39
39
|
return mcpToolDefinitionSerializer(item);
|
|
40
40
|
case "azure_function":
|
|
41
41
|
return azureFunctionToolDefinitionSerializer(item);
|
|
42
|
+
case "browser_automation":
|
|
43
|
+
return browserAutomationToolDefinitionSerializer(item);
|
|
42
44
|
default:
|
|
43
45
|
return toolDefinitionSerializer(item);
|
|
44
46
|
}
|
|
@@ -71,6 +73,8 @@ export function toolDefinitionUnionDeserializer(item) {
|
|
|
71
73
|
return mcpToolDefinitionDeserializer(item);
|
|
72
74
|
case "azure_function":
|
|
73
75
|
return azureFunctionToolDefinitionDeserializer(item);
|
|
76
|
+
case "browser_automation":
|
|
77
|
+
return browserAutomationToolDefinitionDeserializer(item);
|
|
74
78
|
default:
|
|
75
79
|
return toolDefinitionDeserializer(item);
|
|
76
80
|
}
|
|
@@ -449,6 +453,16 @@ export function bingCustomSearchConfigurationArrayDeserializer(result) {
|
|
|
449
453
|
return bingCustomSearchConfigurationDeserializer(item);
|
|
450
454
|
});
|
|
451
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
|
+
}
|
|
452
466
|
export function bingCustomSearchConfigurationDeserializer(item) {
|
|
453
467
|
return {
|
|
454
468
|
connectionId: item["connection_id"],
|
|
@@ -471,16 +485,6 @@ export function connectedAgentToolDefinitionDeserializer(item) {
|
|
|
471
485
|
connectedAgent: connectedAgentDetailsDeserializer(item["connected_agent"]),
|
|
472
486
|
};
|
|
473
487
|
}
|
|
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
|
-
}
|
|
484
488
|
export function connectedAgentDetailsSerializer(item) {
|
|
485
489
|
return {
|
|
486
490
|
id: item["id"],
|
|
@@ -611,6 +615,36 @@ export function azureFunctionStorageQueueDeserializer(item) {
|
|
|
611
615
|
queueName: item["queue_name"],
|
|
612
616
|
};
|
|
613
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
|
+
}
|
|
614
648
|
export function toolResourcesSerializer(item) {
|
|
615
649
|
return {
|
|
616
650
|
code_interpreter: !item["codeInterpreter"]
|
|
@@ -805,14 +839,50 @@ export function mcpToolResourceSerializer(item) {
|
|
|
805
839
|
return {
|
|
806
840
|
server_label: item["serverLabel"],
|
|
807
841
|
headers: item["headers"],
|
|
808
|
-
require_approval: item["requireApproval"]
|
|
842
|
+
require_approval: !item["requireApproval"]
|
|
843
|
+
? item["requireApproval"]
|
|
844
|
+
: mcpRequiredApprovalSerializer(item["requireApproval"]),
|
|
809
845
|
};
|
|
810
846
|
}
|
|
811
847
|
export function mcpToolResourceDeserializer(item) {
|
|
812
848
|
return {
|
|
813
849
|
serverLabel: item["server_label"],
|
|
814
850
|
headers: item["headers"],
|
|
815
|
-
requireApproval: item["require_approval"]
|
|
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
|
+
}),
|
|
816
886
|
};
|
|
817
887
|
}
|
|
818
888
|
export function agentsResponseFormatSerializer(item) {
|
|
@@ -1405,6 +1475,13 @@ export function threadMessageArrayDeserializer(result) {
|
|
|
1405
1475
|
return threadMessageDeserializer(item);
|
|
1406
1476
|
});
|
|
1407
1477
|
}
|
|
1478
|
+
export function messageDeletionStatusDeserializer(item) {
|
|
1479
|
+
return {
|
|
1480
|
+
id: item["id"],
|
|
1481
|
+
deleted: item["deleted"],
|
|
1482
|
+
object: item["object"],
|
|
1483
|
+
};
|
|
1484
|
+
}
|
|
1408
1485
|
export function _agentsPagedResultThreadRunDeserializer(item) {
|
|
1409
1486
|
return {
|
|
1410
1487
|
data: threadRunArrayDeserializer(item["data"]),
|
|
@@ -1474,6 +1551,8 @@ export function runStepDetailsUnionDeserializer(item) {
|
|
|
1474
1551
|
return runStepMessageCreationDetailsDeserializer(item);
|
|
1475
1552
|
case "tool_calls":
|
|
1476
1553
|
return runStepToolCallDetailsDeserializer(item);
|
|
1554
|
+
case "activities":
|
|
1555
|
+
return runStepActivityDetailsDeserializer(item);
|
|
1477
1556
|
default:
|
|
1478
1557
|
return runStepDetailsDeserializer(item);
|
|
1479
1558
|
}
|
|
@@ -1516,6 +1595,8 @@ export function runStepToolCallUnionDeserializer(item) {
|
|
|
1516
1595
|
return runStepBingGroundingToolCallDeserializer(item);
|
|
1517
1596
|
case "azure_ai_search":
|
|
1518
1597
|
return runStepAzureAISearchToolCallDeserializer(item);
|
|
1598
|
+
case "browser_automation":
|
|
1599
|
+
return runStepBrowserAutomationToolCallDeserializer(item);
|
|
1519
1600
|
case "mcp":
|
|
1520
1601
|
return runStepMcpToolCallDeserializer(item);
|
|
1521
1602
|
case "sharepoint_grounding":
|
|
@@ -1524,12 +1605,16 @@ export function runStepToolCallUnionDeserializer(item) {
|
|
|
1524
1605
|
return runStepMicrosoftFabricToolCallDeserializer(item);
|
|
1525
1606
|
case "bing_custom_search":
|
|
1526
1607
|
return runStepBingCustomSearchToolCallDeserializer(item);
|
|
1608
|
+
case "azure_function":
|
|
1609
|
+
return runStepAzureFunctionToolCallDeserializer(item);
|
|
1527
1610
|
case "function":
|
|
1528
1611
|
return runStepFunctionToolCallDeserializer(item);
|
|
1529
1612
|
case "openapi":
|
|
1530
1613
|
return runStepOpenAPIToolCallDeserializer(item);
|
|
1531
1614
|
case "deep_research":
|
|
1532
1615
|
return runStepDeepResearchToolCallDeserializer(item);
|
|
1616
|
+
case "connected_agent":
|
|
1617
|
+
return runStepConnectedAgentToolCallDeserializer(item);
|
|
1533
1618
|
default:
|
|
1534
1619
|
return runStepToolCallDeserializer(item);
|
|
1535
1620
|
}
|
|
@@ -1639,6 +1724,32 @@ export function runStepAzureAISearchToolCallDeserializer(item) {
|
|
|
1639
1724
|
azureAISearch: item["azure_ai_search"],
|
|
1640
1725
|
};
|
|
1641
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
|
+
}
|
|
1642
1753
|
export function runStepMcpToolCallDeserializer(item) {
|
|
1643
1754
|
return {
|
|
1644
1755
|
type: item["type"],
|
|
@@ -1670,6 +1781,20 @@ export function runStepBingCustomSearchToolCallDeserializer(item) {
|
|
|
1670
1781
|
bingCustomSearch: item["bing_custom_search"],
|
|
1671
1782
|
};
|
|
1672
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
|
+
}
|
|
1673
1798
|
export function runStepFunctionToolCallDeserializer(item) {
|
|
1674
1799
|
return {
|
|
1675
1800
|
type: item["type"],
|
|
@@ -1703,6 +1828,78 @@ export function runStepDeepResearchToolCallDetailsDeserializer(item) {
|
|
|
1703
1828
|
output: item["output"],
|
|
1704
1829
|
};
|
|
1705
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
|
+
}
|
|
1706
1903
|
export function runStepErrorDeserializer(item) {
|
|
1707
1904
|
return {
|
|
1708
1905
|
code: item["code"],
|
|
@@ -2095,6 +2292,10 @@ export function runStepDeltaDetailUnionDeserializer(item) {
|
|
|
2095
2292
|
return runStepDeltaMessageCreationDeserializer(item);
|
|
2096
2293
|
case "tool_calls":
|
|
2097
2294
|
return runStepDeltaToolCallObjectDeserializer(item);
|
|
2295
|
+
case "mcp":
|
|
2296
|
+
return runStepDeltaMCPObjectDeserializer(item);
|
|
2297
|
+
case "openapi":
|
|
2298
|
+
return runStepDeltaOpenAPIObjectDeserializer(item);
|
|
2098
2299
|
default:
|
|
2099
2300
|
return runStepDeltaDetailDeserializer(item);
|
|
2100
2301
|
}
|
|
@@ -2134,16 +2335,60 @@ export function runStepDeltaToolCallDeserializer(item) {
|
|
|
2134
2335
|
}
|
|
2135
2336
|
export function runStepDeltaToolCallUnionDeserializer(item) {
|
|
2136
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);
|
|
2137
2344
|
case "function":
|
|
2138
2345
|
return runStepDeltaFunctionToolCallDeserializer(item);
|
|
2139
2346
|
case "file_search":
|
|
2140
2347
|
return runStepDeltaFileSearchToolCallDeserializer(item);
|
|
2141
2348
|
case "code_interpreter":
|
|
2142
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);
|
|
2143
2364
|
default:
|
|
2144
2365
|
return runStepDeltaToolCallDeserializer(item);
|
|
2145
2366
|
}
|
|
2146
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
|
+
}
|
|
2147
2392
|
export function runStepDeltaFunctionToolCallDeserializer(item) {
|
|
2148
2393
|
return {
|
|
2149
2394
|
index: item["index"],
|
|
@@ -2231,6 +2476,88 @@ export function runStepDeltaCodeInterpreterImageOutputObjectDeserializer(item) {
|
|
|
2231
2476
|
fileId: item["file_id"],
|
|
2232
2477
|
};
|
|
2233
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
|
+
}
|
|
2234
2561
|
export function agentStreamEventDeserializer(item) {
|
|
2235
2562
|
return item;
|
|
2236
2563
|
}
|
|
@@ -2311,11 +2638,11 @@ export var DoneEvent;
|
|
|
2311
2638
|
/** Azure AI Agents API versions */
|
|
2312
2639
|
export var KnownVersions;
|
|
2313
2640
|
(function (KnownVersions) {
|
|
2314
|
-
/** Azure AI API version 2025-05-15-preview. */
|
|
2315
|
-
KnownVersions["V20250515Preview"] = "2025-05-15-preview";
|
|
2316
2641
|
/** Azure AI API version 2025-05-01. */
|
|
2317
2642
|
KnownVersions["V20250501"] = "2025-05-01";
|
|
2318
2643
|
/** Azure AI API version v1. */
|
|
2319
2644
|
KnownVersions["V1"] = "v1";
|
|
2645
|
+
/** Azure AI API version 2025-05-15-preview. */
|
|
2646
|
+
KnownVersions["V20250515Preview"] = "2025-05-15-preview";
|
|
2320
2647
|
})(KnownVersions || (KnownVersions = {}));
|
|
2321
2648
|
//# sourceMappingURL=models.js.map
|