@alicloud/agentcore20260804 2.2.1 → 2.3.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/client.d.ts +148 -2
- package/dist/client.js +284 -2
- package/dist/client.js.map +1 -1
- package/dist/models/CreateCustomAgentRequest.d.ts +765 -0
- package/dist/models/CreateCustomAgentRequest.js +591 -0
- package/dist/models/CreateCustomAgentRequest.js.map +1 -0
- package/dist/models/CreateCustomAgentResponse.d.ts +19 -0
- package/dist/models/CreateCustomAgentResponse.js +69 -0
- package/dist/models/CreateCustomAgentResponse.js.map +1 -0
- package/dist/models/CreateCustomAgentResponseBody.d.ts +923 -0
- package/dist/models/CreateCustomAgentResponseBody.js +652 -0
- package/dist/models/CreateCustomAgentResponseBody.js.map +1 -0
- package/dist/models/CreateCustomAgentShrinkRequest.d.ts +26 -0
- package/dist/models/CreateCustomAgentShrinkRequest.js +60 -0
- package/dist/models/CreateCustomAgentShrinkRequest.js.map +1 -0
- package/dist/models/CreateExternalAgentRequest.d.ts +61 -14
- package/dist/models/CreateExternalAgentRequest.js +29 -1
- package/dist/models/CreateExternalAgentRequest.js.map +1 -1
- package/dist/models/CreateExternalAgentResponseBody.d.ts +171 -39
- package/dist/models/CreateExternalAgentResponseBody.js +89 -1
- package/dist/models/CreateExternalAgentResponseBody.js.map +1 -1
- package/dist/models/CreateExternalAgentShrinkRequest.d.ts +1 -1
- package/dist/models/DeleteCustomAgentRequest.d.ts +13 -0
- package/dist/models/DeleteCustomAgentRequest.js +54 -0
- package/dist/models/DeleteCustomAgentRequest.js.map +1 -0
- package/dist/models/DeleteCustomAgentResponse.d.ts +19 -0
- package/dist/models/DeleteCustomAgentResponse.js +69 -0
- package/dist/models/DeleteCustomAgentResponse.js.map +1 -0
- package/dist/models/DeleteCustomAgentResponseBody.d.ts +155 -0
- package/dist/models/DeleteCustomAgentResponseBody.js +110 -0
- package/dist/models/DeleteCustomAgentResponseBody.js.map +1 -0
- package/dist/models/GetCustomAgentRequest.d.ts +13 -0
- package/dist/models/GetCustomAgentRequest.js +54 -0
- package/dist/models/GetCustomAgentRequest.js.map +1 -0
- package/dist/models/GetCustomAgentResponse.d.ts +19 -0
- package/dist/models/GetCustomAgentResponse.js +69 -0
- package/dist/models/GetCustomAgentResponse.js.map +1 -0
- package/dist/models/GetCustomAgentResponseBody.d.ts +655 -0
- package/dist/models/GetCustomAgentResponseBody.js +652 -0
- package/dist/models/GetCustomAgentResponseBody.js.map +1 -0
- package/dist/models/GetExternalAgentResponseBody.d.ts +164 -43
- package/dist/models/GetExternalAgentResponseBody.js +89 -1
- package/dist/models/GetExternalAgentResponseBody.js.map +1 -1
- package/dist/models/ListCustomAgentsRequest.d.ts +29 -0
- package/dist/models/ListCustomAgentsRequest.js +60 -0
- package/dist/models/ListCustomAgentsRequest.js.map +1 -0
- package/dist/models/ListCustomAgentsResponse.d.ts +19 -0
- package/dist/models/ListCustomAgentsResponse.js +69 -0
- package/dist/models/ListCustomAgentsResponse.js.map +1 -0
- package/dist/models/ListCustomAgentsResponseBody.d.ts +248 -0
- package/dist/models/ListCustomAgentsResponseBody.js +171 -0
- package/dist/models/ListCustomAgentsResponseBody.js.map +1 -0
- package/dist/models/ListUsersRequest.d.ts +12 -4
- package/dist/models/ListUsersRequest.js +2 -0
- package/dist/models/ListUsersRequest.js.map +1 -1
- package/dist/models/ListUsersResponseBody.d.ts +14 -14
- package/dist/models/UpdateCustomAgentRequest.d.ts +757 -0
- package/dist/models/UpdateCustomAgentRequest.js +591 -0
- package/dist/models/UpdateCustomAgentRequest.js.map +1 -0
- package/dist/models/UpdateCustomAgentResponse.d.ts +19 -0
- package/dist/models/UpdateCustomAgentResponse.js +69 -0
- package/dist/models/UpdateCustomAgentResponse.js.map +1 -0
- package/dist/models/UpdateCustomAgentResponseBody.d.ts +910 -0
- package/dist/models/UpdateCustomAgentResponseBody.js +652 -0
- package/dist/models/UpdateCustomAgentResponseBody.js.map +1 -0
- package/dist/models/UpdateCustomAgentShrinkRequest.d.ts +26 -0
- package/dist/models/UpdateCustomAgentShrinkRequest.js +60 -0
- package/dist/models/UpdateCustomAgentShrinkRequest.js.map +1 -0
- package/dist/models/UpdateExternalAgentRequest.d.ts +59 -12
- package/dist/models/UpdateExternalAgentRequest.js +29 -1
- package/dist/models/UpdateExternalAgentRequest.js.map +1 -1
- package/dist/models/UpdateExternalAgentResponseBody.d.ts +175 -34
- package/dist/models/UpdateExternalAgentResponseBody.js +89 -1
- package/dist/models/UpdateExternalAgentResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +135 -0
- package/dist/models/model.js +337 -65
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +303 -2
- package/src/models/CreateCustomAgentRequest.ts +1129 -0
- package/src/models/CreateCustomAgentResponse.ts +40 -0
- package/src/models/CreateCustomAgentResponseBody.ts +1337 -0
- package/src/models/CreateCustomAgentShrinkRequest.ts +41 -0
- package/src/models/CreateExternalAgentRequest.ts +80 -14
- package/src/models/CreateExternalAgentResponseBody.ts +232 -39
- package/src/models/CreateExternalAgentShrinkRequest.ts +1 -1
- package/src/models/DeleteCustomAgentRequest.ts +24 -0
- package/src/models/DeleteCustomAgentResponse.ts +40 -0
- package/src/models/DeleteCustomAgentResponseBody.ts +211 -0
- package/src/models/GetCustomAgentRequest.ts +24 -0
- package/src/models/GetCustomAgentResponse.ts +40 -0
- package/src/models/GetCustomAgentResponseBody.ts +1069 -0
- package/src/models/GetExternalAgentResponseBody.ts +225 -43
- package/src/models/ListCustomAgentsRequest.ts +44 -0
- package/src/models/ListCustomAgentsResponse.ts +40 -0
- package/src/models/ListCustomAgentsResponseBody.ts +345 -0
- package/src/models/ListUsersRequest.ts +14 -4
- package/src/models/ListUsersResponseBody.ts +14 -14
- package/src/models/UpdateCustomAgentRequest.ts +1121 -0
- package/src/models/UpdateCustomAgentResponse.ts +40 -0
- package/src/models/UpdateCustomAgentResponseBody.ts +1324 -0
- package/src/models/UpdateCustomAgentShrinkRequest.ts +41 -0
- package/src/models/UpdateExternalAgentRequest.ts +78 -12
- package/src/models/UpdateExternalAgentResponseBody.ts +236 -34
- package/src/models/model.ts +135 -0
|
@@ -2,13 +2,116 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
export class CreateExternalAgentResponseBodyDataConfiguredSkillsVersionSelector extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The type of the version selector. Valid values:
|
|
9
|
+
* - LABEL: By label.
|
|
10
|
+
* - VERSION: By specific version.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* LABEL
|
|
14
|
+
*/
|
|
15
|
+
type?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The value of the selector. If the type is LABEL, this value is the label name, such as latest. If the type is VERSION, this value is the specific version number.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* latest
|
|
22
|
+
*/
|
|
23
|
+
value?: string;
|
|
24
|
+
static names(): { [key: string]: string } {
|
|
25
|
+
return {
|
|
26
|
+
type: 'type',
|
|
27
|
+
value: 'value',
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
static types(): { [key: string]: any } {
|
|
32
|
+
return {
|
|
33
|
+
type: 'string',
|
|
34
|
+
value: 'string',
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
validate() {
|
|
39
|
+
super.validate();
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
constructor(map?: { [key: string]: any }) {
|
|
43
|
+
super(map);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export class CreateExternalAgentResponseBodyDataConfiguredSkills extends $dara.Model {
|
|
48
|
+
/**
|
|
49
|
+
* @remarks
|
|
50
|
+
* The name of the skill in Workspace AI Registry.
|
|
51
|
+
*
|
|
52
|
+
* This parameter is required.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* web-search
|
|
56
|
+
*/
|
|
57
|
+
name?: string;
|
|
58
|
+
/**
|
|
59
|
+
* @remarks
|
|
60
|
+
* The source type of the skill. Valid values:
|
|
61
|
+
* - REFERENCE: References the AI Registry.
|
|
62
|
+
* - STATIC: Statically provided with the package.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* REFERENCE
|
|
66
|
+
*/
|
|
67
|
+
sourceType?: string;
|
|
68
|
+
/**
|
|
69
|
+
* @remarks
|
|
70
|
+
* The legacy compatibility field. New requests use sourceType and versionSelector.
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* 1.0.0
|
|
74
|
+
*/
|
|
75
|
+
version?: string;
|
|
76
|
+
/**
|
|
77
|
+
* @remarks
|
|
78
|
+
* The referenced version selector. If omitted, the default value is LABEL/latest. Currently, only LABEL/latest is supported.
|
|
79
|
+
*/
|
|
80
|
+
versionSelector?: CreateExternalAgentResponseBodyDataConfiguredSkillsVersionSelector;
|
|
81
|
+
static names(): { [key: string]: string } {
|
|
82
|
+
return {
|
|
83
|
+
name: 'name',
|
|
84
|
+
sourceType: 'sourceType',
|
|
85
|
+
version: 'version',
|
|
86
|
+
versionSelector: 'versionSelector',
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
static types(): { [key: string]: any } {
|
|
91
|
+
return {
|
|
92
|
+
name: 'string',
|
|
93
|
+
sourceType: 'string',
|
|
94
|
+
version: 'string',
|
|
95
|
+
versionSelector: CreateExternalAgentResponseBodyDataConfiguredSkillsVersionSelector,
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
validate() {
|
|
100
|
+
if(this.versionSelector && typeof (this.versionSelector as any).validate === 'function') {
|
|
101
|
+
(this.versionSelector as any).validate();
|
|
102
|
+
}
|
|
103
|
+
super.validate();
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
constructor(map?: { [key: string]: any }) {
|
|
107
|
+
super(map);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
5
111
|
export class CreateExternalAgentResponseBodyDataExternalAgentStatus extends $dara.Model {
|
|
6
112
|
/**
|
|
7
113
|
* @remarks
|
|
8
|
-
* The heartbeat status. ONLINE indicates that the most recent heartbeat has not exceeded the configured timeout threshold. STALE indicates that the heartbeat has timed out. UNKNOWN indicates that the heartbeat is missing or has an invalid format. Valid values:
|
|
9
|
-
* - ONLINE: Online.
|
|
10
|
-
* - STALE: Heartbeat expired.
|
|
11
|
-
* - UNKNOWN: Unknown.
|
|
114
|
+
* The heartbeat status. ONLINE indicates that the most recent heartbeat has not exceeded the configured timeout threshold. STALE indicates that the heartbeat has timed out. UNKNOWN indicates that the heartbeat is missing or has an invalid format. Valid values: ONLINE (online), STALE (heartbeat expired), and UNKNOWN (unknown).
|
|
12
115
|
*
|
|
13
116
|
* @example
|
|
14
117
|
* ONLINE
|
|
@@ -94,7 +197,7 @@ export class CreateExternalAgentResponseBodyDataModelQuota extends $dara.Model {
|
|
|
94
197
|
limitType?: string;
|
|
95
198
|
/**
|
|
96
199
|
* @remarks
|
|
97
|
-
* Indicates whether the quota has been exceeded in the current
|
|
200
|
+
* Indicates whether the quota has been exceeded in the current period. This field is read-only and returned by the backend.
|
|
98
201
|
*
|
|
99
202
|
* @example
|
|
100
203
|
* false
|
|
@@ -102,7 +205,7 @@ export class CreateExternalAgentResponseBodyDataModelQuota extends $dara.Model {
|
|
|
102
205
|
overLimit?: boolean;
|
|
103
206
|
/**
|
|
104
207
|
* @remarks
|
|
105
|
-
* The quota statistical period. day indicates
|
|
208
|
+
* The quota statistical period. The value day indicates daily statistics. The value month indicates monthly statistics.
|
|
106
209
|
*
|
|
107
210
|
* @example
|
|
108
211
|
* day
|
|
@@ -110,7 +213,7 @@ export class CreateExternalAgentResponseBodyDataModelQuota extends $dara.Model {
|
|
|
110
213
|
periodType?: string;
|
|
111
214
|
/**
|
|
112
215
|
* @remarks
|
|
113
|
-
* The gateway quota rule status. This is
|
|
216
|
+
* The gateway quota rule status. This field is read-only and returned by the backend.
|
|
114
217
|
*
|
|
115
218
|
* @example
|
|
116
219
|
* ACTIVE
|
|
@@ -118,7 +221,7 @@ export class CreateExternalAgentResponseBodyDataModelQuota extends $dara.Model {
|
|
|
118
221
|
ruleStatus?: string;
|
|
119
222
|
/**
|
|
120
223
|
* @remarks
|
|
121
|
-
* The maximum number of tokens that can be consumed
|
|
224
|
+
* The maximum number of tokens that can be consumed in a single period.
|
|
122
225
|
*
|
|
123
226
|
* @example
|
|
124
227
|
* 1000000
|
|
@@ -126,7 +229,7 @@ export class CreateExternalAgentResponseBodyDataModelQuota extends $dara.Model {
|
|
|
126
229
|
usageLimit?: number;
|
|
127
230
|
/**
|
|
128
231
|
* @remarks
|
|
129
|
-
* The number of tokens consumed in the current
|
|
232
|
+
* The number of tokens consumed in the current period. This field is read-only and returned by the backend.
|
|
130
233
|
*
|
|
131
234
|
* @example
|
|
132
235
|
* 12345
|
|
@@ -184,7 +287,7 @@ export class CreateExternalAgentResponseBodyDataModel extends $dara.Model {
|
|
|
184
287
|
modelName?: string;
|
|
185
288
|
/**
|
|
186
289
|
* @remarks
|
|
187
|
-
* The model token quota configuration and
|
|
290
|
+
* The model token quota configuration and quota usage status for the current period. This field is empty if no quota is configured.
|
|
188
291
|
*/
|
|
189
292
|
quota?: CreateExternalAgentResponseBodyDataModelQuota;
|
|
190
293
|
static names(): { [key: string]: string } {
|
|
@@ -215,17 +318,91 @@ export class CreateExternalAgentResponseBodyDataModel extends $dara.Model {
|
|
|
215
318
|
}
|
|
216
319
|
}
|
|
217
320
|
|
|
321
|
+
export class CreateExternalAgentResponseBodyDataSkillsVersionSelector extends $dara.Model {
|
|
322
|
+
/**
|
|
323
|
+
* @remarks
|
|
324
|
+
* The type of the version selector. Valid values:
|
|
325
|
+
* - LABEL: By label.
|
|
326
|
+
* - VERSION: By specific version.
|
|
327
|
+
*
|
|
328
|
+
* @example
|
|
329
|
+
* LABEL
|
|
330
|
+
*/
|
|
331
|
+
type?: string;
|
|
332
|
+
/**
|
|
333
|
+
* @remarks
|
|
334
|
+
* The value of the selector. If the type is LABEL, this value is the label name, such as latest. If the type is VERSION, this value is the specific version number.
|
|
335
|
+
*
|
|
336
|
+
* @example
|
|
337
|
+
* latest
|
|
338
|
+
*/
|
|
339
|
+
value?: string;
|
|
340
|
+
static names(): { [key: string]: string } {
|
|
341
|
+
return {
|
|
342
|
+
type: 'type',
|
|
343
|
+
value: 'value',
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
static types(): { [key: string]: any } {
|
|
348
|
+
return {
|
|
349
|
+
type: 'string',
|
|
350
|
+
value: 'string',
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
validate() {
|
|
355
|
+
super.validate();
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
constructor(map?: { [key: string]: any }) {
|
|
359
|
+
super(map);
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
|
|
218
363
|
export class CreateExternalAgentResponseBodyDataSkills extends $dara.Model {
|
|
219
364
|
/**
|
|
220
365
|
* @remarks
|
|
221
|
-
* The
|
|
366
|
+
* The version applied at runtime. This field is read-only.
|
|
222
367
|
*
|
|
223
|
-
*
|
|
368
|
+
* @example
|
|
369
|
+
* 1.0.0
|
|
370
|
+
*/
|
|
371
|
+
appliedVersion?: string;
|
|
372
|
+
/**
|
|
373
|
+
* @remarks
|
|
374
|
+
* Indicates whether the skill comes from a fixed template. This field is read-only. Template items cannot be removed.
|
|
375
|
+
*
|
|
376
|
+
* @example
|
|
377
|
+
* false
|
|
378
|
+
*/
|
|
379
|
+
fromTemplate?: boolean;
|
|
380
|
+
/**
|
|
381
|
+
* @remarks
|
|
382
|
+
* The skill name.
|
|
224
383
|
*
|
|
225
384
|
* @example
|
|
226
385
|
* code-analysis
|
|
227
386
|
*/
|
|
228
387
|
name?: string;
|
|
388
|
+
/**
|
|
389
|
+
* @remarks
|
|
390
|
+
* The current target version. This field is read-only.
|
|
391
|
+
*
|
|
392
|
+
* @example
|
|
393
|
+
* 1.0.0
|
|
394
|
+
*/
|
|
395
|
+
resolvedVersion?: string;
|
|
396
|
+
/**
|
|
397
|
+
* @remarks
|
|
398
|
+
* The source type of the skill. Valid values:
|
|
399
|
+
* - REFERENCE: References the AI Registry.
|
|
400
|
+
* - STATIC: Statically provided with the package.
|
|
401
|
+
*
|
|
402
|
+
* @example
|
|
403
|
+
* REFERENCE
|
|
404
|
+
*/
|
|
405
|
+
sourceType?: string;
|
|
229
406
|
/**
|
|
230
407
|
* @remarks
|
|
231
408
|
* The skill version.
|
|
@@ -234,21 +411,39 @@ export class CreateExternalAgentResponseBodyDataSkills extends $dara.Model {
|
|
|
234
411
|
* 1.0.0
|
|
235
412
|
*/
|
|
236
413
|
version?: string;
|
|
414
|
+
/**
|
|
415
|
+
* @remarks
|
|
416
|
+
* The referenced version selector. If omitted, the default value is LABEL/latest.
|
|
417
|
+
*/
|
|
418
|
+
versionSelector?: CreateExternalAgentResponseBodyDataSkillsVersionSelector;
|
|
237
419
|
static names(): { [key: string]: string } {
|
|
238
420
|
return {
|
|
421
|
+
appliedVersion: 'appliedVersion',
|
|
422
|
+
fromTemplate: 'fromTemplate',
|
|
239
423
|
name: 'name',
|
|
424
|
+
resolvedVersion: 'resolvedVersion',
|
|
425
|
+
sourceType: 'sourceType',
|
|
240
426
|
version: 'version',
|
|
427
|
+
versionSelector: 'versionSelector',
|
|
241
428
|
};
|
|
242
429
|
}
|
|
243
430
|
|
|
244
431
|
static types(): { [key: string]: any } {
|
|
245
432
|
return {
|
|
433
|
+
appliedVersion: 'string',
|
|
434
|
+
fromTemplate: 'boolean',
|
|
246
435
|
name: 'string',
|
|
436
|
+
resolvedVersion: 'string',
|
|
437
|
+
sourceType: 'string',
|
|
247
438
|
version: 'string',
|
|
439
|
+
versionSelector: CreateExternalAgentResponseBodyDataSkillsVersionSelector,
|
|
248
440
|
};
|
|
249
441
|
}
|
|
250
442
|
|
|
251
443
|
validate() {
|
|
444
|
+
if(this.versionSelector && typeof (this.versionSelector as any).validate === 'function') {
|
|
445
|
+
(this.versionSelector as any).validate();
|
|
446
|
+
}
|
|
252
447
|
super.validate();
|
|
253
448
|
}
|
|
254
449
|
|
|
@@ -260,7 +455,7 @@ export class CreateExternalAgentResponseBodyDataSkills extends $dara.Model {
|
|
|
260
455
|
export class CreateExternalAgentResponseBodyDataTemplateAiRegistry extends $dara.Model {
|
|
261
456
|
/**
|
|
262
457
|
* @remarks
|
|
263
|
-
* The name of the template in AI Registry.
|
|
458
|
+
* The name of the template in the AI Registry.
|
|
264
459
|
*
|
|
265
460
|
* This parameter is required.
|
|
266
461
|
*
|
|
@@ -270,7 +465,7 @@ export class CreateExternalAgentResponseBodyDataTemplateAiRegistry extends $dara
|
|
|
270
465
|
name?: string;
|
|
271
466
|
/**
|
|
272
467
|
* @remarks
|
|
273
|
-
* The version of the template in AI Registry.
|
|
468
|
+
* The version of the template in the AI Registry.
|
|
274
469
|
*
|
|
275
470
|
* This parameter is required.
|
|
276
471
|
*
|
|
@@ -379,12 +574,17 @@ export class CreateExternalAgentResponseBodyDataTools extends $dara.Model {
|
|
|
379
574
|
export class CreateExternalAgentResponseBodyData extends $dara.Model {
|
|
380
575
|
/**
|
|
381
576
|
* @remarks
|
|
382
|
-
* The external agent
|
|
577
|
+
* The ID of the external agent.
|
|
383
578
|
*
|
|
384
579
|
* @example
|
|
385
580
|
* agent-1
|
|
386
581
|
*/
|
|
387
582
|
agentId?: string;
|
|
583
|
+
/**
|
|
584
|
+
* @remarks
|
|
585
|
+
* Includes only the skills added or overridden by the user. Template-inherited skills are not included. The resource model reads this field to preserve update semantics. Creation and update operations still use the skills in the request.
|
|
586
|
+
*/
|
|
587
|
+
configuredSkills?: CreateExternalAgentResponseBodyDataConfiguredSkills[];
|
|
388
588
|
/**
|
|
389
589
|
* @remarks
|
|
390
590
|
* The creation mode.
|
|
@@ -395,7 +595,7 @@ export class CreateExternalAgentResponseBodyData extends $dara.Model {
|
|
|
395
595
|
createMode?: string;
|
|
396
596
|
/**
|
|
397
597
|
* @remarks
|
|
398
|
-
* The creation time in RFC 3339 format.
|
|
598
|
+
* The creation time, in RFC 3339 format.
|
|
399
599
|
*
|
|
400
600
|
* @example
|
|
401
601
|
* 2026-01-01T00:00:00Z
|
|
@@ -414,7 +614,7 @@ export class CreateExternalAgentResponseBodyData extends $dara.Model {
|
|
|
414
614
|
* The description of the external agent.
|
|
415
615
|
*
|
|
416
616
|
* @example
|
|
417
|
-
*
|
|
617
|
+
* Code review agent running in the user environment
|
|
418
618
|
*/
|
|
419
619
|
description?: string;
|
|
420
620
|
/**
|
|
@@ -424,7 +624,7 @@ export class CreateExternalAgentResponseBodyData extends $dara.Model {
|
|
|
424
624
|
externalAgentStatus?: CreateExternalAgentResponseBodyDataExternalAgentStatus;
|
|
425
625
|
/**
|
|
426
626
|
* @remarks
|
|
427
|
-
* The
|
|
627
|
+
* The instructions that guide the behavior of the agent.
|
|
428
628
|
*
|
|
429
629
|
* @example
|
|
430
630
|
* You are a code review assistant
|
|
@@ -440,13 +640,7 @@ export class CreateExternalAgentResponseBodyData extends $dara.Model {
|
|
|
440
640
|
latestSpecVersion?: number;
|
|
441
641
|
/**
|
|
442
642
|
* @remarks
|
|
443
|
-
* The processing status of the latest specification version. Valid values:
|
|
444
|
-
* - pending: Pending.
|
|
445
|
-
* - processing: Processing.
|
|
446
|
-
* - waiting_retry: Waiting for retry.
|
|
447
|
-
* - succeeded: Succeeded.
|
|
448
|
-
* - failed: Failed.
|
|
449
|
-
* - superseded: Superseded by a newer version.
|
|
643
|
+
* The processing status of the latest specification version. Valid values: pending (to be processed), processing (in progress), waiting_retry (waiting for retry), succeeded (success), failed (failure), and superseded (replaced by a new version).
|
|
450
644
|
*
|
|
451
645
|
* @example
|
|
452
646
|
* pending
|
|
@@ -454,14 +648,14 @@ export class CreateExternalAgentResponseBodyData extends $dara.Model {
|
|
|
454
648
|
latestVersionStatus?: string;
|
|
455
649
|
/**
|
|
456
650
|
* @remarks
|
|
457
|
-
* The model configuration.
|
|
651
|
+
* The model configuration. This parameter is available only when modelSource is set to PLATFORM.
|
|
458
652
|
*/
|
|
459
653
|
model?: CreateExternalAgentResponseBodyDataModel;
|
|
460
654
|
/**
|
|
461
655
|
* @remarks
|
|
462
|
-
* The model configuration
|
|
463
|
-
* - PLATFORM:
|
|
464
|
-
* - RUNTIME:
|
|
656
|
+
* The source of the model configuration. PLATFORM indicates that the platform parses and delivers the model configuration. RUNTIME indicates that the external runtime manages the model, and the model parameter cannot be passed at the same time. Valid values:
|
|
657
|
+
* - PLATFORM: Platform model.
|
|
658
|
+
* - RUNTIME: Runtime model.
|
|
465
659
|
*
|
|
466
660
|
* @example
|
|
467
661
|
* PLATFORM
|
|
@@ -498,13 +692,7 @@ export class CreateExternalAgentResponseBodyData extends $dara.Model {
|
|
|
498
692
|
skills?: CreateExternalAgentResponseBodyDataSkills[];
|
|
499
693
|
/**
|
|
500
694
|
* @remarks
|
|
501
|
-
* The external agent
|
|
502
|
-
* - Creating: Being created.
|
|
503
|
-
* - Running: Running.
|
|
504
|
-
* - Failed: Failed.
|
|
505
|
-
* - Updating: Being updated.
|
|
506
|
-
* - Deleting: Being deleted.
|
|
507
|
-
* - Deleted: Deleted.
|
|
695
|
+
* The status of the external agent. Valid values: Creating, Running, Failed, Updating, Deleting, and Deleted.
|
|
508
696
|
*
|
|
509
697
|
* @example
|
|
510
698
|
* Running
|
|
@@ -539,6 +727,7 @@ export class CreateExternalAgentResponseBodyData extends $dara.Model {
|
|
|
539
727
|
static names(): { [key: string]: string } {
|
|
540
728
|
return {
|
|
541
729
|
agentId: 'agentId',
|
|
730
|
+
configuredSkills: 'configuredSkills',
|
|
542
731
|
createMode: 'createMode',
|
|
543
732
|
createdAt: 'createdAt',
|
|
544
733
|
deployType: 'deployType',
|
|
@@ -564,6 +753,7 @@ export class CreateExternalAgentResponseBodyData extends $dara.Model {
|
|
|
564
753
|
static types(): { [key: string]: any } {
|
|
565
754
|
return {
|
|
566
755
|
agentId: 'string',
|
|
756
|
+
configuredSkills: { 'type': 'array', 'itemType': CreateExternalAgentResponseBodyDataConfiguredSkills },
|
|
567
757
|
createMode: 'string',
|
|
568
758
|
createdAt: 'string',
|
|
569
759
|
deployType: 'string',
|
|
@@ -587,6 +777,9 @@ export class CreateExternalAgentResponseBodyData extends $dara.Model {
|
|
|
587
777
|
}
|
|
588
778
|
|
|
589
779
|
validate() {
|
|
780
|
+
if(Array.isArray(this.configuredSkills)) {
|
|
781
|
+
$dara.Model.validateArray(this.configuredSkills);
|
|
782
|
+
}
|
|
590
783
|
if(this.externalAgentStatus && typeof (this.externalAgentStatus as any).validate === 'function') {
|
|
591
784
|
(this.externalAgentStatus as any).validate();
|
|
592
785
|
}
|
|
@@ -613,7 +806,7 @@ export class CreateExternalAgentResponseBodyData extends $dara.Model {
|
|
|
613
806
|
export class CreateExternalAgentResponseBody extends $dara.Model {
|
|
614
807
|
/**
|
|
615
808
|
* @remarks
|
|
616
|
-
* The business status code. The value is SUCCESS when the
|
|
809
|
+
* The business status code. The value is SUCCESS when the operation is successful.
|
|
617
810
|
*
|
|
618
811
|
* @example
|
|
619
812
|
* SUCCESS
|
|
@@ -626,7 +819,7 @@ export class CreateExternalAgentResponseBody extends $dara.Model {
|
|
|
626
819
|
data?: CreateExternalAgentResponseBodyData;
|
|
627
820
|
/**
|
|
628
821
|
* @remarks
|
|
629
|
-
* The HTTP status code.
|
|
822
|
+
* The HTTP status code. A value of 200 indicates success.
|
|
630
823
|
*
|
|
631
824
|
* @example
|
|
632
825
|
* 200
|
|
@@ -650,7 +843,7 @@ export class CreateExternalAgentResponseBody extends $dara.Model {
|
|
|
650
843
|
requestId?: string;
|
|
651
844
|
/**
|
|
652
845
|
* @remarks
|
|
653
|
-
* Indicates whether the request
|
|
846
|
+
* Indicates whether the request is successful.
|
|
654
847
|
*/
|
|
655
848
|
success?: boolean;
|
|
656
849
|
static names(): { [key: string]: string } {
|
|
@@ -10,7 +10,7 @@ export class CreateExternalAgentShrinkRequest extends $dara.Model {
|
|
|
10
10
|
bodyShrink?: string;
|
|
11
11
|
/**
|
|
12
12
|
* @remarks
|
|
13
|
-
* The reserved idempotency token. The backend does not provide idempotency
|
|
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
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DeleteCustomAgentRequest extends $dara.Model {
|
|
6
|
+
static names(): { [key: string]: string } {
|
|
7
|
+
return {
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
static types(): { [key: string]: any } {
|
|
12
|
+
return {
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
validate() {
|
|
17
|
+
super.validate();
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
constructor(map?: { [key: string]: any }) {
|
|
21
|
+
super(map);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DeleteCustomAgentResponseBody } from "./DeleteCustomAgentResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DeleteCustomAgentResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DeleteCustomAgentResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: DeleteCustomAgentResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|