@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.
Files changed (105) hide show
  1. package/dist/client.d.ts +148 -2
  2. package/dist/client.js +284 -2
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateCustomAgentRequest.d.ts +765 -0
  5. package/dist/models/CreateCustomAgentRequest.js +591 -0
  6. package/dist/models/CreateCustomAgentRequest.js.map +1 -0
  7. package/dist/models/CreateCustomAgentResponse.d.ts +19 -0
  8. package/dist/models/CreateCustomAgentResponse.js +69 -0
  9. package/dist/models/CreateCustomAgentResponse.js.map +1 -0
  10. package/dist/models/CreateCustomAgentResponseBody.d.ts +923 -0
  11. package/dist/models/CreateCustomAgentResponseBody.js +652 -0
  12. package/dist/models/CreateCustomAgentResponseBody.js.map +1 -0
  13. package/dist/models/CreateCustomAgentShrinkRequest.d.ts +26 -0
  14. package/dist/models/CreateCustomAgentShrinkRequest.js +60 -0
  15. package/dist/models/CreateCustomAgentShrinkRequest.js.map +1 -0
  16. package/dist/models/CreateExternalAgentRequest.d.ts +61 -14
  17. package/dist/models/CreateExternalAgentRequest.js +29 -1
  18. package/dist/models/CreateExternalAgentRequest.js.map +1 -1
  19. package/dist/models/CreateExternalAgentResponseBody.d.ts +171 -39
  20. package/dist/models/CreateExternalAgentResponseBody.js +89 -1
  21. package/dist/models/CreateExternalAgentResponseBody.js.map +1 -1
  22. package/dist/models/CreateExternalAgentShrinkRequest.d.ts +1 -1
  23. package/dist/models/DeleteCustomAgentRequest.d.ts +13 -0
  24. package/dist/models/DeleteCustomAgentRequest.js +54 -0
  25. package/dist/models/DeleteCustomAgentRequest.js.map +1 -0
  26. package/dist/models/DeleteCustomAgentResponse.d.ts +19 -0
  27. package/dist/models/DeleteCustomAgentResponse.js +69 -0
  28. package/dist/models/DeleteCustomAgentResponse.js.map +1 -0
  29. package/dist/models/DeleteCustomAgentResponseBody.d.ts +155 -0
  30. package/dist/models/DeleteCustomAgentResponseBody.js +110 -0
  31. package/dist/models/DeleteCustomAgentResponseBody.js.map +1 -0
  32. package/dist/models/GetCustomAgentRequest.d.ts +13 -0
  33. package/dist/models/GetCustomAgentRequest.js +54 -0
  34. package/dist/models/GetCustomAgentRequest.js.map +1 -0
  35. package/dist/models/GetCustomAgentResponse.d.ts +19 -0
  36. package/dist/models/GetCustomAgentResponse.js +69 -0
  37. package/dist/models/GetCustomAgentResponse.js.map +1 -0
  38. package/dist/models/GetCustomAgentResponseBody.d.ts +655 -0
  39. package/dist/models/GetCustomAgentResponseBody.js +652 -0
  40. package/dist/models/GetCustomAgentResponseBody.js.map +1 -0
  41. package/dist/models/GetExternalAgentResponseBody.d.ts +164 -43
  42. package/dist/models/GetExternalAgentResponseBody.js +89 -1
  43. package/dist/models/GetExternalAgentResponseBody.js.map +1 -1
  44. package/dist/models/ListCustomAgentsRequest.d.ts +29 -0
  45. package/dist/models/ListCustomAgentsRequest.js +60 -0
  46. package/dist/models/ListCustomAgentsRequest.js.map +1 -0
  47. package/dist/models/ListCustomAgentsResponse.d.ts +19 -0
  48. package/dist/models/ListCustomAgentsResponse.js +69 -0
  49. package/dist/models/ListCustomAgentsResponse.js.map +1 -0
  50. package/dist/models/ListCustomAgentsResponseBody.d.ts +248 -0
  51. package/dist/models/ListCustomAgentsResponseBody.js +171 -0
  52. package/dist/models/ListCustomAgentsResponseBody.js.map +1 -0
  53. package/dist/models/ListUsersRequest.d.ts +12 -4
  54. package/dist/models/ListUsersRequest.js +2 -0
  55. package/dist/models/ListUsersRequest.js.map +1 -1
  56. package/dist/models/ListUsersResponseBody.d.ts +14 -14
  57. package/dist/models/UpdateCustomAgentRequest.d.ts +757 -0
  58. package/dist/models/UpdateCustomAgentRequest.js +591 -0
  59. package/dist/models/UpdateCustomAgentRequest.js.map +1 -0
  60. package/dist/models/UpdateCustomAgentResponse.d.ts +19 -0
  61. package/dist/models/UpdateCustomAgentResponse.js +69 -0
  62. package/dist/models/UpdateCustomAgentResponse.js.map +1 -0
  63. package/dist/models/UpdateCustomAgentResponseBody.d.ts +910 -0
  64. package/dist/models/UpdateCustomAgentResponseBody.js +652 -0
  65. package/dist/models/UpdateCustomAgentResponseBody.js.map +1 -0
  66. package/dist/models/UpdateCustomAgentShrinkRequest.d.ts +26 -0
  67. package/dist/models/UpdateCustomAgentShrinkRequest.js +60 -0
  68. package/dist/models/UpdateCustomAgentShrinkRequest.js.map +1 -0
  69. package/dist/models/UpdateExternalAgentRequest.d.ts +59 -12
  70. package/dist/models/UpdateExternalAgentRequest.js +29 -1
  71. package/dist/models/UpdateExternalAgentRequest.js.map +1 -1
  72. package/dist/models/UpdateExternalAgentResponseBody.d.ts +175 -34
  73. package/dist/models/UpdateExternalAgentResponseBody.js +89 -1
  74. package/dist/models/UpdateExternalAgentResponseBody.js.map +1 -1
  75. package/dist/models/model.d.ts +135 -0
  76. package/dist/models/model.js +337 -65
  77. package/dist/models/model.js.map +1 -1
  78. package/package.json +1 -1
  79. package/src/client.ts +303 -2
  80. package/src/models/CreateCustomAgentRequest.ts +1129 -0
  81. package/src/models/CreateCustomAgentResponse.ts +40 -0
  82. package/src/models/CreateCustomAgentResponseBody.ts +1337 -0
  83. package/src/models/CreateCustomAgentShrinkRequest.ts +41 -0
  84. package/src/models/CreateExternalAgentRequest.ts +80 -14
  85. package/src/models/CreateExternalAgentResponseBody.ts +232 -39
  86. package/src/models/CreateExternalAgentShrinkRequest.ts +1 -1
  87. package/src/models/DeleteCustomAgentRequest.ts +24 -0
  88. package/src/models/DeleteCustomAgentResponse.ts +40 -0
  89. package/src/models/DeleteCustomAgentResponseBody.ts +211 -0
  90. package/src/models/GetCustomAgentRequest.ts +24 -0
  91. package/src/models/GetCustomAgentResponse.ts +40 -0
  92. package/src/models/GetCustomAgentResponseBody.ts +1069 -0
  93. package/src/models/GetExternalAgentResponseBody.ts +225 -43
  94. package/src/models/ListCustomAgentsRequest.ts +44 -0
  95. package/src/models/ListCustomAgentsResponse.ts +40 -0
  96. package/src/models/ListCustomAgentsResponseBody.ts +345 -0
  97. package/src/models/ListUsersRequest.ts +14 -4
  98. package/src/models/ListUsersResponseBody.ts +14 -14
  99. package/src/models/UpdateCustomAgentRequest.ts +1121 -0
  100. package/src/models/UpdateCustomAgentResponse.ts +40 -0
  101. package/src/models/UpdateCustomAgentResponseBody.ts +1324 -0
  102. package/src/models/UpdateCustomAgentShrinkRequest.ts +41 -0
  103. package/src/models/UpdateExternalAgentRequest.ts +78 -12
  104. package/src/models/UpdateExternalAgentResponseBody.ts +236 -34
  105. package/src/models/model.ts +135 -0
