@alicloud/agentcore20260804 2.2.1 → 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 +148 -2
- package/dist/client.js +281 -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/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/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 +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/model.d.ts +124 -0
- package/dist/models/model.js +271 -21
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +299 -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/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/ListCustomAgentsRequest.ts +44 -0
- package/src/models/ListCustomAgentsResponse.ts +40 -0
- package/src/models/ListCustomAgentsResponseBody.ts +345 -0
- 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/model.ts +124 -0
|
@@ -0,0 +1,765 @@
|
|
|
1
|
+
import * as $dara from '@darabonba/typescript';
|
|
2
|
+
export declare class CreateCustomAgentRequestBodyAgenticFsMounts extends $dara.Model {
|
|
3
|
+
/**
|
|
4
|
+
* @remarks
|
|
5
|
+
* The subdirectory under /mnt/agenticfs/ in the container. This parameter is required for each mount item. Mount targets must not be duplicated or overlap in a parent-child relationship.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* /mnt/agenticfs/data
|
|
9
|
+
*/
|
|
10
|
+
mountPath?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* The existing non-empty relative directory under the access point. This parameter is required for each mount item. Root directories, absolute paths, and parent directory traversals are not allowed.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* workspace/data
|
|
17
|
+
*/
|
|
18
|
+
path?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @remarks
|
|
21
|
+
* Specifies whether the mount is read-only. A value of true indicates read-only, and a value of false indicates read and write. If this parameter is omitted, the default value is false.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* false
|
|
25
|
+
*/
|
|
26
|
+
readOnly?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* @remarks
|
|
29
|
+
* The domain name of the access point. This parameter is required for each mount item. Use the DomainName value from the NAS ListAccessPoints response. Do not include the protocol, port, or path.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ap-0123456789abcdef0.0123456789-vlm36.cn-hangzhou.nas.aliyuncs.com
|
|
33
|
+
*/
|
|
34
|
+
server?: string;
|
|
35
|
+
static names(): {
|
|
36
|
+
[key: string]: string;
|
|
37
|
+
};
|
|
38
|
+
static types(): {
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
};
|
|
41
|
+
validate(): void;
|
|
42
|
+
constructor(map?: {
|
|
43
|
+
[key: string]: any;
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
export declare class CreateCustomAgentRequestBodyArtifactCode extends $dara.Model {
|
|
47
|
+
/**
|
|
48
|
+
* @remarks
|
|
49
|
+
* The startup entry point of the code package. Code package deployment is currently not supported. Omit this parameter.
|
|
50
|
+
*
|
|
51
|
+
* This parameter is required.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* python app.py
|
|
55
|
+
*/
|
|
56
|
+
entrypoint?: string;
|
|
57
|
+
/**
|
|
58
|
+
* @remarks
|
|
59
|
+
* The language runtime identifier of the code package. Code package deployment is currently not supported. Omit this parameter.
|
|
60
|
+
*
|
|
61
|
+
* This parameter is required.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* python
|
|
65
|
+
*/
|
|
66
|
+
languageRuntime?: string;
|
|
67
|
+
/**
|
|
68
|
+
* @remarks
|
|
69
|
+
* The source URI of the code package. Code package deployment is currently not supported. Omit this parameter.
|
|
70
|
+
*
|
|
71
|
+
* This parameter is required.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* oss://my-agent-bucket/packages/agent.zip
|
|
75
|
+
*/
|
|
76
|
+
sourceUri?: string;
|
|
77
|
+
static names(): {
|
|
78
|
+
[key: string]: string;
|
|
79
|
+
};
|
|
80
|
+
static types(): {
|
|
81
|
+
[key: string]: any;
|
|
82
|
+
};
|
|
83
|
+
validate(): void;
|
|
84
|
+
constructor(map?: {
|
|
85
|
+
[key: string]: any;
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
export declare class CreateCustomAgentRequestBodyArtifactContainer extends $dara.Model {
|
|
89
|
+
/**
|
|
90
|
+
* @remarks
|
|
91
|
+
* The optional image startup command. If specified, it must be a non-empty string. If omitted, the default startup method of the image is used.
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* python app.py
|
|
95
|
+
*/
|
|
96
|
+
entrypoint?: string;
|
|
97
|
+
/**
|
|
98
|
+
* @remarks
|
|
99
|
+
* The ID of the ACR instance to which the image repository belongs. This parameter cannot be empty.
|
|
100
|
+
*
|
|
101
|
+
* This parameter is required.
|
|
102
|
+
*
|
|
103
|
+
* @example
|
|
104
|
+
* cri-a1b2c3d4e5f6
|
|
105
|
+
*/
|
|
106
|
+
instanceId?: string;
|
|
107
|
+
/**
|
|
108
|
+
* @remarks
|
|
109
|
+
* The namespace to which the ACR image repository belongs. This parameter cannot be empty.
|
|
110
|
+
*
|
|
111
|
+
* This parameter is required.
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* my-agent
|
|
115
|
+
*/
|
|
116
|
+
namespace?: string;
|
|
117
|
+
/**
|
|
118
|
+
* @remarks
|
|
119
|
+
* The name of the image repository in the ACR namespace. This parameter cannot be empty.
|
|
120
|
+
*
|
|
121
|
+
* This parameter is required.
|
|
122
|
+
*
|
|
123
|
+
* @example
|
|
124
|
+
* chat-agent
|
|
125
|
+
*/
|
|
126
|
+
repo?: string;
|
|
127
|
+
/**
|
|
128
|
+
* @remarks
|
|
129
|
+
* The image tag used for deployment. This parameter cannot be empty. When updating the tag, you must also specify artifact.port and other required image fields.
|
|
130
|
+
*
|
|
131
|
+
* This parameter is required.
|
|
132
|
+
*
|
|
133
|
+
* @example
|
|
134
|
+
* v1.0.0
|
|
135
|
+
*/
|
|
136
|
+
tag?: string;
|
|
137
|
+
/**
|
|
138
|
+
* @remarks
|
|
139
|
+
* The source type of the image. Currently, only acr is supported, which indicates Alibaba Cloud Container Registry (ACR).
|
|
140
|
+
*
|
|
141
|
+
* This parameter is required.
|
|
142
|
+
*
|
|
143
|
+
* @example
|
|
144
|
+
* acr
|
|
145
|
+
*/
|
|
146
|
+
type?: string;
|
|
147
|
+
static names(): {
|
|
148
|
+
[key: string]: string;
|
|
149
|
+
};
|
|
150
|
+
static types(): {
|
|
151
|
+
[key: string]: any;
|
|
152
|
+
};
|
|
153
|
+
validate(): void;
|
|
154
|
+
constructor(map?: {
|
|
155
|
+
[key: string]: any;
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
export declare class CreateCustomAgentRequestBodyArtifact extends $dara.Model {
|
|
159
|
+
/**
|
|
160
|
+
* @remarks
|
|
161
|
+
* The code package deployment configuration. This feature is currently not supported. Omit this parameter and use artifact.container.
|
|
162
|
+
*/
|
|
163
|
+
code?: CreateCustomAgentRequestBodyArtifactCode;
|
|
164
|
+
/**
|
|
165
|
+
* @remarks
|
|
166
|
+
* The ACR container image configuration. You must specify type, instanceId, namespace, repo, and tag. Do not configure code at the same time.
|
|
167
|
+
*/
|
|
168
|
+
container?: CreateCustomAgentRequestBodyArtifactContainer;
|
|
169
|
+
/**
|
|
170
|
+
* @remarks
|
|
171
|
+
* The TCP port on which the agent service listens. Valid values: 1 to 65535.
|
|
172
|
+
*
|
|
173
|
+
* This parameter is required.
|
|
174
|
+
*
|
|
175
|
+
* @example
|
|
176
|
+
* 8080
|
|
177
|
+
*/
|
|
178
|
+
port?: number;
|
|
179
|
+
static names(): {
|
|
180
|
+
[key: string]: string;
|
|
181
|
+
};
|
|
182
|
+
static types(): {
|
|
183
|
+
[key: string]: any;
|
|
184
|
+
};
|
|
185
|
+
validate(): void;
|
|
186
|
+
constructor(map?: {
|
|
187
|
+
[key: string]: any;
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
export declare class CreateCustomAgentRequestBodyEnvironmentVariables extends $dara.Model {
|
|
191
|
+
/**
|
|
192
|
+
* @remarks
|
|
193
|
+
* The name of the environment variable. This parameter cannot be empty and must be unique within the current environment variable list.
|
|
194
|
+
*
|
|
195
|
+
* This parameter is required.
|
|
196
|
+
*
|
|
197
|
+
* @example
|
|
198
|
+
* LOG_LEVEL
|
|
199
|
+
*/
|
|
200
|
+
name?: string;
|
|
201
|
+
/**
|
|
202
|
+
* @remarks
|
|
203
|
+
* The value of the environment variable. It must be a string. Empty strings are allowed.
|
|
204
|
+
*
|
|
205
|
+
* This parameter is required.
|
|
206
|
+
*
|
|
207
|
+
* @example
|
|
208
|
+
* info
|
|
209
|
+
*/
|
|
210
|
+
value?: string;
|
|
211
|
+
static names(): {
|
|
212
|
+
[key: string]: string;
|
|
213
|
+
};
|
|
214
|
+
static types(): {
|
|
215
|
+
[key: string]: any;
|
|
216
|
+
};
|
|
217
|
+
validate(): void;
|
|
218
|
+
constructor(map?: {
|
|
219
|
+
[key: string]: any;
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
export declare class CreateCustomAgentRequestBodyEnvironment extends $dara.Model {
|
|
223
|
+
/**
|
|
224
|
+
* @remarks
|
|
225
|
+
* The list of environment variables. Each item includes a name and a value. The entire list is replaced during an update.
|
|
226
|
+
*/
|
|
227
|
+
variables?: CreateCustomAgentRequestBodyEnvironmentVariables[];
|
|
228
|
+
static names(): {
|
|
229
|
+
[key: string]: string;
|
|
230
|
+
};
|
|
231
|
+
static types(): {
|
|
232
|
+
[key: string]: any;
|
|
233
|
+
};
|
|
234
|
+
validate(): void;
|
|
235
|
+
constructor(map?: {
|
|
236
|
+
[key: string]: any;
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
export declare class CreateCustomAgentRequestBodyHealthCheck extends $dara.Model {
|
|
240
|
+
/**
|
|
241
|
+
* @remarks
|
|
242
|
+
* This parameter does not take effect. Omit this parameter.
|
|
243
|
+
*
|
|
244
|
+
* @example
|
|
245
|
+
* 1
|
|
246
|
+
*/
|
|
247
|
+
healthyThreshold?: number;
|
|
248
|
+
/**
|
|
249
|
+
* @remarks
|
|
250
|
+
* The interval between two health checks, in seconds. It must be a positive integer. If omitted, the default value is 10.
|
|
251
|
+
*
|
|
252
|
+
* @example
|
|
253
|
+
* 10
|
|
254
|
+
*/
|
|
255
|
+
intervalSeconds?: number;
|
|
256
|
+
/**
|
|
257
|
+
* @remarks
|
|
258
|
+
* The HTTP health check path. It must start with a forward slash (/). If omitted, the default value is /healthz.
|
|
259
|
+
*
|
|
260
|
+
* @example
|
|
261
|
+
* /healthz
|
|
262
|
+
*/
|
|
263
|
+
path?: string;
|
|
264
|
+
/**
|
|
265
|
+
* @remarks
|
|
266
|
+
* The port accessed for health checks. This parameter is required when configuring health checks. Valid values: 1 to 65535.
|
|
267
|
+
*
|
|
268
|
+
* @example
|
|
269
|
+
* 8080
|
|
270
|
+
*/
|
|
271
|
+
port?: number;
|
|
272
|
+
/**
|
|
273
|
+
* @remarks
|
|
274
|
+
* The timeout period for a single health check, in seconds. It must be a positive integer and less than intervalSeconds. If omitted, the default value is 2.
|
|
275
|
+
*
|
|
276
|
+
* @example
|
|
277
|
+
* 2
|
|
278
|
+
*/
|
|
279
|
+
timeoutSeconds?: number;
|
|
280
|
+
/**
|
|
281
|
+
* @remarks
|
|
282
|
+
* The number of consecutive health check failures required to mark the target as unhealthy. It must be a positive integer. If omitted, the default value is 3.
|
|
283
|
+
*
|
|
284
|
+
* @example
|
|
285
|
+
* 3
|
|
286
|
+
*/
|
|
287
|
+
unhealthyThreshold?: number;
|
|
288
|
+
static names(): {
|
|
289
|
+
[key: string]: string;
|
|
290
|
+
};
|
|
291
|
+
static types(): {
|
|
292
|
+
[key: string]: any;
|
|
293
|
+
};
|
|
294
|
+
validate(): void;
|
|
295
|
+
constructor(map?: {
|
|
296
|
+
[key: string]: any;
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
export declare class CreateCustomAgentRequestBodyLoggingSls extends $dara.Model {
|
|
300
|
+
/**
|
|
301
|
+
* @remarks
|
|
302
|
+
* The name of the Simple Log Service Logstore that receives agent logs.
|
|
303
|
+
*
|
|
304
|
+
* @example
|
|
305
|
+
* agent-runtime
|
|
306
|
+
*/
|
|
307
|
+
logstore?: string;
|
|
308
|
+
/**
|
|
309
|
+
* @remarks
|
|
310
|
+
* The name of the Simple Log Service project that receives agent logs.
|
|
311
|
+
*
|
|
312
|
+
* @example
|
|
313
|
+
* my-agent-logs
|
|
314
|
+
*/
|
|
315
|
+
project?: string;
|
|
316
|
+
static names(): {
|
|
317
|
+
[key: string]: string;
|
|
318
|
+
};
|
|
319
|
+
static types(): {
|
|
320
|
+
[key: string]: any;
|
|
321
|
+
};
|
|
322
|
+
validate(): void;
|
|
323
|
+
constructor(map?: {
|
|
324
|
+
[key: string]: any;
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
export declare class CreateCustomAgentRequestBodyLogging extends $dara.Model {
|
|
328
|
+
/**
|
|
329
|
+
* @remarks
|
|
330
|
+
* The Simple Log Service log delivery destination. When configuring this object, neither project nor logstore can be empty.
|
|
331
|
+
*/
|
|
332
|
+
sls?: CreateCustomAgentRequestBodyLoggingSls;
|
|
333
|
+
static names(): {
|
|
334
|
+
[key: string]: string;
|
|
335
|
+
};
|
|
336
|
+
static types(): {
|
|
337
|
+
[key: string]: any;
|
|
338
|
+
};
|
|
339
|
+
validate(): void;
|
|
340
|
+
constructor(map?: {
|
|
341
|
+
[key: string]: any;
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
export declare class CreateCustomAgentRequestBodyNetworkAccessInternet extends $dara.Model {
|
|
345
|
+
/**
|
|
346
|
+
* @remarks
|
|
347
|
+
* Specifies whether to allow the agent to access the Internet. A Boolean value must be provided when configuring accessInternet. For this setting to take effect, the workspace must also allow Internet access.
|
|
348
|
+
*/
|
|
349
|
+
enabled?: boolean;
|
|
350
|
+
static names(): {
|
|
351
|
+
[key: string]: string;
|
|
352
|
+
};
|
|
353
|
+
static types(): {
|
|
354
|
+
[key: string]: any;
|
|
355
|
+
};
|
|
356
|
+
validate(): void;
|
|
357
|
+
constructor(map?: {
|
|
358
|
+
[key: string]: any;
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
export declare class CreateCustomAgentRequestBodyNetworkAccessVpc extends $dara.Model {
|
|
362
|
+
/**
|
|
363
|
+
* @remarks
|
|
364
|
+
* Specifies whether to allow the agent to access the user VPC configured for the workspace. A Boolean value must be provided when configuring accessVpc. For this setting to take effect, the workspace must also allow VPC access.
|
|
365
|
+
*/
|
|
366
|
+
enabled?: boolean;
|
|
367
|
+
static names(): {
|
|
368
|
+
[key: string]: string;
|
|
369
|
+
};
|
|
370
|
+
static types(): {
|
|
371
|
+
[key: string]: any;
|
|
372
|
+
};
|
|
373
|
+
validate(): void;
|
|
374
|
+
constructor(map?: {
|
|
375
|
+
[key: string]: any;
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
export declare class CreateCustomAgentRequestBodyNetwork extends $dara.Model {
|
|
379
|
+
/**
|
|
380
|
+
* @remarks
|
|
381
|
+
* The Internet access configuration. If this access item is omitted, Internet access is not restricted on the agent side. However, the workspace must still allow Internet access.
|
|
382
|
+
*/
|
|
383
|
+
accessInternet?: CreateCustomAgentRequestBodyNetworkAccessInternet;
|
|
384
|
+
/**
|
|
385
|
+
* @remarks
|
|
386
|
+
* The user VPC access configuration. If this access item is omitted, VPC access is not restricted on the agent side. However, the workspace must still be configured to allow access to the user VPC.
|
|
387
|
+
*/
|
|
388
|
+
accessVpc?: CreateCustomAgentRequestBodyNetworkAccessVpc;
|
|
389
|
+
static names(): {
|
|
390
|
+
[key: string]: string;
|
|
391
|
+
};
|
|
392
|
+
static types(): {
|
|
393
|
+
[key: string]: any;
|
|
394
|
+
};
|
|
395
|
+
validate(): void;
|
|
396
|
+
constructor(map?: {
|
|
397
|
+
[key: string]: any;
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
export declare class CreateCustomAgentRequestBodyOssMounts extends $dara.Model {
|
|
401
|
+
/**
|
|
402
|
+
* @remarks
|
|
403
|
+
* The name of the OSS bucket. This parameter is required for each mount item. The name must be 3 to 63 characters in length and can contain only lowercase letters, digits, and hyphens. It cannot start or end with a hyphen.
|
|
404
|
+
*
|
|
405
|
+
* @example
|
|
406
|
+
* my-agent-data
|
|
407
|
+
*/
|
|
408
|
+
bucketName?: string;
|
|
409
|
+
/**
|
|
410
|
+
* @remarks
|
|
411
|
+
* The subdirectory under /mnt/oss/ in the container. This parameter is required for each mount item. Mount targets must not be duplicated or overlap in a parent-child relationship.
|
|
412
|
+
*
|
|
413
|
+
* @example
|
|
414
|
+
* /mnt/oss/train
|
|
415
|
+
*/
|
|
416
|
+
mountPath?: string;
|
|
417
|
+
/**
|
|
418
|
+
* @remarks
|
|
419
|
+
* The non-empty object directory prefix in the bucket, such as datasets/train. Leading and trailing forward slashes (/) are removed. Root directories are not supported. Do not use parent directory traversals.
|
|
420
|
+
*
|
|
421
|
+
* @example
|
|
422
|
+
* datasets/train
|
|
423
|
+
*/
|
|
424
|
+
path?: string;
|
|
425
|
+
/**
|
|
426
|
+
* @remarks
|
|
427
|
+
* Specifies whether the mount is read-only. A value of true indicates read-only, and a value of false indicates read and write. If this parameter is omitted, the default value is false.
|
|
428
|
+
*/
|
|
429
|
+
readOnly?: boolean;
|
|
430
|
+
static names(): {
|
|
431
|
+
[key: string]: string;
|
|
432
|
+
};
|
|
433
|
+
static types(): {
|
|
434
|
+
[key: string]: any;
|
|
435
|
+
};
|
|
436
|
+
validate(): void;
|
|
437
|
+
constructor(map?: {
|
|
438
|
+
[key: string]: any;
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
export declare class CreateCustomAgentRequestBodyProtocolPaths extends $dara.Model {
|
|
442
|
+
/**
|
|
443
|
+
* @remarks
|
|
444
|
+
* The usage description of the current API path.
|
|
445
|
+
*
|
|
446
|
+
* @example
|
|
447
|
+
* AG-UI conversation API
|
|
448
|
+
*/
|
|
449
|
+
description?: string;
|
|
450
|
+
/**
|
|
451
|
+
* @remarks
|
|
452
|
+
* The non-empty API path corresponding to the current protocol.
|
|
453
|
+
*
|
|
454
|
+
* This parameter is required.
|
|
455
|
+
*
|
|
456
|
+
* @example
|
|
457
|
+
* /agui
|
|
458
|
+
*/
|
|
459
|
+
name?: string;
|
|
460
|
+
static names(): {
|
|
461
|
+
[key: string]: string;
|
|
462
|
+
};
|
|
463
|
+
static types(): {
|
|
464
|
+
[key: string]: any;
|
|
465
|
+
};
|
|
466
|
+
validate(): void;
|
|
467
|
+
constructor(map?: {
|
|
468
|
+
[key: string]: any;
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
export declare class CreateCustomAgentRequestBodyProtocol extends $dara.Model {
|
|
472
|
+
/**
|
|
473
|
+
* @remarks
|
|
474
|
+
* The request header configuration for the current protocol. The key is a non-empty request header name, and the value must be a string.
|
|
475
|
+
*/
|
|
476
|
+
headers?: {
|
|
477
|
+
[key: string]: string;
|
|
478
|
+
};
|
|
479
|
+
/**
|
|
480
|
+
* @remarks
|
|
481
|
+
* The list of API paths corresponding to the current protocol.
|
|
482
|
+
*/
|
|
483
|
+
paths?: CreateCustomAgentRequestBodyProtocolPaths[];
|
|
484
|
+
/**
|
|
485
|
+
* @remarks
|
|
486
|
+
* The invocation protocol type. Valid values:
|
|
487
|
+
* - agui: AG-UI protocol.
|
|
488
|
+
* - openai-chat-completion: OpenAI Chat Completions compatible protocol.
|
|
489
|
+
* - custom: Custom protocol.
|
|
490
|
+
*
|
|
491
|
+
* This parameter is required.
|
|
492
|
+
*
|
|
493
|
+
* @example
|
|
494
|
+
* agui
|
|
495
|
+
*/
|
|
496
|
+
type?: string;
|
|
497
|
+
static names(): {
|
|
498
|
+
[key: string]: string;
|
|
499
|
+
};
|
|
500
|
+
static types(): {
|
|
501
|
+
[key: string]: any;
|
|
502
|
+
};
|
|
503
|
+
validate(): void;
|
|
504
|
+
constructor(map?: {
|
|
505
|
+
[key: string]: any;
|
|
506
|
+
});
|
|
507
|
+
}
|
|
508
|
+
export declare class CreateCustomAgentRequestBodyRuntimeCompute extends $dara.Model {
|
|
509
|
+
/**
|
|
510
|
+
* @remarks
|
|
511
|
+
* The compute specification. Valid values:
|
|
512
|
+
* - INTERACTIVE: 1 vCPU and 2 GiB of memory.
|
|
513
|
+
* - STANDARD: 2 vCPUs and 4 GiB of memory.
|
|
514
|
+
* - HEAVY: 4 vCPUs and 8 GiB of memory.
|
|
515
|
+
*
|
|
516
|
+
* This parameter is required.
|
|
517
|
+
*
|
|
518
|
+
* @example
|
|
519
|
+
* STANDARD
|
|
520
|
+
*/
|
|
521
|
+
computeClass?: string;
|
|
522
|
+
static names(): {
|
|
523
|
+
[key: string]: string;
|
|
524
|
+
};
|
|
525
|
+
static types(): {
|
|
526
|
+
[key: string]: any;
|
|
527
|
+
};
|
|
528
|
+
validate(): void;
|
|
529
|
+
constructor(map?: {
|
|
530
|
+
[key: string]: any;
|
|
531
|
+
});
|
|
532
|
+
}
|
|
533
|
+
export declare class CreateCustomAgentRequestBodyRuntimeHpa extends $dara.Model {
|
|
534
|
+
/**
|
|
535
|
+
* @remarks
|
|
536
|
+
* Specifies whether to enable elastic scaling. Valid values:
|
|
537
|
+
* - true: Enabled.
|
|
538
|
+
* - false: Disabled.
|
|
539
|
+
* Default value: false.
|
|
540
|
+
*
|
|
541
|
+
* This parameter is required.
|
|
542
|
+
*/
|
|
543
|
+
enabled?: boolean;
|
|
544
|
+
/**
|
|
545
|
+
* @remarks
|
|
546
|
+
* The maximum number of concurrent sessions for a single runtime instance. Valid values: 1 to 100. Default value: 100.
|
|
547
|
+
*
|
|
548
|
+
* @example
|
|
549
|
+
* 100
|
|
550
|
+
*/
|
|
551
|
+
maxConcurrentSessionsPerSandbox?: number;
|
|
552
|
+
/**
|
|
553
|
+
* @remarks
|
|
554
|
+
* The maximum number of runtime instances. Valid values: 1 to 100. The value cannot be less than minSandboxCount. Default value: 10.
|
|
555
|
+
*
|
|
556
|
+
* @example
|
|
557
|
+
* 10
|
|
558
|
+
*/
|
|
559
|
+
maxSandboxCount?: number;
|
|
560
|
+
/**
|
|
561
|
+
* @remarks
|
|
562
|
+
* The minimum number of runtime instances. Valid values: 1 to 100. The value cannot be greater than maxSandboxCount. Default value: 1.
|
|
563
|
+
*
|
|
564
|
+
* @example
|
|
565
|
+
* 1
|
|
566
|
+
*/
|
|
567
|
+
minSandboxCount?: number;
|
|
568
|
+
/**
|
|
569
|
+
* @remarks
|
|
570
|
+
* The session idle timeout in seconds. Valid values: 60 to 86400. Default value: 600.
|
|
571
|
+
*
|
|
572
|
+
* @example
|
|
573
|
+
* 600
|
|
574
|
+
*/
|
|
575
|
+
sessionTtlSeconds?: number;
|
|
576
|
+
static names(): {
|
|
577
|
+
[key: string]: string;
|
|
578
|
+
};
|
|
579
|
+
static types(): {
|
|
580
|
+
[key: string]: any;
|
|
581
|
+
};
|
|
582
|
+
validate(): void;
|
|
583
|
+
constructor(map?: {
|
|
584
|
+
[key: string]: any;
|
|
585
|
+
});
|
|
586
|
+
}
|
|
587
|
+
export declare class CreateCustomAgentRequestBodyRuntimeSessionPolicy extends $dara.Model {
|
|
588
|
+
/**
|
|
589
|
+
* @remarks
|
|
590
|
+
* The name of the HTTP request header used by the session policy. This parameter is required when type is set to ISOLATED_HEADER_FIELD and must be a valid HTTP request header name. Omit this parameter for other policies.
|
|
591
|
+
*
|
|
592
|
+
* @example
|
|
593
|
+
* X-Session-Id
|
|
594
|
+
*/
|
|
595
|
+
headerName?: string;
|
|
596
|
+
/**
|
|
597
|
+
* @remarks
|
|
598
|
+
* The session policy type. Valid values:
|
|
599
|
+
* - AFFINITY: Session affinity.
|
|
600
|
+
* - ISOLATED_HEADER_FIELD: Associates sessions by using the request header specified by headerName.
|
|
601
|
+
* - ISOLATED_COOKIE: Not recommended.
|
|
602
|
+
* - DISABLED: A compatibility option. The response returns AFFINITY.
|
|
603
|
+
*
|
|
604
|
+
* This parameter is required.
|
|
605
|
+
*
|
|
606
|
+
* @example
|
|
607
|
+
* AFFINITY
|
|
608
|
+
*/
|
|
609
|
+
type?: string;
|
|
610
|
+
static names(): {
|
|
611
|
+
[key: string]: string;
|
|
612
|
+
};
|
|
613
|
+
static types(): {
|
|
614
|
+
[key: string]: any;
|
|
615
|
+
};
|
|
616
|
+
validate(): void;
|
|
617
|
+
constructor(map?: {
|
|
618
|
+
[key: string]: any;
|
|
619
|
+
});
|
|
620
|
+
}
|
|
621
|
+
export declare class CreateCustomAgentRequestBodyRuntime extends $dara.Model {
|
|
622
|
+
/**
|
|
623
|
+
* @remarks
|
|
624
|
+
* The compute resource configuration for the agent runtime instance.
|
|
625
|
+
*
|
|
626
|
+
* This parameter is required.
|
|
627
|
+
*/
|
|
628
|
+
compute?: CreateCustomAgentRequestBodyRuntimeCompute;
|
|
629
|
+
/**
|
|
630
|
+
* @remarks
|
|
631
|
+
* The optional elastic policy. When runtime is provided, if hpa or its fields are omitted, the default values are used: enabled is false, the minimum number of instances is 1, the maximum number of instances is 10, the maximum number of concurrent sessions per instance is 100, and the session idle timeout is 600 seconds. To retain the original policy during an update, provide the complete hpa configuration.
|
|
632
|
+
*/
|
|
633
|
+
hpa?: CreateCustomAgentRequestBodyRuntimeHpa;
|
|
634
|
+
/**
|
|
635
|
+
* @remarks
|
|
636
|
+
* The session policy configuration, which is used to set the session association method for requests.
|
|
637
|
+
*
|
|
638
|
+
* This parameter is required.
|
|
639
|
+
*/
|
|
640
|
+
sessionPolicy?: CreateCustomAgentRequestBodyRuntimeSessionPolicy;
|
|
641
|
+
static names(): {
|
|
642
|
+
[key: string]: string;
|
|
643
|
+
};
|
|
644
|
+
static types(): {
|
|
645
|
+
[key: string]: any;
|
|
646
|
+
};
|
|
647
|
+
validate(): void;
|
|
648
|
+
constructor(map?: {
|
|
649
|
+
[key: string]: any;
|
|
650
|
+
});
|
|
651
|
+
}
|
|
652
|
+
export declare class CreateCustomAgentRequestBody extends $dara.Model {
|
|
653
|
+
/**
|
|
654
|
+
* @remarks
|
|
655
|
+
* The list of additional AgenticFS mounts. The total number of AgenticFS and OSS mounts cannot exceed 10. If you omit this parameter or pass an empty array [] during creation, no additional mounts are configured. If you omit this parameter during an update, the original value is retained. If you pass an empty array [], the list is cleared. You cannot pass null.
|
|
656
|
+
*/
|
|
657
|
+
agenticFsMounts?: CreateCustomAgentRequestBodyAgenticFsMounts[];
|
|
658
|
+
/**
|
|
659
|
+
* @remarks
|
|
660
|
+
* The deployment artifact configuration. Currently, only ACR container images are supported. Specify container and the service listening port in port, and omit code.
|
|
661
|
+
*
|
|
662
|
+
* This parameter is required.
|
|
663
|
+
*/
|
|
664
|
+
artifact?: CreateCustomAgentRequestBodyArtifact;
|
|
665
|
+
/**
|
|
666
|
+
* @remarks
|
|
667
|
+
* The description of the agent purpose. The maximum length is 1,024 characters after leading and trailing whitespace is removed.
|
|
668
|
+
*
|
|
669
|
+
* @example
|
|
670
|
+
* Custom agent that provides conversation services
|
|
671
|
+
*/
|
|
672
|
+
description?: string;
|
|
673
|
+
/**
|
|
674
|
+
* @remarks
|
|
675
|
+
* The environment variable configuration passed to the agent runtime process.
|
|
676
|
+
*/
|
|
677
|
+
environment?: CreateCustomAgentRequestBodyEnvironment;
|
|
678
|
+
/**
|
|
679
|
+
* @remarks
|
|
680
|
+
* The optional HTTP health check configuration. If this object is provided, you must specify port. Unspecified items use default values. If omitted during creation, no health check is configured. If this top-level field is omitted during an update, the original configuration is retained. If null is passed, the health check is removed.
|
|
681
|
+
*/
|
|
682
|
+
healthCheck?: CreateCustomAgentRequestBodyHealthCheck;
|
|
683
|
+
/**
|
|
684
|
+
* @remarks
|
|
685
|
+
* The agent log delivery configuration. You can specify the Simple Log Service project and Logstore. After a successful creation or update, verify that logs are delivered properly.
|
|
686
|
+
*/
|
|
687
|
+
logging?: CreateCustomAgentRequestBodyLogging;
|
|
688
|
+
/**
|
|
689
|
+
* @remarks
|
|
690
|
+
* The name of the custom agent. The length must be 1 to 128 characters after leading and trailing whitespace is removed. The name must be unique within the same workspace.
|
|
691
|
+
*
|
|
692
|
+
* This parameter is required.
|
|
693
|
+
*
|
|
694
|
+
* @example
|
|
695
|
+
* my-custom-agent
|
|
696
|
+
*/
|
|
697
|
+
name?: string;
|
|
698
|
+
/**
|
|
699
|
+
* @remarks
|
|
700
|
+
* The network access configuration of the agent. If this object is provided, omitted access items are treated as allowed. The actual accessible range is still limited by the workspace network configuration. To retain the original restrictions during an update, specify both accessInternet and accessVpc.
|
|
701
|
+
*/
|
|
702
|
+
network?: CreateCustomAgentRequestBodyNetwork;
|
|
703
|
+
/**
|
|
704
|
+
* @remarks
|
|
705
|
+
* The list of OSS mounts. The total number of OSS and AgenticFS mounts cannot exceed 10. You must specify bucketName, path, and mountPath for each item. Mount targets must not be duplicated or overlap. The entire list is replaced during an update. Pass an empty array [] to clear the list.
|
|
706
|
+
*/
|
|
707
|
+
ossMounts?: CreateCustomAgentRequestBodyOssMounts[];
|
|
708
|
+
/**
|
|
709
|
+
* @remarks
|
|
710
|
+
* The list of invocation protocols supported by the agent. Each item includes the protocol type and optional paths and request headers. The entire list is replaced during an update.
|
|
711
|
+
*/
|
|
712
|
+
protocol?: CreateCustomAgentRequestBodyProtocol[];
|
|
713
|
+
/**
|
|
714
|
+
* @remarks
|
|
715
|
+
* The ARN of the RAM role used when the agent accesses user cloud resources. The role must have permissions to access the cloud resources.
|
|
716
|
+
*
|
|
717
|
+
* This parameter is required.
|
|
718
|
+
*
|
|
719
|
+
* @example
|
|
720
|
+
* acs:ram::1234567890123456:role/agentcore-runtime-role
|
|
721
|
+
*/
|
|
722
|
+
roleArn?: string;
|
|
723
|
+
/**
|
|
724
|
+
* @remarks
|
|
725
|
+
* The runtime configuration, including compute specifications, session policies, and an optional elastic policy. Both compute and sessionPolicy must be specified.
|
|
726
|
+
*
|
|
727
|
+
* This parameter is required.
|
|
728
|
+
*/
|
|
729
|
+
runtime?: CreateCustomAgentRequestBodyRuntime;
|
|
730
|
+
static names(): {
|
|
731
|
+
[key: string]: string;
|
|
732
|
+
};
|
|
733
|
+
static types(): {
|
|
734
|
+
[key: string]: any;
|
|
735
|
+
};
|
|
736
|
+
validate(): void;
|
|
737
|
+
constructor(map?: {
|
|
738
|
+
[key: string]: any;
|
|
739
|
+
});
|
|
740
|
+
}
|
|
741
|
+
export declare class CreateCustomAgentRequest extends $dara.Model {
|
|
742
|
+
/**
|
|
743
|
+
* @remarks
|
|
744
|
+
* The JSON configuration of the custom agent. You must specify name, artifact, roleArn, and runtime.
|
|
745
|
+
*/
|
|
746
|
+
body?: CreateCustomAgentRequestBody;
|
|
747
|
+
/**
|
|
748
|
+
* @remarks
|
|
749
|
+
* Idempotency is not currently guaranteed. Do not rely on this parameter to prevent duplicate requests.
|
|
750
|
+
*
|
|
751
|
+
* @example
|
|
752
|
+
* custom-agent-request-20261010-001
|
|
753
|
+
*/
|
|
754
|
+
clientToken?: string;
|
|
755
|
+
static names(): {
|
|
756
|
+
[key: string]: string;
|
|
757
|
+
};
|
|
758
|
+
static types(): {
|
|
759
|
+
[key: string]: any;
|
|
760
|
+
};
|
|
761
|
+
validate(): void;
|
|
762
|
+
constructor(map?: {
|
|
763
|
+
[key: string]: any;
|
|
764
|
+
});
|
|
765
|
+
}
|