@azure/ai-projects 2.4.0 → 2.5.0
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 +13 -2
- package/dist/browser/api/agents/operations.d.ts.map +1 -1
- package/dist/browser/api/agents/operations.js +9 -55
- package/dist/browser/api/agents/operations.js.map +1 -1
- package/dist/browser/api/beta/agents/operations.d.ts +10 -10
- package/dist/browser/api/beta/agents/operations.d.ts.map +1 -1
- package/dist/browser/api/beta/agents/operations.js +6 -6
- package/dist/browser/api/beta/agents/operations.js.map +1 -1
- package/dist/browser/api/beta/routines/operations.d.ts +3 -3
- package/dist/browser/api/beta/routines/operations.d.ts.map +1 -1
- package/dist/browser/api/beta/routines/operations.js +21 -23
- package/dist/browser/api/beta/routines/operations.js.map +1 -1
- package/dist/browser/api/beta/routines/options.d.ts +20 -14
- package/dist/browser/api/beta/routines/options.d.ts.map +1 -1
- package/dist/browser/api/beta/routines/options.js.map +1 -1
- package/dist/browser/classic/beta/agents/index.d.ts +5 -5
- package/dist/browser/classic/beta/agents/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/agents/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 +2 -2
- package/dist/browser/index.d.ts.map +1 -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 +181 -98
- package/dist/browser/models/models.d.ts.map +1 -1
- package/dist/browser/models/models.js +245 -81
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/tracing/agentTracing.d.ts +16 -0
- package/dist/browser/tracing/agentTracing.d.ts.map +1 -0
- package/dist/browser/tracing/agentTracing.js +61 -0
- package/dist/browser/tracing/agentTracing.js.map +1 -0
- package/dist/browser/tracing/configuration.d.ts.map +1 -1
- package/dist/browser/tracing/configuration.js +7 -4
- package/dist/browser/tracing/configuration.js.map +1 -1
- package/dist/commonjs/api/agents/operations.d.ts.map +1 -1
- package/dist/commonjs/api/agents/operations.js +9 -63
- package/dist/commonjs/api/agents/operations.js.map +2 -2
- package/dist/commonjs/api/beta/agents/operations.d.ts +10 -10
- package/dist/commonjs/api/beta/agents/operations.d.ts.map +1 -1
- package/dist/commonjs/api/beta/agents/operations.js +5 -5
- package/dist/commonjs/api/beta/agents/operations.js.map +2 -2
- package/dist/commonjs/api/beta/routines/operations.d.ts +3 -3
- package/dist/commonjs/api/beta/routines/operations.d.ts.map +1 -1
- package/dist/commonjs/api/beta/routines/operations.js +21 -23
- package/dist/commonjs/api/beta/routines/operations.js.map +2 -2
- package/dist/commonjs/api/beta/routines/options.d.ts +20 -14
- package/dist/commonjs/api/beta/routines/options.d.ts.map +1 -1
- package/dist/commonjs/api/beta/routines/options.js.map +1 -1
- package/dist/commonjs/classic/beta/agents/index.d.ts +5 -5
- package/dist/commonjs/classic/beta/agents/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/agents/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 +2 -2
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js.map +2 -2
- 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 +181 -98
- package/dist/commonjs/models/models.d.ts.map +1 -1
- package/dist/commonjs/models/models.js +311 -165
- package/dist/commonjs/models/models.js.map +2 -2
- package/dist/commonjs/tracing/agentTracing.d.ts +16 -0
- package/dist/commonjs/tracing/agentTracing.d.ts.map +1 -0
- package/dist/commonjs/tracing/agentTracing.js +74 -0
- package/dist/commonjs/tracing/agentTracing.js.map +7 -0
- package/dist/commonjs/tracing/configuration.d.ts.map +1 -1
- package/dist/commonjs/tracing/configuration.js +13 -3
- package/dist/commonjs/tracing/configuration.js.map +2 -2
- package/dist/esm/api/agents/operations.d.ts.map +1 -1
- package/dist/esm/api/agents/operations.js +9 -55
- package/dist/esm/api/agents/operations.js.map +1 -1
- package/dist/esm/api/beta/agents/operations.d.ts +10 -10
- package/dist/esm/api/beta/agents/operations.d.ts.map +1 -1
- package/dist/esm/api/beta/agents/operations.js +6 -6
- package/dist/esm/api/beta/agents/operations.js.map +1 -1
- package/dist/esm/api/beta/routines/operations.d.ts +3 -3
- package/dist/esm/api/beta/routines/operations.d.ts.map +1 -1
- package/dist/esm/api/beta/routines/operations.js +21 -23
- package/dist/esm/api/beta/routines/operations.js.map +1 -1
- package/dist/esm/api/beta/routines/options.d.ts +20 -14
- package/dist/esm/api/beta/routines/options.d.ts.map +1 -1
- package/dist/esm/api/beta/routines/options.js.map +1 -1
- package/dist/esm/classic/beta/agents/index.d.ts +5 -5
- package/dist/esm/classic/beta/agents/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/agents/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 +2 -2
- package/dist/esm/index.d.ts.map +1 -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 +181 -98
- package/dist/esm/models/models.d.ts.map +1 -1
- package/dist/esm/models/models.js +245 -81
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/tracing/agentTracing.d.ts +16 -0
- package/dist/esm/tracing/agentTracing.d.ts.map +1 -0
- package/dist/esm/tracing/agentTracing.js +61 -0
- package/dist/esm/tracing/agentTracing.js.map +1 -0
- package/dist/esm/tracing/configuration.d.ts.map +1 -1
- package/dist/esm/tracing/configuration.js +7 -4
- package/dist/esm/tracing/configuration.js.map +1 -1
- package/dist/react-native/api/agents/operations.d.ts.map +1 -1
- package/dist/react-native/api/agents/operations.js +9 -55
- package/dist/react-native/api/agents/operations.js.map +1 -1
- package/dist/react-native/api/beta/agents/operations.d.ts +10 -10
- package/dist/react-native/api/beta/agents/operations.d.ts.map +1 -1
- package/dist/react-native/api/beta/agents/operations.js +6 -6
- package/dist/react-native/api/beta/agents/operations.js.map +1 -1
- package/dist/react-native/api/beta/routines/operations.d.ts +3 -3
- package/dist/react-native/api/beta/routines/operations.d.ts.map +1 -1
- package/dist/react-native/api/beta/routines/operations.js +21 -23
- package/dist/react-native/api/beta/routines/operations.js.map +1 -1
- package/dist/react-native/api/beta/routines/options.d.ts +20 -14
- package/dist/react-native/api/beta/routines/options.d.ts.map +1 -1
- package/dist/react-native/api/beta/routines/options.js.map +1 -1
- package/dist/react-native/classic/beta/agents/index.d.ts +5 -5
- package/dist/react-native/classic/beta/agents/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/agents/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 +2 -2
- package/dist/react-native/index.d.ts.map +1 -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 +181 -98
- package/dist/react-native/models/models.d.ts.map +1 -1
- package/dist/react-native/models/models.js +245 -81
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/tracing/agentTracing.d.ts +16 -0
- package/dist/react-native/tracing/agentTracing.d.ts.map +1 -0
- package/dist/react-native/tracing/agentTracing.js +61 -0
- package/dist/react-native/tracing/agentTracing.js.map +1 -0
- package/dist/react-native/tracing/configuration.d.ts.map +1 -1
- package/dist/react-native/tracing/configuration.js +7 -4
- package/dist/react-native/tracing/configuration.js.map +1 -1
- package/package.json +3 -3
|
@@ -208,6 +208,8 @@ export function toolUnionSerializer(item) {
|
|
|
208
208
|
return functionToolSerializer(item);
|
|
209
209
|
case "computer_use_preview":
|
|
210
210
|
return computerUsePreviewToolSerializer(item);
|
|
211
|
+
case "programmatic_tool_calling":
|
|
212
|
+
return programmaticToolCallingParamSerializer(item);
|
|
211
213
|
case "image_generation":
|
|
212
214
|
return imageGenToolSerializer(item);
|
|
213
215
|
case "local_shell":
|
|
@@ -270,6 +272,8 @@ export function toolUnionDeserializer(item) {
|
|
|
270
272
|
return functionToolDeserializer(item);
|
|
271
273
|
case "computer_use_preview":
|
|
272
274
|
return computerUsePreviewToolDeserializer(item);
|
|
275
|
+
case "programmatic_tool_calling":
|
|
276
|
+
return programmaticToolCallingParamDeserializer(item);
|
|
273
277
|
case "image_generation":
|
|
274
278
|
return imageGenToolDeserializer(item);
|
|
275
279
|
case "local_shell":
|
|
@@ -944,6 +948,11 @@ export function memorySearchOptionsDeserializer(item) {
|
|
|
944
948
|
export function codeInterpreterToolSerializer(item) {
|
|
945
949
|
return {
|
|
946
950
|
type: item["type"],
|
|
951
|
+
allowed_callers: !item["allowed_callers"]
|
|
952
|
+
? item["allowed_callers"]
|
|
953
|
+
: item["allowed_callers"].map((p) => {
|
|
954
|
+
return p;
|
|
955
|
+
}),
|
|
947
956
|
name: item["name"],
|
|
948
957
|
description: item["description"],
|
|
949
958
|
tool_configs: !item["tool_configs"]
|
|
@@ -957,6 +966,11 @@ export function codeInterpreterToolSerializer(item) {
|
|
|
957
966
|
export function codeInterpreterToolDeserializer(item) {
|
|
958
967
|
return {
|
|
959
968
|
type: item["type"],
|
|
969
|
+
allowed_callers: !item["allowed_callers"]
|
|
970
|
+
? item["allowed_callers"]
|
|
971
|
+
: item["allowed_callers"].map((p1) => {
|
|
972
|
+
return p1;
|
|
973
|
+
}),
|
|
960
974
|
name: item["name"],
|
|
961
975
|
description: item["description"],
|
|
962
976
|
tool_configs: !item["tool_configs"]
|
|
@@ -1081,8 +1095,14 @@ export function functionToolSerializer(item) {
|
|
|
1081
1095
|
name: item["name"],
|
|
1082
1096
|
description: item["description"],
|
|
1083
1097
|
parameters: item["parameters"],
|
|
1098
|
+
output_schema: item["output_schema"],
|
|
1084
1099
|
strict: item["strict"],
|
|
1085
1100
|
defer_loading: item["defer_loading"],
|
|
1101
|
+
allowed_callers: !item["allowed_callers"]
|
|
1102
|
+
? item["allowed_callers"]
|
|
1103
|
+
: item["allowed_callers"].map((p) => {
|
|
1104
|
+
return p;
|
|
1105
|
+
}),
|
|
1086
1106
|
};
|
|
1087
1107
|
}
|
|
1088
1108
|
export function functionToolDeserializer(item) {
|
|
@@ -1091,8 +1111,16 @@ export function functionToolDeserializer(item) {
|
|
|
1091
1111
|
name: item["name"],
|
|
1092
1112
|
description: item["description"],
|
|
1093
1113
|
parameters: item["parameters"],
|
|
1114
|
+
output_schema: !item["output_schema"]
|
|
1115
|
+
? item["output_schema"]
|
|
1116
|
+
: Object.fromEntries(Object.entries(item["output_schema"]).map(([k1, p1]) => [k1, p1])),
|
|
1094
1117
|
strict: item["strict"],
|
|
1095
1118
|
defer_loading: item["defer_loading"],
|
|
1119
|
+
allowed_callers: !item["allowed_callers"]
|
|
1120
|
+
? item["allowed_callers"]
|
|
1121
|
+
: item["allowed_callers"].map((p1) => {
|
|
1122
|
+
return p1;
|
|
1123
|
+
}),
|
|
1096
1124
|
};
|
|
1097
1125
|
}
|
|
1098
1126
|
export function fileSearchToolSerializer(item) {
|
|
@@ -1329,6 +1357,11 @@ export function mcpToolSerializer(item) {
|
|
|
1329
1357
|
allowed_tools: !item["allowed_tools"]
|
|
1330
1358
|
? item["allowed_tools"]
|
|
1331
1359
|
: _mcpToolAllowedToolsSerializer(item["allowed_tools"]),
|
|
1360
|
+
allowed_callers: !item["allowed_callers"]
|
|
1361
|
+
? item["allowed_callers"]
|
|
1362
|
+
: item["allowed_callers"].map((p) => {
|
|
1363
|
+
return p;
|
|
1364
|
+
}),
|
|
1332
1365
|
require_approval: !item["require_approval"]
|
|
1333
1366
|
? item["require_approval"]
|
|
1334
1367
|
: _mcpToolRequireApprovalSerializer(item["require_approval"]),
|
|
@@ -1352,6 +1385,11 @@ export function mcpToolDeserializer(item) {
|
|
|
1352
1385
|
allowed_tools: !item["allowed_tools"]
|
|
1353
1386
|
? item["allowed_tools"]
|
|
1354
1387
|
: _mcpToolAllowedToolsDeserializer(item["allowed_tools"]),
|
|
1388
|
+
allowed_callers: !item["allowed_callers"]
|
|
1389
|
+
? item["allowed_callers"]
|
|
1390
|
+
: item["allowed_callers"].map((p1) => {
|
|
1391
|
+
return p1;
|
|
1392
|
+
}),
|
|
1355
1393
|
require_approval: !item["require_approval"]
|
|
1356
1394
|
? item["require_approval"]
|
|
1357
1395
|
: _mcpToolRequireApprovalDeserializer(item["require_approval"]),
|
|
@@ -1455,6 +1493,11 @@ export function functionShellToolParamSerializer(item) {
|
|
|
1455
1493
|
environment: !item["environment"]
|
|
1456
1494
|
? item["environment"]
|
|
1457
1495
|
: functionShellToolParamEnvironmentUnionSerializer(item["environment"]),
|
|
1496
|
+
allowed_callers: !item["allowed_callers"]
|
|
1497
|
+
? item["allowed_callers"]
|
|
1498
|
+
: item["allowed_callers"].map((p) => {
|
|
1499
|
+
return p;
|
|
1500
|
+
}),
|
|
1458
1501
|
name: item["name"],
|
|
1459
1502
|
description: item["description"],
|
|
1460
1503
|
tool_configs: !item["tool_configs"]
|
|
@@ -1468,6 +1511,11 @@ export function functionShellToolParamDeserializer(item) {
|
|
|
1468
1511
|
environment: !item["environment"]
|
|
1469
1512
|
? item["environment"]
|
|
1470
1513
|
: functionShellToolParamEnvironmentUnionDeserializer(item["environment"]),
|
|
1514
|
+
allowed_callers: !item["allowed_callers"]
|
|
1515
|
+
? item["allowed_callers"]
|
|
1516
|
+
: item["allowed_callers"].map((p1) => {
|
|
1517
|
+
return p1;
|
|
1518
|
+
}),
|
|
1471
1519
|
name: item["name"],
|
|
1472
1520
|
description: item["description"],
|
|
1473
1521
|
tool_configs: !item["tool_configs"]
|
|
@@ -1651,6 +1699,11 @@ export function customToolParamSerializer(item) {
|
|
|
1651
1699
|
description: item["description"],
|
|
1652
1700
|
format: !item["format"] ? item["format"] : customToolParamFormatUnionSerializer(item["format"]),
|
|
1653
1701
|
defer_loading: item["defer_loading"],
|
|
1702
|
+
allowed_callers: !item["allowed_callers"]
|
|
1703
|
+
? item["allowed_callers"]
|
|
1704
|
+
: item["allowed_callers"].map((p) => {
|
|
1705
|
+
return p;
|
|
1706
|
+
}),
|
|
1654
1707
|
};
|
|
1655
1708
|
}
|
|
1656
1709
|
export function customToolParamDeserializer(item) {
|
|
@@ -1662,6 +1715,11 @@ export function customToolParamDeserializer(item) {
|
|
|
1662
1715
|
? item["format"]
|
|
1663
1716
|
: customToolParamFormatUnionDeserializer(item["format"]),
|
|
1664
1717
|
defer_loading: item["defer_loading"],
|
|
1718
|
+
allowed_callers: !item["allowed_callers"]
|
|
1719
|
+
? item["allowed_callers"]
|
|
1720
|
+
: item["allowed_callers"].map((p1) => {
|
|
1721
|
+
return p1;
|
|
1722
|
+
}),
|
|
1665
1723
|
};
|
|
1666
1724
|
}
|
|
1667
1725
|
export function customToolParamFormatSerializer(item) {
|
|
@@ -1757,11 +1815,23 @@ export function approximateLocationDeserializer(item) {
|
|
|
1757
1815
|
};
|
|
1758
1816
|
}
|
|
1759
1817
|
export function applyPatchToolParamSerializer(item) {
|
|
1760
|
-
return {
|
|
1818
|
+
return {
|
|
1819
|
+
type: item["type"],
|
|
1820
|
+
allowed_callers: !item["allowed_callers"]
|
|
1821
|
+
? item["allowed_callers"]
|
|
1822
|
+
: item["allowed_callers"].map((p) => {
|
|
1823
|
+
return p;
|
|
1824
|
+
}),
|
|
1825
|
+
};
|
|
1761
1826
|
}
|
|
1762
1827
|
export function applyPatchToolParamDeserializer(item) {
|
|
1763
1828
|
return {
|
|
1764
1829
|
type: item["type"],
|
|
1830
|
+
allowed_callers: !item["allowed_callers"]
|
|
1831
|
+
? item["allowed_callers"]
|
|
1832
|
+
: item["allowed_callers"].map((p1) => {
|
|
1833
|
+
return p1;
|
|
1834
|
+
}),
|
|
1765
1835
|
};
|
|
1766
1836
|
}
|
|
1767
1837
|
export function computerToolSerializer(item) {
|
|
@@ -1813,7 +1883,13 @@ export function functionToolParamSerializer(item) {
|
|
|
1813
1883
|
: emptyModelParamSerializer(item["parameters"]),
|
|
1814
1884
|
strict: item["strict"],
|
|
1815
1885
|
type: item["type"],
|
|
1886
|
+
output_schema: item["output_schema"],
|
|
1816
1887
|
defer_loading: item["defer_loading"],
|
|
1888
|
+
allowed_callers: !item["allowed_callers"]
|
|
1889
|
+
? item["allowed_callers"]
|
|
1890
|
+
: item["allowed_callers"].map((p) => {
|
|
1891
|
+
return p;
|
|
1892
|
+
}),
|
|
1817
1893
|
};
|
|
1818
1894
|
}
|
|
1819
1895
|
export function functionToolParamDeserializer(item) {
|
|
@@ -1825,7 +1901,15 @@ export function functionToolParamDeserializer(item) {
|
|
|
1825
1901
|
: emptyModelParamDeserializer(item["parameters"]),
|
|
1826
1902
|
strict: item["strict"],
|
|
1827
1903
|
type: item["type"],
|
|
1904
|
+
output_schema: !item["output_schema"]
|
|
1905
|
+
? item["output_schema"]
|
|
1906
|
+
: Object.fromEntries(Object.entries(item["output_schema"]).map(([k1, p1]) => [k1, p1])),
|
|
1828
1907
|
defer_loading: item["defer_loading"],
|
|
1908
|
+
allowed_callers: !item["allowed_callers"]
|
|
1909
|
+
? item["allowed_callers"]
|
|
1910
|
+
: item["allowed_callers"].map((p1) => {
|
|
1911
|
+
return p1;
|
|
1912
|
+
}),
|
|
1829
1913
|
};
|
|
1830
1914
|
}
|
|
1831
1915
|
export function emptyModelParamSerializer(_item) {
|
|
@@ -1855,11 +1939,12 @@ export function toolSearchToolParamDeserializer(item) {
|
|
|
1855
1939
|
};
|
|
1856
1940
|
}
|
|
1857
1941
|
export function containerConfigurationSerializer(item) {
|
|
1858
|
-
return { image: item["image"] };
|
|
1942
|
+
return { image: item["image"], registry_connection_id: item["registry_connection_id"] };
|
|
1859
1943
|
}
|
|
1860
1944
|
export function containerConfigurationDeserializer(item) {
|
|
1861
1945
|
return {
|
|
1862
1946
|
image: item["image"],
|
|
1947
|
+
registry_connection_id: item["registry_connection_id"],
|
|
1863
1948
|
};
|
|
1864
1949
|
}
|
|
1865
1950
|
export function protocolVersionRecordArraySerializer(result) {
|
|
@@ -2056,6 +2141,7 @@ export function promptAgentDefinitionDeserializer(item) {
|
|
|
2056
2141
|
}
|
|
2057
2142
|
export function reasoningSerializer(item) {
|
|
2058
2143
|
return {
|
|
2144
|
+
mode: !item["mode"] ? item["mode"] : reasoningModeEnumSerializer(item["mode"]),
|
|
2059
2145
|
effort: item["effort"],
|
|
2060
2146
|
summary: item["summary"],
|
|
2061
2147
|
context: item["context"],
|
|
@@ -2064,6 +2150,7 @@ export function reasoningSerializer(item) {
|
|
|
2064
2150
|
}
|
|
2065
2151
|
export function reasoningDeserializer(item) {
|
|
2066
2152
|
return {
|
|
2153
|
+
mode: !item["mode"] ? item["mode"] : reasoningModeEnumDeserializer(item["mode"]),
|
|
2067
2154
|
effort: item["effort"],
|
|
2068
2155
|
summary: item["summary"],
|
|
2069
2156
|
context: item["context"],
|
|
@@ -2094,6 +2181,8 @@ export function toolChoiceParamUnionSerializer(item) {
|
|
|
2094
2181
|
return toolChoiceMCPSerializer(item);
|
|
2095
2182
|
case "custom":
|
|
2096
2183
|
return toolChoiceCustomSerializer(item);
|
|
2184
|
+
case "programmatic_tool_calling":
|
|
2185
|
+
return specificProgrammaticToolCallingParamSerializer(item);
|
|
2097
2186
|
case "apply_patch":
|
|
2098
2187
|
return specificApplyPatchParamSerializer(item);
|
|
2099
2188
|
case "shell":
|
|
@@ -2128,6 +2217,8 @@ export function toolChoiceParamUnionDeserializer(item) {
|
|
|
2128
2217
|
return toolChoiceMCPDeserializer(item);
|
|
2129
2218
|
case "custom":
|
|
2130
2219
|
return toolChoiceCustomDeserializer(item);
|
|
2220
|
+
case "programmatic_tool_calling":
|
|
2221
|
+
return specificProgrammaticToolCallingParamDeserializer(item);
|
|
2131
2222
|
case "apply_patch":
|
|
2132
2223
|
return specificApplyPatchParamDeserializer(item);
|
|
2133
2224
|
case "shell":
|
|
@@ -3534,6 +3625,11 @@ export function codeInterpreterToolboxToolSerializer(item) {
|
|
|
3534
3625
|
tool_configs: !item["tool_configs"]
|
|
3535
3626
|
? item["tool_configs"]
|
|
3536
3627
|
: toolConfigRecordSerializer(item["tool_configs"]),
|
|
3628
|
+
allowed_callers: !item["allowed_callers"]
|
|
3629
|
+
? item["allowed_callers"]
|
|
3630
|
+
: item["allowed_callers"].map((p) => {
|
|
3631
|
+
return p;
|
|
3632
|
+
}),
|
|
3537
3633
|
container: !item["container"]
|
|
3538
3634
|
? item["container"]
|
|
3539
3635
|
: _codeInterpreterToolContainerSerializer(item["container"]),
|
|
@@ -3547,6 +3643,11 @@ export function codeInterpreterToolboxToolDeserializer(item) {
|
|
|
3547
3643
|
tool_configs: !item["tool_configs"]
|
|
3548
3644
|
? item["tool_configs"]
|
|
3549
3645
|
: toolConfigRecordDeserializer(item["tool_configs"]),
|
|
3646
|
+
allowed_callers: !item["allowed_callers"]
|
|
3647
|
+
? item["allowed_callers"]
|
|
3648
|
+
: item["allowed_callers"].map((p1) => {
|
|
3649
|
+
return p1;
|
|
3650
|
+
}),
|
|
3550
3651
|
container: !item["container"]
|
|
3551
3652
|
? item["container"]
|
|
3552
3653
|
: _codeInterpreterToolContainerDeserializer(item["container"]),
|
|
@@ -3646,6 +3747,11 @@ export function mcpToolboxToolSerializer(item) {
|
|
|
3646
3747
|
allowed_tools: !item["allowed_tools"]
|
|
3647
3748
|
? item["allowed_tools"]
|
|
3648
3749
|
: _mcpToolAllowedToolsSerializer(item["allowed_tools"]),
|
|
3750
|
+
allowed_callers: !item["allowed_callers"]
|
|
3751
|
+
? item["allowed_callers"]
|
|
3752
|
+
: item["allowed_callers"].map((p) => {
|
|
3753
|
+
return p;
|
|
3754
|
+
}),
|
|
3649
3755
|
require_approval: !item["require_approval"]
|
|
3650
3756
|
? item["require_approval"]
|
|
3651
3757
|
: _mcpToolRequireApprovalSerializer(item["require_approval"]),
|
|
@@ -3673,6 +3779,11 @@ export function mcpToolboxToolDeserializer(item) {
|
|
|
3673
3779
|
allowed_tools: !item["allowed_tools"]
|
|
3674
3780
|
? item["allowed_tools"]
|
|
3675
3781
|
: _mcpToolAllowedToolsDeserializer(item["allowed_tools"]),
|
|
3782
|
+
allowed_callers: !item["allowed_callers"]
|
|
3783
|
+
? item["allowed_callers"]
|
|
3784
|
+
: item["allowed_callers"].map((p1) => {
|
|
3785
|
+
return p1;
|
|
3786
|
+
}),
|
|
3676
3787
|
require_approval: !item["require_approval"]
|
|
3677
3788
|
? item["require_approval"]
|
|
3678
3789
|
: _mcpToolRequireApprovalDeserializer(item["require_approval"]),
|
|
@@ -5170,6 +5281,7 @@ export function memoryStoreOperationUsageDeserializer(item) {
|
|
|
5170
5281
|
export function responseUsageInputTokensDetailsDeserializer(item) {
|
|
5171
5282
|
return {
|
|
5172
5283
|
cached_tokens: item["cached_tokens"],
|
|
5284
|
+
cache_write_tokens: item["cache_write_tokens"],
|
|
5173
5285
|
};
|
|
5174
5286
|
}
|
|
5175
5287
|
export function responseUsageOutputTokensDetailsDeserializer(item) {
|
|
@@ -5624,12 +5736,10 @@ export function routineDeserializer(item) {
|
|
|
5624
5736
|
updated_at: !item["updated_at"] ? item["updated_at"] : new Date(item["updated_at"] * 1000),
|
|
5625
5737
|
};
|
|
5626
5738
|
}
|
|
5627
|
-
export function
|
|
5739
|
+
export function _pagedResultWithNextLinkRoutineDeserializer(item) {
|
|
5628
5740
|
return {
|
|
5629
5741
|
data: routineArrayDeserializer(item["data"]),
|
|
5630
|
-
|
|
5631
|
-
last_id: item["last_id"],
|
|
5632
|
-
has_more: item["has_more"],
|
|
5742
|
+
next_link: item["next_link"],
|
|
5633
5743
|
};
|
|
5634
5744
|
}
|
|
5635
5745
|
export function routineArrayDeserializer(result) {
|
|
@@ -5637,12 +5747,10 @@ export function routineArrayDeserializer(result) {
|
|
|
5637
5747
|
return routineDeserializer(item);
|
|
5638
5748
|
});
|
|
5639
5749
|
}
|
|
5640
|
-
export function
|
|
5750
|
+
export function _pagedResultWithNextLinkRoutineRunDeserializer(item) {
|
|
5641
5751
|
return {
|
|
5642
5752
|
data: routineRunArrayDeserializer(item["data"]),
|
|
5643
|
-
|
|
5644
|
-
last_id: item["last_id"],
|
|
5645
|
-
has_more: item["has_more"],
|
|
5753
|
+
next_link: item["next_link"],
|
|
5646
5754
|
};
|
|
5647
5755
|
}
|
|
5648
5756
|
export function routineRunArrayDeserializer(result) {
|
|
@@ -6245,6 +6353,8 @@ export function dataGenerationJobOptionsUnionSerializer(item) {
|
|
|
6245
6353
|
return simpleQnADataGenerationJobOptionsSerializer(item);
|
|
6246
6354
|
case "traces":
|
|
6247
6355
|
return tracesDataGenerationJobOptionsSerializer(item);
|
|
6356
|
+
case "simulation_seed":
|
|
6357
|
+
return simulationSeedDataGenerationJobOptionsSerializer(item);
|
|
6248
6358
|
case "task_generation":
|
|
6249
6359
|
return taskGenerationDataGenerationJobOptionsSerializer(item);
|
|
6250
6360
|
case "tool_use":
|
|
@@ -6259,6 +6369,8 @@ export function dataGenerationJobOptionsUnionDeserializer(item) {
|
|
|
6259
6369
|
return simpleQnADataGenerationJobOptionsDeserializer(item);
|
|
6260
6370
|
case "traces":
|
|
6261
6371
|
return tracesDataGenerationJobOptionsDeserializer(item);
|
|
6372
|
+
case "simulation_seed":
|
|
6373
|
+
return simulationSeedDataGenerationJobOptionsDeserializer(item);
|
|
6262
6374
|
case "task_generation":
|
|
6263
6375
|
return taskGenerationDataGenerationJobOptionsDeserializer(item);
|
|
6264
6376
|
case "tool_use":
|
|
@@ -6313,9 +6425,31 @@ export function tracesDataGenerationJobOptionsSerializer(item) {
|
|
|
6313
6425
|
model_options: !item["model_options"]
|
|
6314
6426
|
? item["model_options"]
|
|
6315
6427
|
: dataGenerationModelOptionsSerializer(item["model_options"]),
|
|
6428
|
+
redact_private_content: item["redact_private_content"],
|
|
6316
6429
|
};
|
|
6317
6430
|
}
|
|
6318
6431
|
export function tracesDataGenerationJobOptionsDeserializer(item) {
|
|
6432
|
+
return {
|
|
6433
|
+
type: item["type"],
|
|
6434
|
+
max_samples: item["max_samples"],
|
|
6435
|
+
train_split: item["train_split"],
|
|
6436
|
+
model_options: !item["model_options"]
|
|
6437
|
+
? item["model_options"]
|
|
6438
|
+
: dataGenerationModelOptionsDeserializer(item["model_options"]),
|
|
6439
|
+
redact_private_content: item["redact_private_content"],
|
|
6440
|
+
};
|
|
6441
|
+
}
|
|
6442
|
+
export function simulationSeedDataGenerationJobOptionsSerializer(item) {
|
|
6443
|
+
return {
|
|
6444
|
+
type: item["type"],
|
|
6445
|
+
max_samples: item["max_samples"],
|
|
6446
|
+
train_split: item["train_split"],
|
|
6447
|
+
model_options: !item["model_options"]
|
|
6448
|
+
? item["model_options"]
|
|
6449
|
+
: dataGenerationModelOptionsSerializer(item["model_options"]),
|
|
6450
|
+
};
|
|
6451
|
+
}
|
|
6452
|
+
export function simulationSeedDataGenerationJobOptionsDeserializer(item) {
|
|
6319
6453
|
return {
|
|
6320
6454
|
type: item["type"],
|
|
6321
6455
|
max_samples: item["max_samples"],
|
|
@@ -6448,23 +6582,27 @@ export function dataGenerationJobArrayDeserializer(result) {
|
|
|
6448
6582
|
return dataGenerationJobDeserializer(item);
|
|
6449
6583
|
});
|
|
6450
6584
|
}
|
|
6451
|
-
export function
|
|
6585
|
+
export function agentOptimizationJobSerializer(item) {
|
|
6452
6586
|
return {
|
|
6453
|
-
inputs: !item["inputs"] ? item["inputs"] :
|
|
6587
|
+
inputs: !item["inputs"] ? item["inputs"] : agentOptimizationJobInputsSerializer(item["inputs"]),
|
|
6454
6588
|
};
|
|
6455
6589
|
}
|
|
6456
|
-
export function
|
|
6590
|
+
export function agentOptimizationJobDeserializer(item) {
|
|
6457
6591
|
return {
|
|
6458
6592
|
id: item["id"],
|
|
6459
|
-
inputs: !item["inputs"]
|
|
6460
|
-
|
|
6593
|
+
inputs: !item["inputs"]
|
|
6594
|
+
? item["inputs"]
|
|
6595
|
+
: agentOptimizationJobInputsDeserializer(item["inputs"]),
|
|
6596
|
+
result: !item["result"]
|
|
6597
|
+
? item["result"]
|
|
6598
|
+
: agentOptimizationJobResultDeserializer(item["result"]),
|
|
6461
6599
|
status: item["status"],
|
|
6462
6600
|
error: !item["error"] ? item["error"] : apiErrorDeserializer(item["error"]),
|
|
6463
6601
|
created_at: new Date(item["created_at"] * 1000),
|
|
6464
6602
|
updated_at: new Date(item["updated_at"] * 1000),
|
|
6465
6603
|
progress: !item["progress"]
|
|
6466
6604
|
? item["progress"]
|
|
6467
|
-
:
|
|
6605
|
+
: agentOptimizationJobProgressDeserializer(item["progress"]),
|
|
6468
6606
|
warnings: !item["warnings"]
|
|
6469
6607
|
? item["warnings"]
|
|
6470
6608
|
: item["warnings"].map((p) => {
|
|
@@ -6472,153 +6610,157 @@ export function optimizationJobDeserializer(item) {
|
|
|
6472
6610
|
}),
|
|
6473
6611
|
};
|
|
6474
6612
|
}
|
|
6475
|
-
export function
|
|
6613
|
+
export function agentOptimizationJobInputsSerializer(item) {
|
|
6476
6614
|
return {
|
|
6477
|
-
agent:
|
|
6478
|
-
train_dataset:
|
|
6615
|
+
agent: optimizedAgentIdentifierSerializer(item["agent"]),
|
|
6616
|
+
train_dataset: agentOptimizationDatasetInputUnionSerializer(item["train_dataset"]),
|
|
6479
6617
|
validation_dataset: !item["validation_dataset"]
|
|
6480
6618
|
? item["validation_dataset"]
|
|
6481
|
-
:
|
|
6482
|
-
evaluators:
|
|
6483
|
-
options: !item["options"]
|
|
6619
|
+
: agentOptimizationDatasetInputUnionSerializer(item["validation_dataset"]),
|
|
6620
|
+
evaluators: agentOptimizationEvaluatorRefArraySerializer(item["evaluators"]),
|
|
6621
|
+
options: !item["options"]
|
|
6622
|
+
? item["options"]
|
|
6623
|
+
: agentOptimizationOptionsSerializer(item["options"]),
|
|
6484
6624
|
};
|
|
6485
6625
|
}
|
|
6486
|
-
export function
|
|
6626
|
+
export function agentOptimizationJobInputsDeserializer(item) {
|
|
6487
6627
|
return {
|
|
6488
|
-
agent:
|
|
6489
|
-
train_dataset:
|
|
6628
|
+
agent: optimizedAgentIdentifierDeserializer(item["agent"]),
|
|
6629
|
+
train_dataset: agentOptimizationDatasetInputUnionDeserializer(item["train_dataset"]),
|
|
6490
6630
|
validation_dataset: !item["validation_dataset"]
|
|
6491
6631
|
? item["validation_dataset"]
|
|
6492
|
-
:
|
|
6493
|
-
evaluators:
|
|
6494
|
-
options: !item["options"]
|
|
6632
|
+
: agentOptimizationDatasetInputUnionDeserializer(item["validation_dataset"]),
|
|
6633
|
+
evaluators: agentOptimizationEvaluatorRefArrayDeserializer(item["evaluators"]),
|
|
6634
|
+
options: !item["options"]
|
|
6635
|
+
? item["options"]
|
|
6636
|
+
: agentOptimizationOptionsDeserializer(item["options"]),
|
|
6495
6637
|
};
|
|
6496
6638
|
}
|
|
6497
|
-
export function
|
|
6639
|
+
export function optimizedAgentIdentifierSerializer(item) {
|
|
6498
6640
|
return { agent_name: item["agent_name"], agent_version: item["agent_version"] };
|
|
6499
6641
|
}
|
|
6500
|
-
export function
|
|
6642
|
+
export function optimizedAgentIdentifierDeserializer(item) {
|
|
6501
6643
|
return {
|
|
6502
6644
|
agent_name: item["agent_name"],
|
|
6503
6645
|
agent_version: item["agent_version"],
|
|
6504
6646
|
};
|
|
6505
6647
|
}
|
|
6506
|
-
export function
|
|
6648
|
+
export function agentOptimizationDatasetInputSerializer(item) {
|
|
6507
6649
|
return { type: item["type"] };
|
|
6508
6650
|
}
|
|
6509
|
-
export function
|
|
6651
|
+
export function agentOptimizationDatasetInputDeserializer(item) {
|
|
6510
6652
|
return {
|
|
6511
6653
|
type: item["type"],
|
|
6512
6654
|
};
|
|
6513
6655
|
}
|
|
6514
|
-
export function
|
|
6656
|
+
export function agentOptimizationDatasetInputUnionSerializer(item) {
|
|
6515
6657
|
switch (item.type) {
|
|
6516
6658
|
case "inline":
|
|
6517
|
-
return
|
|
6659
|
+
return agentOptimizationInlineDatasetInputSerializer(item);
|
|
6518
6660
|
case "reference":
|
|
6519
|
-
return
|
|
6661
|
+
return agentOptimizationReferenceDatasetInputSerializer(item);
|
|
6520
6662
|
default:
|
|
6521
|
-
return
|
|
6663
|
+
return agentOptimizationDatasetInputSerializer(item);
|
|
6522
6664
|
}
|
|
6523
6665
|
}
|
|
6524
|
-
export function
|
|
6666
|
+
export function agentOptimizationDatasetInputUnionDeserializer(item) {
|
|
6525
6667
|
switch (item["type"]) {
|
|
6526
6668
|
case "inline":
|
|
6527
|
-
return
|
|
6669
|
+
return agentOptimizationInlineDatasetInputDeserializer(item);
|
|
6528
6670
|
case "reference":
|
|
6529
|
-
return
|
|
6671
|
+
return agentOptimizationReferenceDatasetInputDeserializer(item);
|
|
6530
6672
|
default:
|
|
6531
|
-
return
|
|
6673
|
+
return agentOptimizationDatasetInputDeserializer(item);
|
|
6532
6674
|
}
|
|
6533
6675
|
}
|
|
6534
|
-
export function
|
|
6535
|
-
return { type: item["type"], items:
|
|
6676
|
+
export function agentOptimizationInlineDatasetInputSerializer(item) {
|
|
6677
|
+
return { type: item["type"], items: agentOptimizationDatasetItemArraySerializer(item["items"]) };
|
|
6536
6678
|
}
|
|
6537
|
-
export function
|
|
6679
|
+
export function agentOptimizationInlineDatasetInputDeserializer(item) {
|
|
6538
6680
|
return {
|
|
6539
6681
|
type: item["type"],
|
|
6540
|
-
items:
|
|
6682
|
+
items: agentOptimizationDatasetItemArrayDeserializer(item["items"]),
|
|
6541
6683
|
};
|
|
6542
6684
|
}
|
|
6543
|
-
export function
|
|
6685
|
+
export function agentOptimizationDatasetItemArraySerializer(result) {
|
|
6544
6686
|
return result.map((item) => {
|
|
6545
|
-
return
|
|
6687
|
+
return agentOptimizationDatasetItemSerializer(item);
|
|
6546
6688
|
});
|
|
6547
6689
|
}
|
|
6548
|
-
export function
|
|
6690
|
+
export function agentOptimizationDatasetItemArrayDeserializer(result) {
|
|
6549
6691
|
return result.map((item) => {
|
|
6550
|
-
return
|
|
6692
|
+
return agentOptimizationDatasetItemDeserializer(item);
|
|
6551
6693
|
});
|
|
6552
6694
|
}
|
|
6553
|
-
export function
|
|
6695
|
+
export function agentOptimizationDatasetItemSerializer(item) {
|
|
6554
6696
|
return {
|
|
6555
6697
|
query: item["query"],
|
|
6556
6698
|
ground_truth: item["ground_truth"],
|
|
6557
6699
|
desired_num_turns: item["desired_num_turns"],
|
|
6558
6700
|
criteria: !item["criteria"]
|
|
6559
6701
|
? item["criteria"]
|
|
6560
|
-
:
|
|
6702
|
+
: agentOptimizationDatasetCriterionArraySerializer(item["criteria"]),
|
|
6561
6703
|
};
|
|
6562
6704
|
}
|
|
6563
|
-
export function
|
|
6705
|
+
export function agentOptimizationDatasetItemDeserializer(item) {
|
|
6564
6706
|
return {
|
|
6565
6707
|
query: item["query"],
|
|
6566
6708
|
ground_truth: item["ground_truth"],
|
|
6567
6709
|
desired_num_turns: item["desired_num_turns"],
|
|
6568
6710
|
criteria: !item["criteria"]
|
|
6569
6711
|
? item["criteria"]
|
|
6570
|
-
:
|
|
6712
|
+
: agentOptimizationDatasetCriterionArrayDeserializer(item["criteria"]),
|
|
6571
6713
|
};
|
|
6572
6714
|
}
|
|
6573
|
-
export function
|
|
6715
|
+
export function agentOptimizationDatasetCriterionArraySerializer(result) {
|
|
6574
6716
|
return result.map((item) => {
|
|
6575
|
-
return
|
|
6717
|
+
return agentOptimizationDatasetCriterionSerializer(item);
|
|
6576
6718
|
});
|
|
6577
6719
|
}
|
|
6578
|
-
export function
|
|
6720
|
+
export function agentOptimizationDatasetCriterionArrayDeserializer(result) {
|
|
6579
6721
|
return result.map((item) => {
|
|
6580
|
-
return
|
|
6722
|
+
return agentOptimizationDatasetCriterionDeserializer(item);
|
|
6581
6723
|
});
|
|
6582
6724
|
}
|
|
6583
|
-
export function
|
|
6725
|
+
export function agentOptimizationDatasetCriterionSerializer(item) {
|
|
6584
6726
|
return { name: item["name"], instruction: item["instruction"] };
|
|
6585
6727
|
}
|
|
6586
|
-
export function
|
|
6728
|
+
export function agentOptimizationDatasetCriterionDeserializer(item) {
|
|
6587
6729
|
return {
|
|
6588
6730
|
name: item["name"],
|
|
6589
6731
|
instruction: item["instruction"],
|
|
6590
6732
|
};
|
|
6591
6733
|
}
|
|
6592
|
-
export function
|
|
6734
|
+
export function agentOptimizationReferenceDatasetInputSerializer(item) {
|
|
6593
6735
|
return { type: item["type"], name: item["name"], version: item["version"] };
|
|
6594
6736
|
}
|
|
6595
|
-
export function
|
|
6737
|
+
export function agentOptimizationReferenceDatasetInputDeserializer(item) {
|
|
6596
6738
|
return {
|
|
6597
6739
|
type: item["type"],
|
|
6598
6740
|
name: item["name"],
|
|
6599
6741
|
version: item["version"],
|
|
6600
6742
|
};
|
|
6601
6743
|
}
|
|
6602
|
-
export function
|
|
6744
|
+
export function agentOptimizationEvaluatorRefArraySerializer(result) {
|
|
6603
6745
|
return result.map((item) => {
|
|
6604
|
-
return
|
|
6746
|
+
return agentOptimizationEvaluatorRefSerializer(item);
|
|
6605
6747
|
});
|
|
6606
6748
|
}
|
|
6607
|
-
export function
|
|
6749
|
+
export function agentOptimizationEvaluatorRefArrayDeserializer(result) {
|
|
6608
6750
|
return result.map((item) => {
|
|
6609
|
-
return
|
|
6751
|
+
return agentOptimizationEvaluatorRefDeserializer(item);
|
|
6610
6752
|
});
|
|
6611
6753
|
}
|
|
6612
|
-
export function
|
|
6754
|
+
export function agentOptimizationEvaluatorRefSerializer(item) {
|
|
6613
6755
|
return { name: item["name"], version: item["version"] };
|
|
6614
6756
|
}
|
|
6615
|
-
export function
|
|
6757
|
+
export function agentOptimizationEvaluatorRefDeserializer(item) {
|
|
6616
6758
|
return {
|
|
6617
6759
|
name: item["name"],
|
|
6618
6760
|
version: item["version"],
|
|
6619
6761
|
};
|
|
6620
6762
|
}
|
|
6621
|
-
export function
|
|
6763
|
+
export function agentOptimizationOptionsSerializer(item) {
|
|
6622
6764
|
return {
|
|
6623
6765
|
max_candidates: item["max_candidates"],
|
|
6624
6766
|
optimization_config: item["optimization_config"],
|
|
@@ -6628,7 +6770,7 @@ export function optimizationOptionsSerializer(item) {
|
|
|
6628
6770
|
max_stalls: item["max_stalls"],
|
|
6629
6771
|
};
|
|
6630
6772
|
}
|
|
6631
|
-
export function
|
|
6773
|
+
export function agentOptimizationOptionsDeserializer(item) {
|
|
6632
6774
|
return {
|
|
6633
6775
|
max_candidates: item["max_candidates"],
|
|
6634
6776
|
optimization_config: !item["optimization_config"]
|
|
@@ -6640,21 +6782,21 @@ export function optimizationOptionsDeserializer(item) {
|
|
|
6640
6782
|
max_stalls: item["max_stalls"],
|
|
6641
6783
|
};
|
|
6642
6784
|
}
|
|
6643
|
-
export function
|
|
6785
|
+
export function agentOptimizationJobResultDeserializer(item) {
|
|
6644
6786
|
return {
|
|
6645
6787
|
baseline: item["baseline"],
|
|
6646
6788
|
best: item["best"],
|
|
6647
6789
|
candidates: !item["candidates"]
|
|
6648
6790
|
? item["candidates"]
|
|
6649
|
-
:
|
|
6791
|
+
: agentOptimizationCandidateArrayDeserializer(item["candidates"]),
|
|
6650
6792
|
};
|
|
6651
6793
|
}
|
|
6652
|
-
export function
|
|
6794
|
+
export function agentOptimizationCandidateArrayDeserializer(result) {
|
|
6653
6795
|
return result.map((item) => {
|
|
6654
|
-
return
|
|
6796
|
+
return agentOptimizationCandidateDeserializer(item);
|
|
6655
6797
|
});
|
|
6656
6798
|
}
|
|
6657
|
-
export function
|
|
6799
|
+
export function agentOptimizationCandidateDeserializer(item) {
|
|
6658
6800
|
return {
|
|
6659
6801
|
candidate_id: item["candidate_id"],
|
|
6660
6802
|
name: item["name"],
|
|
@@ -6677,27 +6819,27 @@ export function promotionInfoDeserializer(item) {
|
|
|
6677
6819
|
agent_version: item["agent_version"],
|
|
6678
6820
|
};
|
|
6679
6821
|
}
|
|
6680
|
-
export function
|
|
6822
|
+
export function agentOptimizationJobProgressDeserializer(item) {
|
|
6681
6823
|
return {
|
|
6682
6824
|
candidates_completed: item["candidates_completed"],
|
|
6683
6825
|
best_score: item["best_score"],
|
|
6684
6826
|
elapsed_seconds: item["elapsed_seconds"],
|
|
6685
6827
|
};
|
|
6686
6828
|
}
|
|
6687
|
-
export function
|
|
6829
|
+
export function _agentsPagedResultAgentOptimizationJobListItemDeserializer(item) {
|
|
6688
6830
|
return {
|
|
6689
|
-
data:
|
|
6831
|
+
data: agentOptimizationJobListItemArrayDeserializer(item["data"]),
|
|
6690
6832
|
first_id: item["first_id"],
|
|
6691
6833
|
last_id: item["last_id"],
|
|
6692
6834
|
has_more: item["has_more"],
|
|
6693
6835
|
};
|
|
6694
6836
|
}
|
|
6695
|
-
export function
|
|
6837
|
+
export function agentOptimizationJobListItemArrayDeserializer(result) {
|
|
6696
6838
|
return result.map((item) => {
|
|
6697
|
-
return
|
|
6839
|
+
return agentOptimizationJobListItemDeserializer(item);
|
|
6698
6840
|
});
|
|
6699
6841
|
}
|
|
6700
|
-
export function
|
|
6842
|
+
export function agentOptimizationJobListItemDeserializer(item) {
|
|
6701
6843
|
return {
|
|
6702
6844
|
id: item["id"],
|
|
6703
6845
|
status: item["status"],
|
|
@@ -6706,8 +6848,8 @@ export function optimizationJobListItemDeserializer(item) {
|
|
|
6706
6848
|
updated_at: new Date(item["updated_at"] * 1000),
|
|
6707
6849
|
progress: !item["progress"]
|
|
6708
6850
|
? item["progress"]
|
|
6709
|
-
:
|
|
6710
|
-
agent: !item["agent"] ? item["agent"] :
|
|
6851
|
+
: agentOptimizationJobProgressDeserializer(item["progress"]),
|
|
6852
|
+
agent: !item["agent"] ? item["agent"] : optimizedAgentIdentifierDeserializer(item["agent"]),
|
|
6711
6853
|
};
|
|
6712
6854
|
}
|
|
6713
6855
|
export function updateToolboxRequestSerializer(item) {
|
|
@@ -6722,4 +6864,26 @@ export var KnownApiVersions;
|
|
|
6722
6864
|
/** Microsoft Foundry API version v1. */
|
|
6723
6865
|
KnownApiVersions["v1"] = "v1";
|
|
6724
6866
|
})(KnownApiVersions || (KnownApiVersions = {}));
|
|
6867
|
+
export function programmaticToolCallingParamDeserializer(item) {
|
|
6868
|
+
return {
|
|
6869
|
+
type: item["type"],
|
|
6870
|
+
};
|
|
6871
|
+
}
|
|
6872
|
+
export function programmaticToolCallingParamSerializer(item) {
|
|
6873
|
+
return { type: item["type"] };
|
|
6874
|
+
}
|
|
6875
|
+
export function reasoningModeEnumDeserializer(item) {
|
|
6876
|
+
return item;
|
|
6877
|
+
}
|
|
6878
|
+
export function reasoningModeEnumSerializer(item) {
|
|
6879
|
+
return item;
|
|
6880
|
+
}
|
|
6881
|
+
export function specificProgrammaticToolCallingParamDeserializer(item) {
|
|
6882
|
+
return {
|
|
6883
|
+
type: item["type"],
|
|
6884
|
+
};
|
|
6885
|
+
}
|
|
6886
|
+
export function specificProgrammaticToolCallingParamSerializer(item) {
|
|
6887
|
+
return { type: item["type"] };
|
|
6888
|
+
}
|
|
6725
6889
|
//# sourceMappingURL=models.js.map
|