@@ -0,0 +1,757 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class UpdateCustomAgentRequestBodyAgenticFsMounts extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * The subdirectory under /mnt/agenticfs/ in the container. This field is required for each mount item. Mount targets must not be duplicated or form parent-child overrides.
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 field 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 false indicates read and write. If 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 field 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 UpdateCustomAgentRequestBodyArtifactCode extends $dara.Model {
47
+ /**
48
+ * @remarks
49
+ * The startup entry point for the code package. Code package deployment is currently not supported. Omit this field.
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 for the code package. Code package deployment is currently not supported. Omit this field.
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 field.
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 UpdateCustomAgentRequestBodyArtifactContainer extends $dara.Model {
89
+ /**
90
+ * @remarks
91
+ * The optional executable program and startup parameters. If specified, this must be a non-empty string. When updating the artifact, omitting this field uses the default startup method of the image. To retain the original custom startup command, provide this field together.
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 field 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 field 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 field 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 field cannot be empty. When updating the tag, you must also provide 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 image source type. 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 UpdateCustomAgentRequestBodyArtifact extends $dara.Model {
159
+ /**
160
+ * @remarks
161
+ * The code package deployment configuration. This is currently not supported. Omit this field and use artifact.container instead.
162
+ */
163
+ code?: UpdateCustomAgentRequestBodyArtifactCode;
164
+ /**
165
+ * @remarks
166
+ * The ACR container image configuration. You must specify the type, instanceId, namespace, repo, and tag fields. Do not configure the code field at the same time.
167
+ */
168
+ container?: UpdateCustomAgentRequestBodyArtifactContainer;
169
+ /**
170
+ * @remarks
171
+ * The TCP port listened to by the agent service. 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 UpdateCustomAgentRequestBodyEnvironmentVariables extends $dara.Model {
191
+ /**
192
+ * @remarks
193
+ * The name of the environment variable. This field 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. This 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 UpdateCustomAgentRequestBodyEnvironment extends $dara.Model {
223
+ /**
224
+ * @remarks
225
+ * The list of environment variables. Each item includes a name and a value. This list is replaced in its entirety during an update.
226
+ */
227
+ variables?: UpdateCustomAgentRequestBodyEnvironmentVariables[];
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 UpdateCustomAgentRequestBodyHealthCheck extends $dara.Model {
240
+ /**
241
+ * @remarks
242
+ * This parameter currently does not take effect. Omit this field.
243
+ *
244
+ * @example
245
+ * 1
246
+ */
247
+ healthyThreshold?: number;
248
+ /**
249
+ * @remarks
250
+ * The interval between two health checks, in seconds. This 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. This 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 field is required when configuring a health check. 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. This 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 agent as unhealthy. This 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 UpdateCustomAgentRequestBodyLoggingSls 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 UpdateCustomAgentRequestBodyLogging extends $dara.Model {
328
+ /**
329
+ * @remarks
330
+ * The Simple Log Service log delivery destination. When updating this object, you must provide both the project and logstore fields, and they cannot be empty.
331
+ */
332
+ sls?: UpdateCustomAgentRequestBodyLoggingSls;
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 UpdateCustomAgentRequestBodyNetworkAccessInternet extends $dara.Model {
345
+ /**
346
+ * @remarks
347
+ * Specifies whether to allow the agent to access the Internet. A Boolean value is required when configuring accessInternet. For this 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 UpdateCustomAgentRequestBodyNetworkAccessVpc 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 is required when configuring accessVpc. For this 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 UpdateCustomAgentRequestBodyNetwork 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?: UpdateCustomAgentRequestBodyNetworkAccessInternet;
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?: UpdateCustomAgentRequestBodyNetworkAccessVpc;
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 UpdateCustomAgentRequestBodyOssMounts extends $dara.Model {
401
+ /**
402
+ * @remarks
403
+ * The name of the OSS bucket. This field 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 field is required for each mount item. Mount targets must not be duplicated or form parent-child overrides.
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 false indicates read and write. If 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 UpdateCustomAgentRequestBodyProtocolPaths extends $dara.Model {
442
+ /**
443
+ * @remarks
444
+ * The 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 UpdateCustomAgentRequestBodyProtocol 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?: UpdateCustomAgentRequestBodyProtocolPaths[];
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 UpdateCustomAgentRequestBodyRuntimeCompute 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 UpdateCustomAgentRequestBodyRuntimeHpa extends $dara.Model {
534
+ /**
535
+ * @remarks
536
+ * Specifies whether to enable elastic scaling. Valid values:
537
+ * - true: Enabled.
538
+ * - false: Disabled.
539
+ * When runtime is provided, omitting this field defaults to 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. When runtime is provided, omitting this field uses the default value of 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. When runtime is provided, omitting this field uses the default value of 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. When runtime is provided, omitting this field uses the default value of 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. When runtime is provided, omitting this field uses the default value of 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 UpdateCustomAgentRequestBodyRuntimeSessionPolicy 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 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 UpdateCustomAgentRequestBodyRuntime 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?: UpdateCustomAgentRequestBodyRuntimeCompute;
629
+ /**
630
+ * @remarks
631
+ * The optional elastic policy. When runtime is provided, omitting hpa or its fields uses the default values: 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?: UpdateCustomAgentRequestBodyRuntimeHpa;
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?: UpdateCustomAgentRequestBodyRuntimeSessionPolicy;
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 UpdateCustomAgentRequestBody extends $dara.Model {
653
+ /**
654
+ * @remarks
655
+ * The list of additional AgenticFS mounts. The total number of AgenticFS and OSS mounts cannot exceed 10. During creation, omitting this field or passing an empty array [] indicates no additional mounts. During an update, omitting this field retains the original value, and passing an empty array [] clears the list. You cannot pass null.
656
+ */
657
+ agenticFsMounts?: UpdateCustomAgentRequestBodyAgenticFsMounts[];
658
+ /**
659
+ * @remarks
660
+ * The deployment artifact configuration. Currently, only ACR container images are supported. Specify the container field and the service listening port field, and omit the code field. During an update, you must specify the port field and all required fields of the container object.
661
+ */
662
+ artifact?: UpdateCustomAgentRequestBodyArtifact;
663
+ /**
664
+ * @remarks
665
+ * The description of the agent\\"s purpose. The maximum length is 1,024 characters after leading and trailing whitespaces are removed. If omitted, the original value is retained. Pass null to clear the description.
666
+ *
667
+ * @example
668
+ * Custom agent that provides conversation services
669
+ */
670
+ description?: string;
671
+ /**
672
+ * @remarks
673
+ * The environment variable configuration for the agent process. Omitting this top-level field retains the original value. Providing this object but omitting the variables field clears the custom environment variables. To retain the variables, provide the complete list.
674
+ */
675
+ environment?: UpdateCustomAgentRequestBodyEnvironment;
676
+ /**
677
+ * @remarks
678
+ * The optional HTTP health check configuration. When providing this object, you must specify the port field. Other unspecified items use default values. Omitting this field during creation indicates no configuration. During an update, omitting this top-level field retains the original configuration, and passing null removes the health check.
679
+ */
680
+ healthCheck?: UpdateCustomAgentRequestBodyHealthCheck;
681
+ /**
682
+ * @remarks
683
+ * The log delivery configuration for the agent. You can specify the Simple Log Service project and logstore. After a successful creation or update, verify that logs are delivered properly.
684
+ */
685
+ logging?: UpdateCustomAgentRequestBodyLogging;
686
+ /**
687
+ * @remarks
688
+ * The name of the custom agent. The length must be 1 to 128 characters after leading and trailing whitespaces are removed. The name must be unique within the same workspace. If omitted, the original value is retained. You cannot pass null or a blank name.
689
+ *
690
+ * @example
691
+ * my-custom-agent
692
+ */
693
+ name?: string;
694
+ /**
695
+ * @remarks
696
+ * The network access configuration for the agent. When providing this object, omitted access items are treated as allowed. The actual accessible scope is still subject to the workspace network configuration. To retain the original restrictions during an update, specify both accessInternet and accessVpc.
697
+ */
698
+ network?: UpdateCustomAgentRequestBodyNetwork;
699
+ /**
700
+ * @remarks
701
+ * The list of OSS mounts. The total number of OSS and AgenticFS mounts cannot exceed 10. For each item, you must specify the bucketName, path, and mountPath fields. Mount targets must not be duplicated or overlap with each other. This list is replaced in its entirety during an update. Pass an empty array [] to clear the list.
702
+ */
703
+ ossMounts?: UpdateCustomAgentRequestBodyOssMounts[];
704
+ /**
705
+ * @remarks
706
+ * The list of invocation protocols supported by the agent. Each item includes the protocol type, along with optional paths and request headers. The entire list is replaced during an update.
707
+ */
708
+ protocol?: UpdateCustomAgentRequestBodyProtocol[];
709
+ /**
710
+ * @remarks
711
+ * The ARN of the RAM role used by the agent to access user cloud resources. The role must have permissions to access the cloud resources.
712
+ *
713
+ * @example
714
+ * acs:ram::1234567890123456:role/agentcore-runtime-role
715
+ */
716
+ roleArn?: string;
717
+ /**
718
+ * @remarks
719
+ * The runtime configuration. When this object is provided, both compute and sessionPolicy must be present. To retain the original elastic policy, provide the complete hpa configuration. Omitting the top-level runtime field retains the original configuration.
720
+ */
721
+ runtime?: UpdateCustomAgentRequestBodyRuntime;
722
+ static names(): {
723
+ [key: string]: string;
724
+ };
725
+ static types(): {
726
+ [key: string]: any;
727
+ };
728
+ validate(): void;
729
+ constructor(map?: {
730
+ [key: string]: any;
731
+ });
732
+ }
733
+ export declare class UpdateCustomAgentRequest extends $dara.Model {
734
+ /**
735
+ * @remarks
736
+ * The update configuration for the custom agent. Provide at least one top-level field. Omitted top-level fields retain their original values. When providing a configuration object, specify its required subfields and include any optional configurations that you want to retain. Arrays are replaced in their entirety.
737
+ */
738
+ body?: UpdateCustomAgentRequestBody;
739
+ /**
740
+ * @remarks
741
+ * Idempotency is not currently guaranteed. Do not rely on this parameter to prevent duplicate requests.
742
+ *
743
+ * @example
744
+ * custom-agent-request-20261010-001
745
+ */
746
+ clientToken?: string;
747
+ static names(): {
748
+ [key: string]: string;
749
+ };
750
+ static types(): {
751
+ [key: string]: any;
752
+ };
753
+ validate(): void;
754
+ constructor(map?: {
755
+ [key: string]: any;
756
+ });
757
+ }