@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../src/api/beta/routines/operations.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,IAAI,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,KAAK,EACV,OAAO,EACP,
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../src/api/beta/routines/operations.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,IAAI,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,KAAK,EACV,OAAO,EACP,+BAA+B,EAC/B,kCAAkC,EAClC,UAAU,EACV,uBAAuB,EACxB,MAAM,2BAA2B,CAAC;AAWnC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAGrE,OAAO,KAAK,EACV,kCAAkC,EAClC,kCAAkC,EAClC,gCAAgC,EAChC,8BAA8B,EAC9B,iCAAiC,EACjC,gCAAgC,EAChC,6BAA6B,EAC7B,wCAAwC,EACzC,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGvF,wBAAgB,aAAa,CAC3B,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,kCAA2D,GACnE,gBAAgB,CAyBlB;AAED,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,uBAAuB,CAAC,CAYlC;AAED,iEAAiE;AACjE,wBAAsB,QAAQ,CAC5B,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,kCAA2D,GACnE,OAAO,CAAC,uBAAuB,CAAC,CAGlC;AAED,wBAAgB,aAAa,CAC3B,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,E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,OAAO,GAAE,iCAA0D,GAClE,OAAO,CAAC,OAAO,CAAC,CAGlB;AAED,wBAAgB,WAAW,CACzB,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,gCAAyD,GACjE,gBAAgB,CAmBlB;AAED,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,OAAO,CAAC,CAYxF;AAED,6DAA6D;AAC7D,wBAAsB,MAAM,CAC1B,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,gCAAyD,GACjE,OAAO,CAAC,OAAO,CAAC,CAGlB;AAED,wBAAgB,QAAQ,CACtB,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,6BAAsD,GAC9D,gBAAgB,CAmBlB;AAED,wBAAsB,eAAe,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,OAAO,CAAC,CAYrF;AAED,qEAAqE;AACrE,wBAAsB,GAAG,CACvB,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,6BAAsD,GAC9D,OAAO,CAAC,OAAO,CAAC,CAGlB;AAED,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,wCAAiE,GACzE,gBAAgB,CA6BlB;AAED,wBAAsB,0BAA0B,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,OAAO,CAAC,CAYhG;AAED,0FAA0F;AAC1F,wBAAsB,cAAc,CAClC,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,wCAAiE,GACzE,OAAO,CAAC,OAAO,CAAC,CAGlB"}
|
|
@@ -62,7 +62,7 @@ function _dispatchSend(context, routineName, options = { requestOptions: {} }) {
|
|
|
62
62
|
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
63
63
|
contentType: "application/json",
|
|
64
64
|
headers: {
|
|
65
|
-
"foundry-features": "Routines=
|
|
65
|
+
"foundry-features": "Routines=V2Preview",
|
|
66
66
|
accept: "application/json",
|
|
67
67
|
...options.requestOptions?.headers
|
|
68
68
|
},
|
|
@@ -87,16 +87,15 @@ async function dispatch(context, routineName, options = { requestOptions: {} })
|
|
|
87
87
|
return _dispatchDeserialize(result);
|
|
88
88
|
}
|
|
89
89
|
function _listRunsSend(context, routineName, options = { requestOptions: {} }) {
|
|
90
|
-
const foundryFeatures = "Routines=
|
|
90
|
+
const foundryFeatures = "Routines=V2Preview";
|
|
91
91
|
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
92
|
-
"/routines/{routine_name}/runs{?filter,limit,after,
|
|
92
|
+
"/routines/{routine_name}/runs{?filter,limit,after,order,api-version}",
|
|
93
93
|
{
|
|
94
94
|
routine_name: routineName,
|
|
95
95
|
filter: options?.filter,
|
|
96
96
|
limit: options?.limit,
|
|
97
97
|
order: options?.order,
|
|
98
98
|
after: options?.after,
|
|
99
|
-
before: options?.before,
|
|
100
99
|
"api-version": context.apiVersion
|
|
101
100
|
},
|
|
102
101
|
{
|
|
@@ -121,7 +120,7 @@ async function _listRunsDeserialize(result) {
|
|
|
121
120
|
}
|
|
122
121
|
throw error;
|
|
123
122
|
}
|
|
124
|
-
return (0, import_models.
|
|
123
|
+
return (0, import_models._pagedResultWithNextLinkRoutineRunDeserializer)(result.body);
|
|
125
124
|
}
|
|
126
125
|
function listRuns(context, routineName, options = { requestOptions: {} }) {
|
|
127
126
|
return (0, import_pagingHelpers.buildPagedAsyncIterator)(
|
|
@@ -131,17 +130,18 @@ function listRuns(context, routineName, options = { requestOptions: {} }) {
|
|
|
131
130
|
["200"],
|
|
132
131
|
{
|
|
133
132
|
itemName: "data",
|
|
133
|
+
nextLinkName: "next_link",
|
|
134
134
|
apiVersion: context.apiVersion,
|
|
135
135
|
nextPageRequestOptions: {
|
|
136
136
|
headers: {
|
|
137
|
-
"foundry-features": "Routines=
|
|
137
|
+
"foundry-features": "Routines=V2Preview"
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
);
|
|
142
142
|
}
|
|
143
143
|
function _$deleteSend(context, routineName, options = { requestOptions: {} }) {
|
|
144
|
-
const foundryFeatures = "Routines=
|
|
144
|
+
const foundryFeatures = "Routines=V2Preview";
|
|
145
145
|
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
146
146
|
"/routines/{routine_name}{?api-version}",
|
|
147
147
|
{
|
|
@@ -177,11 +177,10 @@ async function $delete(context, routineName, options = { requestOptions: {} }) {
|
|
|
177
177
|
}
|
|
178
178
|
function _listSend(context, options = { requestOptions: {} }) {
|
|
179
179
|
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
180
|
-
"/routines{?limit,after,
|
|
180
|
+
"/routines{?limit,after,order,api-version}",
|
|
181
181
|
{
|
|
182
182
|
limit: options?.limit,
|
|
183
183
|
after: options?.after,
|
|
184
|
-
before: options?.before,
|
|
185
184
|
order: options?.order,
|
|
186
185
|
"api-version": context.apiVersion
|
|
187
186
|
},
|
|
@@ -192,7 +191,7 @@ function _listSend(context, options = { requestOptions: {} }) {
|
|
|
192
191
|
return context.path(path).get({
|
|
193
192
|
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
194
193
|
headers: {
|
|
195
|
-
"foundry-features": "Routines=
|
|
194
|
+
"foundry-features": "Routines=V2Preview",
|
|
196
195
|
accept: "application/json",
|
|
197
196
|
...options.requestOptions?.headers
|
|
198
197
|
}
|
|
@@ -207,13 +206,7 @@ async function _listDeserialize(result) {
|
|
|
207
206
|
}
|
|
208
207
|
throw error;
|
|
209
208
|
}
|
|
210
|
-
|
|
211
|
-
return {
|
|
212
|
-
data: (body["value"] ?? body["data"] ?? []).map((item) => (0, import_models.routineDeserializer)(item)),
|
|
213
|
-
first_id: body["first_id"],
|
|
214
|
-
last_id: body["last_id"],
|
|
215
|
-
has_more: body["has_more"] ?? false
|
|
216
|
-
};
|
|
209
|
+
return (0, import_models._pagedResultWithNextLinkRoutineDeserializer)(result.body);
|
|
217
210
|
}
|
|
218
211
|
function list(context, options = { requestOptions: {} }) {
|
|
219
212
|
return (0, import_pagingHelpers.buildPagedAsyncIterator)(
|
|
@@ -223,8 +216,13 @@ function list(context, options = { requestOptions: {} }) {
|
|
|
223
216
|
["200"],
|
|
224
217
|
{
|
|
225
218
|
itemName: "data",
|
|
226
|
-
nextLinkName: "
|
|
227
|
-
apiVersion: context.apiVersion
|
|
219
|
+
nextLinkName: "next_link",
|
|
220
|
+
apiVersion: context.apiVersion,
|
|
221
|
+
nextPageRequestOptions: {
|
|
222
|
+
headers: {
|
|
223
|
+
"foundry-features": "Routines=V2Preview"
|
|
224
|
+
}
|
|
225
|
+
}
|
|
228
226
|
}
|
|
229
227
|
);
|
|
230
228
|
}
|
|
@@ -242,7 +240,7 @@ function _disableSend(context, routineName, options = { requestOptions: {} }) {
|
|
|
242
240
|
return context.path(path).post({
|
|
243
241
|
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
244
242
|
headers: {
|
|
245
|
-
"foundry-features": "Routines=
|
|
243
|
+
"foundry-features": "Routines=V2Preview",
|
|
246
244
|
accept: "application/json",
|
|
247
245
|
...options.requestOptions?.headers
|
|
248
246
|
}
|
|
@@ -277,7 +275,7 @@ function _enableSend(context, routineName, options = { requestOptions: {} }) {
|
|
|
277
275
|
return context.path(path).post({
|
|
278
276
|
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
279
277
|
headers: {
|
|
280
|
-
"foundry-features": "Routines=
|
|
278
|
+
"foundry-features": "Routines=V2Preview",
|
|
281
279
|
accept: "application/json",
|
|
282
280
|
...options.requestOptions?.headers
|
|
283
281
|
}
|
|
@@ -312,7 +310,7 @@ function _getSend(context, routineName, options = { requestOptions: {} }) {
|
|
|
312
310
|
return context.path(path).get({
|
|
313
311
|
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
314
312
|
headers: {
|
|
315
|
-
"foundry-features": "Routines=
|
|
313
|
+
"foundry-features": "Routines=V2Preview",
|
|
316
314
|
accept: "application/json",
|
|
317
315
|
...options.requestOptions?.headers
|
|
318
316
|
}
|
|
@@ -334,7 +332,7 @@ async function get(context, routineName, options = { requestOptions: {} }) {
|
|
|
334
332
|
return _getDeserialize(result);
|
|
335
333
|
}
|
|
336
334
|
function _createOrUpdateSend(context, routineName, options = { requestOptions: {} }) {
|
|
337
|
-
const foundryFeatures = "Routines=
|
|
335
|
+
const foundryFeatures = "Routines=V2Preview";
|
|
338
336
|
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
339
337
|
"/routines/{routine_name}{?api-version}",
|
|
340
338
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../src/api/beta/routines/operations.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AIProjectContext as Client } from \"../../index.js\";\nimport type {\n Routine,\n _AgentsPagedResultRoutine,\n _AgentsPagedResultRoutineRun,\n RoutineRun,\n DispatchRoutineResponse,\n} from \"../../../models/models.js\";\nimport {\n apiErrorResponseDeserializer,\n routineTriggerUnionRecordSerializer,\n routineActionUnionSerializer,\n routineDeserializer,\n _agentsPagedResultRoutineDeserializer,\n _agentsPagedResultRoutineRunDeserializer,\n routineDispatchPayloadUnionSerializer,\n dispatchRoutineResponseDeserializer,\n} from \"../../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { buildPagedAsyncIterator } from \"../../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../../static-helpers/urlTemplate.js\";\nimport type {\n BetaRoutinesDispatchOptionalParams,\n BetaRoutinesListRunsOptionalParams,\n BetaRoutinesDeleteOptionalParams,\n BetaRoutinesListOptionalParams,\n BetaRoutinesDisableOptionalParams,\n BetaRoutinesEnableOptionalParams,\n BetaRoutinesGetOptionalParams,\n BetaRoutinesCreateOrUpdateOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _dispatchSend(\n context: Client,\n routineName: string,\n options: BetaRoutinesDispatchOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/routines/{routine_name}:dispatch_async{?api-version}\",\n {\n routine_name: routineName,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n \"foundry-features\": \"Routines=V1Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: {\n payload: !options?.payload\n ? options?.payload\n : routineDispatchPayloadUnionSerializer(options?.payload),\n },\n });\n}\n\nexport async function _dispatchDeserialize(\n result: PathUncheckedResponse,\n): Promise<DispatchRoutineResponse> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return dispatchRoutineResponseDeserializer(result.body);\n}\n\n/** Queues an asynchronous dispatch for the specified routine. */\nexport async function dispatch(\n context: Client,\n routineName: string,\n options: BetaRoutinesDispatchOptionalParams = { requestOptions: {} },\n): Promise<DispatchRoutineResponse> {\n const result = await _dispatchSend(context, routineName, options);\n return _dispatchDeserialize(result);\n}\n\nexport function _listRunsSend(\n context: Client,\n routineName: string,\n options: BetaRoutinesListRunsOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const foundryFeatures = \"Routines=V1Preview\";\n const path = expandUrlTemplate(\n \"/routines/{routine_name}/runs{?filter,limit,after,before,order,api-version}\",\n {\n routine_name: routineName,\n filter: options?.filter,\n limit: options?.limit,\n order: options?.order,\n after: options?.after,\n before: options?.before,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n \"foundry-features\": foundryFeatures,\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listRunsDeserialize(\n result: PathUncheckedResponse,\n): Promise<_AgentsPagedResultRoutineRun> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _agentsPagedResultRoutineRunDeserializer(result.body);\n}\n\n/** Returns prior runs recorded for the specified routine. */\nexport function listRuns(\n context: Client,\n routineName: string,\n options: BetaRoutinesListRunsOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<RoutineRun> {\n return buildPagedAsyncIterator(\n context,\n () => _listRunsSend(context, routineName, options),\n _listRunsDeserialize,\n [\"200\"],\n {\n itemName: \"data\",\n apiVersion: context.apiVersion,\n nextPageRequestOptions: {\n headers: {\n \"foundry-features\": \"Routines=V1Preview\",\n },\n },\n },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n routineName: string,\n options: BetaRoutinesDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const foundryFeatures = \"Routines=V1Preview\";\n const path = expandUrlTemplate(\n \"/routines/{routine_name}{?api-version}\",\n {\n routine_name: routineName,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({\n ...operationOptionsToRequestParameters(options),\n headers: {\n \"foundry-features\": foundryFeatures,\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"204\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return;\n}\n\n/** Deletes the specified routine. */\nexport async function $delete(\n context: Client,\n routineName: string,\n options: BetaRoutinesDeleteOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _$deleteSend(context, routineName, options);\n return _$deleteDeserialize(result);\n}\n\nexport function _listSend(\n context: Client,\n options: BetaRoutinesListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/routines{?limit,after,before,order,api-version}\",\n {\n limit: options?.limit,\n after: options?.after,\n before: options?.before,\n order: options?.order,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n \"foundry-features\": \"Routines=V1Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listDeserialize(\n result: PathUncheckedResponse,\n): Promise<_AgentsPagedResultRoutine> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n const body = result.body;\n return {\n data: (body[\"value\"] ?? body[\"data\"] ?? []).map((item: any) => routineDeserializer(item)),\n first_id: body[\"first_id\"],\n last_id: body[\"last_id\"],\n has_more: body[\"has_more\"] ?? false,\n };\n}\n\n/** Returns the routines available in the current project. */\nexport function list(\n context: Client,\n options: BetaRoutinesListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Routine> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, options),\n _listDeserialize,\n [\"200\"],\n {\n itemName: \"data\",\n nextLinkName: \"nextLink\",\n apiVersion: context.apiVersion,\n },\n );\n}\n\nexport function _disableSend(\n context: Client,\n routineName: string,\n options: BetaRoutinesDisableOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/routines/{routine_name}:disable{?api-version}\",\n {\n routine_name: routineName,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: {\n \"foundry-features\": \"Routines=V1Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _disableDeserialize(result: PathUncheckedResponse): Promise<Routine> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return routineDeserializer(result.body);\n}\n\n/** Disables the specified routine so it no longer runs. */\nexport async function disable(\n context: Client,\n routineName: string,\n options: BetaRoutinesDisableOptionalParams = { requestOptions: {} },\n): Promise<Routine> {\n const result = await _disableSend(context, routineName, options);\n return _disableDeserialize(result);\n}\n\nexport function _enableSend(\n context: Client,\n routineName: string,\n options: BetaRoutinesEnableOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/routines/{routine_name}:enable{?api-version}\",\n {\n routine_name: routineName,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: {\n \"foundry-features\": \"Routines=V1Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _enableDeserialize(result: PathUncheckedResponse): Promise<Routine> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return routineDeserializer(result.body);\n}\n\n/** Enables the specified routine so it can be dispatched. */\nexport async function enable(\n context: Client,\n routineName: string,\n options: BetaRoutinesEnableOptionalParams = { requestOptions: {} },\n): Promise<Routine> {\n const result = await _enableSend(context, routineName, options);\n return _enableDeserialize(result);\n}\n\nexport function _getSend(\n context: Client,\n routineName: string,\n options: BetaRoutinesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/routines/{routine_name}{?api-version}\",\n {\n routine_name: routineName,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n \"foundry-features\": \"Routines=V1Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<Routine> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return routineDeserializer(result.body);\n}\n\n/** Retrieves the specified routine and its current configuration. */\nexport async function get(\n context: Client,\n routineName: string,\n options: BetaRoutinesGetOptionalParams = { requestOptions: {} },\n): Promise<Routine> {\n const result = await _getSend(context, routineName, options);\n return _getDeserialize(result);\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n routineName: string,\n options: BetaRoutinesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const foundryFeatures = \"Routines=V1Preview\";\n const path = expandUrlTemplate(\n \"/routines/{routine_name}{?api-version}\",\n {\n routine_name: routineName,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n \"foundry-features\": foundryFeatures,\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: {\n description: options?.description,\n enabled: options?.enabled,\n triggers: !options?.triggers\n ? options?.triggers\n : routineTriggerUnionRecordSerializer(options?.triggers),\n action: !options?.action ? options?.action : routineActionUnionSerializer(options?.action),\n },\n });\n}\n\nexport async function _createOrUpdateDeserialize(result: PathUncheckedResponse): Promise<Routine> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return routineDeserializer(result.body);\n}\n\n/** Creates a new routine or replaces an existing routine with the supplied definition. */\nexport async function createOrUpdate(\n context: Client,\n routineName: string,\n options: BetaRoutinesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): Promise<Routine> {\n const result = await _createOrUpdateSend(context, routineName, options);\n return _createOrUpdateDeserialize(result);\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWA,oBASO;AAEP,2BAAwC;AACxC,yBAAkC;AAYlC,yBAAqE;AAE9D,SAAS,cACd,SACA,aACA,UAA8C,EAAE,gBAAgB,CAAC,EAAE,GACjD;AAClB,QAAM,WAAO;AAAA,IACX;AAAA,IACA;AAAA,MACE,cAAc;AAAA,MACd,eAAe,QAAQ;AAAA,IACzB;AAAA,IACA;AAAA,MACE,eAAe,SAAS,gBAAgB;AAAA,IAC1C;AAAA,EACF;AACA,SAAO,QAAQ,KAAK,IAAI,EAAE,KAAK;AAAA,IAC7B,OAAG,wDAAoC,OAAO;AAAA,IAC9C,aAAa;AAAA,IACb,SAAS;AAAA,MACP,oBAAoB;AAAA,MACpB,QAAQ;AAAA,MACR,GAAG,QAAQ,gBAAgB;AAAA,IAC7B;AAAA,IACA,MAAM;AAAA,MACJ,SAAS,CAAC,SAAS,UACf,SAAS,cACT,qDAAsC,SAAS,OAAO;AAAA,IAC5D;AAAA,EACF,CAAC;AACH;AAEA,eAAsB,qBACpB,QACkC;AAClC,QAAM,mBAAmB,CAAC,KAAK;AAC/B,MAAI,CAAC,iBAAiB,SAAS,OAAO,MAAM,GAAG;AAC7C,UAAM,YAAQ,oCAAgB,MAAM;AACpC,QAAI,OAAO,MAAM;AACf,YAAM,cAAU,4CAA6B,OAAO,IAAI;AAAA,IAC1D;AAEA,UAAM;AAAA,EACR;AAEA,aAAO,mDAAoC,OAAO,IAAI;AACxD;AAGA,eAAsB,SACpB,SACA,aACA,UAA8C,EAAE,gBAAgB,CAAC,EAAE,GACjC;AAClC,QAAM,SAAS,MAAM,cAAc,SAAS,aAAa,OAAO;AAChE,SAAO,qBAAqB,MAAM;AACpC;AAEO,SAAS,cACd,SACA,aACA,UAA8C,EAAE,gBAAgB,CAAC,EAAE,GACjD;AAClB,QAAM,kBAAkB;AACxB,QAAM,WAAO;AAAA,IACX;AAAA,IACA;AAAA,MACE,cAAc;AAAA,MACd,QAAQ,SAAS;AAAA,MACjB,OAAO,SAAS;AAAA,MAChB,OAAO,SAAS;AAAA,MAChB,OAAO,SAAS;AAAA,MAChB,
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AIProjectContext as Client } from \"../../index.js\";\nimport type {\n Routine,\n _PagedResultWithNextLinkRoutine,\n _PagedResultWithNextLinkRoutineRun,\n RoutineRun,\n DispatchRoutineResponse,\n} from \"../../../models/models.js\";\nimport {\n apiErrorResponseDeserializer,\n routineTriggerUnionRecordSerializer,\n routineActionUnionSerializer,\n routineDeserializer,\n _pagedResultWithNextLinkRoutineDeserializer,\n _pagedResultWithNextLinkRoutineRunDeserializer,\n routineDispatchPayloadUnionSerializer,\n dispatchRoutineResponseDeserializer,\n} from \"../../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { buildPagedAsyncIterator } from \"../../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../../static-helpers/urlTemplate.js\";\nimport type {\n BetaRoutinesDispatchOptionalParams,\n BetaRoutinesListRunsOptionalParams,\n BetaRoutinesDeleteOptionalParams,\n BetaRoutinesListOptionalParams,\n BetaRoutinesDisableOptionalParams,\n BetaRoutinesEnableOptionalParams,\n BetaRoutinesGetOptionalParams,\n BetaRoutinesCreateOrUpdateOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _dispatchSend(\n context: Client,\n routineName: string,\n options: BetaRoutinesDispatchOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/routines/{routine_name}:dispatch_async{?api-version}\",\n {\n routine_name: routineName,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n \"foundry-features\": \"Routines=V2Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: {\n payload: !options?.payload\n ? options?.payload\n : routineDispatchPayloadUnionSerializer(options?.payload),\n },\n });\n}\n\nexport async function _dispatchDeserialize(\n result: PathUncheckedResponse,\n): Promise<DispatchRoutineResponse> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return dispatchRoutineResponseDeserializer(result.body);\n}\n\n/** Queues an asynchronous dispatch for the specified routine. */\nexport async function dispatch(\n context: Client,\n routineName: string,\n options: BetaRoutinesDispatchOptionalParams = { requestOptions: {} },\n): Promise<DispatchRoutineResponse> {\n const result = await _dispatchSend(context, routineName, options);\n return _dispatchDeserialize(result);\n}\n\nexport function _listRunsSend(\n context: Client,\n routineName: string,\n options: BetaRoutinesListRunsOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const foundryFeatures = \"Routines=V2Preview\";\n const path = expandUrlTemplate(\n \"/routines/{routine_name}/runs{?filter,limit,after,order,api-version}\",\n {\n routine_name: routineName,\n filter: options?.filter,\n limit: options?.limit,\n order: options?.order,\n after: options?.after,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n \"foundry-features\": foundryFeatures,\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listRunsDeserialize(\n result: PathUncheckedResponse,\n): Promise<_PagedResultWithNextLinkRoutineRun> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _pagedResultWithNextLinkRoutineRunDeserializer(result.body);\n}\n\n/** Returns prior runs recorded for the specified routine. */\nexport function listRuns(\n context: Client,\n routineName: string,\n options: BetaRoutinesListRunsOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<RoutineRun> {\n return buildPagedAsyncIterator(\n context,\n () => _listRunsSend(context, routineName, options),\n _listRunsDeserialize,\n [\"200\"],\n {\n itemName: \"data\",\n nextLinkName: \"next_link\",\n apiVersion: context.apiVersion,\n nextPageRequestOptions: {\n headers: {\n \"foundry-features\": \"Routines=V2Preview\",\n },\n },\n },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n routineName: string,\n options: BetaRoutinesDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const foundryFeatures = \"Routines=V2Preview\";\n const path = expandUrlTemplate(\n \"/routines/{routine_name}{?api-version}\",\n {\n routine_name: routineName,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({\n ...operationOptionsToRequestParameters(options),\n headers: {\n \"foundry-features\": foundryFeatures,\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"204\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return;\n}\n\n/** Deletes the specified routine. */\nexport async function $delete(\n context: Client,\n routineName: string,\n options: BetaRoutinesDeleteOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _$deleteSend(context, routineName, options);\n return _$deleteDeserialize(result);\n}\n\nexport function _listSend(\n context: Client,\n options: BetaRoutinesListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/routines{?limit,after,order,api-version}\",\n {\n limit: options?.limit,\n after: options?.after,\n order: options?.order,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n \"foundry-features\": \"Routines=V2Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listDeserialize(\n result: PathUncheckedResponse,\n): Promise<_PagedResultWithNextLinkRoutine> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _pagedResultWithNextLinkRoutineDeserializer(result.body);\n}\n\n/** Returns the routines available in the current project. */\nexport function list(\n context: Client,\n options: BetaRoutinesListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Routine> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, options),\n _listDeserialize,\n [\"200\"],\n {\n itemName: \"data\",\n nextLinkName: \"next_link\",\n apiVersion: context.apiVersion,\n nextPageRequestOptions: {\n headers: {\n \"foundry-features\": \"Routines=V2Preview\",\n },\n },\n },\n );\n}\n\nexport function _disableSend(\n context: Client,\n routineName: string,\n options: BetaRoutinesDisableOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/routines/{routine_name}:disable{?api-version}\",\n {\n routine_name: routineName,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: {\n \"foundry-features\": \"Routines=V2Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _disableDeserialize(result: PathUncheckedResponse): Promise<Routine> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return routineDeserializer(result.body);\n}\n\n/** Disables the specified routine so it no longer runs. */\nexport async function disable(\n context: Client,\n routineName: string,\n options: BetaRoutinesDisableOptionalParams = { requestOptions: {} },\n): Promise<Routine> {\n const result = await _disableSend(context, routineName, options);\n return _disableDeserialize(result);\n}\n\nexport function _enableSend(\n context: Client,\n routineName: string,\n options: BetaRoutinesEnableOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/routines/{routine_name}:enable{?api-version}\",\n {\n routine_name: routineName,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: {\n \"foundry-features\": \"Routines=V2Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _enableDeserialize(result: PathUncheckedResponse): Promise<Routine> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return routineDeserializer(result.body);\n}\n\n/** Enables the specified routine so it can be dispatched. */\nexport async function enable(\n context: Client,\n routineName: string,\n options: BetaRoutinesEnableOptionalParams = { requestOptions: {} },\n): Promise<Routine> {\n const result = await _enableSend(context, routineName, options);\n return _enableDeserialize(result);\n}\n\nexport function _getSend(\n context: Client,\n routineName: string,\n options: BetaRoutinesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/routines/{routine_name}{?api-version}\",\n {\n routine_name: routineName,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n \"foundry-features\": \"Routines=V2Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<Routine> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return routineDeserializer(result.body);\n}\n\n/** Retrieves the specified routine and its current configuration. */\nexport async function get(\n context: Client,\n routineName: string,\n options: BetaRoutinesGetOptionalParams = { requestOptions: {} },\n): Promise<Routine> {\n const result = await _getSend(context, routineName, options);\n return _getDeserialize(result);\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n routineName: string,\n options: BetaRoutinesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const foundryFeatures = \"Routines=V2Preview\";\n const path = expandUrlTemplate(\n \"/routines/{routine_name}{?api-version}\",\n {\n routine_name: routineName,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n \"foundry-features\": foundryFeatures,\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: {\n description: options?.description,\n enabled: options?.enabled,\n triggers: !options?.triggers\n ? options?.triggers\n : routineTriggerUnionRecordSerializer(options?.triggers),\n action: !options?.action ? options?.action : routineActionUnionSerializer(options?.action),\n },\n });\n}\n\nexport async function _createOrUpdateDeserialize(result: PathUncheckedResponse): Promise<Routine> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return routineDeserializer(result.body);\n}\n\n/** Creates a new routine or replaces an existing routine with the supplied definition. */\nexport async function createOrUpdate(\n context: Client,\n routineName: string,\n options: BetaRoutinesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): Promise<Routine> {\n const result = await _createOrUpdateSend(context, routineName, options);\n return _createOrUpdateDeserialize(result);\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWA,oBASO;AAEP,2BAAwC;AACxC,yBAAkC;AAYlC,yBAAqE;AAE9D,SAAS,cACd,SACA,aACA,UAA8C,EAAE,gBAAgB,CAAC,EAAE,GACjD;AAClB,QAAM,WAAO;AAAA,IACX;AAAA,IACA;AAAA,MACE,cAAc;AAAA,MACd,eAAe,QAAQ;AAAA,IACzB;AAAA,IACA;AAAA,MACE,eAAe,SAAS,gBAAgB;AAAA,IAC1C;AAAA,EACF;AACA,SAAO,QAAQ,KAAK,IAAI,EAAE,KAAK;AAAA,IAC7B,OAAG,wDAAoC,OAAO;AAAA,IAC9C,aAAa;AAAA,IACb,SAAS;AAAA,MACP,oBAAoB;AAAA,MACpB,QAAQ;AAAA,MACR,GAAG,QAAQ,gBAAgB;AAAA,IAC7B;AAAA,IACA,MAAM;AAAA,MACJ,SAAS,CAAC,SAAS,UACf,SAAS,cACT,qDAAsC,SAAS,OAAO;AAAA,IAC5D;AAAA,EACF,CAAC;AACH;AAEA,eAAsB,qBACpB,QACkC;AAClC,QAAM,mBAAmB,CAAC,KAAK;AAC/B,M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ACX;AAAA,IACA;AAAA,MACE,cAAc;AAAA,MACd,eAAe,QAAQ;AAAA,IACzB;AAAA,IACA;AAAA,MACE,eAAe,SAAS,gBAAgB;AAAA,IAC1C;AAAA,EACF;AACA,SAAO,QAAQ,KAAK,IAAI,EAAE,IAAI;AAAA,IAC5B,OAAG,wDAAoC,OAAO;AAAA,IAC9C,aAAa;AAAA,IACb,SAAS;AAAA,MACP,oBAAoB;AAAA,MACpB,QAAQ;AAAA,MACR,GAAG,QAAQ,gBAAgB;AAAA,IAC7B;AAAA,IACA,MAAM;AAAA,MACJ,aAAa,SAAS;AAAA,MACtB,SAAS,SAAS;AAAA,MAClB,UAAU,CAAC,SAAS,WAChB,SAAS,eACT,mDAAoC,SAAS,QAAQ;AAAA,MACzD,QAAQ,CAAC,SAAS,SAAS,SAAS,aAAS,4CAA6B,SAAS,MAAM;AAAA,IAC3F;AAAA,EACF,CAAC;AACH;AAEA,eAAsB,2BAA2B,QAAiD;AAChG,QAAM,mBAAmB,CAAC,KAAK;AAC/B,MAAI,CAAC,iBAAiB,SAAS,OAAO,MAAM,GAAG;AAC7C,UAAM,YAAQ,oCAAgB,MAAM;AACpC,QAAI,OAAO,MAAM;AACf,YAAM,cAAU,4CAA6B,OAAO,IAAI;AAAA,IAC1D;AAEA,UAAM;AAAA,EACR;AAEA,aAAO,mCAAoB,OAAO,IAAI;AACxC;AAGA,eAAsB,eACpB,SACA,aACA,UAAoD,EAAE,gBAAgB,CAAC,EAAE,GACvD;AAClB,QAAM,SAAS,MAAM,oBAAoB,SAAS,aAAa,OAAO;AACtE,SAAO,2BAA2B,MAAM;AAC1C;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -3,62 +3,68 @@ import type { OperationOptions } from "@azure-rest/core-client";
|
|
|
3
3
|
/** Optional parameters. */
|
|
4
4
|
export interface BetaRoutinesDispatchOptionalParams extends OperationOptions {
|
|
5
5
|
/** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */
|
|
6
|
-
foundryFeatures?: "Routines=V1Preview";
|
|
6
|
+
foundryFeatures?: "Routines=V1Preview" | "Routines=V2Preview";
|
|
7
7
|
/** A direct action-input override sent downstream when testing a routine. */
|
|
8
8
|
payload?: RoutineDispatchPayloadUnion;
|
|
9
9
|
}
|
|
10
10
|
/** Optional parameters. */
|
|
11
11
|
export interface BetaRoutinesListRunsOptionalParams extends OperationOptions {
|
|
12
12
|
/** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */
|
|
13
|
-
foundryFeatures?: "Routines=V1Preview";
|
|
13
|
+
foundryFeatures?: "Routines=V1Preview" | "Routines=V2Preview";
|
|
14
14
|
/** An optional MLflow search-runs filter expression applied within the routine's experiment. */
|
|
15
15
|
filter?: string;
|
|
16
16
|
/** The maximum number of runs to return. */
|
|
17
17
|
limit?: number;
|
|
18
|
-
/** An opaque
|
|
18
|
+
/** An opaque continuation token identifying where to resume the list. Prefer following the `next_link` returned by the previous response, which embeds this value. */
|
|
19
19
|
after?: string;
|
|
20
|
-
/** Unsupported. Reserved for
|
|
20
|
+
/** Unsupported. Reserved for backward compatibility. */
|
|
21
21
|
before?: string;
|
|
22
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc`
|
|
24
|
+
* for descending order.
|
|
25
|
+
*/
|
|
23
26
|
order?: string;
|
|
24
27
|
}
|
|
25
28
|
/** Optional parameters. */
|
|
26
29
|
export interface BetaRoutinesDeleteOptionalParams extends OperationOptions {
|
|
27
30
|
/** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */
|
|
28
|
-
foundryFeatures?: "Routines=V1Preview";
|
|
31
|
+
foundryFeatures?: "Routines=V1Preview" | "Routines=V2Preview";
|
|
29
32
|
}
|
|
30
33
|
/** Optional parameters. */
|
|
31
34
|
export interface BetaRoutinesListOptionalParams extends OperationOptions {
|
|
32
35
|
/** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */
|
|
33
|
-
foundryFeatures?: "Routines=V1Preview";
|
|
36
|
+
foundryFeatures?: "Routines=V1Preview" | "Routines=V2Preview";
|
|
34
37
|
/** The maximum number of routines to return. */
|
|
35
38
|
limit?: number;
|
|
36
|
-
/** An opaque
|
|
39
|
+
/** An opaque continuation token identifying where to resume the list. Prefer following the `next_link` returned by the previous response, which embeds this value. */
|
|
37
40
|
after?: string;
|
|
38
|
-
/** Unsupported. Reserved for
|
|
41
|
+
/** Unsupported. Reserved for backward compatibility. */
|
|
39
42
|
before?: string;
|
|
40
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc`
|
|
45
|
+
* for descending order.
|
|
46
|
+
*/
|
|
41
47
|
order?: string;
|
|
42
48
|
}
|
|
43
49
|
/** Optional parameters. */
|
|
44
50
|
export interface BetaRoutinesDisableOptionalParams extends OperationOptions {
|
|
45
51
|
/** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */
|
|
46
|
-
foundryFeatures?: "Routines=V1Preview";
|
|
52
|
+
foundryFeatures?: "Routines=V1Preview" | "Routines=V2Preview";
|
|
47
53
|
}
|
|
48
54
|
/** Optional parameters. */
|
|
49
55
|
export interface BetaRoutinesEnableOptionalParams extends OperationOptions {
|
|
50
56
|
/** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */
|
|
51
|
-
foundryFeatures?: "Routines=V1Preview";
|
|
57
|
+
foundryFeatures?: "Routines=V1Preview" | "Routines=V2Preview";
|
|
52
58
|
}
|
|
53
59
|
/** Optional parameters. */
|
|
54
60
|
export interface BetaRoutinesGetOptionalParams extends OperationOptions {
|
|
55
61
|
/** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */
|
|
56
|
-
foundryFeatures?: "Routines=V1Preview";
|
|
62
|
+
foundryFeatures?: "Routines=V1Preview" | "Routines=V2Preview";
|
|
57
63
|
}
|
|
58
64
|
/** Optional parameters. */
|
|
59
65
|
export interface BetaRoutinesCreateOrUpdateOptionalParams extends OperationOptions {
|
|
60
66
|
/** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */
|
|
61
|
-
foundryFeatures?: "Routines=V1Preview";
|
|
67
|
+
foundryFeatures?: "Routines=V1Preview" | "Routines=V2Preview";
|
|
62
68
|
/** A human-readable description of the routine. */
|
|
63
69
|
description?: string;
|
|
64
70
|
/** Whether the routine is enabled. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../../src/api/beta/routines/options.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EAClB,2BAA2B,EAC5B,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,2BAA2B;AAC3B,MAAM,WAAW,kCAAmC,SAAQ,gBAAgB;IAC1E,6GAA6G;IAC7G,eAAe,CAAC,EAAE,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../../src/api/beta/routines/options.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EAClB,2BAA2B,EAC5B,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,2BAA2B;AAC3B,MAAM,WAAW,kCAAmC,SAAQ,gBAAgB;IAC1E,6GAA6G;IAC7G,eAAe,CAAC,EAAE,oBAAoB,GAAG,oBAAoB,CAAC;IAC9D,6EAA6E;IAC7E,OAAO,CAAC,EAAE,2BAA2B,CAAC;CACvC;AAED,2BAA2B;AAC3B,MAAM,WAAW,kCAAmC,SAAQ,gBAAgB;IAC1E,6GAA6G;IAC7G,eAAe,CAAC,EAAE,oBAAoB,GAAG,oBAAoB,CAAC;IAC9D,gGAAgG;IAChG,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,C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E,OAAO,CAAC;IAClB,8FAA8F;IAC9F,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;IAC/C,kDAAkD;IAClD,MAAM,CAAC,EAAE,kBAAkB,CAAC;CAC7B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../src/api/beta/routines/options.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n RoutineTriggerUnion,\n RoutineActionUnion,\n RoutineDispatchPayloadUnion,\n} from \"../../../models/models.js\";\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface BetaRoutinesDispatchOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"Routines=V1Preview\";\n /** A direct action-input override sent downstream when testing a routine. */\n payload?: RoutineDispatchPayloadUnion;\n}\n\n/** Optional parameters. */\nexport interface BetaRoutinesListRunsOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"Routines=V1Preview\";\n /** An optional MLflow search-runs filter expression applied within the routine's experiment. */\n filter?: string;\n /** The maximum number of runs to return. */\n limit?: number;\n /** An opaque
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n RoutineTriggerUnion,\n RoutineActionUnion,\n RoutineDispatchPayloadUnion,\n} from \"../../../models/models.js\";\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface BetaRoutinesDispatchOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"Routines=V1Preview\" | \"Routines=V2Preview\";\n /** A direct action-input override sent downstream when testing a routine. */\n payload?: RoutineDispatchPayloadUnion;\n}\n\n/** Optional parameters. */\nexport interface BetaRoutinesListRunsOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"Routines=V1Preview\" | \"Routines=V2Preview\";\n /** An optional MLflow search-runs filter expression applied within the routine's experiment. */\n filter?: string;\n /** The maximum number of runs to return. */\n limit?: number;\n /** An opaque continuation token identifying where to resume the list. Prefer following the `next_link` returned by the previous response, which embeds this value. */\n after?: string;\n /** Unsupported. Reserved for backward compatibility. */\n before?: string;\n /**\n * Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc`\n * for descending order.\n */\n order?: string;\n}\n\n/** Optional parameters. */\nexport interface BetaRoutinesDeleteOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"Routines=V1Preview\" | \"Routines=V2Preview\";\n}\n\n/** Optional parameters. */\nexport interface BetaRoutinesListOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"Routines=V1Preview\" | \"Routines=V2Preview\";\n /** The maximum number of routines to return. */\n limit?: number;\n /** An opaque continuation token identifying where to resume the list. Prefer following the `next_link` returned by the previous response, which embeds this value. */\n after?: string;\n /** Unsupported. Reserved for backward compatibility. */\n before?: string;\n /**\n * Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc`\n * for descending order.\n */\n order?: string;\n}\n\n/** Optional parameters. */\nexport interface BetaRoutinesDisableOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"Routines=V1Preview\" | \"Routines=V2Preview\";\n}\n\n/** Optional parameters. */\nexport interface BetaRoutinesEnableOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"Routines=V1Preview\" | \"Routines=V2Preview\";\n}\n\n/** Optional parameters. */\nexport interface BetaRoutinesGetOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"Routines=V1Preview\" | \"Routines=V2Preview\";\n}\n\n/** Optional parameters. */\nexport interface BetaRoutinesCreateOrUpdateOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"Routines=V1Preview\" | \"Routines=V2Preview\";\n /** A human-readable description of the routine. */\n description?: string;\n /** Whether the routine is enabled. */\n enabled?: boolean;\n /** The triggers configured for the routine. In v1, exactly one trigger entry is supported. */\n triggers?: Record<string, RoutineTriggerUnion>;\n /** The action executed when the routine fires. */\n action?: RoutineActionUnion;\n}\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AIProjectContext } from "../../../api/aiProjectContext.js";
|
|
2
2
|
import type { BetaAgentsDeleteOptimizationJobOptionalParams, BetaAgentsCancelOptimizationJobOptionalParams, BetaAgentsListOptimizationJobsOptionalParams, BetaAgentsGetOptimizationJobOptionalParams, BetaAgentsCreateOptimizationJobOptionalParams } from "../../../api/beta/agents/options.js";
|
|
3
|
-
import type {
|
|
3
|
+
import type { AgentOptimizationJob, AgentOptimizationJobResult, AgentOptimizationJobListItem } from "../../../models/models.js";
|
|
4
4
|
import type { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
5
5
|
import type { JobPoller } from "../../../static-helpers/pollingHelpers.js";
|
|
6
6
|
/** Interface representing a BetaAgents operations. */
|
|
@@ -8,13 +8,13 @@ export interface BetaAgentsOperations {
|
|
|
8
8
|
/** Delete the job and its candidate artifacts. Cancels first if non-terminal. */
|
|
9
9
|
deleteOptimizationJob: (jobId: string, options?: BetaAgentsDeleteOptimizationJobOptionalParams) => Promise<void>;
|
|
10
10
|
/** Request cancellation of a running or queued job. Returns an error if the job is already in a terminal state. */
|
|
11
|
-
cancelOptimizationJob: (jobId: string, options?: BetaAgentsCancelOptimizationJobOptionalParams) => Promise<
|
|
11
|
+
cancelOptimizationJob: (jobId: string, options?: BetaAgentsCancelOptimizationJobOptionalParams) => Promise<AgentOptimizationJob>;
|
|
12
12
|
/** List optimization jobs. Supports cursor pagination and optional status / agent_name filters. */
|
|
13
|
-
listOptimizationJobs: (options?: BetaAgentsListOptimizationJobsOptionalParams) => PagedAsyncIterableIterator<
|
|
13
|
+
listOptimizationJobs: (options?: BetaAgentsListOptimizationJobsOptionalParams) => PagedAsyncIterableIterator<AgentOptimizationJobListItem>;
|
|
14
14
|
/** Get an optimization job by id. */
|
|
15
|
-
getOptimizationJob: (jobId: string, options?: BetaAgentsGetOptimizationJobOptionalParams) => Promise<
|
|
15
|
+
getOptimizationJob: (jobId: string, options?: BetaAgentsGetOptimizationJobOptionalParams) => Promise<AgentOptimizationJob>;
|
|
16
16
|
/** Create an optimization job. Returns 201 with the queued job. Honours `Operation-Id` for idempotent retry. */
|
|
17
|
-
createOptimizationJob: (job:
|
|
17
|
+
createOptimizationJob: (job: AgentOptimizationJob, options?: BetaAgentsCreateOptimizationJobOptionalParams) => JobPoller<AgentOptimizationJobResult>;
|
|
18
18
|
}
|
|
19
19
|
export declare function _getBetaAgentsOperations(context: AIProjectContext): BetaAgentsOperations;
|
|
20
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/classic/beta/agents/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAQzE,OAAO,KAAK,EACV,6CAA6C,EAC7C,6CAA6C,EAC7C,4CAA4C,EAC5C,0CAA0C,EAC1C,6CAA6C,EAC9C,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/classic/beta/agents/index.ts"],"names":[],"mappings":"AAGA,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.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AIProjectContext } from \"../../../api/aiProjectContext.js\";\nimport {\n deleteOptimizationJob,\n cancelOptimizationJob,\n listOptimizationJobs,\n getOptimizationJob,\n createOptimizationJob,\n} from \"../../../api/beta/agents/operations.js\";\nimport type {\n BetaAgentsDeleteOptimizationJobOptionalParams,\n BetaAgentsCancelOptimizationJobOptionalParams,\n BetaAgentsListOptimizationJobsOptionalParams,\n BetaAgentsGetOptimizationJobOptionalParams,\n BetaAgentsCreateOptimizationJobOptionalParams,\n} from \"../../../api/beta/agents/options.js\";\nimport type {\n
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AIProjectContext } from \"../../../api/aiProjectContext.js\";\nimport {\n deleteOptimizationJob,\n cancelOptimizationJob,\n listOptimizationJobs,\n getOptimizationJob,\n createOptimizationJob,\n} from \"../../../api/beta/agents/operations.js\";\nimport type {\n BetaAgentsDeleteOptimizationJobOptionalParams,\n BetaAgentsCancelOptimizationJobOptionalParams,\n BetaAgentsListOptimizationJobsOptionalParams,\n BetaAgentsGetOptimizationJobOptionalParams,\n BetaAgentsCreateOptimizationJobOptionalParams,\n} from \"../../../api/beta/agents/options.js\";\nimport type {\n AgentOptimizationJob,\n AgentOptimizationJobResult,\n AgentOptimizationJobListItem,\n} from \"../../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport type { JobPoller } from \"../../../static-helpers/pollingHelpers.js\";\n\n/** Interface representing a BetaAgents operations. */\nexport interface BetaAgentsOperations {\n /** Delete the job and its candidate artifacts. Cancels first if non-terminal. */\n deleteOptimizationJob: (\n jobId: string,\n options?: BetaAgentsDeleteOptimizationJobOptionalParams,\n ) => Promise<void>;\n /** Request cancellation of a running or queued job. Returns an error if the job is already in a terminal state. */\n cancelOptimizationJob: (\n jobId: string,\n options?: BetaAgentsCancelOptimizationJobOptionalParams,\n ) => Promise<AgentOptimizationJob>;\n /** List optimization jobs. Supports cursor pagination and optional status / agent_name filters. */\n listOptimizationJobs: (\n options?: BetaAgentsListOptimizationJobsOptionalParams,\n ) => PagedAsyncIterableIterator<AgentOptimizationJobListItem>;\n /** Get an optimization job by id. */\n getOptimizationJob: (\n jobId: string,\n options?: BetaAgentsGetOptimizationJobOptionalParams,\n ) => Promise<AgentOptimizationJob>;\n /** Create an optimization job. Returns 201 with the queued job. Honours `Operation-Id` for idempotent retry. */\n createOptimizationJob: (\n job: AgentOptimizationJob,\n options?: BetaAgentsCreateOptimizationJobOptionalParams,\n ) => JobPoller<AgentOptimizationJobResult>;\n}\n\nfunction _getBetaAgents(context: AIProjectContext) {\n return {\n deleteOptimizationJob: (\n jobId: string,\n options?: BetaAgentsDeleteOptimizationJobOptionalParams,\n ) => deleteOptimizationJob(context, jobId, options),\n cancelOptimizationJob: (\n jobId: string,\n options?: BetaAgentsCancelOptimizationJobOptionalParams,\n ) => cancelOptimizationJob(context, jobId, options),\n listOptimizationJobs: (options?: BetaAgentsListOptimizationJobsOptionalParams) =>\n listOptimizationJobs(context, options),\n getOptimizationJob: (jobId: string, options?: BetaAgentsGetOptimizationJobOptionalParams) =>\n getOptimizationJob(context, jobId, options),\n createOptimizationJob: (\n job: AgentOptimizationJob,\n options?: BetaAgentsCreateOptimizationJobOptionalParams,\n ) => createOptimizationJob(context, job, options),\n };\n}\n\nexport function _getBetaAgentsOperations(context: AIProjectContext): BetaAgentsOperations {\n return {\n ..._getBetaAgents(context),\n };\n}\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,wBAMO;AA4CP,SAAS,eAAe,SAA2B;AACjD,SAAO;AAAA,IACL,uBAAuB,CACrB,OACA,gBACG,yCAAsB,SAAS,OAAO,OAAO;AAAA,IAClD,uBAAuB,CACrB,OACA,gBACG,yCAAsB,SAAS,OAAO,OAAO;AAAA,IAClD,sBAAsB,CAAC,gBACrB,wCAAqB,SAAS,OAAO;AAAA,IACvC,oBAAoB,CAAC,OAAe,gBAClC,sCAAmB,SAAS,OAAO,OAAO;AAAA,IAC5C,uBAAuB,CACrB,KACA,gBACG,yCAAsB,SAAS,KAAK,OAAO;AAAA,EAClD;AACF;AAEO,SAAS,yBAAyB,SAAiD;AACxF,SAAO;AAAA,IACL,GAAG,eAAe,OAAO;AAAA,EAC3B;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -21,7 +21,7 @@ __export(constants_exports, {
|
|
|
21
21
|
SDK_VERSION: () => SDK_VERSION
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(constants_exports);
|
|
24
|
-
const SDK_VERSION = `2.
|
|
24
|
+
const SDK_VERSION = `2.5.0`;
|
|
25
25
|
const PACKAGE_NAME = "@azure/ai-projects";
|
|
26
26
|
// Annotate the CommonJS export names for ESM import in node:
|
|
27
27
|
0 && (module.exports = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/constants.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Current version of the `@azure/ai-projects` package.\n */\nexport const SDK_VERSION = `2.
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Current version of the `@azure/ai-projects` package.\n */\nexport const SDK_VERSION = `2.5.0`;\n\n/**\n * The package name of the `@azure/ai-projects` package.\n */\nexport const PACKAGE_NAME = \"@azure/ai-projects\";\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMO,MAAM,cAAc;AAKpB,MAAM,eAAe;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/commonjs/index.d.ts
CHANGED
|
@@ -4,9 +4,9 @@ import type { ContinuablePage } from "./static-helpers/pagingHelpers.js";
|
|
|
4
4
|
export { RestError } from "@azure/core-rest-pipeline";
|
|
5
5
|
export { AIProjectClient } from "./aiProjectClient.js";
|
|
6
6
|
export type { GenAITracingOptions } from "./tracing/configuration.js";
|
|
7
|
-
export type { Agent, AgentState, AgentStateSource, AgentVersion, AgentDefinition, AgentDefinitionUnion, AgentKind, RaiConfig, HostedAgentDefinition, Tool, ToolUnion, ToolType, BingGroundingTool, ToolConfig, BingGroundingSearchToolParameters, BingGroundingSearchConfiguration, MicrosoftFabricPreviewTool, FabricDataAgentToolParameters, ToolProjectConnection, SharepointPreviewTool, SharepointGroundingToolParameters, AzureAISearchTool, AzureAISearchToolResource, AISearchIndexResource, AzureAISearchQueryType, OpenApiTool, OpenApiFunctionDefinition, OpenApiAuthDetails, OpenApiAuthDetailsUnion, OpenApiAuthType, OpenApiAnonymousAuthDetails, OpenApiProjectConnectionAuthDetails, OpenApiProjectConnectionSecurityScheme, OpenApiManagedAuthDetails, OpenApiManagedSecurityScheme, BingCustomSearchPreviewTool, BingCustomSearchToolParameters, BingCustomSearchConfiguration, BrowserAutomationPreviewTool, BrowserAutomationToolParameters, BrowserAutomationToolConnectionParameters, AzureFunctionTool, AzureFunctionDefinition, AzureFunctionBinding, AzureFunctionStorageQueue, CaptureStructuredOutputsTool, StructuredOutputDefinition, A2APreviewTool, WorkIQPreviewTool, FabricIQPreviewTool, MCPToolRequireApproval, MCPToolFilter, MemorySearchPreviewTool, MemorySearchOptions, CodeInterpreterTool, AutoCodeInterpreterToolParam, ContainerMemoryLimit, ContainerNetworkPolicyParam, ContainerNetworkPolicyParamUnion, ContainerNetworkPolicyParamType, ContainerNetworkPolicyDisabledParam, ContainerNetworkPolicyAllowlistParam, ContainerNetworkPolicyDomainSecretParam, FunctionTool, FileSearchTool, RankingOptions, RankerVersionType, HybridSearchOptions, Filters, ComparisonFilter, ComparisonFilterValueItems, CompoundFilter, ComputerUsePreviewTool, ComputerEnvironment, WebSearchTool, WebSearchToolFilters, WebSearchApproximateLocation, WebSearchConfiguration, MCPTool, ImageGenTool, InputFidelity, ImageGenToolInputImageMask, ImageGenAction, LocalShellToolParam, FunctionShellToolParam, FunctionShellToolParamEnvironment, FunctionShellToolParamEnvironmentUnion, FunctionShellToolParamEnvironmentType, FunctionShellToolParamEnvironmentLocalEnvironmentParam, LocalSkillParam, FunctionShellToolParamEnvironmentContainerReferenceParam, ContainerAutoParam, ContainerSkill, ContainerSkillUnion, ContainerSkillType, SkillReferenceParam, InlineSkillParam, InlineSkillSourceParam, CustomToolParam, CustomToolParamFormat, CustomToolParamFormatUnion, CustomToolParamFormatType, CustomTextFormatParam, CustomGrammarFormatParam, GrammarSyntax, WebSearchPreviewTool, ApproximateLocation, SearchContextSize, SearchContentType, ApplyPatchToolParam, ComputerTool, NamespaceToolParam, FunctionToolParam, EmptyModelParam, ToolSearchToolParam, ToolSearchExecutionType, ContainerConfiguration, ProtocolVersionRecord, AgentProtocol, CodeConfiguration, CodeDependencyResolution, TelemetryConfig, TelemetryEndpoint, TelemetryEndpointUnion, TelemetryEndpointKind, TelemetryDataKind, TelemetryEndpointAuth, TelemetryEndpointAuthUnion, TelemetryEndpointAuthType, HeaderTelemetryEndpointAuth, OtlpTelemetryEndpoint, TelemetryTransportProtocol, PromptAgentDefinition, Reasoning, ReasoningEffort, ToolChoiceParam, ToolChoiceParamUnion, ToolChoiceParamType, ToolChoiceAllowed, ToolChoiceFunction, ToolChoiceMCP, ToolChoiceCustom, SpecificApplyPatchParam, SpecificFunctionShellParam, ToolChoiceFileSearch, ToolChoiceWebSearchPreview, ToolChoiceComputerUsePreview, ToolChoiceWebSearchPreview20250311, ToolChoiceImageGeneration, ToolChoiceCodeInterpreter, ToolChoiceComputer, ToolChoiceComputerUse, PromptAgentDefinitionTextOptions, TextResponseFormat, TextResponseFormatUnion, TextResponseFormatConfigurationType, TextResponseFormatJsonSchema, TextResponseFormatText, TextResponseFormatJsonObject, StructuredInputDefinition, WorkflowAgentDefinition, ExternalAgentDefinition, AgentVersionStatus, AgentIdentity, AgentIdentityStatus, AgentBlueprintReference, AgentBlueprintReferenceUnion, AgentBlueprintReferenceType, ManagedAgentIdentityBlueprintReference, AgentEndpointConfig,
|
|
7
|
+
export type { Agent, AgentState, AgentStateSource, AgentVersion, AgentDefinition, AgentDefinitionUnion, AgentKind, RaiConfig, HostedAgentDefinition, Tool, ToolUnion, ToolType, BingGroundingTool, ToolConfig, BingGroundingSearchToolParameters, BingGroundingSearchConfiguration, MicrosoftFabricPreviewTool, FabricDataAgentToolParameters, ToolProjectConnection, SharepointPreviewTool, SharepointGroundingToolParameters, AzureAISearchTool, AzureAISearchToolResource, AISearchIndexResource, AzureAISearchQueryType, OpenApiTool, OpenApiFunctionDefinition, OpenApiAuthDetails, OpenApiAuthDetailsUnion, OpenApiAuthType, OpenApiAnonymousAuthDetails, OpenApiProjectConnectionAuthDetails, OpenApiProjectConnectionSecurityScheme, OpenApiManagedAuthDetails, OpenApiManagedSecurityScheme, BingCustomSearchPreviewTool, BingCustomSearchToolParameters, BingCustomSearchConfiguration, BrowserAutomationPreviewTool, BrowserAutomationToolParameters, BrowserAutomationToolConnectionParameters, AzureFunctionTool, AzureFunctionDefinition, AzureFunctionBinding, AzureFunctionStorageQueue, CaptureStructuredOutputsTool, StructuredOutputDefinition, A2APreviewTool, WorkIQPreviewTool, FabricIQPreviewTool, MCPToolRequireApproval, MCPToolFilter, MemorySearchPreviewTool, MemorySearchOptions, CodeInterpreterTool, CallableToolAllowedCaller, AutoCodeInterpreterToolParam, ContainerMemoryLimit, ContainerNetworkPolicyParam, ContainerNetworkPolicyParamUnion, ContainerNetworkPolicyParamType, ContainerNetworkPolicyDisabledParam, ContainerNetworkPolicyAllowlistParam, ContainerNetworkPolicyDomainSecretParam, FunctionTool, FileSearchTool, RankingOptions, RankerVersionType, HybridSearchOptions, Filters, ComparisonFilter, ComparisonFilterValueItems, CompoundFilter, ComputerUsePreviewTool, ComputerEnvironment, ProgrammaticToolCallingParam, WebSearchTool, WebSearchToolFilters, WebSearchApproximateLocation, WebSearchConfiguration, MCPTool, ImageGenTool, InputFidelity, ImageGenToolInputImageMask, ImageGenAction, LocalShellToolParam, FunctionShellToolParam, FunctionShellToolParamEnvironment, FunctionShellToolParamEnvironmentUnion, FunctionShellToolParamEnvironmentType, FunctionShellToolParamEnvironmentLocalEnvironmentParam, LocalSkillParam, FunctionShellToolParamEnvironmentContainerReferenceParam, ContainerAutoParam, ContainerSkill, ContainerSkillUnion, ContainerSkillType, SkillReferenceParam, InlineSkillParam, InlineSkillSourceParam, CustomToolParam, CustomToolParamFormat, CustomToolParamFormatUnion, CustomToolParamFormatType, CustomTextFormatParam, CustomGrammarFormatParam, GrammarSyntax, WebSearchPreviewTool, ApproximateLocation, SearchContextSize, SearchContentType, ApplyPatchToolParam, ComputerTool, NamespaceToolParam, FunctionToolParam, EmptyModelParam, ToolSearchToolParam, ToolSearchExecutionType, ContainerConfiguration, ProtocolVersionRecord, AgentProtocol, CodeConfiguration, CodeDependencyResolution, TelemetryConfig, TelemetryEndpoint, TelemetryEndpointUnion, TelemetryEndpointKind, TelemetryDataKind, TelemetryEndpointAuth, TelemetryEndpointAuthUnion, TelemetryEndpointAuthType, HeaderTelemetryEndpointAuth, OtlpTelemetryEndpoint, TelemetryTransportProtocol, PromptAgentDefinition, Reasoning, ReasoningModeEnum, ReasoningEffort, ToolChoiceParam, ToolChoiceParamUnion, ToolChoiceParamType, ToolChoiceAllowed, ToolChoiceFunction, ToolChoiceMCP, ToolChoiceCustom, SpecificProgrammaticToolCallingParam, SpecificApplyPatchParam, SpecificFunctionShellParam, ToolChoiceFileSearch, ToolChoiceWebSearchPreview, ToolChoiceComputerUsePreview, ToolChoiceWebSearchPreview20250311, ToolChoiceImageGeneration, ToolChoiceCodeInterpreter, ToolChoiceComputer, ToolChoiceComputerUse, PromptAgentDefinitionTextOptions, TextResponseFormat, TextResponseFormatUnion, TextResponseFormatConfigurationType, TextResponseFormatJsonSchema, TextResponseFormatText, TextResponseFormatJsonObject, StructuredInputDefinition, WorkflowAgentDefinition, ExternalAgentDefinition, AgentVersionStatus, AgentIdentity, AgentIdentityStatus, AgentBlueprintReference, AgentBlueprintReferenceUnion, AgentBlueprintReferenceType, ManagedAgentIdentityBlueprintReference, AgentEndpointConfig,
|
|
8
8
|
/** @deprecated Use AgentEndpointConfig instead */
|
|
9
|
-
AgentEndpoint, VersionSelector, VersionSelectionRule, VersionSelectionRuleUnion, VersionSelectionRuleType, FixedRatioVersionSelectionRule, ProtocolConfiguration, ActivityProtocolConfiguration, ResponsesProtocolConfiguration, A2AProtocolConfiguration, McpProtocolConfiguration, InvocationsProtocolConfiguration, InvocationsWsProtocolConfiguration, AgentEndpointAuthorizationScheme, AgentEndpointAuthorizationSchemeUnion, AgentEndpointAuthorizationSchemeType, EntraAuthorizationScheme, BotServiceAuthorizationScheme, BotServiceRbacAuthorizationScheme, BotServiceTenantAuthorizationScheme, AgentCard, AgentCardSkill, ApiErrorResponse, ErrorModel, DeleteAgentResponse, DeleteAgentVersionResponse, EvaluationRule, EvaluationRuleAction, EvaluationRuleActionUnion, EvaluationRuleActionType, ContinuousEvaluationRuleAction, HumanEvaluationPreviewRuleAction, EvaluationRuleFilter, EvaluationRuleEventType, Connection, ConnectionType, BaseCredentials, BaseCredentialsUnion, CredentialType, ApiKeyCredentials, EntraIDCredentials, CustomCredential, SASTokenCredentials, NoAuthenticationCredentials, AgenticIdentityPreviewCredentials, DatasetVersion, DatasetVersionUnion, DatasetType, FileDatasetVersion, FolderDatasetVersion, PendingUploadRequest, PendingUploadResponse, BlobReference, SasCredential, DatasetCredential, Deployment, DeploymentUnion, DeploymentType, ModelDeployment, ModelDeploymentSku, Index, IndexUnion, IndexType, AzureAISearchIndex, FieldMapping, ManagedAzureAISearchIndex, CosmosDBIndex, EmbeddingConfiguration, CreateAgentVersionFromCodeContent, CreateAgentVersionFromCodeMetadata, VersionIndicator, VersionIndicatorUnion, VersionIndicatorType, VersionRefIndicator, AgentSessionResource, AgentSessionStatus, SessionLogEvent, SessionLogEventType, SessionFileWriteResponse, SessionDirectoryListResponse, SessionDirectoryEntry, OptimizationJobInputs, OptimizationAgentIdentifier, OptimizationDatasetInput, OptimizationDatasetInputUnion, OptimizationDatasetInputType, OptimizationInlineDatasetInput, OptimizationDatasetItem, OptimizationDatasetCriterion, OptimizationReferenceDatasetInput, OptimizationEvaluatorRef, OptimizationOptions,
|
|
9
|
+
AgentEndpoint, VersionSelector, VersionSelectionRule, VersionSelectionRuleUnion, VersionSelectionRuleType, FixedRatioVersionSelectionRule, ProtocolConfiguration, ActivityProtocolConfiguration, ResponsesProtocolConfiguration, A2AProtocolConfiguration, McpProtocolConfiguration, InvocationsProtocolConfiguration, InvocationsWsProtocolConfiguration, AgentEndpointAuthorizationScheme, AgentEndpointAuthorizationSchemeUnion, AgentEndpointAuthorizationSchemeType, EntraAuthorizationScheme, BotServiceAuthorizationScheme, BotServiceRbacAuthorizationScheme, BotServiceTenantAuthorizationScheme, AgentCard, AgentCardSkill, ApiErrorResponse, ErrorModel, DeleteAgentResponse, DeleteAgentVersionResponse, EvaluationRule, EvaluationRuleAction, EvaluationRuleActionUnion, EvaluationRuleActionType, ContinuousEvaluationRuleAction, HumanEvaluationPreviewRuleAction, EvaluationRuleFilter, EvaluationRuleEventType, Connection, ConnectionType, BaseCredentials, BaseCredentialsUnion, CredentialType, ApiKeyCredentials, EntraIDCredentials, CustomCredential, SASTokenCredentials, NoAuthenticationCredentials, AgenticIdentityPreviewCredentials, DatasetVersion, DatasetVersionUnion, DatasetType, FileDatasetVersion, FolderDatasetVersion, PendingUploadRequest, PendingUploadResponse, BlobReference, SasCredential, DatasetCredential, Deployment, DeploymentUnion, DeploymentType, ModelDeployment, ModelDeploymentSku, Index, IndexUnion, IndexType, AzureAISearchIndex, FieldMapping, ManagedAzureAISearchIndex, CosmosDBIndex, EmbeddingConfiguration, CreateAgentVersionFromCodeContent, CreateAgentVersionFromCodeMetadata, VersionIndicator, VersionIndicatorUnion, VersionIndicatorType, VersionRefIndicator, AgentSessionResource, AgentSessionStatus, SessionLogEvent, SessionLogEventType, SessionFileWriteResponse, SessionDirectoryListResponse, SessionDirectoryEntry, AgentOptimizationJobInputs, OptimizedAgentIdentifier, AgentOptimizationDatasetInput, AgentOptimizationDatasetInputUnion, AgentOptimizationDatasetInputType, AgentOptimizationInlineDatasetInput, AgentOptimizationDatasetItem, AgentOptimizationDatasetCriterion, AgentOptimizationReferenceDatasetInput, AgentOptimizationEvaluatorRef, AgentOptimizationOptions, EvaluationLevel, AgentOptimizationJob, JobStatus, AgentOptimizationJobResult, AgentOptimizationCandidate, PromotionInfo, AgentOptimizationJobProgress, AgentOptimizationJobListItem, OptimizationJob, OptimizationJobInputs, OptimizationAgentIdentifier, OptimizationDatasetInput, OptimizationDatasetInputUnion, OptimizationDatasetInputType, OptimizationInlineDatasetInput, OptimizationDatasetItem, OptimizationDatasetCriterion, OptimizationReferenceDatasetInput, OptimizationEvaluatorRef, OptimizationOptions, OptimizationJobResult, OptimizationCandidate, OptimizationJobProgress, OptimizationJobListItem, ToolboxTool, ToolboxToolUnion, ToolboxToolType, CodeInterpreterToolboxTool, FileSearchToolboxTool, WebSearchToolboxTool, MCPToolboxTool, AzureAISearchToolboxTool, OpenApiToolboxTool, A2APreviewToolboxTool, BrowserAutomationPreviewToolboxTool, ReminderPreviewToolboxTool, WorkIQPreviewToolboxTool, FabricIQPreviewToolboxTool, ToolboxSearchPreviewToolboxTool, ToolSearchToolboxTool, EvaluationTaxonomy, EvaluationTaxonomyInput, EvaluationTaxonomyInputUnion, EvaluationTaxonomyInputType, AgentTaxonomyInput, EvaluationTarget, EvaluationTargetUnion, AzureAIModelTarget, ModelSamplingParams, AzureAIAgentTarget, ToolDescription, RiskCategory, TaxonomyCategory, TaxonomySubCategory, EvaluatorVersion, EvaluatorType, EvaluatorCategory, EvaluatorDefinition, EvaluatorDefinitionUnion, EvaluatorDefinitionType, EvaluatorMetric, EvaluatorMetricType, EvaluatorMetricDirection, CodeBasedEvaluatorDefinition, PromptBasedEvaluatorDefinition, RubricBasedEvaluatorDefinition, Dimension, EndpointBasedEvaluatorDefinition, EvaluatorGenerationArtifacts, DatasetReference, GenerationWarningType, EvaluatorCredentialRequest, EvaluatorGenerationJob, EvaluatorGenerationInputs, EvaluatorGenerationJobSource, EvaluatorGenerationJobSourceUnion, EvaluatorGenerationJobSourceType, PromptEvaluatorGenerationJobSource, AgentEvaluatorGenerationJobSource, TracesEvaluatorGenerationJobSource, DatasetEvaluatorGenerationJobSource, EvaluatorGenerationTokenUsage, RubricGenerationInputQualityWarning, RubricGenerationInputQualityWarningCode, RubricGenerationInputQualityWarningSeverity, RubricGenerationInputQualityWarningSource, Insight, InsightsMetadata, OperationState, InsightRequest, InsightRequestUnion, InsightType, EvaluationRunClusterInsightRequest, InsightModelConfiguration, AgentClusterInsightRequest, EvaluationComparisonInsightRequest, InsightResult, InsightResultUnion, EvaluationComparisonInsightResult, EvalRunResultComparison, EvalRunResultSummary, EvalRunResultCompareItem, TreatmentEffectType, EvaluationRunClusterInsightResult, ClusterInsightResult, InsightSummary, ClusterTokenUsage, InsightCluster, InsightSample, InsightSampleUnion, SampleType, EvaluationResultSample, EvalResult, ChartCoordinate, AgentClusterInsightResult, MemoryStoreDefinition, MemoryStoreDefinitionUnion, MemoryStoreKind, MemoryStoreDefaultDefinition, MemoryStoreDefaultOptions, MemoryStore, DeleteMemoryStoreResponse, MemoryStoreSearchResponse, MemorySearchItem, MemoryItem, MemoryItemUnion, MemoryItemKind, UserProfileMemoryItem, ChatSummaryMemoryItem, ProceduralMemoryItem, MemoryStoreOperationUsage, ResponseUsageInputTokensDetails, ResponseUsageOutputTokensDetails, MemoryStoreUpdateResponse, MemoryStoreUpdateStatus, MemoryStoreUpdateCompletedResult, MemoryOperation, MemoryOperationKind, MemoryStoreDeleteScopeResponse, DeleteMemoryResponse, ModelVersion, FoundryModelWeightType, ModelSourceData, FoundryModelSourceType, LoraConfig, ArtifactProfile, FoundryModelArtifactProfileCategory, FoundryModelArtifactProfileSignal, FoundryModelWarning, FoundryModelWarningCode, UpdateModelVersionRequest, ModelPendingUploadRequest, ModelPendingUploadResponse, ModelCredentialRequest, RedTeam, AttackStrategy, RedTeamTargetConfig, RedTeamTargetConfigUnion, AzureOpenAIModelConfiguration, RoutineTrigger, RoutineTriggerUnion, RoutineTriggerType, ScheduleRoutineTrigger, TimerRoutineTrigger, GitHubIssueRoutineTrigger, GitHubIssueEvent, CustomRoutineTrigger, RoutineAction, RoutineActionUnion, RoutineActionType, InvokeAgentResponsesApiRoutineAction, InvokeAgentInvocationsApiRoutineAction, Routine, RoutineRun, RoutineRunStatus, RoutineRunPhase, RoutineAttemptSource, RoutineDispatchPayload, RoutineDispatchPayloadUnion, RoutineDispatchPayloadType, InvokeAgentResponsesApiDispatchPayload, InvokeAgentInvocationsApiDispatchPayload, DispatchRoutineResponse, Schedule, ScheduleProvisioningStatus, Trigger, TriggerUnion, TriggerType, CronTrigger, RecurrenceTrigger, RecurrenceSchedule, RecurrenceScheduleUnion, RecurrenceType, HourlyRecurrenceSchedule, DailyRecurrenceSchedule, WeeklyRecurrenceSchedule, DayOfWeek, MonthlyRecurrenceSchedule, OneTimeTrigger, ScheduleTask, ScheduleTaskUnion, ScheduleTaskType, EvaluationScheduleTask, InsightScheduleTask, ScheduleRun, ToolboxSkill, ToolboxSkillUnion, ToolboxSkillReference, ToolboxPolicies, ToolboxVersionObject, ToolboxObject, Skill, DeleteSkillResponse, SkillInlineContent, SkillVersion, CreateSkillVersionFromFilesBody, DeleteSkillVersionResponse, DataGenerationJob, DataGenerationJobInputs, DataGenerationJobSource, DataGenerationJobSourceUnion, DataGenerationJobSourceType, PromptDataGenerationJobSource, AgentDataGenerationJobSource, TracesDataGenerationJobSource, FileDataGenerationJobSource, DataGenerationJobOptions, DataGenerationJobOptionsUnion, DataGenerationJobType, DataGenerationModelOptions, SimpleQnADataGenerationJobOptions, SimpleQnAFineTuningQuestionType, TracesDataGenerationJobOptions, TaskGenerationDataGenerationJobOptions, SimulationSeedDataGenerationJobOptions, ToolUseFineTuningDataGenerationJobOptions, DataGenerationJobScenario, DataGenerationJobOutputOptions, DataGenerationJobResult, DataGenerationJobOutput, DataGenerationJobOutputUnion, DataGenerationJobOutputType, FileDataGenerationJobOutput, DatasetDataGenerationJobOutput, DataGenerationTokenUsage, UpdateToolboxRequest, AgentType, AgentDefinitionOptInKeys, PageOrder, FoundryFeaturesOptInKeys, PendingUploadType, MemoryStoreType, KnownApiVersions, DownloadVersionResponse, BetaSkillsDownloadResponse, AgentsDownloadSessionFileResponse, AgentsDownloadAgentCodeResponse, } from "./models/index.js";
|
|
10
10
|
export type { AIProjectClientOptionalParams } from "./api/index.js";
|
|
11
11
|
export type { FileContents } from "./static-helpers/multipartHelpers.js";
|
|
12
12
|
export type { JobOperationState, JobPoller } from "./static-helpers/pollingHelpers.js";
|