@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
|
@@ -129,7 +129,7 @@ export class GetManagedAgentResponseBodyDataHarnessConfiguration extends $dara.M
|
|
|
129
129
|
connectorServiceAccountKey?: string;
|
|
130
130
|
/**
|
|
131
131
|
* @remarks
|
|
132
|
-
* The Connector Key name
|
|
132
|
+
* The Connector Key name that is backfilled during queries. This parameter is not used as a binding reference during writes.
|
|
133
133
|
*
|
|
134
134
|
* @example
|
|
135
135
|
* my-connector-key
|
|
@@ -166,7 +166,7 @@ export class GetManagedAgentResponseBodyDataHarness extends $dara.Model {
|
|
|
166
166
|
configuration?: GetManagedAgentResponseBodyDataHarnessConfiguration;
|
|
167
167
|
/**
|
|
168
168
|
* @remarks
|
|
169
|
-
* The runtime harness type. Valid values: qwenpaw and qodercli.
|
|
169
|
+
* The runtime harness type. Valid values: qwenpaw and qodercli. The qodercli type binds by configuration.connectorServiceAccountKey, and the name is also backfilled during queries.
|
|
170
170
|
*
|
|
171
171
|
* @example
|
|
172
172
|
* qodercli
|
|
@@ -198,13 +198,101 @@ export class GetManagedAgentResponseBodyDataHarness extends $dara.Model {
|
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
+
export class GetManagedAgentResponseBodyDataModelQuota extends $dara.Model {
|
|
202
|
+
/**
|
|
203
|
+
* @remarks
|
|
204
|
+
* Indicates whether the quota is enabled. This parameter is not returned when 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 period. This parameter is read-only and returned by the backend.
|
|
221
|
+
*
|
|
222
|
+
* @example
|
|
223
|
+
* false
|
|
224
|
+
*/
|
|
225
|
+
overLimit?: boolean;
|
|
226
|
+
/**
|
|
227
|
+
* @remarks
|
|
228
|
+
* The quota statistical period. Valid values: day (daily) and month (monthly).
|
|
229
|
+
*
|
|
230
|
+
* @example
|
|
231
|
+
* day
|
|
232
|
+
*/
|
|
233
|
+
periodType?: string;
|
|
234
|
+
/**
|
|
235
|
+
* @remarks
|
|
236
|
+
* The gateway quota rule status. This parameter is read-only and returned by the backend.
|
|
237
|
+
*
|
|
238
|
+
* @example
|
|
239
|
+
* ACTIVE
|
|
240
|
+
*/
|
|
241
|
+
ruleStatus?: string;
|
|
242
|
+
/**
|
|
243
|
+
* @remarks
|
|
244
|
+
* The maximum number of tokens allowed per period.
|
|
245
|
+
*
|
|
246
|
+
* @example
|
|
247
|
+
* 1000000
|
|
248
|
+
*/
|
|
249
|
+
usageLimit?: number;
|
|
250
|
+
/**
|
|
251
|
+
* @remarks
|
|
252
|
+
* The number of tokens consumed in the current period. This parameter is read-only and 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 GetManagedAgentResponseBodyDataModel 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 GetManagedAgentResponseBodyDataModel extends $dara.Model {
|
|
|
217
305
|
* qwen-max
|
|
218
306
|
*/
|
|
219
307
|
modelName?: string;
|
|
308
|
+
/**
|
|
309
|
+
* @remarks
|
|
310
|
+
* The model token quota configuration and quota usage status for the current period. This parameter is empty when no quota is configured.
|
|
311
|
+
*/
|
|
312
|
+
quota?: GetManagedAgentResponseBodyDataModelQuota;
|
|
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 GetManagedAgentResponseBodyDataModel extends $dara.Model {
|
|
|
228
322
|
return {
|
|
229
323
|
modelConnectionId: 'string',
|
|
230
324
|
modelName: 'string',
|
|
325
|
+
quota: GetManagedAgentResponseBodyDataModelQuota,
|
|
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
|
|
|
@@ -353,7 +451,7 @@ export class GetManagedAgentResponseBodyDataOssMounts extends $dara.Model {
|
|
|
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
|
/**
|
|
@@ -391,7 +489,7 @@ export class GetManagedAgentResponseBodyDataOssMounts extends $dara.Model {
|
|
|
391
489
|
export class GetManagedAgentResponseBodyDataRuntimeCompute extends $dara.Model {
|
|
392
490
|
/**
|
|
393
491
|
* @remarks
|
|
394
|
-
* The compute
|
|
492
|
+
* The compute specification.
|
|
395
493
|
*
|
|
396
494
|
* This parameter is required.
|
|
397
495
|
*
|
|
@@ -423,22 +521,22 @@ export class GetManagedAgentResponseBodyDataRuntimeCompute extends $dara.Model {
|
|
|
423
521
|
export class GetManagedAgentResponseBodyDataRuntimeHpa extends $dara.Model {
|
|
424
522
|
/**
|
|
425
523
|
* @remarks
|
|
426
|
-
* Specifies whether
|
|
524
|
+
* Specifies whether auto scaling is enabled. This parameter is required when hpa is present as validated by the backend.
|
|
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 when hpa is present as validated by the backend.
|
|
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 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
|
/**
|
|
@@ -527,7 +625,7 @@ export class GetManagedAgentResponseBodyDataRuntime extends $dara.Model {
|
|
|
527
625
|
compute?: GetManagedAgentResponseBodyDataRuntimeCompute;
|
|
528
626
|
/**
|
|
529
627
|
* @remarks
|
|
530
|
-
* The
|
|
628
|
+
* The Sandbox auto scaling and session configuration.
|
|
531
629
|
*/
|
|
532
630
|
hpa?: GetManagedAgentResponseBodyDataRuntimeHpa;
|
|
533
631
|
/**
|
|
@@ -616,7 +714,7 @@ export class GetManagedAgentResponseBodyDataSkills extends $dara.Model {
|
|
|
616
714
|
export class GetManagedAgentResponseBodyDataSubAgents extends $dara.Model {
|
|
617
715
|
/**
|
|
618
716
|
* @remarks
|
|
619
|
-
* The sub-agent
|
|
717
|
+
* The instruction of the sub-agent.
|
|
620
718
|
*
|
|
621
719
|
* This parameter is required.
|
|
622
720
|
*
|
|
@@ -626,7 +724,7 @@ export class GetManagedAgentResponseBodyDataSubAgents extends $dara.Model {
|
|
|
626
724
|
instruction?: string;
|
|
627
725
|
/**
|
|
628
726
|
* @remarks
|
|
629
|
-
* The sub-agent
|
|
727
|
+
* The name of the sub-agent.
|
|
630
728
|
*
|
|
631
729
|
* This parameter is required.
|
|
632
730
|
*
|
|
@@ -870,7 +968,7 @@ export class GetManagedAgentResponseBodyData extends $dara.Model {
|
|
|
870
968
|
network?: GetManagedAgentResponseBodyDataNetwork;
|
|
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?: GetManagedAgentResponseBodyDataOssMounts[];
|
|
876
974
|
/**
|
|
@@ -888,7 +986,7 @@ export class GetManagedAgentResponseBodyData extends $dara.Model {
|
|
|
888
986
|
runtime?: GetManagedAgentResponseBodyDataRuntime;
|
|
889
987
|
/**
|
|
890
988
|
* @remarks
|
|
891
|
-
* The instance
|
|
989
|
+
* The instance counts of managed agents grouped by sandbox phase. Current keys: PENDING (being created or initialized), RUNNING (running), HIBERNATING (entering hibernation), HIBERNATED (hibernated), RESUMING (resuming), TERMINATING (being terminated), 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
|
/**
|
|
@@ -921,7 +1019,7 @@ export class GetManagedAgentResponseBodyData extends $dara.Model {
|
|
|
921
1019
|
tools?: GetManagedAgentResponseBodyDataTools[];
|
|
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
|
|
@@ -1051,7 +1149,7 @@ export class GetManagedAgentResponseBody extends $dara.Model {
|
|
|
1051
1149
|
data?: GetManagedAgentResponseBodyData;
|
|
1052
1150
|
/**
|
|
1053
1151
|
* @remarks
|
|
1054
|
-
* The HTTP status code.
|
|
1152
|
+
* The HTTP status code. The value 200 indicates success.
|
|
1055
1153
|
*
|
|
1056
1154
|
* @example
|
|
1057
1155
|
* 200
|
|
@@ -2,6 +2,66 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
export class UpdateExternalAgentRequestBodyModelQuota extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Specifies whether to enable token quota. Defaults to true if not specified. Set to false to disable and delete existing quota rules.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* true
|
|
12
|
+
*/
|
|
13
|
+
enabled?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The quota limit type. Required by backend validation when quota is enabled. Fixed value: token.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* token
|
|
20
|
+
*/
|
|
21
|
+
limitType?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The quota statistical period. Required by backend validation when quota is enabled. Valid values: day (daily) and month (monthly).
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* day
|
|
28
|
+
*/
|
|
29
|
+
periodType?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The maximum number of tokens that can be consumed within a single period. Required by backend validation when quota is enabled. The value must be greater than 0.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* 1000000
|
|
36
|
+
*/
|
|
37
|
+
usageLimit?: number;
|
|
38
|
+
static names(): { [key: string]: string } {
|
|
39
|
+
return {
|
|
40
|
+
enabled: 'enabled',
|
|
41
|
+
limitType: 'limitType',
|
|
42
|
+
periodType: 'periodType',
|
|
43
|
+
usageLimit: 'usageLimit',
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
static types(): { [key: string]: any } {
|
|
48
|
+
return {
|
|
49
|
+
enabled: 'boolean',
|
|
50
|
+
limitType: 'string',
|
|
51
|
+
periodType: 'string',
|
|
52
|
+
usageLimit: 'number',
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
validate() {
|
|
57
|
+
super.validate();
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
constructor(map?: { [key: string]: any }) {
|
|
61
|
+
super(map);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
5
65
|
export class UpdateExternalAgentRequestBodyModel extends $dara.Model {
|
|
6
66
|
/**
|
|
7
67
|
* @remarks
|
|
@@ -23,10 +83,16 @@ export class UpdateExternalAgentRequestBodyModel extends $dara.Model {
|
|
|
23
83
|
* qwen-max
|
|
24
84
|
*/
|
|
25
85
|
modelName?: string;
|
|
86
|
+
/**
|
|
87
|
+
* @remarks
|
|
88
|
+
* The model token quota configuration. If not specified, no quota is configured.
|
|
89
|
+
*/
|
|
90
|
+
quota?: UpdateExternalAgentRequestBodyModelQuota;
|
|
26
91
|
static names(): { [key: string]: string } {
|
|
27
92
|
return {
|
|
28
93
|
modelConnectionId: 'modelConnectionId',
|
|
29
94
|
modelName: 'modelName',
|
|
95
|
+
quota: 'quota',
|
|
30
96
|
};
|
|
31
97
|
}
|
|
32
98
|
|
|
@@ -34,10 +100,14 @@ export class UpdateExternalAgentRequestBodyModel extends $dara.Model {
|
|
|
34
100
|
return {
|
|
35
101
|
modelConnectionId: 'string',
|
|
36
102
|
modelName: 'string',
|
|
103
|
+
quota: UpdateExternalAgentRequestBodyModelQuota,
|
|
37
104
|
};
|
|
38
105
|
}
|
|
39
106
|
|
|
40
107
|
validate() {
|
|
108
|
+
if(this.quota && typeof (this.quota as any).validate === 'function') {
|
|
109
|
+
(this.quota as any).validate();
|
|
110
|
+
}
|
|
41
111
|
super.validate();
|
|
42
112
|
}
|
|
43
113
|
|
|
@@ -231,9 +301,9 @@ export class UpdateExternalAgentRequestBody extends $dara.Model {
|
|
|
231
301
|
model?: UpdateExternalAgentRequestBodyModel;
|
|
232
302
|
/**
|
|
233
303
|
* @remarks
|
|
234
|
-
* The source
|
|
235
|
-
* - PLATFORM:
|
|
236
|
-
* - RUNTIME:
|
|
304
|
+
* The model configuration source. PLATFORM indicates that the platform parses and delivers the model configuration. RUNTIME indicates that the external runtime manages the model independently, and the model parameter cannot be specified at the same time. Valid values:
|
|
305
|
+
* - PLATFORM: platform model.
|
|
306
|
+
* - RUNTIME: runtime model.
|
|
237
307
|
*
|
|
238
308
|
* @example
|
|
239
309
|
* PLATFORM
|
|
@@ -317,7 +387,7 @@ export class UpdateExternalAgentRequest extends $dara.Model {
|
|
|
317
387
|
body?: UpdateExternalAgentRequestBody;
|
|
318
388
|
/**
|
|
319
389
|
* @remarks
|
|
320
|
-
* The reserved idempotency token. The backend does not
|
|
390
|
+
* The reserved idempotency token. The backend does not provide idempotency guarantees in the current phase.
|
|
321
391
|
*
|
|
322
392
|
* @example
|
|
323
393
|
* client-token-1
|
|
@@ -75,13 +75,101 @@ export class UpdateExternalAgentResponseBodyDataExternalAgentStatus extends $dar
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
export class UpdateExternalAgentResponseBodyDataModelQuota extends $dara.Model {
|
|
79
|
+
/**
|
|
80
|
+
* @remarks
|
|
81
|
+
* Indicates whether the quota is enabled. This field is not returned if no quota is configured.
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* true
|
|
85
|
+
*/
|
|
86
|
+
enabled?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* @remarks
|
|
89
|
+
* The quota limit type. Currently, only token is supported.
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* token
|
|
93
|
+
*/
|
|
94
|
+
limitType?: string;
|
|
95
|
+
/**
|
|
96
|
+
* @remarks
|
|
97
|
+
* Indicates whether the quota has been exceeded in the current cycle. This is a read-only field returned by the backend.
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* false
|
|
101
|
+
*/
|
|
102
|
+
overLimit?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* @remarks
|
|
105
|
+
* The quota statistical period. day indicates a daily period. month indicates a monthly period.
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* day
|
|
109
|
+
*/
|
|
110
|
+
periodType?: string;
|
|
111
|
+
/**
|
|
112
|
+
* @remarks
|
|
113
|
+
* The gateway quota rule status. This is a read-only field returned by the backend.
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* ACTIVE
|
|
117
|
+
*/
|
|
118
|
+
ruleStatus?: string;
|
|
119
|
+
/**
|
|
120
|
+
* @remarks
|
|
121
|
+
* The maximum number of tokens that can be consumed within a single cycle.
|
|
122
|
+
*
|
|
123
|
+
* @example
|
|
124
|
+
* 1000000
|
|
125
|
+
*/
|
|
126
|
+
usageLimit?: number;
|
|
127
|
+
/**
|
|
128
|
+
* @remarks
|
|
129
|
+
* The number of tokens consumed in the current cycle. This is a read-only field returned by the backend.
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* 12345
|
|
133
|
+
*/
|
|
134
|
+
usedAmount?: number;
|
|
135
|
+
static names(): { [key: string]: string } {
|
|
136
|
+
return {
|
|
137
|
+
enabled: 'enabled',
|
|
138
|
+
limitType: 'limitType',
|
|
139
|
+
overLimit: 'overLimit',
|
|
140
|
+
periodType: 'periodType',
|
|
141
|
+
ruleStatus: 'ruleStatus',
|
|
142
|
+
usageLimit: 'usageLimit',
|
|
143
|
+
usedAmount: 'usedAmount',
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
static types(): { [key: string]: any } {
|
|
148
|
+
return {
|
|
149
|
+
enabled: 'boolean',
|
|
150
|
+
limitType: 'string',
|
|
151
|
+
overLimit: 'boolean',
|
|
152
|
+
periodType: 'string',
|
|
153
|
+
ruleStatus: 'string',
|
|
154
|
+
usageLimit: 'number',
|
|
155
|
+
usedAmount: 'number',
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
validate() {
|
|
160
|
+
super.validate();
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
constructor(map?: { [key: string]: any }) {
|
|
164
|
+
super(map);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
78
168
|
export class UpdateExternalAgentResponseBodyDataModel extends $dara.Model {
|
|
79
169
|
/**
|
|
80
170
|
* @remarks
|
|
81
171
|
* The model connection ID.
|
|
82
172
|
*
|
|
83
|
-
* This parameter is required.
|
|
84
|
-
*
|
|
85
173
|
* @example
|
|
86
174
|
* mc-1
|
|
87
175
|
*/
|
|
@@ -90,16 +178,20 @@ export class UpdateExternalAgentResponseBodyDataModel extends $dara.Model {
|
|
|
90
178
|
* @remarks
|
|
91
179
|
* The upstream model name.
|
|
92
180
|
*
|
|
93
|
-
* This parameter is required.
|
|
94
|
-
*
|
|
95
181
|
* @example
|
|
96
182
|
* qwen-max
|
|
97
183
|
*/
|
|
98
184
|
modelName?: string;
|
|
185
|
+
/**
|
|
186
|
+
* @remarks
|
|
187
|
+
* The model token quota configuration and the quota usage status in the current cycle. This field is empty if no quota is configured.
|
|
188
|
+
*/
|
|
189
|
+
quota?: UpdateExternalAgentResponseBodyDataModelQuota;
|
|
99
190
|
static names(): { [key: string]: string } {
|
|
100
191
|
return {
|
|
101
192
|
modelConnectionId: 'modelConnectionId',
|
|
102
193
|
modelName: 'modelName',
|
|
194
|
+
quota: 'quota',
|
|
103
195
|
};
|
|
104
196
|
}
|
|
105
197
|
|
|
@@ -107,10 +199,14 @@ export class UpdateExternalAgentResponseBodyDataModel extends $dara.Model {
|
|
|
107
199
|
return {
|
|
108
200
|
modelConnectionId: 'string',
|
|
109
201
|
modelName: 'string',
|
|
202
|
+
quota: UpdateExternalAgentResponseBodyDataModelQuota,
|
|
110
203
|
};
|
|
111
204
|
}
|
|
112
205
|
|
|
113
206
|
validate() {
|
|
207
|
+
if(this.quota && typeof (this.quota as any).validate === 'function') {
|
|
208
|
+
(this.quota as any).validate();
|
|
209
|
+
}
|
|
114
210
|
super.validate();
|
|
115
211
|
}
|
|
116
212
|
|
|
@@ -363,9 +459,9 @@ export class UpdateExternalAgentResponseBodyData extends $dara.Model {
|
|
|
363
459
|
model?: UpdateExternalAgentResponseBodyDataModel;
|
|
364
460
|
/**
|
|
365
461
|
* @remarks
|
|
366
|
-
* The source
|
|
367
|
-
* - PLATFORM:
|
|
368
|
-
* - RUNTIME:
|
|
462
|
+
* The model configuration source. PLATFORM indicates that the platform parses and delivers the model configuration. RUNTIME indicates that the external runtime manages the model independently, and the model parameter cannot be specified at the same time. Valid values:
|
|
463
|
+
* - PLATFORM: platform model.
|
|
464
|
+
* - RUNTIME: runtime model.
|
|
369
465
|
*
|
|
370
466
|
* @example
|
|
371
467
|
* PLATFORM
|
|
@@ -538,7 +634,7 @@ export class UpdateExternalAgentResponseBody extends $dara.Model {
|
|
|
538
634
|
httpStatusCode?: number;
|
|
539
635
|
/**
|
|
540
636
|
* @remarks
|
|
541
|
-
* The
|
|
637
|
+
* The request processing result message.
|
|
542
638
|
*
|
|
543
639
|
* @example
|
|
544
640
|
* success
|
|
@@ -10,7 +10,7 @@ export class UpdateExternalAgentShrinkRequest extends $dara.Model {
|
|
|
10
10
|
bodyShrink?: string;
|
|
11
11
|
/**
|
|
12
12
|
* @remarks
|
|
13
|
-
* The reserved idempotency token. The backend does not
|
|
13
|
+
* The reserved idempotency token. The backend does not provide idempotency guarantees in the current phase.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* client-token-1
|
|
@@ -198,6 +198,54 @@ export class UpdateManagedAgentRequestBodyHarness extends $dara.Model {
|
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
+
export class UpdateManagedAgentRequestBodyModelQuota extends $dara.Model {
|
|
202
|
+
/**
|
|
203
|
+
* @example
|
|
204
|
+
* true
|
|
205
|
+
*/
|
|
206
|
+
enabled?: boolean;
|
|
207
|
+
/**
|
|
208
|
+
* @example
|
|
209
|
+
* token
|
|
210
|
+
*/
|
|
211
|
+
limitType?: string;
|
|
212
|
+
/**
|
|
213
|
+
* @example
|
|
214
|
+
* day
|
|
215
|
+
*/
|
|
216
|
+
periodType?: string;
|
|
217
|
+
/**
|
|
218
|
+
* @example
|
|
219
|
+
* 1000000
|
|
220
|
+
*/
|
|
221
|
+
usageLimit?: number;
|
|
222
|
+
static names(): { [key: string]: string } {
|
|
223
|
+
return {
|
|
224
|
+
enabled: 'enabled',
|
|
225
|
+
limitType: 'limitType',
|
|
226
|
+
periodType: 'periodType',
|
|
227
|
+
usageLimit: 'usageLimit',
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
static types(): { [key: string]: any } {
|
|
232
|
+
return {
|
|
233
|
+
enabled: 'boolean',
|
|
234
|
+
limitType: 'string',
|
|
235
|
+
periodType: 'string',
|
|
236
|
+
usageLimit: 'number',
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
validate() {
|
|
241
|
+
super.validate();
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
constructor(map?: { [key: string]: any }) {
|
|
245
|
+
super(map);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
201
249
|
export class UpdateManagedAgentRequestBodyModel extends $dara.Model {
|
|
202
250
|
/**
|
|
203
251
|
* @remarks
|
|
@@ -217,10 +265,12 @@ export class UpdateManagedAgentRequestBodyModel extends $dara.Model {
|
|
|
217
265
|
* qwen-max
|
|
218
266
|
*/
|
|
219
267
|
modelName?: string;
|
|
268
|
+
quota?: UpdateManagedAgentRequestBodyModelQuota;
|
|
220
269
|
static names(): { [key: string]: string } {
|
|
221
270
|
return {
|
|
222
271
|
modelConnectionId: 'modelConnectionId',
|
|
223
272
|
modelName: 'modelName',
|
|
273
|
+
quota: 'quota',
|
|
224
274
|
};
|
|
225
275
|
}
|
|
226
276
|
|
|
@@ -228,10 +278,14 @@ export class UpdateManagedAgentRequestBodyModel extends $dara.Model {
|
|
|
228
278
|
return {
|
|
229
279
|
modelConnectionId: 'string',
|
|
230
280
|
modelName: 'string',
|
|
281
|
+
quota: UpdateManagedAgentRequestBodyModelQuota,
|
|
231
282
|
};
|
|
232
283
|
}
|
|
233
284
|
|
|
234
285
|
validate() {
|
|
286
|
+
if(this.quota && typeof (this.quota as any).validate === 'function') {
|
|
287
|
+
(this.quota as any).validate();
|
|
288
|
+
}
|
|
235
289
|
super.validate();
|
|
236
290
|
}
|
|
237
291
|
|