@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
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateCustomAgentShrinkRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The JSON configuration of the custom agent. You must specify name, artifact, roleArn, and runtime.
|
|
9
|
+
*/
|
|
10
|
+
bodyShrink?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* Idempotency is not currently guaranteed. Do not rely on this parameter to prevent duplicate requests.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* custom-agent-request-20261010-001
|
|
17
|
+
*/
|
|
18
|
+
clientToken?: string;
|
|
19
|
+
static names(): { [key: string]: string } {
|
|
20
|
+
return {
|
|
21
|
+
bodyShrink: 'body',
|
|
22
|
+
clientToken: 'clientToken',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
static types(): { [key: string]: any } {
|
|
27
|
+
return {
|
|
28
|
+
bodyShrink: 'string',
|
|
29
|
+
clientToken: 'string',
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
validate() {
|
|
34
|
+
super.validate();
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
constructor(map?: { [key: string]: any }) {
|
|
38
|
+
super(map);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class CreateExternalAgentRequestBodyModelQuota extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* Specifies whether to enable token quota.
|
|
8
|
+
* 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.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* true
|
|
@@ -13,7 +13,7 @@ export class CreateExternalAgentRequestBodyModelQuota extends $dara.Model {
|
|
|
13
13
|
enabled?: boolean;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The quota limit type.
|
|
16
|
+
* The quota limit type. This parameter is required when the quota is enabled. Fixed value: token.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* token
|
|
@@ -21,7 +21,9 @@ export class CreateExternalAgentRequestBodyModelQuota extends $dara.Model {
|
|
|
21
21
|
limitType?: string;
|
|
22
22
|
/**
|
|
23
23
|
* @remarks
|
|
24
|
-
* The
|
|
24
|
+
* The statistical period of the quota. This parameter is required when the quota is enabled. Valid values:
|
|
25
|
+
* - day: Daily.
|
|
26
|
+
* - month: Monthly.
|
|
25
27
|
*
|
|
26
28
|
* @example
|
|
27
29
|
* day
|
|
@@ -29,7 +31,7 @@ export class CreateExternalAgentRequestBodyModelQuota extends $dara.Model {
|
|
|
29
31
|
periodType?: string;
|
|
30
32
|
/**
|
|
31
33
|
* @remarks
|
|
32
|
-
* The maximum number of tokens that can be consumed
|
|
34
|
+
* 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.
|
|
33
35
|
*
|
|
34
36
|
* @example
|
|
35
37
|
* 1000000
|
|
@@ -85,7 +87,7 @@ export class CreateExternalAgentRequestBodyModel extends $dara.Model {
|
|
|
85
87
|
modelName?: string;
|
|
86
88
|
/**
|
|
87
89
|
* @remarks
|
|
88
|
-
* The model token quota configuration. If not specified, no quota is configured.
|
|
90
|
+
* The model token quota configuration. If this parameter is not specified, no quota is configured.
|
|
89
91
|
*/
|
|
90
92
|
quota?: CreateExternalAgentRequestBodyModelQuota;
|
|
91
93
|
static names(): { [key: string]: string } {
|
|
@@ -116,6 +118,48 @@ export class CreateExternalAgentRequestBodyModel extends $dara.Model {
|
|
|
116
118
|
}
|
|
117
119
|
}
|
|
118
120
|
|
|
121
|
+
export class CreateExternalAgentRequestBodySkillsVersionSelector extends $dara.Model {
|
|
122
|
+
/**
|
|
123
|
+
* @remarks
|
|
124
|
+
* The type of the version selector. Valid values:
|
|
125
|
+
* - LABEL: By label.
|
|
126
|
+
* - VERSION: By specific version.
|
|
127
|
+
*
|
|
128
|
+
* @example
|
|
129
|
+
* LABEL
|
|
130
|
+
*/
|
|
131
|
+
type?: string;
|
|
132
|
+
/**
|
|
133
|
+
* @remarks
|
|
134
|
+
* 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.
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* latest
|
|
138
|
+
*/
|
|
139
|
+
value?: string;
|
|
140
|
+
static names(): { [key: string]: string } {
|
|
141
|
+
return {
|
|
142
|
+
type: 'type',
|
|
143
|
+
value: 'value',
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
static types(): { [key: string]: any } {
|
|
148
|
+
return {
|
|
149
|
+
type: 'string',
|
|
150
|
+
value: 'string',
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
validate() {
|
|
155
|
+
super.validate();
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
constructor(map?: { [key: string]: any }) {
|
|
159
|
+
super(map);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
119
163
|
export class CreateExternalAgentRequestBodySkills extends $dara.Model {
|
|
120
164
|
/**
|
|
121
165
|
* @remarks
|
|
@@ -127,6 +171,16 @@ export class CreateExternalAgentRequestBodySkills extends $dara.Model {
|
|
|
127
171
|
* code-analysis
|
|
128
172
|
*/
|
|
129
173
|
name?: string;
|
|
174
|
+
/**
|
|
175
|
+
* @remarks
|
|
176
|
+
* The source type of the skill. Valid values:
|
|
177
|
+
* - REFERENCE: References the AI Registry.
|
|
178
|
+
* - STATIC: Statically provided with the package.
|
|
179
|
+
*
|
|
180
|
+
* @example
|
|
181
|
+
* REFERENCE
|
|
182
|
+
*/
|
|
183
|
+
sourceType?: string;
|
|
130
184
|
/**
|
|
131
185
|
* @remarks
|
|
132
186
|
* The skill version.
|
|
@@ -135,21 +189,33 @@ export class CreateExternalAgentRequestBodySkills extends $dara.Model {
|
|
|
135
189
|
* 1.0.0
|
|
136
190
|
*/
|
|
137
191
|
version?: string;
|
|
192
|
+
/**
|
|
193
|
+
* @remarks
|
|
194
|
+
* The referenced version selector. If omitted, the default value is LABEL/latest. Currently, only LABEL/latest is supported.
|
|
195
|
+
*/
|
|
196
|
+
versionSelector?: CreateExternalAgentRequestBodySkillsVersionSelector;
|
|
138
197
|
static names(): { [key: string]: string } {
|
|
139
198
|
return {
|
|
140
199
|
name: 'name',
|
|
200
|
+
sourceType: 'sourceType',
|
|
141
201
|
version: 'version',
|
|
202
|
+
versionSelector: 'versionSelector',
|
|
142
203
|
};
|
|
143
204
|
}
|
|
144
205
|
|
|
145
206
|
static types(): { [key: string]: any } {
|
|
146
207
|
return {
|
|
147
208
|
name: 'string',
|
|
209
|
+
sourceType: 'string',
|
|
148
210
|
version: 'string',
|
|
211
|
+
versionSelector: CreateExternalAgentRequestBodySkillsVersionSelector,
|
|
149
212
|
};
|
|
150
213
|
}
|
|
151
214
|
|
|
152
215
|
validate() {
|
|
216
|
+
if(this.versionSelector && typeof (this.versionSelector as any).validate === 'function') {
|
|
217
|
+
(this.versionSelector as any).validate();
|
|
218
|
+
}
|
|
153
219
|
super.validate();
|
|
154
220
|
}
|
|
155
221
|
|
|
@@ -161,7 +227,7 @@ export class CreateExternalAgentRequestBodySkills extends $dara.Model {
|
|
|
161
227
|
export class CreateExternalAgentRequestBodyTemplateAiRegistry extends $dara.Model {
|
|
162
228
|
/**
|
|
163
229
|
* @remarks
|
|
164
|
-
* The name of the template in AI Registry.
|
|
230
|
+
* The name of the template in the AI Registry.
|
|
165
231
|
*
|
|
166
232
|
* This parameter is required.
|
|
167
233
|
*
|
|
@@ -171,7 +237,7 @@ export class CreateExternalAgentRequestBodyTemplateAiRegistry extends $dara.Mode
|
|
|
171
237
|
name?: string;
|
|
172
238
|
/**
|
|
173
239
|
* @remarks
|
|
174
|
-
* The version of the template in AI Registry.
|
|
240
|
+
* The version of the template in the AI Registry.
|
|
175
241
|
*
|
|
176
242
|
* This parameter is required.
|
|
177
243
|
*
|
|
@@ -283,12 +349,12 @@ export class CreateExternalAgentRequestBody extends $dara.Model {
|
|
|
283
349
|
* The description of the external agent.
|
|
284
350
|
*
|
|
285
351
|
* @example
|
|
286
|
-
*
|
|
352
|
+
* Code review agent running in the user environment
|
|
287
353
|
*/
|
|
288
354
|
description?: string;
|
|
289
355
|
/**
|
|
290
356
|
* @remarks
|
|
291
|
-
* The
|
|
357
|
+
* The instructions that guide the behavior of the agent.
|
|
292
358
|
*
|
|
293
359
|
* @example
|
|
294
360
|
* You are a code review assistant
|
|
@@ -296,14 +362,14 @@ export class CreateExternalAgentRequestBody extends $dara.Model {
|
|
|
296
362
|
instruction?: string;
|
|
297
363
|
/**
|
|
298
364
|
* @remarks
|
|
299
|
-
* The model configuration.
|
|
365
|
+
* The model configuration. This parameter is available only when modelSource is set to PLATFORM.
|
|
300
366
|
*/
|
|
301
367
|
model?: CreateExternalAgentRequestBodyModel;
|
|
302
368
|
/**
|
|
303
369
|
* @remarks
|
|
304
|
-
* The model configuration
|
|
305
|
-
* - PLATFORM:
|
|
306
|
-
* - RUNTIME:
|
|
370
|
+
* 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:
|
|
371
|
+
* - PLATFORM: Platform model.
|
|
372
|
+
* - RUNTIME: Runtime model.
|
|
307
373
|
*
|
|
308
374
|
* @example
|
|
309
375
|
* PLATFORM
|
|
@@ -389,7 +455,7 @@ export class CreateExternalAgentRequest extends $dara.Model {
|
|
|
389
455
|
body?: CreateExternalAgentRequestBody;
|
|
390
456
|
/**
|
|
391
457
|
* @remarks
|
|
392
|
-
* The reserved idempotency token. The backend does not provide idempotency
|
|
458
|
+
* The reserved idempotency token. The backend does not provide idempotency guarantees in the current phase.
|
|
393
459
|
*
|
|
394
460
|
* @example
|
|
395
461
|
* client-token-1
|