@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.
Files changed (81) hide show
  1. package/dist/client.d.ts +148 -2
  2. package/dist/client.js +281 -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/DeleteCustomAgentRequest.d.ts +13 -0
  17. package/dist/models/DeleteCustomAgentRequest.js +54 -0
  18. package/dist/models/DeleteCustomAgentRequest.js.map +1 -0
  19. package/dist/models/DeleteCustomAgentResponse.d.ts +19 -0
  20. package/dist/models/DeleteCustomAgentResponse.js +69 -0
  21. package/dist/models/DeleteCustomAgentResponse.js.map +1 -0
  22. package/dist/models/DeleteCustomAgentResponseBody.d.ts +155 -0
  23. package/dist/models/DeleteCustomAgentResponseBody.js +110 -0
  24. package/dist/models/DeleteCustomAgentResponseBody.js.map +1 -0
  25. package/dist/models/GetCustomAgentRequest.d.ts +13 -0
  26. package/dist/models/GetCustomAgentRequest.js +54 -0
  27. package/dist/models/GetCustomAgentRequest.js.map +1 -0
  28. package/dist/models/GetCustomAgentResponse.d.ts +19 -0
  29. package/dist/models/GetCustomAgentResponse.js +69 -0
  30. package/dist/models/GetCustomAgentResponse.js.map +1 -0
  31. package/dist/models/GetCustomAgentResponseBody.d.ts +655 -0
  32. package/dist/models/GetCustomAgentResponseBody.js +652 -0
  33. package/dist/models/GetCustomAgentResponseBody.js.map +1 -0
  34. package/dist/models/ListCustomAgentsRequest.d.ts +29 -0
  35. package/dist/models/ListCustomAgentsRequest.js +60 -0
  36. package/dist/models/ListCustomAgentsRequest.js.map +1 -0
  37. package/dist/models/ListCustomAgentsResponse.d.ts +19 -0
  38. package/dist/models/ListCustomAgentsResponse.js +69 -0
  39. package/dist/models/ListCustomAgentsResponse.js.map +1 -0
  40. package/dist/models/ListCustomAgentsResponseBody.d.ts +248 -0
  41. package/dist/models/ListCustomAgentsResponseBody.js +171 -0
  42. package/dist/models/ListCustomAgentsResponseBody.js.map +1 -0
  43. package/dist/models/ListUsersRequest.d.ts +4 -4
  44. package/dist/models/ListUsersResponseBody.d.ts +15 -15
  45. package/dist/models/UpdateCustomAgentRequest.d.ts +757 -0
  46. package/dist/models/UpdateCustomAgentRequest.js +591 -0
  47. package/dist/models/UpdateCustomAgentRequest.js.map +1 -0
  48. package/dist/models/UpdateCustomAgentResponse.d.ts +19 -0
  49. package/dist/models/UpdateCustomAgentResponse.js +69 -0
  50. package/dist/models/UpdateCustomAgentResponse.js.map +1 -0
  51. package/dist/models/UpdateCustomAgentResponseBody.d.ts +910 -0
  52. package/dist/models/UpdateCustomAgentResponseBody.js +652 -0
  53. package/dist/models/UpdateCustomAgentResponseBody.js.map +1 -0
  54. package/dist/models/UpdateCustomAgentShrinkRequest.d.ts +26 -0
  55. package/dist/models/UpdateCustomAgentShrinkRequest.js +60 -0
  56. package/dist/models/UpdateCustomAgentShrinkRequest.js.map +1 -0
  57. package/dist/models/model.d.ts +124 -0
  58. package/dist/models/model.js +271 -21
  59. package/dist/models/model.js.map +1 -1
  60. package/package.json +1 -1
  61. package/src/client.ts +299 -2
  62. package/src/models/CreateCustomAgentRequest.ts +1129 -0
  63. package/src/models/CreateCustomAgentResponse.ts +40 -0
  64. package/src/models/CreateCustomAgentResponseBody.ts +1337 -0
  65. package/src/models/CreateCustomAgentShrinkRequest.ts +41 -0
  66. package/src/models/DeleteCustomAgentRequest.ts +24 -0
  67. package/src/models/DeleteCustomAgentResponse.ts +40 -0
  68. package/src/models/DeleteCustomAgentResponseBody.ts +211 -0
  69. package/src/models/GetCustomAgentRequest.ts +24 -0
  70. package/src/models/GetCustomAgentResponse.ts +40 -0
  71. package/src/models/GetCustomAgentResponseBody.ts +1069 -0
  72. package/src/models/ListCustomAgentsRequest.ts +44 -0
  73. package/src/models/ListCustomAgentsResponse.ts +40 -0
  74. package/src/models/ListCustomAgentsResponseBody.ts +345 -0
  75. package/src/models/ListUsersRequest.ts +4 -4
  76. package/src/models/ListUsersResponseBody.ts +15 -15
  77. package/src/models/UpdateCustomAgentRequest.ts +1121 -0
  78. package/src/models/UpdateCustomAgentResponse.ts +40 -0
  79. package/src/models/UpdateCustomAgentResponseBody.ts +1324 -0
  80. package/src/models/UpdateCustomAgentShrinkRequest.ts +41 -0
  81. package/src/models/model.ts +124 -0
