@alicloud/agentcore20260804 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/models/CreateExternalAgentRequest.d.ts +53 -6
- package/dist/models/CreateExternalAgentRequest.js +31 -1
- package/dist/models/CreateExternalAgentRequest.js.map +1 -1
- package/dist/models/CreateExternalAgentResponseBody.d.ts +79 -12
- package/dist/models/CreateExternalAgentResponseBody.js +37 -1
- package/dist/models/CreateExternalAgentResponseBody.js.map +1 -1
- package/dist/models/CreateExternalAgentShrinkRequest.d.ts +1 -1
- package/dist/models/CreateManagedAgentRequest.d.ts +70 -19
- package/dist/models/CreateManagedAgentRequest.js +31 -1
- package/dist/models/CreateManagedAgentRequest.js.map +1 -1
- package/dist/models/CreateManagedAgentResponseBody.d.ts +97 -26
- package/dist/models/CreateManagedAgentResponseBody.js +37 -1
- package/dist/models/CreateManagedAgentResponseBody.js.map +1 -1
- package/dist/models/CreateManagedAgentShrinkRequest.d.ts +1 -1
- package/dist/models/GetExternalAgentResponseBody.d.ts +48 -4
- package/dist/models/GetExternalAgentResponseBody.js +37 -1
- package/dist/models/GetExternalAgentResponseBody.js.map +1 -1
- package/dist/models/GetManagedAgentResponseBody.d.ts +88 -17
- package/dist/models/GetManagedAgentResponseBody.js +37 -1
- package/dist/models/GetManagedAgentResponseBody.js.map +1 -1
- package/dist/models/UpdateExternalAgentRequest.d.ts +53 -4
- package/dist/models/UpdateExternalAgentRequest.js +31 -1
- package/dist/models/UpdateExternalAgentRequest.js.map +1 -1
- package/dist/models/UpdateExternalAgentResponseBody.d.ts +77 -8
- package/dist/models/UpdateExternalAgentResponseBody.js +37 -1
- package/dist/models/UpdateExternalAgentResponseBody.js.map +1 -1
- package/dist/models/UpdateExternalAgentShrinkRequest.d.ts +1 -1
- package/dist/models/UpdateManagedAgentRequest.d.ts +33 -0
- package/dist/models/UpdateManagedAgentRequest.js +31 -1
- package/dist/models/UpdateManagedAgentRequest.js.map +1 -1
- package/dist/models/UpdateManagedAgentResponseBody.d.ts +48 -2
- package/dist/models/UpdateManagedAgentResponseBody.js +37 -1
- package/dist/models/UpdateManagedAgentResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +10 -0
- package/dist/models/model.js +165 -145
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/models/CreateExternalAgentRequest.ts +74 -6
- package/src/models/CreateExternalAgentResponseBody.ts +106 -12
- package/src/models/CreateExternalAgentShrinkRequest.ts +1 -1
- package/src/models/CreateManagedAgentRequest.ts +91 -19
- package/src/models/CreateManagedAgentResponseBody.ts +124 -26
- package/src/models/CreateManagedAgentShrinkRequest.ts +1 -1
- package/src/models/GetExternalAgentResponseBody.ts +75 -4
- package/src/models/GetManagedAgentResponseBody.ts +115 -17
- package/src/models/UpdateExternalAgentRequest.ts +74 -4
- package/src/models/UpdateExternalAgentResponseBody.ts +104 -8
- package/src/models/UpdateExternalAgentShrinkRequest.ts +1 -1
- package/src/models/UpdateManagedAgentRequest.ts +54 -0
- package/src/models/UpdateManagedAgentResponseBody.ts +75 -2
- package/src/models/model.ts +10 -0
|
@@ -121,7 +121,7 @@ export class CreateManagedAgentRequestBodyEnvironment extends $dara.Model {
|
|
|
121
121
|
export class CreateManagedAgentRequestBodyHarnessConfiguration extends $dara.Model {
|
|
122
122
|
/**
|
|
123
123
|
* @remarks
|
|
124
|
-
* The Key ID used to bind a Service Account Key of the QoderCLI Connector. This parameter
|
|
124
|
+
* The Key ID used to bind a Service Account Key of the QoderCLI Connector. This parameter can be omitted when only one key exists, but is required when multiple keys exist.
|
|
125
125
|
*
|
|
126
126
|
* @example
|
|
127
127
|
* key-xxxx
|
|
@@ -129,7 +129,7 @@ export class CreateManagedAgentRequestBodyHarnessConfiguration extends $dara.Mod
|
|
|
129
129
|
connectorServiceAccountKey?: string;
|
|
130
130
|
/**
|
|
131
131
|
* @remarks
|
|
132
|
-
* The Connector Key name that is populated during queries. This parameter is not used as a binding
|
|
132
|
+
* The Connector Key name that is populated during queries. This parameter is not used as a binding criterion during writes.
|
|
133
133
|
*
|
|
134
134
|
* @example
|
|
135
135
|
* my-connector-key
|
|
@@ -166,7 +166,7 @@ export class CreateManagedAgentRequestBodyHarness extends $dara.Model {
|
|
|
166
166
|
configuration?: CreateManagedAgentRequestBodyHarnessConfiguration;
|
|
167
167
|
/**
|
|
168
168
|
* @remarks
|
|
169
|
-
* The
|
|
169
|
+
* The harness type. Valid values: qwenpaw and qodercli. When the type is qodercli, binding is performed based on configuration.connectorServiceAccountKey, and the name is also populated during queries.
|
|
170
170
|
*
|
|
171
171
|
* @example
|
|
172
172
|
* qodercli
|
|
@@ -198,6 +198,68 @@ export class CreateManagedAgentRequestBodyHarness extends $dara.Model {
|
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
+
export class CreateManagedAgentRequestBodyModelQuota extends $dara.Model {
|
|
202
|
+
/**
|
|
203
|
+
* @remarks
|
|
204
|
+
* Specifies whether to enable the token quota. Default value: true. If you set this parameter to false, the token quota is disabled and existing quota rules are deleted.
|
|
205
|
+
*
|
|
206
|
+
* @example
|
|
207
|
+
* true
|
|
208
|
+
*/
|
|
209
|
+
enabled?: boolean;
|
|
210
|
+
/**
|
|
211
|
+
* @remarks
|
|
212
|
+
* The quota limit type. This parameter is required by backend validation when the quota is enabled. Fixed value: token.
|
|
213
|
+
*
|
|
214
|
+
* @example
|
|
215
|
+
* token
|
|
216
|
+
*/
|
|
217
|
+
limitType?: string;
|
|
218
|
+
/**
|
|
219
|
+
* @remarks
|
|
220
|
+
* The quota statistical period. This parameter is required by backend validation when the quota is enabled. Valid values:
|
|
221
|
+
* - day: daily.
|
|
222
|
+
* - month: monthly.
|
|
223
|
+
*
|
|
224
|
+
* @example
|
|
225
|
+
* day
|
|
226
|
+
*/
|
|
227
|
+
periodType?: string;
|
|
228
|
+
/**
|
|
229
|
+
* @remarks
|
|
230
|
+
* The maximum number of tokens that can be consumed within a single period. This parameter is required by backend validation when the quota is enabled. The value must be greater than 0.
|
|
231
|
+
*
|
|
232
|
+
* @example
|
|
233
|
+
* 1000000
|
|
234
|
+
*/
|
|
235
|
+
usageLimit?: number;
|
|
236
|
+
static names(): { [key: string]: string } {
|
|
237
|
+
return {
|
|
238
|
+
enabled: 'enabled',
|
|
239
|
+
limitType: 'limitType',
|
|
240
|
+
periodType: 'periodType',
|
|
241
|
+
usageLimit: 'usageLimit',
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
static types(): { [key: string]: any } {
|
|
246
|
+
return {
|
|
247
|
+
enabled: 'boolean',
|
|
248
|
+
limitType: 'string',
|
|
249
|
+
periodType: 'string',
|
|
250
|
+
usageLimit: 'number',
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
validate() {
|
|
255
|
+
super.validate();
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
constructor(map?: { [key: string]: any }) {
|
|
259
|
+
super(map);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
201
263
|
export class CreateManagedAgentRequestBodyModel extends $dara.Model {
|
|
202
264
|
/**
|
|
203
265
|
* @remarks
|
|
@@ -217,10 +279,16 @@ export class CreateManagedAgentRequestBodyModel extends $dara.Model {
|
|
|
217
279
|
* qwen-max
|
|
218
280
|
*/
|
|
219
281
|
modelName?: string;
|
|
282
|
+
/**
|
|
283
|
+
* @remarks
|
|
284
|
+
* The model token quota configuration. If this parameter is not specified, no quota is configured.
|
|
285
|
+
*/
|
|
286
|
+
quota?: CreateManagedAgentRequestBodyModelQuota;
|
|
220
287
|
static names(): { [key: string]: string } {
|
|
221
288
|
return {
|
|
222
289
|
modelConnectionId: 'modelConnectionId',
|
|
223
290
|
modelName: 'modelName',
|
|
291
|
+
quota: 'quota',
|
|
224
292
|
};
|
|
225
293
|
}
|
|
226
294
|
|
|
@@ -228,10 +296,14 @@ export class CreateManagedAgentRequestBodyModel extends $dara.Model {
|
|
|
228
296
|
return {
|
|
229
297
|
modelConnectionId: 'string',
|
|
230
298
|
modelName: 'string',
|
|
299
|
+
quota: CreateManagedAgentRequestBodyModelQuota,
|
|
231
300
|
};
|
|
232
301
|
}
|
|
233
302
|
|
|
234
303
|
validate() {
|
|
304
|
+
if(this.quota && typeof (this.quota as any).validate === 'function') {
|
|
305
|
+
(this.quota as any).validate();
|
|
306
|
+
}
|
|
235
307
|
super.validate();
|
|
236
308
|
}
|
|
237
309
|
|
|
@@ -343,22 +415,22 @@ export class CreateManagedAgentRequestBodyNetwork extends $dara.Model {
|
|
|
343
415
|
export class CreateManagedAgentRequestBodyOssMounts extends $dara.Model {
|
|
344
416
|
/**
|
|
345
417
|
* @remarks
|
|
346
|
-
* The OSS bucket name. This parameter is required for each mount entry
|
|
418
|
+
* The OSS bucket name. This parameter is required by backend validation for each mount entry.
|
|
347
419
|
*/
|
|
348
420
|
bucketName?: string;
|
|
349
421
|
/**
|
|
350
422
|
* @remarks
|
|
351
|
-
* The absolute mount path
|
|
423
|
+
* The absolute mount path inside the container. This parameter is required by backend validation for each mount entry.
|
|
352
424
|
*/
|
|
353
425
|
mountPath?: string;
|
|
354
426
|
/**
|
|
355
427
|
* @remarks
|
|
356
|
-
* The relative object prefix
|
|
428
|
+
* The relative object prefix within the bucket. If this parameter is not specified, the entire bucket is mounted.
|
|
357
429
|
*/
|
|
358
430
|
path?: string;
|
|
359
431
|
/**
|
|
360
432
|
* @remarks
|
|
361
|
-
* Specifies whether to mount
|
|
433
|
+
* Specifies whether to mount in read-only mode. Default value: false.
|
|
362
434
|
*/
|
|
363
435
|
readOnly?: boolean;
|
|
364
436
|
static names(): { [key: string]: string } {
|
|
@@ -391,7 +463,7 @@ export class CreateManagedAgentRequestBodyOssMounts extends $dara.Model {
|
|
|
391
463
|
export class CreateManagedAgentRequestBodyRuntimeCompute extends $dara.Model {
|
|
392
464
|
/**
|
|
393
465
|
* @remarks
|
|
394
|
-
* The compute
|
|
466
|
+
* The compute class.
|
|
395
467
|
*
|
|
396
468
|
* This parameter is required.
|
|
397
469
|
*
|
|
@@ -423,27 +495,27 @@ export class CreateManagedAgentRequestBodyRuntimeCompute extends $dara.Model {
|
|
|
423
495
|
export class CreateManagedAgentRequestBodyRuntimeHpa extends $dara.Model {
|
|
424
496
|
/**
|
|
425
497
|
* @remarks
|
|
426
|
-
* Specifies whether to enable auto
|
|
498
|
+
* Specifies whether to enable auto scaling. This parameter is required by backend validation when hpa is present.
|
|
427
499
|
*/
|
|
428
500
|
enabled?: boolean;
|
|
429
501
|
/**
|
|
430
502
|
* @remarks
|
|
431
|
-
* The maximum number of active sessions per
|
|
503
|
+
* The maximum number of active sessions per sandbox. This parameter is required by backend validation when hpa is present.
|
|
432
504
|
*/
|
|
433
505
|
maxConcurrentSessionsPerSandbox?: number;
|
|
434
506
|
/**
|
|
435
507
|
* @remarks
|
|
436
|
-
* The maximum number of
|
|
508
|
+
* The maximum number of sandboxes. This parameter is required when HPA is enabled and the value must be no less than the minimum value.
|
|
437
509
|
*/
|
|
438
510
|
maxSandboxCount?: number;
|
|
439
511
|
/**
|
|
440
512
|
* @remarks
|
|
441
|
-
* The minimum number of
|
|
513
|
+
* The minimum number of sandboxes. This parameter is required when HPA is enabled.
|
|
442
514
|
*/
|
|
443
515
|
minSandboxCount?: number;
|
|
444
516
|
/**
|
|
445
517
|
* @remarks
|
|
446
|
-
* The session reclamation time after inactivity, in seconds. This parameter is required when hpa is present
|
|
518
|
+
* The session reclamation time after inactivity, in seconds. This parameter is required by backend validation when hpa is present.
|
|
447
519
|
*/
|
|
448
520
|
sessionTtlSeconds?: number;
|
|
449
521
|
static names(): { [key: string]: string } {
|
|
@@ -478,7 +550,7 @@ export class CreateManagedAgentRequestBodyRuntimeHpa extends $dara.Model {
|
|
|
478
550
|
export class CreateManagedAgentRequestBodyRuntimeSessionPolicy extends $dara.Model {
|
|
479
551
|
/**
|
|
480
552
|
* @remarks
|
|
481
|
-
* The HTTP header
|
|
553
|
+
* The name of the HTTP header used for session affinity. This parameter takes effect when sessionPolicy.type is set to ISOLATED_HEADER_FIELD.
|
|
482
554
|
*
|
|
483
555
|
* @example
|
|
484
556
|
* X-Session-Id
|
|
@@ -527,7 +599,7 @@ export class CreateManagedAgentRequestBodyRuntime extends $dara.Model {
|
|
|
527
599
|
compute?: CreateManagedAgentRequestBodyRuntimeCompute;
|
|
528
600
|
/**
|
|
529
601
|
* @remarks
|
|
530
|
-
* The
|
|
602
|
+
* The sandbox auto scaling and session configuration.
|
|
531
603
|
*/
|
|
532
604
|
hpa?: CreateManagedAgentRequestBodyRuntimeHpa;
|
|
533
605
|
/**
|
|
@@ -791,7 +863,7 @@ export class CreateManagedAgentRequestBody extends $dara.Model {
|
|
|
791
863
|
environment?: CreateManagedAgentRequestBodyEnvironment;
|
|
792
864
|
/**
|
|
793
865
|
* @remarks
|
|
794
|
-
* The
|
|
866
|
+
* The harness for the managed agent. Valid values: qwenpaw and qodercli.
|
|
795
867
|
*/
|
|
796
868
|
harness?: CreateManagedAgentRequestBodyHarness;
|
|
797
869
|
/**
|
|
@@ -826,7 +898,7 @@ export class CreateManagedAgentRequestBody extends $dara.Model {
|
|
|
826
898
|
network?: CreateManagedAgentRequestBodyNetwork;
|
|
827
899
|
/**
|
|
828
900
|
* @remarks
|
|
829
|
-
* The OSS
|
|
901
|
+
* The list of OSS mounts. A maximum of 10 entries are supported.
|
|
830
902
|
*/
|
|
831
903
|
ossMounts?: CreateManagedAgentRequestBodyOssMounts[];
|
|
832
904
|
/**
|
|
@@ -853,7 +925,7 @@ export class CreateManagedAgentRequestBody extends $dara.Model {
|
|
|
853
925
|
template?: CreateManagedAgentRequestBodyTemplate;
|
|
854
926
|
/**
|
|
855
927
|
* @remarks
|
|
856
|
-
* The
|
|
928
|
+
* The tool configuration list.
|
|
857
929
|
*/
|
|
858
930
|
tools?: CreateManagedAgentRequestBodyTools[];
|
|
859
931
|
static names(): { [key: string]: string } {
|
|
@@ -939,7 +1011,7 @@ export class CreateManagedAgentRequest extends $dara.Model {
|
|
|
939
1011
|
body?: CreateManagedAgentRequestBody;
|
|
940
1012
|
/**
|
|
941
1013
|
* @remarks
|
|
942
|
-
* The reserved idempotency token. The backend does not provide idempotency guarantees in the current
|
|
1014
|
+
* The reserved idempotency token. The backend does not provide idempotency guarantees in the current version.
|
|
943
1015
|
*
|
|
944
1016
|
* @example
|
|
945
1017
|
* client-token-1
|
|
@@ -121,7 +121,7 @@ export class CreateManagedAgentResponseBodyDataEnvironment extends $dara.Model {
|
|
|
121
121
|
export class CreateManagedAgentResponseBodyDataHarnessConfiguration extends $dara.Model {
|
|
122
122
|
/**
|
|
123
123
|
* @remarks
|
|
124
|
-
* The Key ID used to bind a Service Account Key of the QoderCLI Connector. This parameter
|
|
124
|
+
* The Key ID used to bind a Service Account Key of the QoderCLI Connector. This parameter can be omitted when only one key exists, but is required when multiple keys exist.
|
|
125
125
|
*
|
|
126
126
|
* @example
|
|
127
127
|
* key-xxxx
|
|
@@ -129,7 +129,7 @@ export class CreateManagedAgentResponseBodyDataHarnessConfiguration extends $dar
|
|
|
129
129
|
connectorServiceAccountKey?: string;
|
|
130
130
|
/**
|
|
131
131
|
* @remarks
|
|
132
|
-
* The Connector Key name that is populated during queries. This parameter is not used as a binding
|
|
132
|
+
* The Connector Key name that is populated during queries. This parameter is not used as a binding criterion during writes.
|
|
133
133
|
*
|
|
134
134
|
* @example
|
|
135
135
|
* my-connector-key
|
|
@@ -166,7 +166,7 @@ export class CreateManagedAgentResponseBodyDataHarness extends $dara.Model {
|
|
|
166
166
|
configuration?: CreateManagedAgentResponseBodyDataHarnessConfiguration;
|
|
167
167
|
/**
|
|
168
168
|
* @remarks
|
|
169
|
-
* The
|
|
169
|
+
* The harness type. Valid values: qwenpaw and qodercli. When the type is qodercli, binding is performed based on configuration.connectorServiceAccountKey, and the name is also populated during queries.
|
|
170
170
|
*
|
|
171
171
|
* @example
|
|
172
172
|
* qodercli
|
|
@@ -198,13 +198,101 @@ export class CreateManagedAgentResponseBodyDataHarness extends $dara.Model {
|
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
+
export class CreateManagedAgentResponseBodyDataModelQuota extends $dara.Model {
|
|
202
|
+
/**
|
|
203
|
+
* @remarks
|
|
204
|
+
* Indicates whether the quota is enabled. This parameter is not returned if no quota is configured.
|
|
205
|
+
*
|
|
206
|
+
* @example
|
|
207
|
+
* true
|
|
208
|
+
*/
|
|
209
|
+
enabled?: boolean;
|
|
210
|
+
/**
|
|
211
|
+
* @remarks
|
|
212
|
+
* The quota limit type. Currently, only token is supported.
|
|
213
|
+
*
|
|
214
|
+
* @example
|
|
215
|
+
* token
|
|
216
|
+
*/
|
|
217
|
+
limitType?: string;
|
|
218
|
+
/**
|
|
219
|
+
* @remarks
|
|
220
|
+
* Indicates whether the quota has been exceeded in the current cycle. This is a read-only field returned by the backend.
|
|
221
|
+
*
|
|
222
|
+
* @example
|
|
223
|
+
* false
|
|
224
|
+
*/
|
|
225
|
+
overLimit?: boolean;
|
|
226
|
+
/**
|
|
227
|
+
* @remarks
|
|
228
|
+
* The quota statistical period. A value of day indicates a daily period. A value of month indicates a monthly period.
|
|
229
|
+
*
|
|
230
|
+
* @example
|
|
231
|
+
* day
|
|
232
|
+
*/
|
|
233
|
+
periodType?: string;
|
|
234
|
+
/**
|
|
235
|
+
* @remarks
|
|
236
|
+
* The gateway quota rule status. This is a read-only field returned by the backend.
|
|
237
|
+
*
|
|
238
|
+
* @example
|
|
239
|
+
* ACTIVE
|
|
240
|
+
*/
|
|
241
|
+
ruleStatus?: string;
|
|
242
|
+
/**
|
|
243
|
+
* @remarks
|
|
244
|
+
* The maximum number of tokens that can be consumed within a single cycle.
|
|
245
|
+
*
|
|
246
|
+
* @example
|
|
247
|
+
* 1000000
|
|
248
|
+
*/
|
|
249
|
+
usageLimit?: number;
|
|
250
|
+
/**
|
|
251
|
+
* @remarks
|
|
252
|
+
* The number of tokens consumed in the current cycle. This is a read-only field returned by the backend.
|
|
253
|
+
*
|
|
254
|
+
* @example
|
|
255
|
+
* 12345
|
|
256
|
+
*/
|
|
257
|
+
usedAmount?: number;
|
|
258
|
+
static names(): { [key: string]: string } {
|
|
259
|
+
return {
|
|
260
|
+
enabled: 'enabled',
|
|
261
|
+
limitType: 'limitType',
|
|
262
|
+
overLimit: 'overLimit',
|
|
263
|
+
periodType: 'periodType',
|
|
264
|
+
ruleStatus: 'ruleStatus',
|
|
265
|
+
usageLimit: 'usageLimit',
|
|
266
|
+
usedAmount: 'usedAmount',
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
static types(): { [key: string]: any } {
|
|
271
|
+
return {
|
|
272
|
+
enabled: 'boolean',
|
|
273
|
+
limitType: 'string',
|
|
274
|
+
overLimit: 'boolean',
|
|
275
|
+
periodType: 'string',
|
|
276
|
+
ruleStatus: 'string',
|
|
277
|
+
usageLimit: 'number',
|
|
278
|
+
usedAmount: 'number',
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
validate() {
|
|
283
|
+
super.validate();
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
constructor(map?: { [key: string]: any }) {
|
|
287
|
+
super(map);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
201
291
|
export class CreateManagedAgentResponseBodyDataModel extends $dara.Model {
|
|
202
292
|
/**
|
|
203
293
|
* @remarks
|
|
204
294
|
* The model connection ID.
|
|
205
295
|
*
|
|
206
|
-
* This parameter is required.
|
|
207
|
-
*
|
|
208
296
|
* @example
|
|
209
297
|
* mc-1
|
|
210
298
|
*/
|
|
@@ -217,10 +305,16 @@ export class CreateManagedAgentResponseBodyDataModel extends $dara.Model {
|
|
|
217
305
|
* qwen-max
|
|
218
306
|
*/
|
|
219
307
|
modelName?: string;
|
|
308
|
+
/**
|
|
309
|
+
* @remarks
|
|
310
|
+
* The model token quota configuration and the quota usage status in the current cycle. This parameter is empty if no quota is configured.
|
|
311
|
+
*/
|
|
312
|
+
quota?: CreateManagedAgentResponseBodyDataModelQuota;
|
|
220
313
|
static names(): { [key: string]: string } {
|
|
221
314
|
return {
|
|
222
315
|
modelConnectionId: 'modelConnectionId',
|
|
223
316
|
modelName: 'modelName',
|
|
317
|
+
quota: 'quota',
|
|
224
318
|
};
|
|
225
319
|
}
|
|
226
320
|
|
|
@@ -228,10 +322,14 @@ export class CreateManagedAgentResponseBodyDataModel extends $dara.Model {
|
|
|
228
322
|
return {
|
|
229
323
|
modelConnectionId: 'string',
|
|
230
324
|
modelName: 'string',
|
|
325
|
+
quota: CreateManagedAgentResponseBodyDataModelQuota,
|
|
231
326
|
};
|
|
232
327
|
}
|
|
233
328
|
|
|
234
329
|
validate() {
|
|
330
|
+
if(this.quota && typeof (this.quota as any).validate === 'function') {
|
|
331
|
+
(this.quota as any).validate();
|
|
332
|
+
}
|
|
235
333
|
super.validate();
|
|
236
334
|
}
|
|
237
335
|
|
|
@@ -343,22 +441,22 @@ export class CreateManagedAgentResponseBodyDataNetwork extends $dara.Model {
|
|
|
343
441
|
export class CreateManagedAgentResponseBodyDataOssMounts extends $dara.Model {
|
|
344
442
|
/**
|
|
345
443
|
* @remarks
|
|
346
|
-
* The OSS bucket name. This parameter is required for each mount entry
|
|
444
|
+
* The OSS bucket name. This parameter is required by backend validation for each mount entry.
|
|
347
445
|
*/
|
|
348
446
|
bucketName?: string;
|
|
349
447
|
/**
|
|
350
448
|
* @remarks
|
|
351
|
-
* The absolute mount path
|
|
449
|
+
* The absolute mount path inside the container. This parameter is required by backend validation for each mount entry.
|
|
352
450
|
*/
|
|
353
451
|
mountPath?: string;
|
|
354
452
|
/**
|
|
355
453
|
* @remarks
|
|
356
|
-
* The relative object prefix
|
|
454
|
+
* The relative object prefix within the bucket. If this parameter is not specified, the entire bucket is mounted.
|
|
357
455
|
*/
|
|
358
456
|
path?: string;
|
|
359
457
|
/**
|
|
360
458
|
* @remarks
|
|
361
|
-
* Specifies whether to mount
|
|
459
|
+
* Specifies whether to mount in read-only mode. Default value: false.
|
|
362
460
|
*/
|
|
363
461
|
readOnly?: boolean;
|
|
364
462
|
static names(): { [key: string]: string } {
|
|
@@ -391,7 +489,7 @@ export class CreateManagedAgentResponseBodyDataOssMounts extends $dara.Model {
|
|
|
391
489
|
export class CreateManagedAgentResponseBodyDataRuntimeCompute extends $dara.Model {
|
|
392
490
|
/**
|
|
393
491
|
* @remarks
|
|
394
|
-
* The compute
|
|
492
|
+
* The compute class.
|
|
395
493
|
*
|
|
396
494
|
* This parameter is required.
|
|
397
495
|
*
|
|
@@ -423,27 +521,27 @@ export class CreateManagedAgentResponseBodyDataRuntimeCompute extends $dara.Mode
|
|
|
423
521
|
export class CreateManagedAgentResponseBodyDataRuntimeHpa extends $dara.Model {
|
|
424
522
|
/**
|
|
425
523
|
* @remarks
|
|
426
|
-
* Specifies whether to enable auto
|
|
524
|
+
* Specifies whether to enable auto scaling. This parameter is required by backend validation when hpa is present.
|
|
427
525
|
*/
|
|
428
526
|
enabled?: boolean;
|
|
429
527
|
/**
|
|
430
528
|
* @remarks
|
|
431
|
-
* The maximum number of active sessions per
|
|
529
|
+
* The maximum number of active sessions per sandbox. This parameter is required by backend validation when hpa is present.
|
|
432
530
|
*/
|
|
433
531
|
maxConcurrentSessionsPerSandbox?: number;
|
|
434
532
|
/**
|
|
435
533
|
* @remarks
|
|
436
|
-
* The maximum number of
|
|
534
|
+
* The maximum number of sandboxes. This parameter is required when HPA is enabled and the value must be no less than the minimum value.
|
|
437
535
|
*/
|
|
438
536
|
maxSandboxCount?: number;
|
|
439
537
|
/**
|
|
440
538
|
* @remarks
|
|
441
|
-
* The minimum number of
|
|
539
|
+
* The minimum number of sandboxes. This parameter is required when HPA is enabled.
|
|
442
540
|
*/
|
|
443
541
|
minSandboxCount?: number;
|
|
444
542
|
/**
|
|
445
543
|
* @remarks
|
|
446
|
-
* The session reclamation time after inactivity, in seconds. This parameter is required when hpa is present
|
|
544
|
+
* The session reclamation time after inactivity, in seconds. This parameter is required by backend validation when hpa is present.
|
|
447
545
|
*/
|
|
448
546
|
sessionTtlSeconds?: number;
|
|
449
547
|
static names(): { [key: string]: string } {
|
|
@@ -478,7 +576,7 @@ export class CreateManagedAgentResponseBodyDataRuntimeHpa extends $dara.Model {
|
|
|
478
576
|
export class CreateManagedAgentResponseBodyDataRuntimeSessionPolicy extends $dara.Model {
|
|
479
577
|
/**
|
|
480
578
|
* @remarks
|
|
481
|
-
* The HTTP header
|
|
579
|
+
* The name of the HTTP header used for session affinity. This parameter takes effect when sessionPolicy.type is set to ISOLATED_HEADER_FIELD.
|
|
482
580
|
*
|
|
483
581
|
* @example
|
|
484
582
|
* X-Session-Id
|
|
@@ -527,7 +625,7 @@ export class CreateManagedAgentResponseBodyDataRuntime extends $dara.Model {
|
|
|
527
625
|
compute?: CreateManagedAgentResponseBodyDataRuntimeCompute;
|
|
528
626
|
/**
|
|
529
627
|
* @remarks
|
|
530
|
-
* The
|
|
628
|
+
* The sandbox auto scaling and session configuration.
|
|
531
629
|
*/
|
|
532
630
|
hpa?: CreateManagedAgentResponseBodyDataRuntimeHpa;
|
|
533
631
|
/**
|
|
@@ -823,7 +921,7 @@ export class CreateManagedAgentResponseBodyData extends $dara.Model {
|
|
|
823
921
|
environment?: CreateManagedAgentResponseBodyDataEnvironment;
|
|
824
922
|
/**
|
|
825
923
|
* @remarks
|
|
826
|
-
* The
|
|
924
|
+
* The harness for the managed agent. Valid values: qwenpaw and qodercli.
|
|
827
925
|
*/
|
|
828
926
|
harness?: CreateManagedAgentResponseBodyDataHarness;
|
|
829
927
|
/**
|
|
@@ -870,7 +968,7 @@ export class CreateManagedAgentResponseBodyData extends $dara.Model {
|
|
|
870
968
|
network?: CreateManagedAgentResponseBodyDataNetwork;
|
|
871
969
|
/**
|
|
872
970
|
* @remarks
|
|
873
|
-
* The OSS
|
|
971
|
+
* The list of OSS mounts. A maximum of 10 entries are supported.
|
|
874
972
|
*/
|
|
875
973
|
ossMounts?: CreateManagedAgentResponseBodyDataOssMounts[];
|
|
876
974
|
/**
|
|
@@ -888,7 +986,7 @@ export class CreateManagedAgentResponseBodyData extends $dara.Model {
|
|
|
888
986
|
runtime?: CreateManagedAgentResponseBodyDataRuntime;
|
|
889
987
|
/**
|
|
890
988
|
* @remarks
|
|
891
|
-
* The
|
|
989
|
+
* The number of managed agent instances grouped by sandbox phase. Current keys: PENDING (being created or initialized), RUNNING (running), HIBERNATING (entering hibernation), HIBERNATED (hibernated), RESUMING (resuming), TERMINATING (being terminated), and FAILED (runtime failure). Only phases that actually occur are returned. Missing keys are treated as 0. This field is a dynamic mapping, and new keys may be added in the future. The frontend can use FAILED > 0 to determine whether abnormal instances exist.
|
|
892
990
|
*/
|
|
893
991
|
sandboxPhaseCounts?: { [key: string]: number };
|
|
894
992
|
/**
|
|
@@ -898,7 +996,7 @@ export class CreateManagedAgentResponseBodyData extends $dara.Model {
|
|
|
898
996
|
skills?: CreateManagedAgentResponseBodyDataSkills[];
|
|
899
997
|
/**
|
|
900
998
|
* @remarks
|
|
901
|
-
* The managed agent
|
|
999
|
+
* The status of the managed agent.
|
|
902
1000
|
*
|
|
903
1001
|
* @example
|
|
904
1002
|
* Running
|
|
@@ -911,17 +1009,17 @@ export class CreateManagedAgentResponseBodyData extends $dara.Model {
|
|
|
911
1009
|
subAgents?: CreateManagedAgentResponseBodyDataSubAgents[];
|
|
912
1010
|
/**
|
|
913
1011
|
* @remarks
|
|
914
|
-
* The template configuration
|
|
1012
|
+
* The template configuration.
|
|
915
1013
|
*/
|
|
916
1014
|
template?: CreateManagedAgentResponseBodyDataTemplate;
|
|
917
1015
|
/**
|
|
918
1016
|
* @remarks
|
|
919
|
-
* The
|
|
1017
|
+
* The tool configuration list.
|
|
920
1018
|
*/
|
|
921
1019
|
tools?: CreateManagedAgentResponseBodyDataTools[];
|
|
922
1020
|
/**
|
|
923
1021
|
* @remarks
|
|
924
|
-
* The
|
|
1022
|
+
* The time when the managed agent was last updated, in RFC 3339 format.
|
|
925
1023
|
*
|
|
926
1024
|
* @example
|
|
927
1025
|
* 2026-01-01T00:00:00Z
|
|
@@ -1038,7 +1136,7 @@ export class CreateManagedAgentResponseBodyData extends $dara.Model {
|
|
|
1038
1136
|
export class CreateManagedAgentResponseBody extends $dara.Model {
|
|
1039
1137
|
/**
|
|
1040
1138
|
* @remarks
|
|
1041
|
-
* The business status code. The value is
|
|
1139
|
+
* The business status code. The value SUCCESS is returned if the operation is successful.
|
|
1042
1140
|
*
|
|
1043
1141
|
* @example
|
|
1044
1142
|
* SUCCESS
|
|
@@ -1059,7 +1157,7 @@ export class CreateManagedAgentResponseBody extends $dara.Model {
|
|
|
1059
1157
|
httpStatusCode?: number;
|
|
1060
1158
|
/**
|
|
1061
1159
|
* @remarks
|
|
1062
|
-
* The message
|
|
1160
|
+
* The result message of the request.
|
|
1063
1161
|
*
|
|
1064
1162
|
* @example
|
|
1065
1163
|
* success
|
|
@@ -10,7 +10,7 @@ export class CreateManagedAgentShrinkRequest extends $dara.Model {
|
|
|
10
10
|
bodyShrink?: string;
|
|
11
11
|
/**
|
|
12
12
|
* @remarks
|
|
13
|
-
* The reserved idempotency token. The backend does not provide idempotency guarantees in the current
|
|
13
|
+
* The reserved idempotency token. The backend does not provide idempotency guarantees in the current version.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* client-token-1
|
|
@@ -75,13 +75,80 @@ export class GetExternalAgentResponseBodyDataExternalAgentStatus extends $dara.M
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
export class GetExternalAgentResponseBodyDataModelQuota extends $dara.Model {
|
|
79
|
+
/**
|
|
80
|
+
* @example
|
|
81
|
+
* true
|
|
82
|
+
*/
|
|
83
|
+
enabled?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* @example
|
|
86
|
+
* token
|
|
87
|
+
*/
|
|
88
|
+
limitType?: string;
|
|
89
|
+
/**
|
|
90
|
+
* @example
|
|
91
|
+
* false
|
|
92
|
+
*/
|
|
93
|
+
overLimit?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* @example
|
|
96
|
+
* day
|
|
97
|
+
*/
|
|
98
|
+
periodType?: string;
|
|
99
|
+
/**
|
|
100
|
+
* @example
|
|
101
|
+
* ACTIVE
|
|
102
|
+
*/
|
|
103
|
+
ruleStatus?: string;
|
|
104
|
+
/**
|
|
105
|
+
* @example
|
|
106
|
+
* 1000000
|
|
107
|
+
*/
|
|
108
|
+
usageLimit?: number;
|
|
109
|
+
/**
|
|
110
|
+
* @example
|
|
111
|
+
* 12345
|
|
112
|
+
*/
|
|
113
|
+
usedAmount?: number;
|
|
114
|
+
static names(): { [key: string]: string } {
|
|
115
|
+
return {
|
|
116
|
+
enabled: 'enabled',
|
|
117
|
+
limitType: 'limitType',
|
|
118
|
+
overLimit: 'overLimit',
|
|
119
|
+
periodType: 'periodType',
|
|
120
|
+
ruleStatus: 'ruleStatus',
|
|
121
|
+
usageLimit: 'usageLimit',
|
|
122
|
+
usedAmount: 'usedAmount',
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
static types(): { [key: string]: any } {
|
|
127
|
+
return {
|
|
128
|
+
enabled: 'boolean',
|
|
129
|
+
limitType: 'string',
|
|
130
|
+
overLimit: 'boolean',
|
|
131
|
+
periodType: 'string',
|
|
132
|
+
ruleStatus: 'string',
|
|
133
|
+
usageLimit: 'number',
|
|
134
|
+
usedAmount: 'number',
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
validate() {
|
|
139
|
+
super.validate();
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
constructor(map?: { [key: string]: any }) {
|
|
143
|
+
super(map);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
78
147
|
export class GetExternalAgentResponseBodyDataModel extends $dara.Model {
|
|
79
148
|
/**
|
|
80
149
|
* @remarks
|
|
81
150
|
* The model connection ID.
|
|
82
151
|
*
|
|
83
|
-
* This parameter is required.
|
|
84
|
-
*
|
|
85
152
|
* @example
|
|
86
153
|
* mc-1
|
|
87
154
|
*/
|
|
@@ -90,16 +157,16 @@ export class GetExternalAgentResponseBodyDataModel extends $dara.Model {
|
|
|
90
157
|
* @remarks
|
|
91
158
|
* The upstream model name.
|
|
92
159
|
*
|
|
93
|
-
* This parameter is required.
|
|
94
|
-
*
|
|
95
160
|
* @example
|
|
96
161
|
* qwen-max
|
|
97
162
|
*/
|
|
98
163
|
modelName?: string;
|
|
164
|
+
quota?: GetExternalAgentResponseBodyDataModelQuota;
|
|
99
165
|
static names(): { [key: string]: string } {
|
|
100
166
|
return {
|
|
101
167
|
modelConnectionId: 'modelConnectionId',
|
|
102
168
|
modelName: 'modelName',
|
|
169
|
+
quota: 'quota',
|
|
103
170
|
};
|
|
104
171
|
}
|
|
105
172
|
|
|
@@ -107,10 +174,14 @@ export class GetExternalAgentResponseBodyDataModel extends $dara.Model {
|
|
|
107
174
|
return {
|
|
108
175
|
modelConnectionId: 'string',
|
|
109
176
|
modelName: 'string',
|
|
177
|
+
quota: GetExternalAgentResponseBodyDataModelQuota,
|
|
110
178
|
};
|
|
111
179
|
}
|
|
112
180
|
|
|
113
181
|
validate() {
|
|
182
|
+
if(this.quota && typeof (this.quota as any).validate === 'function') {
|
|
183
|
+
(this.quota as any).validate();
|
|
184
|
+
}
|
|
114
185
|
super.validate();
|
|
115
186
|
}
|
|
116
187
|
|