@alicloud/agentcore20260804 2.3.0 → 2.3.2
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 +2 -2
- package/dist/client.js +5 -2
- package/dist/client.js.map +1 -1
- 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/GetExternalAgentResponseBody.d.ts +164 -43
- package/dist/models/GetExternalAgentResponseBody.js +89 -1
- package/dist/models/GetExternalAgentResponseBody.js.map +1 -1
- package/dist/models/ListUsersRequest.d.ts +10 -2
- package/dist/models/ListUsersRequest.js +2 -0
- package/dist/models/ListUsersRequest.js.map +1 -1
- package/dist/models/ListUsersResponseBody.d.ts +11 -11
- 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 +11 -0
- package/dist/models/model.js +88 -66
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +6 -2
- package/src/models/CreateExternalAgentRequest.ts +80 -14
- package/src/models/CreateExternalAgentResponseBody.ts +232 -39
- package/src/models/CreateExternalAgentShrinkRequest.ts +1 -1
- package/src/models/GetExternalAgentResponseBody.ts +225 -43
- package/src/models/ListUsersRequest.ts +12 -2
- package/src/models/ListUsersResponseBody.ts +11 -11
- package/src/models/UpdateExternalAgentRequest.ts +78 -12
- package/src/models/UpdateExternalAgentResponseBody.ts +236 -34
- package/src/models/model.ts +11 -0
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class CreateExternalAgentRequestBodyModelQuota extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* Specifies whether to enable token quota.
|
|
5
|
+
* Specifies whether to enable the token quota. Default value: true. If you set this parameter to false, the quota is disabled and existing quota rules are deleted.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* true
|
|
@@ -10,7 +10,7 @@ export declare class CreateExternalAgentRequestBodyModelQuota extends $dara.Mode
|
|
|
10
10
|
enabled?: boolean;
|
|
11
11
|
/**
|
|
12
12
|
* @remarks
|
|
13
|
-
* The quota limit type.
|
|
13
|
+
* The quota limit type. This parameter is required when the quota is enabled. Fixed value: token.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* token
|
|
@@ -18,7 +18,9 @@ export declare class CreateExternalAgentRequestBodyModelQuota extends $dara.Mode
|
|
|
18
18
|
limitType?: string;
|
|
19
19
|
/**
|
|
20
20
|
* @remarks
|
|
21
|
-
* The
|
|
21
|
+
* The statistical period of the quota. This parameter is required when the quota is enabled. Valid values:
|
|
22
|
+
* - day: Daily.
|
|
23
|
+
* - month: Monthly.
|
|
22
24
|
*
|
|
23
25
|
* @example
|
|
24
26
|
* day
|
|
@@ -26,7 +28,7 @@ export declare class CreateExternalAgentRequestBodyModelQuota extends $dara.Mode
|
|
|
26
28
|
periodType?: string;
|
|
27
29
|
/**
|
|
28
30
|
* @remarks
|
|
29
|
-
* The maximum number of tokens that can be consumed
|
|
31
|
+
* The maximum number of tokens that can be consumed in a single period. This parameter is required when the quota is enabled and must be greater than 0.
|
|
30
32
|
*
|
|
31
33
|
* @example
|
|
32
34
|
* 1000000
|
|
@@ -66,7 +68,7 @@ export declare class CreateExternalAgentRequestBodyModel extends $dara.Model {
|
|
|
66
68
|
modelName?: string;
|
|
67
69
|
/**
|
|
68
70
|
* @remarks
|
|
69
|
-
* The model token quota configuration. If not specified, no quota is configured.
|
|
71
|
+
* The model token quota configuration. If this parameter is not specified, no quota is configured.
|
|
70
72
|
*/
|
|
71
73
|
quota?: CreateExternalAgentRequestBodyModelQuota;
|
|
72
74
|
static names(): {
|
|
@@ -80,6 +82,36 @@ export declare class CreateExternalAgentRequestBodyModel extends $dara.Model {
|
|
|
80
82
|
[key: string]: any;
|
|
81
83
|
});
|
|
82
84
|
}
|
|
85
|
+
export declare class CreateExternalAgentRequestBodySkillsVersionSelector extends $dara.Model {
|
|
86
|
+
/**
|
|
87
|
+
* @remarks
|
|
88
|
+
* The type of the version selector. Valid values:
|
|
89
|
+
* - LABEL: By label.
|
|
90
|
+
* - VERSION: By specific version.
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* LABEL
|
|
94
|
+
*/
|
|
95
|
+
type?: string;
|
|
96
|
+
/**
|
|
97
|
+
* @remarks
|
|
98
|
+
* 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.
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* latest
|
|
102
|
+
*/
|
|
103
|
+
value?: string;
|
|
104
|
+
static names(): {
|
|
105
|
+
[key: string]: string;
|
|
106
|
+
};
|
|
107
|
+
static types(): {
|
|
108
|
+
[key: string]: any;
|
|
109
|
+
};
|
|
110
|
+
validate(): void;
|
|
111
|
+
constructor(map?: {
|
|
112
|
+
[key: string]: any;
|
|
113
|
+
});
|
|
114
|
+
}
|
|
83
115
|
export declare class CreateExternalAgentRequestBodySkills extends $dara.Model {
|
|
84
116
|
/**
|
|
85
117
|
* @remarks
|
|
@@ -91,6 +123,16 @@ export declare class CreateExternalAgentRequestBodySkills extends $dara.Model {
|
|
|
91
123
|
* code-analysis
|
|
92
124
|
*/
|
|
93
125
|
name?: string;
|
|
126
|
+
/**
|
|
127
|
+
* @remarks
|
|
128
|
+
* The source type of the skill. Valid values:
|
|
129
|
+
* - REFERENCE: References the AI Registry.
|
|
130
|
+
* - STATIC: Statically provided with the package.
|
|
131
|
+
*
|
|
132
|
+
* @example
|
|
133
|
+
* REFERENCE
|
|
134
|
+
*/
|
|
135
|
+
sourceType?: string;
|
|
94
136
|
/**
|
|
95
137
|
* @remarks
|
|
96
138
|
* The skill version.
|
|
@@ -99,6 +141,11 @@ export declare class CreateExternalAgentRequestBodySkills extends $dara.Model {
|
|
|
99
141
|
* 1.0.0
|
|
100
142
|
*/
|
|
101
143
|
version?: string;
|
|
144
|
+
/**
|
|
145
|
+
* @remarks
|
|
146
|
+
* The referenced version selector. If omitted, the default value is LABEL/latest. Currently, only LABEL/latest is supported.
|
|
147
|
+
*/
|
|
148
|
+
versionSelector?: CreateExternalAgentRequestBodySkillsVersionSelector;
|
|
102
149
|
static names(): {
|
|
103
150
|
[key: string]: string;
|
|
104
151
|
};
|
|
@@ -113,7 +160,7 @@ export declare class CreateExternalAgentRequestBodySkills extends $dara.Model {
|
|
|
113
160
|
export declare class CreateExternalAgentRequestBodyTemplateAiRegistry extends $dara.Model {
|
|
114
161
|
/**
|
|
115
162
|
* @remarks
|
|
116
|
-
* The name of the template in AI Registry.
|
|
163
|
+
* The name of the template in the AI Registry.
|
|
117
164
|
*
|
|
118
165
|
* This parameter is required.
|
|
119
166
|
*
|
|
@@ -123,7 +170,7 @@ export declare class CreateExternalAgentRequestBodyTemplateAiRegistry extends $d
|
|
|
123
170
|
name?: string;
|
|
124
171
|
/**
|
|
125
172
|
* @remarks
|
|
126
|
-
* The version of the template in AI Registry.
|
|
173
|
+
* The version of the template in the AI Registry.
|
|
127
174
|
*
|
|
128
175
|
* This parameter is required.
|
|
129
176
|
*
|
|
@@ -198,12 +245,12 @@ export declare class CreateExternalAgentRequestBody extends $dara.Model {
|
|
|
198
245
|
* The description of the external agent.
|
|
199
246
|
*
|
|
200
247
|
* @example
|
|
201
|
-
*
|
|
248
|
+
* Code review agent running in the user environment
|
|
202
249
|
*/
|
|
203
250
|
description?: string;
|
|
204
251
|
/**
|
|
205
252
|
* @remarks
|
|
206
|
-
* The
|
|
253
|
+
* The instructions that guide the behavior of the agent.
|
|
207
254
|
*
|
|
208
255
|
* @example
|
|
209
256
|
* You are a code review assistant
|
|
@@ -211,14 +258,14 @@ export declare class CreateExternalAgentRequestBody extends $dara.Model {
|
|
|
211
258
|
instruction?: string;
|
|
212
259
|
/**
|
|
213
260
|
* @remarks
|
|
214
|
-
* The model configuration.
|
|
261
|
+
* The model configuration. This parameter is available only when modelSource is set to PLATFORM.
|
|
215
262
|
*/
|
|
216
263
|
model?: CreateExternalAgentRequestBodyModel;
|
|
217
264
|
/**
|
|
218
265
|
* @remarks
|
|
219
|
-
* The model configuration
|
|
220
|
-
* - PLATFORM:
|
|
221
|
-
* - RUNTIME:
|
|
266
|
+
* 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:
|
|
267
|
+
* - PLATFORM: Platform model.
|
|
268
|
+
* - RUNTIME: Runtime model.
|
|
222
269
|
*
|
|
223
270
|
* @example
|
|
224
271
|
* PLATFORM
|
|
@@ -268,7 +315,7 @@ export declare class CreateExternalAgentRequest extends $dara.Model {
|
|
|
268
315
|
body?: CreateExternalAgentRequestBody;
|
|
269
316
|
/**
|
|
270
317
|
* @remarks
|
|
271
|
-
* The reserved idempotency token. The backend does not provide idempotency
|
|
318
|
+
* The reserved idempotency token. The backend does not provide idempotency guarantees in the current phase.
|
|
272
319
|
*
|
|
273
320
|
* @example
|
|
274
321
|
* client-token-1
|
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.CreateExternalAgentRequest = exports.CreateExternalAgentRequestBody = exports.CreateExternalAgentRequestBodyTools = exports.CreateExternalAgentRequestBodyTemplate = exports.CreateExternalAgentRequestBodyTemplateAiRegistry = exports.CreateExternalAgentRequestBodySkills = exports.CreateExternalAgentRequestBodyModel = exports.CreateExternalAgentRequestBodyModelQuota = void 0;
|
|
36
|
+
exports.CreateExternalAgentRequest = exports.CreateExternalAgentRequestBody = exports.CreateExternalAgentRequestBodyTools = exports.CreateExternalAgentRequestBodyTemplate = exports.CreateExternalAgentRequestBodyTemplateAiRegistry = exports.CreateExternalAgentRequestBodySkills = exports.CreateExternalAgentRequestBodySkillsVersionSelector = exports.CreateExternalAgentRequestBodyModel = exports.CreateExternalAgentRequestBodyModelQuota = void 0;
|
|
37
37
|
// This file is auto-generated, don't edit it
|
|
38
38
|
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
39
|
class CreateExternalAgentRequestBodyModelQuota extends $dara.Model {
|
|
@@ -87,20 +87,48 @@ class CreateExternalAgentRequestBodyModel extends $dara.Model {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
exports.CreateExternalAgentRequestBodyModel = CreateExternalAgentRequestBodyModel;
|
|
90
|
+
class CreateExternalAgentRequestBodySkillsVersionSelector extends $dara.Model {
|
|
91
|
+
static names() {
|
|
92
|
+
return {
|
|
93
|
+
type: 'type',
|
|
94
|
+
value: 'value',
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
static types() {
|
|
98
|
+
return {
|
|
99
|
+
type: 'string',
|
|
100
|
+
value: 'string',
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
validate() {
|
|
104
|
+
super.validate();
|
|
105
|
+
}
|
|
106
|
+
constructor(map) {
|
|
107
|
+
super(map);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
exports.CreateExternalAgentRequestBodySkillsVersionSelector = CreateExternalAgentRequestBodySkillsVersionSelector;
|
|
90
111
|
class CreateExternalAgentRequestBodySkills extends $dara.Model {
|
|
91
112
|
static names() {
|
|
92
113
|
return {
|
|
93
114
|
name: 'name',
|
|
115
|
+
sourceType: 'sourceType',
|
|
94
116
|
version: 'version',
|
|
117
|
+
versionSelector: 'versionSelector',
|
|
95
118
|
};
|
|
96
119
|
}
|
|
97
120
|
static types() {
|
|
98
121
|
return {
|
|
99
122
|
name: 'string',
|
|
123
|
+
sourceType: 'string',
|
|
100
124
|
version: 'string',
|
|
125
|
+
versionSelector: CreateExternalAgentRequestBodySkillsVersionSelector,
|
|
101
126
|
};
|
|
102
127
|
}
|
|
103
128
|
validate() {
|
|
129
|
+
if (this.versionSelector && typeof this.versionSelector.validate === 'function') {
|
|
130
|
+
this.versionSelector.validate();
|
|
131
|
+
}
|
|
104
132
|
super.validate();
|
|
105
133
|
}
|
|
106
134
|
constructor(map) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateExternalAgentRequest.js","sourceRoot":"","sources":["../../src/models/CreateExternalAgentRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wCAAyC,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"CreateExternalAgentRequest.js","sourceRoot":"","sources":["../../src/models/CreateExternalAgentRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wCAAyC,SAAQ,KAAK,CAAC,KAAK;IAmCvE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,UAAU,EAAE,YAAY;YACxB,UAAU,EAAE,YAAY;SACzB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,QAAQ;YACnB,UAAU,EAAE,QAAQ;YACpB,UAAU,EAAE,QAAQ;SACrB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAA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AAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtCD,gEAsCC"}
|
|
@@ -1,11 +1,83 @@
|
|
|
1
1
|
import * as $dara from '@darabonba/typescript';
|
|
2
|
+
export declare class CreateExternalAgentResponseBodyDataConfiguredSkillsVersionSelector extends $dara.Model {
|
|
3
|
+
/**
|
|
4
|
+
* @remarks
|
|
5
|
+
* The type of the version selector. Valid values:
|
|
6
|
+
* - LABEL: By label.
|
|
7
|
+
* - VERSION: By specific version.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* LABEL
|
|
11
|
+
*/
|
|
12
|
+
type?: string;
|
|
13
|
+
/**
|
|
14
|
+
* @remarks
|
|
15
|
+
* 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.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* latest
|
|
19
|
+
*/
|
|
20
|
+
value?: string;
|
|
21
|
+
static names(): {
|
|
22
|
+
[key: string]: string;
|
|
23
|
+
};
|
|
24
|
+
static types(): {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
};
|
|
27
|
+
validate(): void;
|
|
28
|
+
constructor(map?: {
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
export declare class CreateExternalAgentResponseBodyDataConfiguredSkills extends $dara.Model {
|
|
33
|
+
/**
|
|
34
|
+
* @remarks
|
|
35
|
+
* The name of the skill in Workspace AI Registry.
|
|
36
|
+
*
|
|
37
|
+
* This parameter is required.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* web-search
|
|
41
|
+
*/
|
|
42
|
+
name?: string;
|
|
43
|
+
/**
|
|
44
|
+
* @remarks
|
|
45
|
+
* The source type of the skill. Valid values:
|
|
46
|
+
* - REFERENCE: References the AI Registry.
|
|
47
|
+
* - STATIC: Statically provided with the package.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* REFERENCE
|
|
51
|
+
*/
|
|
52
|
+
sourceType?: string;
|
|
53
|
+
/**
|
|
54
|
+
* @remarks
|
|
55
|
+
* The legacy compatibility field. New requests use sourceType and versionSelector.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* 1.0.0
|
|
59
|
+
*/
|
|
60
|
+
version?: string;
|
|
61
|
+
/**
|
|
62
|
+
* @remarks
|
|
63
|
+
* The referenced version selector. If omitted, the default value is LABEL/latest. Currently, only LABEL/latest is supported.
|
|
64
|
+
*/
|
|
65
|
+
versionSelector?: CreateExternalAgentResponseBodyDataConfiguredSkillsVersionSelector;
|
|
66
|
+
static names(): {
|
|
67
|
+
[key: string]: string;
|
|
68
|
+
};
|
|
69
|
+
static types(): {
|
|
70
|
+
[key: string]: any;
|
|
71
|
+
};
|
|
72
|
+
validate(): void;
|
|
73
|
+
constructor(map?: {
|
|
74
|
+
[key: string]: any;
|
|
75
|
+
});
|
|
76
|
+
}
|
|
2
77
|
export declare class CreateExternalAgentResponseBodyDataExternalAgentStatus extends $dara.Model {
|
|
3
78
|
/**
|
|
4
79
|
* @remarks
|
|
5
|
-
* 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:
|
|
6
|
-
* - ONLINE: Online.
|
|
7
|
-
* - STALE: Heartbeat expired.
|
|
8
|
-
* - UNKNOWN: Unknown.
|
|
80
|
+
* 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).
|
|
9
81
|
*
|
|
10
82
|
* @example
|
|
11
83
|
* ONLINE
|
|
@@ -73,7 +145,7 @@ export declare class CreateExternalAgentResponseBodyDataModelQuota extends $dara
|
|
|
73
145
|
limitType?: string;
|
|
74
146
|
/**
|
|
75
147
|
* @remarks
|
|
76
|
-
* Indicates whether the quota has been exceeded in the current
|
|
148
|
+
* Indicates whether the quota has been exceeded in the current period. This field is read-only and returned by the backend.
|
|
77
149
|
*
|
|
78
150
|
* @example
|
|
79
151
|
* false
|
|
@@ -81,7 +153,7 @@ export declare class CreateExternalAgentResponseBodyDataModelQuota extends $dara
|
|
|
81
153
|
overLimit?: boolean;
|
|
82
154
|
/**
|
|
83
155
|
* @remarks
|
|
84
|
-
* The quota statistical period. day indicates
|
|
156
|
+
* The quota statistical period. The value day indicates daily statistics. The value month indicates monthly statistics.
|
|
85
157
|
*
|
|
86
158
|
* @example
|
|
87
159
|
* day
|
|
@@ -89,7 +161,7 @@ export declare class CreateExternalAgentResponseBodyDataModelQuota extends $dara
|
|
|
89
161
|
periodType?: string;
|
|
90
162
|
/**
|
|
91
163
|
* @remarks
|
|
92
|
-
* The gateway quota rule status. This is
|
|
164
|
+
* The gateway quota rule status. This field is read-only and returned by the backend.
|
|
93
165
|
*
|
|
94
166
|
* @example
|
|
95
167
|
* ACTIVE
|
|
@@ -97,7 +169,7 @@ export declare class CreateExternalAgentResponseBodyDataModelQuota extends $dara
|
|
|
97
169
|
ruleStatus?: string;
|
|
98
170
|
/**
|
|
99
171
|
* @remarks
|
|
100
|
-
* The maximum number of tokens that can be consumed
|
|
172
|
+
* The maximum number of tokens that can be consumed in a single period.
|
|
101
173
|
*
|
|
102
174
|
* @example
|
|
103
175
|
* 1000000
|
|
@@ -105,7 +177,7 @@ export declare class CreateExternalAgentResponseBodyDataModelQuota extends $dara
|
|
|
105
177
|
usageLimit?: number;
|
|
106
178
|
/**
|
|
107
179
|
* @remarks
|
|
108
|
-
* The number of tokens consumed in the current
|
|
180
|
+
* The number of tokens consumed in the current period. This field is read-only and returned by the backend.
|
|
109
181
|
*
|
|
110
182
|
* @example
|
|
111
183
|
* 12345
|
|
@@ -141,7 +213,7 @@ export declare class CreateExternalAgentResponseBodyDataModel extends $dara.Mode
|
|
|
141
213
|
modelName?: string;
|
|
142
214
|
/**
|
|
143
215
|
* @remarks
|
|
144
|
-
* The model token quota configuration and
|
|
216
|
+
* The model token quota configuration and quota usage status for the current period. This field is empty if no quota is configured.
|
|
145
217
|
*/
|
|
146
218
|
quota?: CreateExternalAgentResponseBodyDataModelQuota;
|
|
147
219
|
static names(): {
|
|
@@ -155,17 +227,79 @@ export declare class CreateExternalAgentResponseBodyDataModel extends $dara.Mode
|
|
|
155
227
|
[key: string]: any;
|
|
156
228
|
});
|
|
157
229
|
}
|
|
230
|
+
export declare class CreateExternalAgentResponseBodyDataSkillsVersionSelector extends $dara.Model {
|
|
231
|
+
/**
|
|
232
|
+
* @remarks
|
|
233
|
+
* The type of the version selector. Valid values:
|
|
234
|
+
* - LABEL: By label.
|
|
235
|
+
* - VERSION: By specific version.
|
|
236
|
+
*
|
|
237
|
+
* @example
|
|
238
|
+
* LABEL
|
|
239
|
+
*/
|
|
240
|
+
type?: string;
|
|
241
|
+
/**
|
|
242
|
+
* @remarks
|
|
243
|
+
* 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.
|
|
244
|
+
*
|
|
245
|
+
* @example
|
|
246
|
+
* latest
|
|
247
|
+
*/
|
|
248
|
+
value?: string;
|
|
249
|
+
static names(): {
|
|
250
|
+
[key: string]: string;
|
|
251
|
+
};
|
|
252
|
+
static types(): {
|
|
253
|
+
[key: string]: any;
|
|
254
|
+
};
|
|
255
|
+
validate(): void;
|
|
256
|
+
constructor(map?: {
|
|
257
|
+
[key: string]: any;
|
|
258
|
+
});
|
|
259
|
+
}
|
|
158
260
|
export declare class CreateExternalAgentResponseBodyDataSkills extends $dara.Model {
|
|
159
261
|
/**
|
|
160
262
|
* @remarks
|
|
161
|
-
* The
|
|
263
|
+
* The version applied at runtime. This field is read-only.
|
|
162
264
|
*
|
|
163
|
-
*
|
|
265
|
+
* @example
|
|
266
|
+
* 1.0.0
|
|
267
|
+
*/
|
|
268
|
+
appliedVersion?: string;
|
|
269
|
+
/**
|
|
270
|
+
* @remarks
|
|
271
|
+
* Indicates whether the skill comes from a fixed template. This field is read-only. Template items cannot be removed.
|
|
272
|
+
*
|
|
273
|
+
* @example
|
|
274
|
+
* false
|
|
275
|
+
*/
|
|
276
|
+
fromTemplate?: boolean;
|
|
277
|
+
/**
|
|
278
|
+
* @remarks
|
|
279
|
+
* The skill name.
|
|
164
280
|
*
|
|
165
281
|
* @example
|
|
166
282
|
* code-analysis
|
|
167
283
|
*/
|
|
168
284
|
name?: string;
|
|
285
|
+
/**
|
|
286
|
+
* @remarks
|
|
287
|
+
* The current target version. This field is read-only.
|
|
288
|
+
*
|
|
289
|
+
* @example
|
|
290
|
+
* 1.0.0
|
|
291
|
+
*/
|
|
292
|
+
resolvedVersion?: string;
|
|
293
|
+
/**
|
|
294
|
+
* @remarks
|
|
295
|
+
* The source type of the skill. Valid values:
|
|
296
|
+
* - REFERENCE: References the AI Registry.
|
|
297
|
+
* - STATIC: Statically provided with the package.
|
|
298
|
+
*
|
|
299
|
+
* @example
|
|
300
|
+
* REFERENCE
|
|
301
|
+
*/
|
|
302
|
+
sourceType?: string;
|
|
169
303
|
/**
|
|
170
304
|
* @remarks
|
|
171
305
|
* The skill version.
|
|
@@ -174,6 +308,11 @@ export declare class CreateExternalAgentResponseBodyDataSkills extends $dara.Mod
|
|
|
174
308
|
* 1.0.0
|
|
175
309
|
*/
|
|
176
310
|
version?: string;
|
|
311
|
+
/**
|
|
312
|
+
* @remarks
|
|
313
|
+
* The referenced version selector. If omitted, the default value is LABEL/latest.
|
|
314
|
+
*/
|
|
315
|
+
versionSelector?: CreateExternalAgentResponseBodyDataSkillsVersionSelector;
|
|
177
316
|
static names(): {
|
|
178
317
|
[key: string]: string;
|
|
179
318
|
};
|
|
@@ -188,7 +327,7 @@ export declare class CreateExternalAgentResponseBodyDataSkills extends $dara.Mod
|
|
|
188
327
|
export declare class CreateExternalAgentResponseBodyDataTemplateAiRegistry extends $dara.Model {
|
|
189
328
|
/**
|
|
190
329
|
* @remarks
|
|
191
|
-
* The name of the template in AI Registry.
|
|
330
|
+
* The name of the template in the AI Registry.
|
|
192
331
|
*
|
|
193
332
|
* This parameter is required.
|
|
194
333
|
*
|
|
@@ -198,7 +337,7 @@ export declare class CreateExternalAgentResponseBodyDataTemplateAiRegistry exten
|
|
|
198
337
|
name?: string;
|
|
199
338
|
/**
|
|
200
339
|
* @remarks
|
|
201
|
-
* The version of the template in AI Registry.
|
|
340
|
+
* The version of the template in the AI Registry.
|
|
202
341
|
*
|
|
203
342
|
* This parameter is required.
|
|
204
343
|
*
|
|
@@ -270,12 +409,17 @@ export declare class CreateExternalAgentResponseBodyDataTools extends $dara.Mode
|
|
|
270
409
|
export declare class CreateExternalAgentResponseBodyData extends $dara.Model {
|
|
271
410
|
/**
|
|
272
411
|
* @remarks
|
|
273
|
-
* The external agent
|
|
412
|
+
* The ID of the external agent.
|
|
274
413
|
*
|
|
275
414
|
* @example
|
|
276
415
|
* agent-1
|
|
277
416
|
*/
|
|
278
417
|
agentId?: string;
|
|
418
|
+
/**
|
|
419
|
+
* @remarks
|
|
420
|
+
* 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.
|
|
421
|
+
*/
|
|
422
|
+
configuredSkills?: CreateExternalAgentResponseBodyDataConfiguredSkills[];
|
|
279
423
|
/**
|
|
280
424
|
* @remarks
|
|
281
425
|
* The creation mode.
|
|
@@ -286,7 +430,7 @@ export declare class CreateExternalAgentResponseBodyData extends $dara.Model {
|
|
|
286
430
|
createMode?: string;
|
|
287
431
|
/**
|
|
288
432
|
* @remarks
|
|
289
|
-
* The creation time in RFC 3339 format.
|
|
433
|
+
* The creation time, in RFC 3339 format.
|
|
290
434
|
*
|
|
291
435
|
* @example
|
|
292
436
|
* 2026-01-01T00:00:00Z
|
|
@@ -305,7 +449,7 @@ export declare class CreateExternalAgentResponseBodyData extends $dara.Model {
|
|
|
305
449
|
* The description of the external agent.
|
|
306
450
|
*
|
|
307
451
|
* @example
|
|
308
|
-
*
|
|
452
|
+
* Code review agent running in the user environment
|
|
309
453
|
*/
|
|
310
454
|
description?: string;
|
|
311
455
|
/**
|
|
@@ -315,7 +459,7 @@ export declare class CreateExternalAgentResponseBodyData extends $dara.Model {
|
|
|
315
459
|
externalAgentStatus?: CreateExternalAgentResponseBodyDataExternalAgentStatus;
|
|
316
460
|
/**
|
|
317
461
|
* @remarks
|
|
318
|
-
* The
|
|
462
|
+
* The instructions that guide the behavior of the agent.
|
|
319
463
|
*
|
|
320
464
|
* @example
|
|
321
465
|
* You are a code review assistant
|
|
@@ -331,13 +475,7 @@ export declare class CreateExternalAgentResponseBodyData extends $dara.Model {
|
|
|
331
475
|
latestSpecVersion?: number;
|
|
332
476
|
/**
|
|
333
477
|
* @remarks
|
|
334
|
-
* The processing status of the latest specification version. Valid values:
|
|
335
|
-
* - pending: Pending.
|
|
336
|
-
* - processing: Processing.
|
|
337
|
-
* - waiting_retry: Waiting for retry.
|
|
338
|
-
* - succeeded: Succeeded.
|
|
339
|
-
* - failed: Failed.
|
|
340
|
-
* - superseded: Superseded by a newer version.
|
|
478
|
+
* 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).
|
|
341
479
|
*
|
|
342
480
|
* @example
|
|
343
481
|
* pending
|
|
@@ -345,14 +483,14 @@ export declare class CreateExternalAgentResponseBodyData extends $dara.Model {
|
|
|
345
483
|
latestVersionStatus?: string;
|
|
346
484
|
/**
|
|
347
485
|
* @remarks
|
|
348
|
-
* The model configuration.
|
|
486
|
+
* The model configuration. This parameter is available only when modelSource is set to PLATFORM.
|
|
349
487
|
*/
|
|
350
488
|
model?: CreateExternalAgentResponseBodyDataModel;
|
|
351
489
|
/**
|
|
352
490
|
* @remarks
|
|
353
|
-
* The model configuration
|
|
354
|
-
* - PLATFORM:
|
|
355
|
-
* - RUNTIME:
|
|
491
|
+
* 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:
|
|
492
|
+
* - PLATFORM: Platform model.
|
|
493
|
+
* - RUNTIME: Runtime model.
|
|
356
494
|
*
|
|
357
495
|
* @example
|
|
358
496
|
* PLATFORM
|
|
@@ -389,13 +527,7 @@ export declare class CreateExternalAgentResponseBodyData extends $dara.Model {
|
|
|
389
527
|
skills?: CreateExternalAgentResponseBodyDataSkills[];
|
|
390
528
|
/**
|
|
391
529
|
* @remarks
|
|
392
|
-
* The external agent
|
|
393
|
-
* - Creating: Being created.
|
|
394
|
-
* - Running: Running.
|
|
395
|
-
* - Failed: Failed.
|
|
396
|
-
* - Updating: Being updated.
|
|
397
|
-
* - Deleting: Being deleted.
|
|
398
|
-
* - Deleted: Deleted.
|
|
530
|
+
* The status of the external agent. Valid values: Creating, Running, Failed, Updating, Deleting, and Deleted.
|
|
399
531
|
*
|
|
400
532
|
* @example
|
|
401
533
|
* Running
|
|
@@ -441,7 +573,7 @@ export declare class CreateExternalAgentResponseBodyData extends $dara.Model {
|
|
|
441
573
|
export declare class CreateExternalAgentResponseBody extends $dara.Model {
|
|
442
574
|
/**
|
|
443
575
|
* @remarks
|
|
444
|
-
* The business status code. The value is SUCCESS when the
|
|
576
|
+
* The business status code. The value is SUCCESS when the operation is successful.
|
|
445
577
|
*
|
|
446
578
|
* @example
|
|
447
579
|
* SUCCESS
|
|
@@ -454,7 +586,7 @@ export declare class CreateExternalAgentResponseBody extends $dara.Model {
|
|
|
454
586
|
data?: CreateExternalAgentResponseBodyData;
|
|
455
587
|
/**
|
|
456
588
|
* @remarks
|
|
457
|
-
* The HTTP status code.
|
|
589
|
+
* The HTTP status code. A value of 200 indicates success.
|
|
458
590
|
*
|
|
459
591
|
* @example
|
|
460
592
|
* 200
|
|
@@ -478,7 +610,7 @@ export declare class CreateExternalAgentResponseBody extends $dara.Model {
|
|
|
478
610
|
requestId?: string;
|
|
479
611
|
/**
|
|
480
612
|
* @remarks
|
|
481
|
-
* Indicates whether the request
|
|
613
|
+
* Indicates whether the request is successful.
|
|
482
614
|
*/
|
|
483
615
|
success?: boolean;
|
|
484
616
|
static names(): {
|