@@ -0,0 +1,910 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class UpdateCustomAgentResponseBodyDataAgenticFsMounts extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * The AgenticFS mount directory in the container, located under /mnt/agenticfs/.
6
+ *
7
+ * @example
8
+ * /mnt/agenticfs/data
9
+ */
10
+ mountPath?: string;
11
+ /**
12
+ * @remarks
13
+ * The relative directory within the mounted AccessPoint.
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.
22
+ *
23
+ * @example
24
+ * false
25
+ */
26
+ readOnly?: boolean;
27
+ /**
28
+ * @remarks
29
+ * The domain name of the AgenticFS AccessPoint used for the mount.
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 UpdateCustomAgentResponseBodyDataArtifactCode extends $dara.Model {
47
+ /**
48
+ * @remarks
49
+ * The startup entry point of the code package. Code package deployment is not supported.
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 not supported.
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 not supported.
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 UpdateCustomAgentResponseBodyDataArtifactContainer extends $dara.Model {
89
+ /**
90
+ * @remarks
91
+ * The custom executable program and startup parameters. If not configured, 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.
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.
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.
120
+ *
121
+ * This parameter is required.
122
+ *
123
+ * @example
124
+ * chat-agent
125
+ */
126
+ repo?: string;
127
+ /**
128
+ * @remarks
129
+ * The latest submitted image tag.
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. A value of acr 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 UpdateCustomAgentResponseBodyDataArtifact extends $dara.Model {
159
+ /**
160
+ * @remarks
161
+ * The code package configuration field. Code package deployment is not supported.
162
+ */
163
+ code?: UpdateCustomAgentResponseBodyDataArtifactCode;
164
+ /**
165
+ * @remarks
166
+ * The latest submitted ACR container image configuration.
167
+ */
168
+ container?: UpdateCustomAgentResponseBodyDataArtifactContainer;
169
+ /**
170
+ * @remarks
171
+ * The TCP port listened on by the agent service.
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 UpdateCustomAgentResponseBodyDataEnvironmentVariables extends $dara.Model {
191
+ /**
192
+ * @remarks
193
+ * The name of the environment variable.
194
+ *
195
+ * This parameter is required.
196
+ *
197
+ * @example
198
+ * LOG_LEVEL
199
+ */
200
+ name?: string;
201
+ /**
202
+ * @remarks
203
+ * The string value of the environment variable. 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 UpdateCustomAgentResponseBodyDataEnvironment extends $dara.Model {
223
+ /**
224
+ * @remarks
225
+ * The latest submitted list of environment variables.
226
+ */
227
+ variables?: UpdateCustomAgentResponseBodyDataEnvironmentVariables[];
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 UpdateCustomAgentResponseBodyDataHealthCheck extends $dara.Model {
240
+ /**
241
+ * @remarks
242
+ * This parameter does not take effect.
243
+ *
244
+ * @example
245
+ * 1
246
+ */
247
+ healthyThreshold?: number;
248
+ /**
249
+ * @remarks
250
+ * The interval between two consecutive health checks, in seconds.
251
+ *
252
+ * @example
253
+ * 10
254
+ */
255
+ intervalSeconds?: number;
256
+ /**
257
+ * @remarks
258
+ * The health check path.
259
+ *
260
+ * @example
261
+ * /healthz
262
+ */
263
+ path?: string;
264
+ /**
265
+ * @remarks
266
+ * The port accessed for the HTTP health check.
267
+ *
268
+ * @example
269
+ * 8080
270
+ */
271
+ port?: number;
272
+ /**
273
+ * @remarks
274
+ * The timeout period for a single health check, in seconds.
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.
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 UpdateCustomAgentResponseBodyDataLatestExecutionError extends $dara.Model {
300
+ /**
301
+ * @remarks
302
+ * The reason code for the waiting or execution failure of the latest configuration. This code is used to determine the subsequent processing method.
303
+ *
304
+ * @example
305
+ * AgentExecutionFailed
306
+ */
307
+ code?: string;
308
+ /**
309
+ * @remarks
310
+ * The description of the reason why the latest configuration is waiting or failed to execute. Refer to code and retryable to determine what to do next.
311
+ *
312
+ * @example
313
+ * Agent execution failed. Check the configuration and resubmit
314
+ */
315
+ message?: string;
316
+ /**
317
+ * @remarks
318
+ * Specifies whether automatic retry is performed. If the value is true, you can query again later. If the value is false, check and fix the configuration based on the reason, and then resubmit.
319
+ */
320
+ retryable?: boolean;
321
+ static names(): {
322
+ [key: string]: string;
323
+ };
324
+ static types(): {
325
+ [key: string]: any;
326
+ };
327
+ validate(): void;
328
+ constructor(map?: {
329
+ [key: string]: any;
330
+ });
331
+ }
332
+ export declare class UpdateCustomAgentResponseBodyDataLoggingSls extends $dara.Model {
333
+ /**
334
+ * @remarks
335
+ * The name of the Simple Log Service logstore that receives agent logs.
336
+ *
337
+ * @example
338
+ * agent-runtime
339
+ */
340
+ logstore?: string;
341
+ /**
342
+ * @remarks
343
+ * The name of the Simple Log Service project that receives agent logs.
344
+ *
345
+ * @example
346
+ * my-agent-logs
347
+ */
348
+ project?: string;
349
+ static names(): {
350
+ [key: string]: string;
351
+ };
352
+ static types(): {
353
+ [key: string]: any;
354
+ };
355
+ validate(): void;
356
+ constructor(map?: {
357
+ [key: string]: any;
358
+ });
359
+ }
360
+ export declare class UpdateCustomAgentResponseBodyDataLogging extends $dara.Model {
361
+ /**
362
+ * @remarks
363
+ * The Simple Log Service (SLS) log delivery destination.
364
+ */
365
+ sls?: UpdateCustomAgentResponseBodyDataLoggingSls;
366
+ static names(): {
367
+ [key: string]: string;
368
+ };
369
+ static types(): {
370
+ [key: string]: any;
371
+ };
372
+ validate(): void;
373
+ constructor(map?: {
374
+ [key: string]: any;
375
+ });
376
+ }
377
+ export declare class UpdateCustomAgentResponseBodyDataNetworkAccessInternet extends $dara.Model {
378
+ /**
379
+ * @remarks
380
+ * Specifies whether Internet access is allowed on the agent side. The actual access is still restricted by the workspace.
381
+ */
382
+ enabled?: boolean;
383
+ static names(): {
384
+ [key: string]: string;
385
+ };
386
+ static types(): {
387
+ [key: string]: any;
388
+ };
389
+ validate(): void;
390
+ constructor(map?: {
391
+ [key: string]: any;
392
+ });
393
+ }
394
+ export declare class UpdateCustomAgentResponseBodyDataNetworkAccessVpc extends $dara.Model {
395
+ /**
396
+ * @remarks
397
+ * 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.
398
+ */
399
+ enabled?: boolean;
400
+ static names(): {
401
+ [key: string]: string;
402
+ };
403
+ static types(): {
404
+ [key: string]: any;
405
+ };
406
+ validate(): void;
407
+ constructor(map?: {
408
+ [key: string]: any;
409
+ });
410
+ }
411
+ export declare class UpdateCustomAgentResponseBodyDataNetwork extends $dara.Model {
412
+ /**
413
+ * @remarks
414
+ * 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.
415
+ */
416
+ accessInternet?: UpdateCustomAgentResponseBodyDataNetworkAccessInternet;
417
+ /**
418
+ * @remarks
419
+ * 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.
420
+ */
421
+ accessVpc?: UpdateCustomAgentResponseBodyDataNetworkAccessVpc;
422
+ static names(): {
423
+ [key: string]: string;
424
+ };
425
+ static types(): {
426
+ [key: string]: any;
427
+ };
428
+ validate(): void;
429
+ constructor(map?: {
430
+ [key: string]: any;
431
+ });
432
+ }
433
+ export declare class UpdateCustomAgentResponseBodyDataOssMounts extends $dara.Model {
434
+ /**
435
+ * @remarks
436
+ * The name of the mounted OSS bucket.
437
+ *
438
+ * @example
439
+ * my-agent-data
440
+ */
441
+ bucketName?: string;
442
+ /**
443
+ * @remarks
444
+ * The OSS mount directory in the container, located under /mnt/oss/.
445
+ *
446
+ * @example
447
+ * /mnt/oss/train
448
+ */
449
+ mountPath?: string;
450
+ /**
451
+ * @remarks
452
+ * The object directory prefix in the mounted bucket.
453
+ *
454
+ * @example
455
+ * datasets/train
456
+ */
457
+ path?: string;
458
+ /**
459
+ * @remarks
460
+ * Specifies whether the mount is read-only. A value of true indicates read-only, and a value of false indicates read and write.
461
+ */
462
+ readOnly?: boolean;
463
+ static names(): {
464
+ [key: string]: string;
465
+ };
466
+ static types(): {
467
+ [key: string]: any;
468
+ };
469
+ validate(): void;
470
+ constructor(map?: {
471
+ [key: string]: any;
472
+ });
473
+ }
474
+ export declare class UpdateCustomAgentResponseBodyDataProtocolPaths extends $dara.Model {
475
+ /**
476
+ * @remarks
477
+ * The description of the current API path.
478
+ *
479
+ * @example
480
+ * AG-UI conversation API
481
+ */
482
+ description?: string;
483
+ /**
484
+ * @remarks
485
+ * The API path corresponding to the current protocol.
486
+ *
487
+ * This parameter is required.
488
+ *
489
+ * @example
490
+ * /agui
491
+ */
492
+ name?: string;
493
+ static names(): {
494
+ [key: string]: string;
495
+ };
496
+ static types(): {
497
+ [key: string]: any;
498
+ };
499
+ validate(): void;
500
+ constructor(map?: {
501
+ [key: string]: any;
502
+ });
503
+ }
504
+ export declare class UpdateCustomAgentResponseBodyDataProtocol extends $dara.Model {
505
+ /**
506
+ * @remarks
507
+ * The request header configurations for the current protocol, where the key is the name and the value is a string.
508
+ */
509
+ headers?: {
510
+ [key: string]: string;
511
+ };
512
+ /**
513
+ * @remarks
514
+ * The list of API paths corresponding to the current protocol.
515
+ */
516
+ paths?: UpdateCustomAgentResponseBodyDataProtocolPaths[];
517
+ /**
518
+ * @remarks
519
+ * The invocation protocol type. Valid values:
520
+ * - agui: AG-UI protocol.
521
+ * - openai-chat-completion: OpenAI Chat Completions compatible protocol.
522
+ * - custom: Custom protocol.
523
+ *
524
+ * This parameter is required.
525
+ *
526
+ * @example
527
+ * agui
528
+ */
529
+ type?: string;
530
+ static names(): {
531
+ [key: string]: string;
532
+ };
533
+ static types(): {
534
+ [key: string]: any;
535
+ };
536
+ validate(): void;
537
+ constructor(map?: {
538
+ [key: string]: any;
539
+ });
540
+ }
541
+ export declare class UpdateCustomAgentResponseBodyDataRuntimeCompute extends $dara.Model {
542
+ /**
543
+ * @remarks
544
+ * The compute specification. Valid values:
545
+ * - INTERACTIVE: 1 vCPU and 2 GiB of memory.
546
+ * - STANDARD: 2 vCPUs and 4 GiB of memory.
547
+ * - HEAVY: 4 vCPUs and 8 GiB of memory.
548
+ *
549
+ * This parameter is required.
550
+ *
551
+ * @example
552
+ * STANDARD
553
+ */
554
+ computeClass?: string;
555
+ static names(): {
556
+ [key: string]: string;
557
+ };
558
+ static types(): {
559
+ [key: string]: any;
560
+ };
561
+ validate(): void;
562
+ constructor(map?: {
563
+ [key: string]: any;
564
+ });
565
+ }
566
+ export declare class UpdateCustomAgentResponseBodyDataRuntimeHpa extends $dara.Model {
567
+ /**
568
+ * @remarks
569
+ * Specifies whether elastic scaling is enabled. A value of true indicates that elastic scaling is enabled, and a value of false indicates that elastic scaling is disabled.
570
+ *
571
+ * This parameter is required.
572
+ */
573
+ enabled?: boolean;
574
+ /**
575
+ * @remarks
576
+ * The maximum number of concurrent sessions configured for a single running instance.
577
+ *
578
+ * @example
579
+ * 100
580
+ */
581
+ maxConcurrentSessionsPerSandbox?: number;
582
+ /**
583
+ * @remarks
584
+ * The maximum number of running instances configured.
585
+ *
586
+ * @example
587
+ * 10
588
+ */
589
+ maxSandboxCount?: number;
590
+ /**
591
+ * @remarks
592
+ * The minimum number of running instances configured.
593
+ *
594
+ * @example
595
+ * 1
596
+ */
597
+ minSandboxCount?: number;
598
+ /**
599
+ * @remarks
600
+ * The maximum idle time configured for a session, in seconds.
601
+ *
602
+ * @example
603
+ * 600
604
+ */
605
+ sessionTtlSeconds?: number;
606
+ static names(): {
607
+ [key: string]: string;
608
+ };
609
+ static types(): {
610
+ [key: string]: any;
611
+ };
612
+ validate(): void;
613
+ constructor(map?: {
614
+ [key: string]: any;
615
+ });
616
+ }
617
+ export declare class UpdateCustomAgentResponseBodyDataRuntimeSessionPolicy extends $dara.Model {
618
+ /**
619
+ * @remarks
620
+ * The name of the HTTP request header used by the session policy. This parameter is applicable to ISOLATED_HEADER_FIELD.
621
+ *
622
+ * @example
623
+ * X-Session-Id
624
+ */
625
+ headerName?: string;
626
+ /**
627
+ * @remarks
628
+ * The type of the session policy. Valid values: AFFINITY (session affinity), ISOLATED_HEADER_FIELD (associates sessions by using the request header specified by headerName), and ISOLATED_COOKIE (not recommended). The compatible value DISABLED in requests is returned as AFFINITY.
629
+ *
630
+ * This parameter is required.
631
+ *
632
+ * @example
633
+ * AFFINITY
634
+ */
635
+ type?: string;
636
+ static names(): {
637
+ [key: string]: string;
638
+ };
639
+ static types(): {
640
+ [key: string]: any;
641
+ };
642
+ validate(): void;
643
+ constructor(map?: {
644
+ [key: string]: any;
645
+ });
646
+ }
647
+ export declare class UpdateCustomAgentResponseBodyDataRuntime extends $dara.Model {
648
+ /**
649
+ * @remarks
650
+ * The compute resource configuration for the agent runtime instance.
651
+ *
652
+ * This parameter is required.
653
+ */
654
+ compute?: UpdateCustomAgentResponseBodyDataRuntimeCompute;
655
+ /**
656
+ * @remarks
657
+ * The elastic policy configurations for the agent.
658
+ */
659
+ hpa?: UpdateCustomAgentResponseBodyDataRuntimeHpa;
660
+ /**
661
+ * @remarks
662
+ * The session policy configurations for the agent.
663
+ *
664
+ * This parameter is required.
665
+ */
666
+ sessionPolicy?: UpdateCustomAgentResponseBodyDataRuntimeSessionPolicy;
667
+ static names(): {
668
+ [key: string]: string;
669
+ };
670
+ static types(): {
671
+ [key: string]: any;
672
+ };
673
+ validate(): void;
674
+ constructor(map?: {
675
+ [key: string]: any;
676
+ });
677
+ }
678
+ export declare class UpdateCustomAgentResponseBodyData extends $dara.Model {
679
+ /**
680
+ * @remarks
681
+ * The unique identifier of the custom agent. You can obtain this ID from the response of the CreateCustomAgent or ListCustomAgents operation.
682
+ *
683
+ * @example
684
+ * agent-550e8400e29b41d4a716446655440000
685
+ */
686
+ agentId?: string;
687
+ /**
688
+ * @remarks
689
+ * The latest submitted list of additional AgenticFS mounts.
690
+ */
691
+ agenticFsMounts?: UpdateCustomAgentResponseBodyDataAgenticFsMounts[];
692
+ /**
693
+ * @remarks
694
+ * The latest submitted deployment artifact configuration, including the service listening port and ACR container image. Check latestVersionStatus to determine whether the configuration has taken effect.
695
+ */
696
+ artifact?: UpdateCustomAgentResponseBodyDataArtifact;
697
+ /**
698
+ * @remarks
699
+ * The creation method of the agent. The value is CUSTOM for custom agents.
700
+ *
701
+ * @example
702
+ * CUSTOM
703
+ */
704
+ createMode?: string;
705
+ /**
706
+ * @remarks
707
+ * 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.
708
+ *
709
+ * @example
710
+ * 2026-10-10T06:00:00Z
711
+ */
712
+ createdAt?: string;
713
+ /**
714
+ * @remarks
715
+ * The deployment method of the agent. Custom agents are deployed and managed by the platform, and the value is MANAGED.
716
+ *
717
+ * @example
718
+ * MANAGED
719
+ */
720
+ deployType?: string;
721
+ /**
722
+ * @remarks
723
+ * The description of the agent\\"s purpose.
724
+ *
725
+ * @example
726
+ * Custom agent that provides conversation services
727
+ */
728
+ description?: string;
729
+ /**
730
+ * @remarks
731
+ * The environment variable configuration for the agent process.
732
+ */
733
+ environment?: UpdateCustomAgentResponseBodyDataEnvironment;
734
+ /**
735
+ * @remarks
736
+ * The HTTP health check configuration of the agent. This field is empty if no configuration is specified.
737
+ */
738
+ healthCheck?: UpdateCustomAgentResponseBodyDataHealthCheck;
739
+ /**
740
+ * @remarks
741
+ * 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.
742
+ */
743
+ latestExecutionError?: UpdateCustomAgentResponseBodyDataLatestExecutionError;
744
+ /**
745
+ * @remarks
746
+ * The current 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.
747
+ *
748
+ * @example
749
+ * 1
750
+ */
751
+ latestSpecVersion?: number;
752
+ /**
753
+ * @remarks
754
+ * The execution status corresponding to latestSpecVersion. Valid values:
755
+ * - pending: Waiting for execution.
756
+ * - processing: Executing.
757
+ * - waiting_retry: Waiting for retry.
758
+ * - succeeded: Execution succeeded.
759
+ * - failed: Execution failed.
760
+ * - superseded: Superseded by a subsequent version.
761
+ *
762
+ * @example
763
+ * succeeded
764
+ */
765
+ latestVersionStatus?: string;
766
+ /**
767
+ * @remarks
768
+ * The latest submitted log delivery configuration.
769
+ */
770
+ logging?: UpdateCustomAgentResponseBodyDataLogging;
771
+ /**
772
+ * @remarks
773
+ * The name of the custom agent.
774
+ *
775
+ * @example
776
+ * my-custom-agent
777
+ */
778
+ name?: string;
779
+ /**
780
+ * @remarks
781
+ * The network access configuration of the agent. The actual access scope is also restricted by the workspace network configuration.
782
+ */
783
+ network?: UpdateCustomAgentResponseBodyDataNetwork;
784
+ /**
785
+ * @remarks
786
+ * The latest submitted list of OSS directory mounts.
787
+ */
788
+ ossMounts?: UpdateCustomAgentResponseBodyDataOssMounts[];
789
+ /**
790
+ * @remarks
791
+ * The list of invocation protocol configurations for the agent.
792
+ */
793
+ protocol?: UpdateCustomAgentResponseBodyDataProtocol[];
794
+ /**
795
+ * @remarks
796
+ * The region ID of the workspace to which the agent belongs.
797
+ *
798
+ * @example
799
+ * cn-hangzhou
800
+ */
801
+ regionId?: string;
802
+ /**
803
+ * @remarks
804
+ * The ARN of the RAM role used by the agent to access user cloud resources.
805
+ *
806
+ * @example
807
+ * acs:ram::1234567890123456:role/agentcore-runtime-role
808
+ */
809
+ roleArn?: string;
810
+ /**
811
+ * @remarks
812
+ * The latest committed runtime configurations, including compute specifications, session policy, and elastic policy.
813
+ */
814
+ runtime?: UpdateCustomAgentResponseBodyDataRuntime;
815
+ /**
816
+ * @remarks
817
+ * The counts of running instances by 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.
818
+ */
819
+ sandboxPhaseCounts?: {
820
+ [key: string]: number;
821
+ };
822
+ /**
823
+ * @remarks
824
+ * The overall status of the agent. Valid values: Creating (creating), Running (running), Failed (failed), Updating (updating), Deleting (deleting), and Deleted (deleted). To check the execution progress of the latest configuration, query latestVersionStatus.
825
+ *
826
+ * @example
827
+ * Running
828
+ */
829
+ status?: string;
830
+ /**
831
+ * @remarks
832
+ * The time when the agent was last updated. The time follows the ISO 8601 standard. A trailing Z indicates the UTC time zone. Fractional seconds may be included.
833
+ *
834
+ * @example
835
+ * 2026-10-10T06:05:00Z
836
+ */
837
+ updatedAt?: string;
838
+ /**
839
+ * @remarks
840
+ * The ID of the workspace to which the custom agent belongs.
841
+ *
842
+ * @example
843
+ * ws-a1b2c3d4e5f6
844
+ */
845
+ workspaceId?: string;
846
+ static names(): {
847
+ [key: string]: string;
848
+ };
849
+ static types(): {
850
+ [key: string]: any;
851
+ };
852
+ validate(): void;
853
+ constructor(map?: {
854
+ [key: string]: any;
855
+ });
856
+ }
857
+ export declare class UpdateCustomAgentResponseBody extends $dara.Model {
858
+ /**
859
+ * @remarks
860
+ * The request result code. The value is SUCCESS when the request is successful.
861
+ *
862
+ * @example
863
+ * SUCCESS
864
+ */
865
+ code?: string;
866
+ /**
867
+ * @remarks
868
+ * 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.
869
+ */
870
+ data?: UpdateCustomAgentResponseBodyData;
871
+ /**
872
+ * @remarks
873
+ * The HTTP status code of the request. A value of 200 indicates success.
874
+ *
875
+ * @example
876
+ * 200
877
+ */
878
+ httpStatusCode?: number;
879
+ /**
880
+ * @remarks
881
+ * The processing result message of the request. The value is success if the request is successful.
882
+ *
883
+ * @example
884
+ * success
885
+ */
886
+ message?: string;
887
+ /**
888
+ * @remarks
889
+ * The unique identifier of the request, which is used to locate and troubleshoot issues.
890
+ *
891
+ * @example
892
+ * 550E8400-E29B-41D4-A716-446655440000
893
+ */
894
+ requestId?: string;
895
+ /**
896
+ * @remarks
897
+ * Indicates whether the request was processed successfully. A value of true indicates that the request was processed successfully. A successful creation, update, or deletion does not mean that the background operation is complete.
898
+ */
899
+ success?: boolean;
900
+ static names(): {
901
+ [key: string]: string;
902
+ };
903
+ static types(): {
904
+ [key: string]: any;
905
+ };
906
+ validate(): void;
907
+ constructor(map?: {
908
+ [key: string]: any;
909
+ });
910
+ }