@alicloud/agentcore20260804 2.2.0 → 2.3.0
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 +162 -16
- package/dist/client.js +295 -16
- 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/CreateManagedAgentRequest.d.ts +72 -22
- package/dist/models/CreateManagedAgentRequest.js +27 -1
- package/dist/models/CreateManagedAgentRequest.js.map +1 -1
- package/dist/models/CreateManagedAgentResponseBody.d.ts +109 -28
- package/dist/models/CreateManagedAgentResponseBody.js +27 -1
- package/dist/models/CreateManagedAgentResponseBody.js.map +1 -1
- package/dist/models/CreateManagedAgentShrinkRequest.d.ts +1 -1
- package/dist/models/CreateSkillDraftRequest.d.ts +1 -1
- package/dist/models/CreateSkillDraftResponseBody.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/DownloadSkillVersionViaOssResponseBody.d.ts +1 -1
- package/dist/models/GetAgentSpecLatestResponseBody.d.ts +19 -2
- package/dist/models/GetAgentSpecLatestResponseBody.js.map +1 -1
- 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/GetManagedAgentResponseBody.d.ts +115 -32
- package/dist/models/GetManagedAgentResponseBody.js +27 -1
- package/dist/models/GetManagedAgentResponseBody.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/ListSkillsRequest.d.ts +2 -2
- package/dist/models/ListSkillsResponseBody.d.ts +10 -3
- package/dist/models/ListSkillsResponseBody.js.map +1 -1
- package/dist/models/ListUsersRequest.d.ts +4 -4
- package/dist/models/ListUsersResponseBody.d.ts +15 -15
- 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/UpdateManagedAgentRequest.d.ts +61 -30
- package/dist/models/UpdateManagedAgentRequest.js +27 -1
- package/dist/models/UpdateManagedAgentRequest.js.map +1 -1
- package/dist/models/UpdateManagedAgentResponseBody.d.ts +61 -28
- package/dist/models/UpdateManagedAgentResponseBody.js +27 -1
- package/dist/models/UpdateManagedAgentResponseBody.js.map +1 -1
- package/dist/models/UpdateManagedAgentShrinkRequest.d.ts +1 -1
- package/dist/models/model.d.ts +129 -0
- package/dist/models/model.js +316 -56
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +313 -16
- 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/CreateManagedAgentRequest.ts +89 -22
- package/src/models/CreateManagedAgentResponseBody.ts +126 -28
- package/src/models/CreateManagedAgentShrinkRequest.ts +1 -1
- package/src/models/CreateSkillDraftRequest.ts +1 -1
- package/src/models/CreateSkillDraftResponseBody.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/DownloadSkillVersionViaOssResponseBody.ts +1 -1
- package/src/models/GetAgentSpecLatestResponseBody.ts +19 -2
- package/src/models/GetCustomAgentRequest.ts +24 -0
- package/src/models/GetCustomAgentResponse.ts +40 -0
- package/src/models/GetCustomAgentResponseBody.ts +1069 -0
- package/src/models/GetManagedAgentResponseBody.ts +132 -32
- package/src/models/ListCustomAgentsRequest.ts +44 -0
- package/src/models/ListCustomAgentsResponse.ts +40 -0
- package/src/models/ListCustomAgentsResponseBody.ts +345 -0
- package/src/models/ListSkillsRequest.ts +2 -2
- package/src/models/ListSkillsResponseBody.ts +10 -3
- package/src/models/ListUsersRequest.ts +4 -4
- package/src/models/ListUsersResponseBody.ts +15 -15
- 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/UpdateManagedAgentRequest.ts +78 -30
- package/src/models/UpdateManagedAgentResponseBody.ts +78 -28
- package/src/models/UpdateManagedAgentShrinkRequest.ts +1 -1
- package/src/models/model.ts +129 -0
|
@@ -0,0 +1,1337 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateCustomAgentResponseBodyDataAgenticFsMounts extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The AgenticFS mount directory in the container, located under /mnt/agenticfs/.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* /mnt/agenticfs/data
|
|
12
|
+
*/
|
|
13
|
+
mountPath?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The relative directory within the mounted access point.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* workspace/data
|
|
20
|
+
*/
|
|
21
|
+
path?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* Specifies whether the mount is read-only. A value of true indicates that the mount is read-only. A value of false indicates that the mount is readable and writable.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* false
|
|
28
|
+
*/
|
|
29
|
+
readOnly?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The domain name of the AgenticFS access point used for the mount.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ap-0123456789abcdef0.0123456789-vlm36.cn-hangzhou.nas.aliyuncs.com
|
|
36
|
+
*/
|
|
37
|
+
server?: string;
|
|
38
|
+
static names(): { [key: string]: string } {
|
|
39
|
+
return {
|
|
40
|
+
mountPath: 'mountPath',
|
|
41
|
+
path: 'path',
|
|
42
|
+
readOnly: 'readOnly',
|
|
43
|
+
server: 'server',
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
static types(): { [key: string]: any } {
|
|
48
|
+
return {
|
|
49
|
+
mountPath: 'string',
|
|
50
|
+
path: 'string',
|
|
51
|
+
readOnly: 'boolean',
|
|
52
|
+
server: 'string',
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
validate() {
|
|
57
|
+
super.validate();
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
constructor(map?: { [key: string]: any }) {
|
|
61
|
+
super(map);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export class CreateCustomAgentResponseBodyDataArtifactCode extends $dara.Model {
|
|
66
|
+
/**
|
|
67
|
+
* @remarks
|
|
68
|
+
* The startup entry point of the code package. Code package deployment is not supported.
|
|
69
|
+
*
|
|
70
|
+
* This parameter is required.
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* python app.py
|
|
74
|
+
*/
|
|
75
|
+
entrypoint?: string;
|
|
76
|
+
/**
|
|
77
|
+
* @remarks
|
|
78
|
+
* The language runtime identifier of the code package. Code package deployment is not supported.
|
|
79
|
+
*
|
|
80
|
+
* This parameter is required.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* python
|
|
84
|
+
*/
|
|
85
|
+
languageRuntime?: string;
|
|
86
|
+
/**
|
|
87
|
+
* @remarks
|
|
88
|
+
* The source URI of the code package. Code package deployment is not supported.
|
|
89
|
+
*
|
|
90
|
+
* This parameter is required.
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* oss://my-agent-bucket/packages/agent.zip
|
|
94
|
+
*/
|
|
95
|
+
sourceUri?: string;
|
|
96
|
+
static names(): { [key: string]: string } {
|
|
97
|
+
return {
|
|
98
|
+
entrypoint: 'entrypoint',
|
|
99
|
+
languageRuntime: 'languageRuntime',
|
|
100
|
+
sourceUri: 'sourceUri',
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
static types(): { [key: string]: any } {
|
|
105
|
+
return {
|
|
106
|
+
entrypoint: 'string',
|
|
107
|
+
languageRuntime: 'string',
|
|
108
|
+
sourceUri: 'string',
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
validate() {
|
|
113
|
+
super.validate();
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
constructor(map?: { [key: string]: any }) {
|
|
117
|
+
super(map);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export class CreateCustomAgentResponseBodyDataArtifactContainer extends $dara.Model {
|
|
122
|
+
/**
|
|
123
|
+
* @remarks
|
|
124
|
+
* The custom executable program and startup parameters. If not configured, the default startup method of the image is used.
|
|
125
|
+
*
|
|
126
|
+
* @example
|
|
127
|
+
* python app.py
|
|
128
|
+
*/
|
|
129
|
+
entrypoint?: string;
|
|
130
|
+
/**
|
|
131
|
+
* @remarks
|
|
132
|
+
* The ID of the ACR instance to which the image repository belongs.
|
|
133
|
+
*
|
|
134
|
+
* This parameter is required.
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* cri-a1b2c3d4e5f6
|
|
138
|
+
*/
|
|
139
|
+
instanceId?: string;
|
|
140
|
+
/**
|
|
141
|
+
* @remarks
|
|
142
|
+
* The namespace to which the ACR image repository belongs.
|
|
143
|
+
*
|
|
144
|
+
* This parameter is required.
|
|
145
|
+
*
|
|
146
|
+
* @example
|
|
147
|
+
* my-agent
|
|
148
|
+
*/
|
|
149
|
+
namespace?: string;
|
|
150
|
+
/**
|
|
151
|
+
* @remarks
|
|
152
|
+
* The name of the image repository in the ACR namespace.
|
|
153
|
+
*
|
|
154
|
+
* This parameter is required.
|
|
155
|
+
*
|
|
156
|
+
* @example
|
|
157
|
+
* chat-agent
|
|
158
|
+
*/
|
|
159
|
+
repo?: string;
|
|
160
|
+
/**
|
|
161
|
+
* @remarks
|
|
162
|
+
* The latest submitted image tag.
|
|
163
|
+
*
|
|
164
|
+
* This parameter is required.
|
|
165
|
+
*
|
|
166
|
+
* @example
|
|
167
|
+
* v1.0.0
|
|
168
|
+
*/
|
|
169
|
+
tag?: string;
|
|
170
|
+
/**
|
|
171
|
+
* @remarks
|
|
172
|
+
* The image source type. A value of acr indicates Alibaba Cloud Container Registry.
|
|
173
|
+
*
|
|
174
|
+
* This parameter is required.
|
|
175
|
+
*
|
|
176
|
+
* @example
|
|
177
|
+
* acr
|
|
178
|
+
*/
|
|
179
|
+
type?: string;
|
|
180
|
+
static names(): { [key: string]: string } {
|
|
181
|
+
return {
|
|
182
|
+
entrypoint: 'entrypoint',
|
|
183
|
+
instanceId: 'instanceId',
|
|
184
|
+
namespace: 'namespace',
|
|
185
|
+
repo: 'repo',
|
|
186
|
+
tag: 'tag',
|
|
187
|
+
type: 'type',
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
static types(): { [key: string]: any } {
|
|
192
|
+
return {
|
|
193
|
+
entrypoint: 'string',
|
|
194
|
+
instanceId: 'string',
|
|
195
|
+
namespace: 'string',
|
|
196
|
+
repo: 'string',
|
|
197
|
+
tag: 'string',
|
|
198
|
+
type: 'string',
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
validate() {
|
|
203
|
+
super.validate();
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
constructor(map?: { [key: string]: any }) {
|
|
207
|
+
super(map);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export class CreateCustomAgentResponseBodyDataArtifact extends $dara.Model {
|
|
212
|
+
/**
|
|
213
|
+
* @remarks
|
|
214
|
+
* The code package configuration field. Code package deployment is not supported.
|
|
215
|
+
*/
|
|
216
|
+
code?: CreateCustomAgentResponseBodyDataArtifactCode;
|
|
217
|
+
/**
|
|
218
|
+
* @remarks
|
|
219
|
+
* The latest submitted ACR container image configuration.
|
|
220
|
+
*/
|
|
221
|
+
container?: CreateCustomAgentResponseBodyDataArtifactContainer;
|
|
222
|
+
/**
|
|
223
|
+
* @remarks
|
|
224
|
+
* The TCP port listened on by the agent service.
|
|
225
|
+
*
|
|
226
|
+
* This parameter is required.
|
|
227
|
+
*
|
|
228
|
+
* @example
|
|
229
|
+
* 8080
|
|
230
|
+
*/
|
|
231
|
+
port?: number;
|
|
232
|
+
static names(): { [key: string]: string } {
|
|
233
|
+
return {
|
|
234
|
+
code: 'code',
|
|
235
|
+
container: 'container',
|
|
236
|
+
port: 'port',
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
static types(): { [key: string]: any } {
|
|
241
|
+
return {
|
|
242
|
+
code: CreateCustomAgentResponseBodyDataArtifactCode,
|
|
243
|
+
container: CreateCustomAgentResponseBodyDataArtifactContainer,
|
|
244
|
+
port: 'number',
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
validate() {
|
|
249
|
+
if(this.code && typeof (this.code as any).validate === 'function') {
|
|
250
|
+
(this.code as any).validate();
|
|
251
|
+
}
|
|
252
|
+
if(this.container && typeof (this.container as any).validate === 'function') {
|
|
253
|
+
(this.container as any).validate();
|
|
254
|
+
}
|
|
255
|
+
super.validate();
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
constructor(map?: { [key: string]: any }) {
|
|
259
|
+
super(map);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export class CreateCustomAgentResponseBodyDataEnvironmentVariables extends $dara.Model {
|
|
264
|
+
/**
|
|
265
|
+
* @remarks
|
|
266
|
+
* The name of the environment variable.
|
|
267
|
+
*
|
|
268
|
+
* This parameter is required.
|
|
269
|
+
*
|
|
270
|
+
* @example
|
|
271
|
+
* LOG_LEVEL
|
|
272
|
+
*/
|
|
273
|
+
name?: string;
|
|
274
|
+
/**
|
|
275
|
+
* @remarks
|
|
276
|
+
* The string value of the environment variable. Empty strings are allowed.
|
|
277
|
+
*
|
|
278
|
+
* This parameter is required.
|
|
279
|
+
*
|
|
280
|
+
* @example
|
|
281
|
+
* info
|
|
282
|
+
*/
|
|
283
|
+
value?: string;
|
|
284
|
+
static names(): { [key: string]: string } {
|
|
285
|
+
return {
|
|
286
|
+
name: 'name',
|
|
287
|
+
value: 'value',
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
static types(): { [key: string]: any } {
|
|
292
|
+
return {
|
|
293
|
+
name: 'string',
|
|
294
|
+
value: 'string',
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
validate() {
|
|
299
|
+
super.validate();
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
constructor(map?: { [key: string]: any }) {
|
|
303
|
+
super(map);
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
export class CreateCustomAgentResponseBodyDataEnvironment extends $dara.Model {
|
|
308
|
+
/**
|
|
309
|
+
* @remarks
|
|
310
|
+
* The latest submitted list of environment variables.
|
|
311
|
+
*/
|
|
312
|
+
variables?: CreateCustomAgentResponseBodyDataEnvironmentVariables[];
|
|
313
|
+
static names(): { [key: string]: string } {
|
|
314
|
+
return {
|
|
315
|
+
variables: 'variables',
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
static types(): { [key: string]: any } {
|
|
320
|
+
return {
|
|
321
|
+
variables: { 'type': 'array', 'itemType': CreateCustomAgentResponseBodyDataEnvironmentVariables },
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
validate() {
|
|
326
|
+
if(Array.isArray(this.variables)) {
|
|
327
|
+
$dara.Model.validateArray(this.variables);
|
|
328
|
+
}
|
|
329
|
+
super.validate();
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
constructor(map?: { [key: string]: any }) {
|
|
333
|
+
super(map);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
export class CreateCustomAgentResponseBodyDataHealthCheck extends $dara.Model {
|
|
338
|
+
/**
|
|
339
|
+
* @remarks
|
|
340
|
+
* This parameter does not take effect.
|
|
341
|
+
*
|
|
342
|
+
* @example
|
|
343
|
+
* 1
|
|
344
|
+
*/
|
|
345
|
+
healthyThreshold?: number;
|
|
346
|
+
/**
|
|
347
|
+
* @remarks
|
|
348
|
+
* The interval between two consecutive health checks, in seconds.
|
|
349
|
+
*
|
|
350
|
+
* @example
|
|
351
|
+
* 10
|
|
352
|
+
*/
|
|
353
|
+
intervalSeconds?: number;
|
|
354
|
+
/**
|
|
355
|
+
* @remarks
|
|
356
|
+
* The HTTP Health Check Path.
|
|
357
|
+
*
|
|
358
|
+
* @example
|
|
359
|
+
* /healthz
|
|
360
|
+
*/
|
|
361
|
+
path?: string;
|
|
362
|
+
/**
|
|
363
|
+
* @remarks
|
|
364
|
+
* The port accessed for the HTTP health check.
|
|
365
|
+
*
|
|
366
|
+
* @example
|
|
367
|
+
* 8080
|
|
368
|
+
*/
|
|
369
|
+
port?: number;
|
|
370
|
+
/**
|
|
371
|
+
* @remarks
|
|
372
|
+
* The timeout period for a single health check, in seconds.
|
|
373
|
+
*
|
|
374
|
+
* @example
|
|
375
|
+
* 2
|
|
376
|
+
*/
|
|
377
|
+
timeoutSeconds?: number;
|
|
378
|
+
/**
|
|
379
|
+
* @remarks
|
|
380
|
+
* The number of consecutive health check failures required to mark the agent as unhealthy.
|
|
381
|
+
*
|
|
382
|
+
* @example
|
|
383
|
+
* 3
|
|
384
|
+
*/
|
|
385
|
+
unhealthyThreshold?: number;
|
|
386
|
+
static names(): { [key: string]: string } {
|
|
387
|
+
return {
|
|
388
|
+
healthyThreshold: 'healthyThreshold',
|
|
389
|
+
intervalSeconds: 'intervalSeconds',
|
|
390
|
+
path: 'path',
|
|
391
|
+
port: 'port',
|
|
392
|
+
timeoutSeconds: 'timeoutSeconds',
|
|
393
|
+
unhealthyThreshold: 'unhealthyThreshold',
|
|
394
|
+
};
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
static types(): { [key: string]: any } {
|
|
398
|
+
return {
|
|
399
|
+
healthyThreshold: 'number',
|
|
400
|
+
intervalSeconds: 'number',
|
|
401
|
+
path: 'string',
|
|
402
|
+
port: 'number',
|
|
403
|
+
timeoutSeconds: 'number',
|
|
404
|
+
unhealthyThreshold: 'number',
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
validate() {
|
|
409
|
+
super.validate();
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
constructor(map?: { [key: string]: any }) {
|
|
413
|
+
super(map);
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
export class CreateCustomAgentResponseBodyDataLatestExecutionError extends $dara.Model {
|
|
418
|
+
/**
|
|
419
|
+
* @remarks
|
|
420
|
+
* The reason code for the waiting or execution failure of the latest configuration. This code is used to determine the subsequent handling method.
|
|
421
|
+
*
|
|
422
|
+
* @example
|
|
423
|
+
* AgentExecutionFailed
|
|
424
|
+
*/
|
|
425
|
+
code?: string;
|
|
426
|
+
/**
|
|
427
|
+
* @remarks
|
|
428
|
+
* The description of the reason why the latest configuration is waiting or has failed to execute. Refer to the code and retryable fields to determine what to do next.
|
|
429
|
+
*
|
|
430
|
+
* @example
|
|
431
|
+
* The agent execution failed. Check the configuration and resubmit
|
|
432
|
+
*/
|
|
433
|
+
message?: string;
|
|
434
|
+
/**
|
|
435
|
+
* @remarks
|
|
436
|
+
* Specifies whether the operation is automatically retried. A value of true indicates that you can query again later. A value of false indicates that you must check and fix the configuration based on the reason, and then resubmit the request.
|
|
437
|
+
*/
|
|
438
|
+
retryable?: boolean;
|
|
439
|
+
static names(): { [key: string]: string } {
|
|
440
|
+
return {
|
|
441
|
+
code: 'code',
|
|
442
|
+
message: 'message',
|
|
443
|
+
retryable: 'retryable',
|
|
444
|
+
};
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
static types(): { [key: string]: any } {
|
|
448
|
+
return {
|
|
449
|
+
code: 'string',
|
|
450
|
+
message: 'string',
|
|
451
|
+
retryable: 'boolean',
|
|
452
|
+
};
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
validate() {
|
|
456
|
+
super.validate();
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
constructor(map?: { [key: string]: any }) {
|
|
460
|
+
super(map);
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
export class CreateCustomAgentResponseBodyDataLoggingSls extends $dara.Model {
|
|
465
|
+
/**
|
|
466
|
+
* @remarks
|
|
467
|
+
* The name of the Simple Log Service Logstore that receives agent logs.
|
|
468
|
+
*
|
|
469
|
+
* @example
|
|
470
|
+
* agent-runtime
|
|
471
|
+
*/
|
|
472
|
+
logstore?: string;
|
|
473
|
+
/**
|
|
474
|
+
* @remarks
|
|
475
|
+
* The name of the Simple Log Service project that receives agent logs.
|
|
476
|
+
*
|
|
477
|
+
* @example
|
|
478
|
+
* my-agent-logs
|
|
479
|
+
*/
|
|
480
|
+
project?: string;
|
|
481
|
+
static names(): { [key: string]: string } {
|
|
482
|
+
return {
|
|
483
|
+
logstore: 'logstore',
|
|
484
|
+
project: 'project',
|
|
485
|
+
};
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
static types(): { [key: string]: any } {
|
|
489
|
+
return {
|
|
490
|
+
logstore: 'string',
|
|
491
|
+
project: 'string',
|
|
492
|
+
};
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
validate() {
|
|
496
|
+
super.validate();
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
constructor(map?: { [key: string]: any }) {
|
|
500
|
+
super(map);
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
export class CreateCustomAgentResponseBodyDataLogging extends $dara.Model {
|
|
505
|
+
/**
|
|
506
|
+
* @remarks
|
|
507
|
+
* The Simple Log Service (SLS) log delivery destination.
|
|
508
|
+
*/
|
|
509
|
+
sls?: CreateCustomAgentResponseBodyDataLoggingSls;
|
|
510
|
+
static names(): { [key: string]: string } {
|
|
511
|
+
return {
|
|
512
|
+
sls: 'sls',
|
|
513
|
+
};
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
static types(): { [key: string]: any } {
|
|
517
|
+
return {
|
|
518
|
+
sls: CreateCustomAgentResponseBodyDataLoggingSls,
|
|
519
|
+
};
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
validate() {
|
|
523
|
+
if(this.sls && typeof (this.sls as any).validate === 'function') {
|
|
524
|
+
(this.sls as any).validate();
|
|
525
|
+
}
|
|
526
|
+
super.validate();
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
constructor(map?: { [key: string]: any }) {
|
|
530
|
+
super(map);
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
export class CreateCustomAgentResponseBodyDataNetworkAccessInternet extends $dara.Model {
|
|
535
|
+
/**
|
|
536
|
+
* @remarks
|
|
537
|
+
* Specifies whether Internet access is allowed on the agent side. The actual access is still restricted by the workspace.
|
|
538
|
+
*/
|
|
539
|
+
enabled?: boolean;
|
|
540
|
+
static names(): { [key: string]: string } {
|
|
541
|
+
return {
|
|
542
|
+
enabled: 'enabled',
|
|
543
|
+
};
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
static types(): { [key: string]: any } {
|
|
547
|
+
return {
|
|
548
|
+
enabled: 'boolean',
|
|
549
|
+
};
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
validate() {
|
|
553
|
+
super.validate();
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
constructor(map?: { [key: string]: any }) {
|
|
557
|
+
super(map);
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
export class CreateCustomAgentResponseBodyDataNetworkAccessVpc extends $dara.Model {
|
|
562
|
+
/**
|
|
563
|
+
* @remarks
|
|
564
|
+
* Specifies whether access to the user VPC configured for the workspace is allowed on the agent side. The actual access is still restricted by the workspace.
|
|
565
|
+
*/
|
|
566
|
+
enabled?: boolean;
|
|
567
|
+
static names(): { [key: string]: string } {
|
|
568
|
+
return {
|
|
569
|
+
enabled: 'enabled',
|
|
570
|
+
};
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
static types(): { [key: string]: any } {
|
|
574
|
+
return {
|
|
575
|
+
enabled: 'boolean',
|
|
576
|
+
};
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
validate() {
|
|
580
|
+
super.validate();
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
constructor(map?: { [key: string]: any }) {
|
|
584
|
+
super(map);
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
export class CreateCustomAgentResponseBodyDataNetwork extends $dara.Model {
|
|
589
|
+
/**
|
|
590
|
+
* @remarks
|
|
591
|
+
* The Internet access configuration of the agent. If this field is not configured, Internet access is allowed on the agent side, but it is still restricted by the workspace.
|
|
592
|
+
*/
|
|
593
|
+
accessInternet?: CreateCustomAgentResponseBodyDataNetworkAccessInternet;
|
|
594
|
+
/**
|
|
595
|
+
* @remarks
|
|
596
|
+
* The user VPC access configuration of the agent. If this field is not configured, user VPC access is allowed on the agent side, but it is still restricted by the workspace.
|
|
597
|
+
*/
|
|
598
|
+
accessVpc?: CreateCustomAgentResponseBodyDataNetworkAccessVpc;
|
|
599
|
+
static names(): { [key: string]: string } {
|
|
600
|
+
return {
|
|
601
|
+
accessInternet: 'accessInternet',
|
|
602
|
+
accessVpc: 'accessVpc',
|
|
603
|
+
};
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
static types(): { [key: string]: any } {
|
|
607
|
+
return {
|
|
608
|
+
accessInternet: CreateCustomAgentResponseBodyDataNetworkAccessInternet,
|
|
609
|
+
accessVpc: CreateCustomAgentResponseBodyDataNetworkAccessVpc,
|
|
610
|
+
};
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
validate() {
|
|
614
|
+
if(this.accessInternet && typeof (this.accessInternet as any).validate === 'function') {
|
|
615
|
+
(this.accessInternet as any).validate();
|
|
616
|
+
}
|
|
617
|
+
if(this.accessVpc && typeof (this.accessVpc as any).validate === 'function') {
|
|
618
|
+
(this.accessVpc as any).validate();
|
|
619
|
+
}
|
|
620
|
+
super.validate();
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
constructor(map?: { [key: string]: any }) {
|
|
624
|
+
super(map);
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
export class CreateCustomAgentResponseBodyDataOssMounts extends $dara.Model {
|
|
629
|
+
/**
|
|
630
|
+
* @remarks
|
|
631
|
+
* The name of the mounted OSS bucket.
|
|
632
|
+
*
|
|
633
|
+
* @example
|
|
634
|
+
* my-agent-data
|
|
635
|
+
*/
|
|
636
|
+
bucketName?: string;
|
|
637
|
+
/**
|
|
638
|
+
* @remarks
|
|
639
|
+
* The OSS mount directory in the container, located under /mnt/oss/.
|
|
640
|
+
*
|
|
641
|
+
* @example
|
|
642
|
+
* /mnt/oss/train
|
|
643
|
+
*/
|
|
644
|
+
mountPath?: string;
|
|
645
|
+
/**
|
|
646
|
+
* @remarks
|
|
647
|
+
* The prefix of the object directory in the mounted bucket.
|
|
648
|
+
*
|
|
649
|
+
* @example
|
|
650
|
+
* datasets/train
|
|
651
|
+
*/
|
|
652
|
+
path?: string;
|
|
653
|
+
/**
|
|
654
|
+
* @remarks
|
|
655
|
+
* Specifies whether the mount is read-only. A value of true indicates that the mount is read-only. A value of false indicates that the mount is readable and writable.
|
|
656
|
+
*/
|
|
657
|
+
readOnly?: boolean;
|
|
658
|
+
static names(): { [key: string]: string } {
|
|
659
|
+
return {
|
|
660
|
+
bucketName: 'bucketName',
|
|
661
|
+
mountPath: 'mountPath',
|
|
662
|
+
path: 'path',
|
|
663
|
+
readOnly: 'readOnly',
|
|
664
|
+
};
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
static types(): { [key: string]: any } {
|
|
668
|
+
return {
|
|
669
|
+
bucketName: 'string',
|
|
670
|
+
mountPath: 'string',
|
|
671
|
+
path: 'string',
|
|
672
|
+
readOnly: 'boolean',
|
|
673
|
+
};
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
validate() {
|
|
677
|
+
super.validate();
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
constructor(map?: { [key: string]: any }) {
|
|
681
|
+
super(map);
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
export class CreateCustomAgentResponseBodyDataProtocolPaths extends $dara.Model {
|
|
686
|
+
/**
|
|
687
|
+
* @remarks
|
|
688
|
+
* The usage description of the current API path.
|
|
689
|
+
*
|
|
690
|
+
* @example
|
|
691
|
+
* AG-UI conversation API
|
|
692
|
+
*/
|
|
693
|
+
description?: string;
|
|
694
|
+
/**
|
|
695
|
+
* @remarks
|
|
696
|
+
* The API path corresponding to the current protocol.
|
|
697
|
+
*
|
|
698
|
+
* This parameter is required.
|
|
699
|
+
*
|
|
700
|
+
* @example
|
|
701
|
+
* /agui
|
|
702
|
+
*/
|
|
703
|
+
name?: string;
|
|
704
|
+
static names(): { [key: string]: string } {
|
|
705
|
+
return {
|
|
706
|
+
description: 'description',
|
|
707
|
+
name: 'name',
|
|
708
|
+
};
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
static types(): { [key: string]: any } {
|
|
712
|
+
return {
|
|
713
|
+
description: 'string',
|
|
714
|
+
name: 'string',
|
|
715
|
+
};
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
validate() {
|
|
719
|
+
super.validate();
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
constructor(map?: { [key: string]: any }) {
|
|
723
|
+
super(map);
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
export class CreateCustomAgentResponseBodyDataProtocol extends $dara.Model {
|
|
728
|
+
/**
|
|
729
|
+
* @remarks
|
|
730
|
+
* The request header configurations for the current protocol. The key is the header name and the value is a string.
|
|
731
|
+
*/
|
|
732
|
+
headers?: { [key: string]: string };
|
|
733
|
+
/**
|
|
734
|
+
* @remarks
|
|
735
|
+
* The list of API paths corresponding to the current protocol.
|
|
736
|
+
*/
|
|
737
|
+
paths?: CreateCustomAgentResponseBodyDataProtocolPaths[];
|
|
738
|
+
/**
|
|
739
|
+
* @remarks
|
|
740
|
+
* The invocation protocol type. Valid values:
|
|
741
|
+
* - agui: AG-UI protocol.
|
|
742
|
+
* - openai-chat-completion: OpenAI Chat Completions compatible protocol.
|
|
743
|
+
* - custom: Custom protocol.
|
|
744
|
+
*
|
|
745
|
+
* This parameter is required.
|
|
746
|
+
*
|
|
747
|
+
* @example
|
|
748
|
+
* agui
|
|
749
|
+
*/
|
|
750
|
+
type?: string;
|
|
751
|
+
static names(): { [key: string]: string } {
|
|
752
|
+
return {
|
|
753
|
+
headers: 'headers',
|
|
754
|
+
paths: 'paths',
|
|
755
|
+
type: 'type',
|
|
756
|
+
};
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
static types(): { [key: string]: any } {
|
|
760
|
+
return {
|
|
761
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
762
|
+
paths: { 'type': 'array', 'itemType': CreateCustomAgentResponseBodyDataProtocolPaths },
|
|
763
|
+
type: 'string',
|
|
764
|
+
};
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
validate() {
|
|
768
|
+
if(this.headers) {
|
|
769
|
+
$dara.Model.validateMap(this.headers);
|
|
770
|
+
}
|
|
771
|
+
if(Array.isArray(this.paths)) {
|
|
772
|
+
$dara.Model.validateArray(this.paths);
|
|
773
|
+
}
|
|
774
|
+
super.validate();
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
constructor(map?: { [key: string]: any }) {
|
|
778
|
+
super(map);
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
export class CreateCustomAgentResponseBodyDataRuntimeCompute extends $dara.Model {
|
|
783
|
+
/**
|
|
784
|
+
* @remarks
|
|
785
|
+
* The compute specification. Valid values:
|
|
786
|
+
* - INTERACTIVE: 1 vCPU and 2 GiB of memory.
|
|
787
|
+
* - STANDARD: 2 vCPUs and 4 GiB of memory.
|
|
788
|
+
* - HEAVY: 4 vCPUs and 8 GiB of memory.
|
|
789
|
+
*
|
|
790
|
+
* This parameter is required.
|
|
791
|
+
*
|
|
792
|
+
* @example
|
|
793
|
+
* STANDARD
|
|
794
|
+
*/
|
|
795
|
+
computeClass?: string;
|
|
796
|
+
static names(): { [key: string]: string } {
|
|
797
|
+
return {
|
|
798
|
+
computeClass: 'computeClass',
|
|
799
|
+
};
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
static types(): { [key: string]: any } {
|
|
803
|
+
return {
|
|
804
|
+
computeClass: 'string',
|
|
805
|
+
};
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
validate() {
|
|
809
|
+
super.validate();
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
constructor(map?: { [key: string]: any }) {
|
|
813
|
+
super(map);
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
export class CreateCustomAgentResponseBodyDataRuntimeHpa extends $dara.Model {
|
|
818
|
+
/**
|
|
819
|
+
* @remarks
|
|
820
|
+
* Specifies whether elastic scaling is enabled. Valid values:
|
|
821
|
+
* - true: Enabled.
|
|
822
|
+
* - false: Disabled.
|
|
823
|
+
*
|
|
824
|
+
* This parameter is required.
|
|
825
|
+
*/
|
|
826
|
+
enabled?: boolean;
|
|
827
|
+
/**
|
|
828
|
+
* @remarks
|
|
829
|
+
* The maximum number of concurrent sessions configured for a single runtime instance.
|
|
830
|
+
*
|
|
831
|
+
* @example
|
|
832
|
+
* 100
|
|
833
|
+
*/
|
|
834
|
+
maxConcurrentSessionsPerSandbox?: number;
|
|
835
|
+
/**
|
|
836
|
+
* @remarks
|
|
837
|
+
* The maximum number of runtime instances configured.
|
|
838
|
+
*
|
|
839
|
+
* @example
|
|
840
|
+
* 10
|
|
841
|
+
*/
|
|
842
|
+
maxSandboxCount?: number;
|
|
843
|
+
/**
|
|
844
|
+
* @remarks
|
|
845
|
+
* The minimum number of runtime instances configured.
|
|
846
|
+
*
|
|
847
|
+
* @example
|
|
848
|
+
* 1
|
|
849
|
+
*/
|
|
850
|
+
minSandboxCount?: number;
|
|
851
|
+
/**
|
|
852
|
+
* @remarks
|
|
853
|
+
* The maximum idle time configured for a session, in seconds.
|
|
854
|
+
*
|
|
855
|
+
* @example
|
|
856
|
+
* 600
|
|
857
|
+
*/
|
|
858
|
+
sessionTtlSeconds?: number;
|
|
859
|
+
static names(): { [key: string]: string } {
|
|
860
|
+
return {
|
|
861
|
+
enabled: 'enabled',
|
|
862
|
+
maxConcurrentSessionsPerSandbox: 'maxConcurrentSessionsPerSandbox',
|
|
863
|
+
maxSandboxCount: 'maxSandboxCount',
|
|
864
|
+
minSandboxCount: 'minSandboxCount',
|
|
865
|
+
sessionTtlSeconds: 'sessionTtlSeconds',
|
|
866
|
+
};
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
static types(): { [key: string]: any } {
|
|
870
|
+
return {
|
|
871
|
+
enabled: 'boolean',
|
|
872
|
+
maxConcurrentSessionsPerSandbox: 'number',
|
|
873
|
+
maxSandboxCount: 'number',
|
|
874
|
+
minSandboxCount: 'number',
|
|
875
|
+
sessionTtlSeconds: 'number',
|
|
876
|
+
};
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
validate() {
|
|
880
|
+
super.validate();
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
constructor(map?: { [key: string]: any }) {
|
|
884
|
+
super(map);
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
export class CreateCustomAgentResponseBodyDataRuntimeSessionPolicy extends $dara.Model {
|
|
889
|
+
/**
|
|
890
|
+
* @remarks
|
|
891
|
+
* The name of the HTTP request header used by the session policy. This parameter applies to ISOLATED_HEADER_FIELD.
|
|
892
|
+
*
|
|
893
|
+
* @example
|
|
894
|
+
* X-Session-Id
|
|
895
|
+
*/
|
|
896
|
+
headerName?: string;
|
|
897
|
+
/**
|
|
898
|
+
* @remarks
|
|
899
|
+
* The session policy type. Valid values:
|
|
900
|
+
* - AFFINITY: Session affinity.
|
|
901
|
+
* - ISOLATED_HEADER_FIELD: Associates sessions by using the request header specified by headerName.
|
|
902
|
+
* - ISOLATED_COOKIE: Not recommended.
|
|
903
|
+
* Note: The compatibility value DISABLED in a request is returned as AFFINITY.
|
|
904
|
+
*
|
|
905
|
+
* This parameter is required.
|
|
906
|
+
*
|
|
907
|
+
* @example
|
|
908
|
+
* AFFINITY
|
|
909
|
+
*/
|
|
910
|
+
type?: string;
|
|
911
|
+
static names(): { [key: string]: string } {
|
|
912
|
+
return {
|
|
913
|
+
headerName: 'headerName',
|
|
914
|
+
type: 'type',
|
|
915
|
+
};
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
static types(): { [key: string]: any } {
|
|
919
|
+
return {
|
|
920
|
+
headerName: 'string',
|
|
921
|
+
type: 'string',
|
|
922
|
+
};
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
validate() {
|
|
926
|
+
super.validate();
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
constructor(map?: { [key: string]: any }) {
|
|
930
|
+
super(map);
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
export class CreateCustomAgentResponseBodyDataRuntime extends $dara.Model {
|
|
935
|
+
/**
|
|
936
|
+
* @remarks
|
|
937
|
+
* The compute resource configuration for the agent runtime instance.
|
|
938
|
+
*
|
|
939
|
+
* This parameter is required.
|
|
940
|
+
*/
|
|
941
|
+
compute?: CreateCustomAgentResponseBodyDataRuntimeCompute;
|
|
942
|
+
/**
|
|
943
|
+
* @remarks
|
|
944
|
+
* The elastic policy configurations for the agent.
|
|
945
|
+
*/
|
|
946
|
+
hpa?: CreateCustomAgentResponseBodyDataRuntimeHpa;
|
|
947
|
+
/**
|
|
948
|
+
* @remarks
|
|
949
|
+
* The session policy configurations for the agent.
|
|
950
|
+
*
|
|
951
|
+
* This parameter is required.
|
|
952
|
+
*/
|
|
953
|
+
sessionPolicy?: CreateCustomAgentResponseBodyDataRuntimeSessionPolicy;
|
|
954
|
+
static names(): { [key: string]: string } {
|
|
955
|
+
return {
|
|
956
|
+
compute: 'compute',
|
|
957
|
+
hpa: 'hpa',
|
|
958
|
+
sessionPolicy: 'sessionPolicy',
|
|
959
|
+
};
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
static types(): { [key: string]: any } {
|
|
963
|
+
return {
|
|
964
|
+
compute: CreateCustomAgentResponseBodyDataRuntimeCompute,
|
|
965
|
+
hpa: CreateCustomAgentResponseBodyDataRuntimeHpa,
|
|
966
|
+
sessionPolicy: CreateCustomAgentResponseBodyDataRuntimeSessionPolicy,
|
|
967
|
+
};
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
validate() {
|
|
971
|
+
if(this.compute && typeof (this.compute as any).validate === 'function') {
|
|
972
|
+
(this.compute as any).validate();
|
|
973
|
+
}
|
|
974
|
+
if(this.hpa && typeof (this.hpa as any).validate === 'function') {
|
|
975
|
+
(this.hpa as any).validate();
|
|
976
|
+
}
|
|
977
|
+
if(this.sessionPolicy && typeof (this.sessionPolicy as any).validate === 'function') {
|
|
978
|
+
(this.sessionPolicy as any).validate();
|
|
979
|
+
}
|
|
980
|
+
super.validate();
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
constructor(map?: { [key: string]: any }) {
|
|
984
|
+
super(map);
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
export class CreateCustomAgentResponseBodyData extends $dara.Model {
|
|
989
|
+
/**
|
|
990
|
+
* @remarks
|
|
991
|
+
* The unique identifier of the custom agent. You can obtain this ID from the response of the CreateCustomAgent or ListCustomAgents operation.
|
|
992
|
+
*
|
|
993
|
+
* @example
|
|
994
|
+
* agent-550e8400e29b41d4a716446655440000
|
|
995
|
+
*/
|
|
996
|
+
agentId?: string;
|
|
997
|
+
/**
|
|
998
|
+
* @remarks
|
|
999
|
+
* The latest submitted list of additional AgenticFS mounts.
|
|
1000
|
+
*/
|
|
1001
|
+
agenticFsMounts?: CreateCustomAgentResponseBodyDataAgenticFsMounts[];
|
|
1002
|
+
/**
|
|
1003
|
+
* @remarks
|
|
1004
|
+
* The latest submitted deployment artifact configuration, including the service listening port and the ACR container image. To check whether the configuration has taken effect, refer to the latestVersionStatus field.
|
|
1005
|
+
*/
|
|
1006
|
+
artifact?: CreateCustomAgentResponseBodyDataArtifact;
|
|
1007
|
+
/**
|
|
1008
|
+
* @remarks
|
|
1009
|
+
* The creation method of the agent. The value is CUSTOM for custom agents.
|
|
1010
|
+
*
|
|
1011
|
+
* @example
|
|
1012
|
+
* CUSTOM
|
|
1013
|
+
*/
|
|
1014
|
+
createMode?: string;
|
|
1015
|
+
/**
|
|
1016
|
+
* @remarks
|
|
1017
|
+
* The creation time of the agent. The time is in ISO 8601 format. The trailing Z indicates the UTC time zone. Fractional seconds may be included.
|
|
1018
|
+
*
|
|
1019
|
+
* @example
|
|
1020
|
+
* 2026-10-10T06:00:00Z
|
|
1021
|
+
*/
|
|
1022
|
+
createdAt?: string;
|
|
1023
|
+
/**
|
|
1024
|
+
* @remarks
|
|
1025
|
+
* The deployment method of the agent. Custom agents are deployed and managed by the platform. The value is MANAGED for custom agents.
|
|
1026
|
+
*
|
|
1027
|
+
* @example
|
|
1028
|
+
* MANAGED
|
|
1029
|
+
*/
|
|
1030
|
+
deployType?: string;
|
|
1031
|
+
/**
|
|
1032
|
+
* @remarks
|
|
1033
|
+
* The description of the agent.
|
|
1034
|
+
*
|
|
1035
|
+
* @example
|
|
1036
|
+
* Custom agent that provides conversation services
|
|
1037
|
+
*/
|
|
1038
|
+
description?: string;
|
|
1039
|
+
/**
|
|
1040
|
+
* @remarks
|
|
1041
|
+
* The environment variable configuration for the agent process.
|
|
1042
|
+
*/
|
|
1043
|
+
environment?: CreateCustomAgentResponseBodyDataEnvironment;
|
|
1044
|
+
/**
|
|
1045
|
+
* @remarks
|
|
1046
|
+
* The HTTP health check configuration of the agent. This field is empty if no health check is configured.
|
|
1047
|
+
*/
|
|
1048
|
+
healthCheck?: CreateCustomAgentResponseBodyDataHealthCheck;
|
|
1049
|
+
/**
|
|
1050
|
+
* @remarks
|
|
1051
|
+
* The waiting or execution error of the latest configuration version. This field is returned only when the version is waiting for a retry or fails to execute.
|
|
1052
|
+
*/
|
|
1053
|
+
latestExecutionError?: CreateCustomAgentResponseBodyDataLatestExecutionError;
|
|
1054
|
+
/**
|
|
1055
|
+
* @remarks
|
|
1056
|
+
* The latest configuration version number. Updates with the same configuration may retain the original version number. This field does not indicate that the configuration has taken effect.
|
|
1057
|
+
*
|
|
1058
|
+
* @example
|
|
1059
|
+
* 1
|
|
1060
|
+
*/
|
|
1061
|
+
latestSpecVersion?: number;
|
|
1062
|
+
/**
|
|
1063
|
+
* @remarks
|
|
1064
|
+
* The execution status corresponding to latestSpecVersion. Valid values:
|
|
1065
|
+
* - pending: Waiting for execution.
|
|
1066
|
+
* - processing: Executing.
|
|
1067
|
+
* - waiting_retry: Waiting for a retry.
|
|
1068
|
+
* - succeeded: Execution succeeded.
|
|
1069
|
+
* - failed: Execution failed.
|
|
1070
|
+
* - superseded: Superseded by a subsequent version.
|
|
1071
|
+
*
|
|
1072
|
+
* @example
|
|
1073
|
+
* succeeded
|
|
1074
|
+
*/
|
|
1075
|
+
latestVersionStatus?: string;
|
|
1076
|
+
/**
|
|
1077
|
+
* @remarks
|
|
1078
|
+
* The latest submitted log delivery configuration.
|
|
1079
|
+
*/
|
|
1080
|
+
logging?: CreateCustomAgentResponseBodyDataLogging;
|
|
1081
|
+
/**
|
|
1082
|
+
* @remarks
|
|
1083
|
+
* The name of the custom agent.
|
|
1084
|
+
*
|
|
1085
|
+
* @example
|
|
1086
|
+
* my-custom-agent
|
|
1087
|
+
*/
|
|
1088
|
+
name?: string;
|
|
1089
|
+
/**
|
|
1090
|
+
* @remarks
|
|
1091
|
+
* The network access configuration of the agent. The actual access scope is also restricted by the network configuration of the workspace.
|
|
1092
|
+
*/
|
|
1093
|
+
network?: CreateCustomAgentResponseBodyDataNetwork;
|
|
1094
|
+
/**
|
|
1095
|
+
* @remarks
|
|
1096
|
+
* The latest submitted list of OSS directory mounts.
|
|
1097
|
+
*/
|
|
1098
|
+
ossMounts?: CreateCustomAgentResponseBodyDataOssMounts[];
|
|
1099
|
+
/**
|
|
1100
|
+
* @remarks
|
|
1101
|
+
* The list of invocation protocol configurations for the agent.
|
|
1102
|
+
*/
|
|
1103
|
+
protocol?: CreateCustomAgentResponseBodyDataProtocol[];
|
|
1104
|
+
/**
|
|
1105
|
+
* @remarks
|
|
1106
|
+
* The region ID of the workspace to which the agent belongs.
|
|
1107
|
+
*
|
|
1108
|
+
* @example
|
|
1109
|
+
* cn-hangzhou
|
|
1110
|
+
*/
|
|
1111
|
+
regionId?: string;
|
|
1112
|
+
/**
|
|
1113
|
+
* @remarks
|
|
1114
|
+
* The ARN of the RAM role used by the agent to access user cloud resources.
|
|
1115
|
+
*
|
|
1116
|
+
* @example
|
|
1117
|
+
* acs:ram::1234567890123456:role/agentcore-runtime-role
|
|
1118
|
+
*/
|
|
1119
|
+
roleArn?: string;
|
|
1120
|
+
/**
|
|
1121
|
+
* @remarks
|
|
1122
|
+
* The runtime configurations of the latest commit, including compute specifications, session policy, and elastic policy.
|
|
1123
|
+
*/
|
|
1124
|
+
runtime?: CreateCustomAgentResponseBodyDataRuntime;
|
|
1125
|
+
/**
|
|
1126
|
+
* @remarks
|
|
1127
|
+
* The instance counts grouped by runtime instance phase. Keys include PENDING (creating or initializing), RUNNING (running), HIBERNATING (hibernating), HIBERNATED (hibernated), RESUMING (resuming), TERMINATING (terminating), and FAILED (failed). Only phases that actually occur are returned. Missing keys are treated as 0.
|
|
1128
|
+
*/
|
|
1129
|
+
sandboxPhaseCounts?: { [key: string]: number };
|
|
1130
|
+
/**
|
|
1131
|
+
* @remarks
|
|
1132
|
+
* The overall status of the agent. Valid values:
|
|
1133
|
+
* - Creating: The agent is being created.
|
|
1134
|
+
* - Running: The agent is running.
|
|
1135
|
+
* - Failed: The agent failed.
|
|
1136
|
+
* - Updating: The agent is being updated.
|
|
1137
|
+
* - Deleting: The agent is being deleted.
|
|
1138
|
+
* - Deleted: The agent is deleted.
|
|
1139
|
+
* To query the execution progress of the latest configuration, check latestVersionStatus.
|
|
1140
|
+
*
|
|
1141
|
+
* @example
|
|
1142
|
+
* Running
|
|
1143
|
+
*/
|
|
1144
|
+
status?: string;
|
|
1145
|
+
/**
|
|
1146
|
+
* @remarks
|
|
1147
|
+
* The time when the agent was last updated. The time is in ISO 8601 format. A trailing Z indicates the UTC time zone. Fractional seconds may be included.
|
|
1148
|
+
*
|
|
1149
|
+
* @example
|
|
1150
|
+
* 2026-10-10T06:05:00Z
|
|
1151
|
+
*/
|
|
1152
|
+
updatedAt?: string;
|
|
1153
|
+
/**
|
|
1154
|
+
* @remarks
|
|
1155
|
+
* The ID of the workspace to which the custom agent belongs.
|
|
1156
|
+
*
|
|
1157
|
+
* @example
|
|
1158
|
+
* ws-a1b2c3d4e5f6
|
|
1159
|
+
*/
|
|
1160
|
+
workspaceId?: string;
|
|
1161
|
+
static names(): { [key: string]: string } {
|
|
1162
|
+
return {
|
|
1163
|
+
agentId: 'agentId',
|
|
1164
|
+
agenticFsMounts: 'agenticFsMounts',
|
|
1165
|
+
artifact: 'artifact',
|
|
1166
|
+
createMode: 'createMode',
|
|
1167
|
+
createdAt: 'createdAt',
|
|
1168
|
+
deployType: 'deployType',
|
|
1169
|
+
description: 'description',
|
|
1170
|
+
environment: 'environment',
|
|
1171
|
+
healthCheck: 'healthCheck',
|
|
1172
|
+
latestExecutionError: 'latestExecutionError',
|
|
1173
|
+
latestSpecVersion: 'latestSpecVersion',
|
|
1174
|
+
latestVersionStatus: 'latestVersionStatus',
|
|
1175
|
+
logging: 'logging',
|
|
1176
|
+
name: 'name',
|
|
1177
|
+
network: 'network',
|
|
1178
|
+
ossMounts: 'ossMounts',
|
|
1179
|
+
protocol: 'protocol',
|
|
1180
|
+
regionId: 'regionId',
|
|
1181
|
+
roleArn: 'roleArn',
|
|
1182
|
+
runtime: 'runtime',
|
|
1183
|
+
sandboxPhaseCounts: 'sandboxPhaseCounts',
|
|
1184
|
+
status: 'status',
|
|
1185
|
+
updatedAt: 'updatedAt',
|
|
1186
|
+
workspaceId: 'workspaceId',
|
|
1187
|
+
};
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
static types(): { [key: string]: any } {
|
|
1191
|
+
return {
|
|
1192
|
+
agentId: 'string',
|
|
1193
|
+
agenticFsMounts: { 'type': 'array', 'itemType': CreateCustomAgentResponseBodyDataAgenticFsMounts },
|
|
1194
|
+
artifact: CreateCustomAgentResponseBodyDataArtifact,
|
|
1195
|
+
createMode: 'string',
|
|
1196
|
+
createdAt: 'string',
|
|
1197
|
+
deployType: 'string',
|
|
1198
|
+
description: 'string',
|
|
1199
|
+
environment: CreateCustomAgentResponseBodyDataEnvironment,
|
|
1200
|
+
healthCheck: CreateCustomAgentResponseBodyDataHealthCheck,
|
|
1201
|
+
latestExecutionError: CreateCustomAgentResponseBodyDataLatestExecutionError,
|
|
1202
|
+
latestSpecVersion: 'number',
|
|
1203
|
+
latestVersionStatus: 'string',
|
|
1204
|
+
logging: CreateCustomAgentResponseBodyDataLogging,
|
|
1205
|
+
name: 'string',
|
|
1206
|
+
network: CreateCustomAgentResponseBodyDataNetwork,
|
|
1207
|
+
ossMounts: { 'type': 'array', 'itemType': CreateCustomAgentResponseBodyDataOssMounts },
|
|
1208
|
+
protocol: { 'type': 'array', 'itemType': CreateCustomAgentResponseBodyDataProtocol },
|
|
1209
|
+
regionId: 'string',
|
|
1210
|
+
roleArn: 'string',
|
|
1211
|
+
runtime: CreateCustomAgentResponseBodyDataRuntime,
|
|
1212
|
+
sandboxPhaseCounts: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' },
|
|
1213
|
+
status: 'string',
|
|
1214
|
+
updatedAt: 'string',
|
|
1215
|
+
workspaceId: 'string',
|
|
1216
|
+
};
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
validate() {
|
|
1220
|
+
if(Array.isArray(this.agenticFsMounts)) {
|
|
1221
|
+
$dara.Model.validateArray(this.agenticFsMounts);
|
|
1222
|
+
}
|
|
1223
|
+
if(this.artifact && typeof (this.artifact as any).validate === 'function') {
|
|
1224
|
+
(this.artifact as any).validate();
|
|
1225
|
+
}
|
|
1226
|
+
if(this.environment && typeof (this.environment as any).validate === 'function') {
|
|
1227
|
+
(this.environment as any).validate();
|
|
1228
|
+
}
|
|
1229
|
+
if(this.healthCheck && typeof (this.healthCheck as any).validate === 'function') {
|
|
1230
|
+
(this.healthCheck as any).validate();
|
|
1231
|
+
}
|
|
1232
|
+
if(this.latestExecutionError && typeof (this.latestExecutionError as any).validate === 'function') {
|
|
1233
|
+
(this.latestExecutionError as any).validate();
|
|
1234
|
+
}
|
|
1235
|
+
if(this.logging && typeof (this.logging as any).validate === 'function') {
|
|
1236
|
+
(this.logging as any).validate();
|
|
1237
|
+
}
|
|
1238
|
+
if(this.network && typeof (this.network as any).validate === 'function') {
|
|
1239
|
+
(this.network as any).validate();
|
|
1240
|
+
}
|
|
1241
|
+
if(Array.isArray(this.ossMounts)) {
|
|
1242
|
+
$dara.Model.validateArray(this.ossMounts);
|
|
1243
|
+
}
|
|
1244
|
+
if(Array.isArray(this.protocol)) {
|
|
1245
|
+
$dara.Model.validateArray(this.protocol);
|
|
1246
|
+
}
|
|
1247
|
+
if(this.runtime && typeof (this.runtime as any).validate === 'function') {
|
|
1248
|
+
(this.runtime as any).validate();
|
|
1249
|
+
}
|
|
1250
|
+
if(this.sandboxPhaseCounts) {
|
|
1251
|
+
$dara.Model.validateMap(this.sandboxPhaseCounts);
|
|
1252
|
+
}
|
|
1253
|
+
super.validate();
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
constructor(map?: { [key: string]: any }) {
|
|
1257
|
+
super(map);
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
export class CreateCustomAgentResponseBody extends $dara.Model {
|
|
1262
|
+
/**
|
|
1263
|
+
* @remarks
|
|
1264
|
+
* The request result code. The value is SUCCESS when the request is successful.
|
|
1265
|
+
*
|
|
1266
|
+
* @example
|
|
1267
|
+
* SUCCESS
|
|
1268
|
+
*/
|
|
1269
|
+
code?: string;
|
|
1270
|
+
/**
|
|
1271
|
+
* @remarks
|
|
1272
|
+
* The latest submitted configuration and status of the custom agent. A successful response indicates that the request is accepted, but the configuration may not have taken effect yet.
|
|
1273
|
+
*/
|
|
1274
|
+
data?: CreateCustomAgentResponseBodyData;
|
|
1275
|
+
/**
|
|
1276
|
+
* @remarks
|
|
1277
|
+
* The HTTP status code of the request. A value of 200 indicates success.
|
|
1278
|
+
*
|
|
1279
|
+
* @example
|
|
1280
|
+
* 200
|
|
1281
|
+
*/
|
|
1282
|
+
httpStatusCode?: number;
|
|
1283
|
+
/**
|
|
1284
|
+
* @remarks
|
|
1285
|
+
* The description of the processing result for the request. A value of success indicates that the request was processed successfully.
|
|
1286
|
+
*
|
|
1287
|
+
* @example
|
|
1288
|
+
* success
|
|
1289
|
+
*/
|
|
1290
|
+
message?: string;
|
|
1291
|
+
/**
|
|
1292
|
+
* @remarks
|
|
1293
|
+
* The unique identifier of the request. You can use this ID to locate and troubleshoot issues.
|
|
1294
|
+
*
|
|
1295
|
+
* @example
|
|
1296
|
+
* 550E8400-E29B-41D4-A716-446655440000
|
|
1297
|
+
*/
|
|
1298
|
+
requestId?: string;
|
|
1299
|
+
/**
|
|
1300
|
+
* @remarks
|
|
1301
|
+
* Indicates whether the request was processed successfully. A value of true indicates that the request was processed successfully. Note that a successful creation, update, or deletion does not mean that the background operation is complete.
|
|
1302
|
+
*/
|
|
1303
|
+
success?: boolean;
|
|
1304
|
+
static names(): { [key: string]: string } {
|
|
1305
|
+
return {
|
|
1306
|
+
code: 'code',
|
|
1307
|
+
data: 'data',
|
|
1308
|
+
httpStatusCode: 'httpStatusCode',
|
|
1309
|
+
message: 'message',
|
|
1310
|
+
requestId: 'requestId',
|
|
1311
|
+
success: 'success',
|
|
1312
|
+
};
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
static types(): { [key: string]: any } {
|
|
1316
|
+
return {
|
|
1317
|
+
code: 'string',
|
|
1318
|
+
data: CreateCustomAgentResponseBodyData,
|
|
1319
|
+
httpStatusCode: 'number',
|
|
1320
|
+
message: 'string',
|
|
1321
|
+
requestId: 'string',
|
|
1322
|
+
success: 'boolean',
|
|
1323
|
+
};
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
validate() {
|
|
1327
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
1328
|
+
(this.data as any).validate();
|
|
1329
|
+
}
|
|
1330
|
+
super.validate();
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
constructor(map?: { [key: string]: any }) {
|
|
1334
|
+
super(map);
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
|