@alicloud/agentcore20260804 2.2.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/dist/client.d.ts +162 -16
  2. package/dist/client.js +295 -16
  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/CreateManagedAgentRequest.d.ts +72 -22
  17. package/dist/models/CreateManagedAgentRequest.js +27 -1
  18. package/dist/models/CreateManagedAgentRequest.js.map +1 -1
  19. package/dist/models/CreateManagedAgentResponseBody.d.ts +109 -28
  20. package/dist/models/CreateManagedAgentResponseBody.js +27 -1
  21. package/dist/models/CreateManagedAgentResponseBody.js.map +1 -1
  22. package/dist/models/CreateManagedAgentShrinkRequest.d.ts +1 -1
  23. package/dist/models/CreateSkillDraftRequest.d.ts +1 -1
  24. package/dist/models/CreateSkillDraftResponseBody.d.ts +1 -1
  25. package/dist/models/DeleteCustomAgentRequest.d.ts +13 -0
  26. package/dist/models/DeleteCustomAgentRequest.js +54 -0
  27. package/dist/models/DeleteCustomAgentRequest.js.map +1 -0
  28. package/dist/models/DeleteCustomAgentResponse.d.ts +19 -0
  29. package/dist/models/DeleteCustomAgentResponse.js +69 -0
  30. package/dist/models/DeleteCustomAgentResponse.js.map +1 -0
  31. package/dist/models/DeleteCustomAgentResponseBody.d.ts +155 -0
  32. package/dist/models/DeleteCustomAgentResponseBody.js +110 -0
  33. package/dist/models/DeleteCustomAgentResponseBody.js.map +1 -0
  34. package/dist/models/DownloadSkillVersionViaOssResponseBody.d.ts +1 -1
  35. package/dist/models/GetAgentSpecLatestResponseBody.d.ts +19 -2
  36. package/dist/models/GetAgentSpecLatestResponseBody.js.map +1 -1
  37. package/dist/models/GetCustomAgentRequest.d.ts +13 -0
  38. package/dist/models/GetCustomAgentRequest.js +54 -0
  39. package/dist/models/GetCustomAgentRequest.js.map +1 -0
  40. package/dist/models/GetCustomAgentResponse.d.ts +19 -0
  41. package/dist/models/GetCustomAgentResponse.js +69 -0
  42. package/dist/models/GetCustomAgentResponse.js.map +1 -0
  43. package/dist/models/GetCustomAgentResponseBody.d.ts +655 -0
  44. package/dist/models/GetCustomAgentResponseBody.js +652 -0
  45. package/dist/models/GetCustomAgentResponseBody.js.map +1 -0
  46. package/dist/models/GetManagedAgentResponseBody.d.ts +115 -32
  47. package/dist/models/GetManagedAgentResponseBody.js +27 -1
  48. package/dist/models/GetManagedAgentResponseBody.js.map +1 -1
  49. package/dist/models/ListCustomAgentsRequest.d.ts +29 -0
  50. package/dist/models/ListCustomAgentsRequest.js +60 -0
  51. package/dist/models/ListCustomAgentsRequest.js.map +1 -0
  52. package/dist/models/ListCustomAgentsResponse.d.ts +19 -0
  53. package/dist/models/ListCustomAgentsResponse.js +69 -0
  54. package/dist/models/ListCustomAgentsResponse.js.map +1 -0
  55. package/dist/models/ListCustomAgentsResponseBody.d.ts +248 -0
  56. package/dist/models/ListCustomAgentsResponseBody.js +171 -0
  57. package/dist/models/ListCustomAgentsResponseBody.js.map +1 -0
  58. package/dist/models/ListSkillsRequest.d.ts +2 -2
  59. package/dist/models/ListSkillsResponseBody.d.ts +10 -3
  60. package/dist/models/ListSkillsResponseBody.js.map +1 -1
  61. package/dist/models/ListUsersRequest.d.ts +4 -4
  62. package/dist/models/ListUsersResponseBody.d.ts +15 -15
  63. package/dist/models/UpdateCustomAgentRequest.d.ts +757 -0
  64. package/dist/models/UpdateCustomAgentRequest.js +591 -0
  65. package/dist/models/UpdateCustomAgentRequest.js.map +1 -0
  66. package/dist/models/UpdateCustomAgentResponse.d.ts +19 -0
  67. package/dist/models/UpdateCustomAgentResponse.js +69 -0
  68. package/dist/models/UpdateCustomAgentResponse.js.map +1 -0
  69. package/dist/models/UpdateCustomAgentResponseBody.d.ts +910 -0
  70. package/dist/models/UpdateCustomAgentResponseBody.js +652 -0
  71. package/dist/models/UpdateCustomAgentResponseBody.js.map +1 -0
  72. package/dist/models/UpdateCustomAgentShrinkRequest.d.ts +26 -0
  73. package/dist/models/UpdateCustomAgentShrinkRequest.js +60 -0
  74. package/dist/models/UpdateCustomAgentShrinkRequest.js.map +1 -0
  75. package/dist/models/UpdateManagedAgentRequest.d.ts +61 -30
  76. package/dist/models/UpdateManagedAgentRequest.js +27 -1
  77. package/dist/models/UpdateManagedAgentRequest.js.map +1 -1
  78. package/dist/models/UpdateManagedAgentResponseBody.d.ts +61 -28
  79. package/dist/models/UpdateManagedAgentResponseBody.js +27 -1
  80. package/dist/models/UpdateManagedAgentResponseBody.js.map +1 -1
  81. package/dist/models/UpdateManagedAgentShrinkRequest.d.ts +1 -1
  82. package/dist/models/model.d.ts +129 -0
  83. package/dist/models/model.js +316 -56
  84. package/dist/models/model.js.map +1 -1
  85. package/package.json +1 -1
  86. package/src/client.ts +313 -16
  87. package/src/models/CreateCustomAgentRequest.ts +1129 -0
  88. package/src/models/CreateCustomAgentResponse.ts +40 -0
  89. package/src/models/CreateCustomAgentResponseBody.ts +1337 -0
  90. package/src/models/CreateCustomAgentShrinkRequest.ts +41 -0
  91. package/src/models/CreateManagedAgentRequest.ts +89 -22
  92. package/src/models/CreateManagedAgentResponseBody.ts +126 -28
  93. package/src/models/CreateManagedAgentShrinkRequest.ts +1 -1
  94. package/src/models/CreateSkillDraftRequest.ts +1 -1
  95. package/src/models/CreateSkillDraftResponseBody.ts +1 -1
  96. package/src/models/DeleteCustomAgentRequest.ts +24 -0
  97. package/src/models/DeleteCustomAgentResponse.ts +40 -0
  98. package/src/models/DeleteCustomAgentResponseBody.ts +211 -0
  99. package/src/models/DownloadSkillVersionViaOssResponseBody.ts +1 -1
  100. package/src/models/GetAgentSpecLatestResponseBody.ts +19 -2
  101. package/src/models/GetCustomAgentRequest.ts +24 -0
  102. package/src/models/GetCustomAgentResponse.ts +40 -0
  103. package/src/models/GetCustomAgentResponseBody.ts +1069 -0
  104. package/src/models/GetManagedAgentResponseBody.ts +132 -32
  105. package/src/models/ListCustomAgentsRequest.ts +44 -0
  106. package/src/models/ListCustomAgentsResponse.ts +40 -0
  107. package/src/models/ListCustomAgentsResponseBody.ts +345 -0
  108. package/src/models/ListSkillsRequest.ts +2 -2
  109. package/src/models/ListSkillsResponseBody.ts +10 -3
  110. package/src/models/ListUsersRequest.ts +4 -4
  111. package/src/models/ListUsersResponseBody.ts +15 -15
  112. package/src/models/UpdateCustomAgentRequest.ts +1121 -0
  113. package/src/models/UpdateCustomAgentResponse.ts +40 -0
  114. package/src/models/UpdateCustomAgentResponseBody.ts +1324 -0
  115. package/src/models/UpdateCustomAgentShrinkRequest.ts +41 -0
  116. package/src/models/UpdateManagedAgentRequest.ts +78 -30
  117. package/src/models/UpdateManagedAgentResponseBody.ts +78 -28
  118. package/src/models/UpdateManagedAgentShrinkRequest.ts +1 -1
  119. package/src/models/model.ts +129 -0
@@ -0,0 +1,1069 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetCustomAgentResponseBodyDataAgenticFsMounts extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * /mnt/agenticfs/data
9
+ */
10
+ mountPath?: string;
11
+ /**
12
+ * @example
13
+ * workspace/data
14
+ */
15
+ path?: string;
16
+ /**
17
+ * @example
18
+ * false
19
+ */
20
+ readOnly?: boolean;
21
+ /**
22
+ * @example
23
+ * ap-0123456789abcdef0.0123456789-vlm36.cn-hangzhou.nas.aliyuncs.com
24
+ */
25
+ server?: string;
26
+ static names(): { [key: string]: string } {
27
+ return {
28
+ mountPath: 'mountPath',
29
+ path: 'path',
30
+ readOnly: 'readOnly',
31
+ server: 'server',
32
+ };
33
+ }
34
+
35
+ static types(): { [key: string]: any } {
36
+ return {
37
+ mountPath: 'string',
38
+ path: 'string',
39
+ readOnly: 'boolean',
40
+ server: 'string',
41
+ };
42
+ }
43
+
44
+ validate() {
45
+ super.validate();
46
+ }
47
+
48
+ constructor(map?: { [key: string]: any }) {
49
+ super(map);
50
+ }
51
+ }
52
+
53
+ export class GetCustomAgentResponseBodyDataArtifactCode extends $dara.Model {
54
+ /**
55
+ * @remarks
56
+ * This parameter is required.
57
+ *
58
+ * @example
59
+ * python app.py
60
+ */
61
+ entrypoint?: string;
62
+ /**
63
+ * @remarks
64
+ * This parameter is required.
65
+ *
66
+ * @example
67
+ * python
68
+ */
69
+ languageRuntime?: string;
70
+ /**
71
+ * @remarks
72
+ * This parameter is required.
73
+ *
74
+ * @example
75
+ * oss://my-agent-bucket/packages/agent.zip
76
+ */
77
+ sourceUri?: string;
78
+ static names(): { [key: string]: string } {
79
+ return {
80
+ entrypoint: 'entrypoint',
81
+ languageRuntime: 'languageRuntime',
82
+ sourceUri: 'sourceUri',
83
+ };
84
+ }
85
+
86
+ static types(): { [key: string]: any } {
87
+ return {
88
+ entrypoint: 'string',
89
+ languageRuntime: 'string',
90
+ sourceUri: 'string',
91
+ };
92
+ }
93
+
94
+ validate() {
95
+ super.validate();
96
+ }
97
+
98
+ constructor(map?: { [key: string]: any }) {
99
+ super(map);
100
+ }
101
+ }
102
+
103
+ export class GetCustomAgentResponseBodyDataArtifactContainer extends $dara.Model {
104
+ /**
105
+ * @example
106
+ * python app.py
107
+ */
108
+ entrypoint?: string;
109
+ /**
110
+ * @remarks
111
+ * This parameter is required.
112
+ *
113
+ * @example
114
+ * cri-a1b2c3d4e5f6
115
+ */
116
+ instanceId?: string;
117
+ /**
118
+ * @remarks
119
+ * This parameter is required.
120
+ *
121
+ * @example
122
+ * my-agent
123
+ */
124
+ namespace?: string;
125
+ /**
126
+ * @remarks
127
+ * This parameter is required.
128
+ *
129
+ * @example
130
+ * chat-agent
131
+ */
132
+ repo?: string;
133
+ /**
134
+ * @remarks
135
+ * This parameter is required.
136
+ *
137
+ * @example
138
+ * v1.0.0
139
+ */
140
+ tag?: string;
141
+ /**
142
+ * @remarks
143
+ * This parameter is required.
144
+ *
145
+ * @example
146
+ * acr
147
+ */
148
+ type?: string;
149
+ static names(): { [key: string]: string } {
150
+ return {
151
+ entrypoint: 'entrypoint',
152
+ instanceId: 'instanceId',
153
+ namespace: 'namespace',
154
+ repo: 'repo',
155
+ tag: 'tag',
156
+ type: 'type',
157
+ };
158
+ }
159
+
160
+ static types(): { [key: string]: any } {
161
+ return {
162
+ entrypoint: 'string',
163
+ instanceId: 'string',
164
+ namespace: 'string',
165
+ repo: 'string',
166
+ tag: 'string',
167
+ type: 'string',
168
+ };
169
+ }
170
+
171
+ validate() {
172
+ super.validate();
173
+ }
174
+
175
+ constructor(map?: { [key: string]: any }) {
176
+ super(map);
177
+ }
178
+ }
179
+
180
+ export class GetCustomAgentResponseBodyDataArtifact extends $dara.Model {
181
+ code?: GetCustomAgentResponseBodyDataArtifactCode;
182
+ container?: GetCustomAgentResponseBodyDataArtifactContainer;
183
+ /**
184
+ * @remarks
185
+ * This parameter is required.
186
+ *
187
+ * @example
188
+ * 8080
189
+ */
190
+ port?: number;
191
+ static names(): { [key: string]: string } {
192
+ return {
193
+ code: 'code',
194
+ container: 'container',
195
+ port: 'port',
196
+ };
197
+ }
198
+
199
+ static types(): { [key: string]: any } {
200
+ return {
201
+ code: GetCustomAgentResponseBodyDataArtifactCode,
202
+ container: GetCustomAgentResponseBodyDataArtifactContainer,
203
+ port: 'number',
204
+ };
205
+ }
206
+
207
+ validate() {
208
+ if(this.code && typeof (this.code as any).validate === 'function') {
209
+ (this.code as any).validate();
210
+ }
211
+ if(this.container && typeof (this.container as any).validate === 'function') {
212
+ (this.container as any).validate();
213
+ }
214
+ super.validate();
215
+ }
216
+
217
+ constructor(map?: { [key: string]: any }) {
218
+ super(map);
219
+ }
220
+ }
221
+
222
+ export class GetCustomAgentResponseBodyDataEnvironmentVariables extends $dara.Model {
223
+ /**
224
+ * @remarks
225
+ * This parameter is required.
226
+ *
227
+ * @example
228
+ * LOG_LEVEL
229
+ */
230
+ name?: string;
231
+ /**
232
+ * @remarks
233
+ * This parameter is required.
234
+ *
235
+ * @example
236
+ * info
237
+ */
238
+ value?: string;
239
+ static names(): { [key: string]: string } {
240
+ return {
241
+ name: 'name',
242
+ value: 'value',
243
+ };
244
+ }
245
+
246
+ static types(): { [key: string]: any } {
247
+ return {
248
+ name: 'string',
249
+ value: 'string',
250
+ };
251
+ }
252
+
253
+ validate() {
254
+ super.validate();
255
+ }
256
+
257
+ constructor(map?: { [key: string]: any }) {
258
+ super(map);
259
+ }
260
+ }
261
+
262
+ export class GetCustomAgentResponseBodyDataEnvironment extends $dara.Model {
263
+ variables?: GetCustomAgentResponseBodyDataEnvironmentVariables[];
264
+ static names(): { [key: string]: string } {
265
+ return {
266
+ variables: 'variables',
267
+ };
268
+ }
269
+
270
+ static types(): { [key: string]: any } {
271
+ return {
272
+ variables: { 'type': 'array', 'itemType': GetCustomAgentResponseBodyDataEnvironmentVariables },
273
+ };
274
+ }
275
+
276
+ validate() {
277
+ if(Array.isArray(this.variables)) {
278
+ $dara.Model.validateArray(this.variables);
279
+ }
280
+ super.validate();
281
+ }
282
+
283
+ constructor(map?: { [key: string]: any }) {
284
+ super(map);
285
+ }
286
+ }
287
+
288
+ export class GetCustomAgentResponseBodyDataHealthCheck extends $dara.Model {
289
+ /**
290
+ * @example
291
+ * 1
292
+ */
293
+ healthyThreshold?: number;
294
+ /**
295
+ * @example
296
+ * 10
297
+ */
298
+ intervalSeconds?: number;
299
+ /**
300
+ * @example
301
+ * /healthz
302
+ */
303
+ path?: string;
304
+ /**
305
+ * @example
306
+ * 8080
307
+ */
308
+ port?: number;
309
+ /**
310
+ * @example
311
+ * 2
312
+ */
313
+ timeoutSeconds?: number;
314
+ /**
315
+ * @example
316
+ * 3
317
+ */
318
+ unhealthyThreshold?: number;
319
+ static names(): { [key: string]: string } {
320
+ return {
321
+ healthyThreshold: 'healthyThreshold',
322
+ intervalSeconds: 'intervalSeconds',
323
+ path: 'path',
324
+ port: 'port',
325
+ timeoutSeconds: 'timeoutSeconds',
326
+ unhealthyThreshold: 'unhealthyThreshold',
327
+ };
328
+ }
329
+
330
+ static types(): { [key: string]: any } {
331
+ return {
332
+ healthyThreshold: 'number',
333
+ intervalSeconds: 'number',
334
+ path: 'string',
335
+ port: 'number',
336
+ timeoutSeconds: 'number',
337
+ unhealthyThreshold: 'number',
338
+ };
339
+ }
340
+
341
+ validate() {
342
+ super.validate();
343
+ }
344
+
345
+ constructor(map?: { [key: string]: any }) {
346
+ super(map);
347
+ }
348
+ }
349
+
350
+ export class GetCustomAgentResponseBodyDataLatestExecutionError extends $dara.Model {
351
+ /**
352
+ * @example
353
+ * AgentExecutionFailed
354
+ */
355
+ code?: string;
356
+ /**
357
+ * @example
358
+ * Agent 执行失败,请检查配置后重新提交。
359
+ */
360
+ message?: string;
361
+ retryable?: boolean;
362
+ static names(): { [key: string]: string } {
363
+ return {
364
+ code: 'code',
365
+ message: 'message',
366
+ retryable: 'retryable',
367
+ };
368
+ }
369
+
370
+ static types(): { [key: string]: any } {
371
+ return {
372
+ code: 'string',
373
+ message: 'string',
374
+ retryable: 'boolean',
375
+ };
376
+ }
377
+
378
+ validate() {
379
+ super.validate();
380
+ }
381
+
382
+ constructor(map?: { [key: string]: any }) {
383
+ super(map);
384
+ }
385
+ }
386
+
387
+ export class GetCustomAgentResponseBodyDataLoggingSls extends $dara.Model {
388
+ /**
389
+ * @example
390
+ * agent-runtime
391
+ */
392
+ logstore?: string;
393
+ /**
394
+ * @example
395
+ * my-agent-logs
396
+ */
397
+ project?: string;
398
+ static names(): { [key: string]: string } {
399
+ return {
400
+ logstore: 'logstore',
401
+ project: 'project',
402
+ };
403
+ }
404
+
405
+ static types(): { [key: string]: any } {
406
+ return {
407
+ logstore: 'string',
408
+ project: 'string',
409
+ };
410
+ }
411
+
412
+ validate() {
413
+ super.validate();
414
+ }
415
+
416
+ constructor(map?: { [key: string]: any }) {
417
+ super(map);
418
+ }
419
+ }
420
+
421
+ export class GetCustomAgentResponseBodyDataLogging extends $dara.Model {
422
+ sls?: GetCustomAgentResponseBodyDataLoggingSls;
423
+ static names(): { [key: string]: string } {
424
+ return {
425
+ sls: 'sls',
426
+ };
427
+ }
428
+
429
+ static types(): { [key: string]: any } {
430
+ return {
431
+ sls: GetCustomAgentResponseBodyDataLoggingSls,
432
+ };
433
+ }
434
+
435
+ validate() {
436
+ if(this.sls && typeof (this.sls as any).validate === 'function') {
437
+ (this.sls as any).validate();
438
+ }
439
+ super.validate();
440
+ }
441
+
442
+ constructor(map?: { [key: string]: any }) {
443
+ super(map);
444
+ }
445
+ }
446
+
447
+ export class GetCustomAgentResponseBodyDataNetworkAccessInternet extends $dara.Model {
448
+ enabled?: boolean;
449
+ static names(): { [key: string]: string } {
450
+ return {
451
+ enabled: 'enabled',
452
+ };
453
+ }
454
+
455
+ static types(): { [key: string]: any } {
456
+ return {
457
+ enabled: 'boolean',
458
+ };
459
+ }
460
+
461
+ validate() {
462
+ super.validate();
463
+ }
464
+
465
+ constructor(map?: { [key: string]: any }) {
466
+ super(map);
467
+ }
468
+ }
469
+
470
+ export class GetCustomAgentResponseBodyDataNetworkAccessVpc extends $dara.Model {
471
+ enabled?: boolean;
472
+ static names(): { [key: string]: string } {
473
+ return {
474
+ enabled: 'enabled',
475
+ };
476
+ }
477
+
478
+ static types(): { [key: string]: any } {
479
+ return {
480
+ enabled: 'boolean',
481
+ };
482
+ }
483
+
484
+ validate() {
485
+ super.validate();
486
+ }
487
+
488
+ constructor(map?: { [key: string]: any }) {
489
+ super(map);
490
+ }
491
+ }
492
+
493
+ export class GetCustomAgentResponseBodyDataNetwork extends $dara.Model {
494
+ accessInternet?: GetCustomAgentResponseBodyDataNetworkAccessInternet;
495
+ accessVpc?: GetCustomAgentResponseBodyDataNetworkAccessVpc;
496
+ static names(): { [key: string]: string } {
497
+ return {
498
+ accessInternet: 'accessInternet',
499
+ accessVpc: 'accessVpc',
500
+ };
501
+ }
502
+
503
+ static types(): { [key: string]: any } {
504
+ return {
505
+ accessInternet: GetCustomAgentResponseBodyDataNetworkAccessInternet,
506
+ accessVpc: GetCustomAgentResponseBodyDataNetworkAccessVpc,
507
+ };
508
+ }
509
+
510
+ validate() {
511
+ if(this.accessInternet && typeof (this.accessInternet as any).validate === 'function') {
512
+ (this.accessInternet as any).validate();
513
+ }
514
+ if(this.accessVpc && typeof (this.accessVpc as any).validate === 'function') {
515
+ (this.accessVpc as any).validate();
516
+ }
517
+ super.validate();
518
+ }
519
+
520
+ constructor(map?: { [key: string]: any }) {
521
+ super(map);
522
+ }
523
+ }
524
+
525
+ export class GetCustomAgentResponseBodyDataOssMounts extends $dara.Model {
526
+ /**
527
+ * @example
528
+ * my-agent-data
529
+ */
530
+ bucketName?: string;
531
+ /**
532
+ * @example
533
+ * /mnt/oss/train
534
+ */
535
+ mountPath?: string;
536
+ /**
537
+ * @example
538
+ * datasets/train
539
+ */
540
+ path?: string;
541
+ readOnly?: boolean;
542
+ static names(): { [key: string]: string } {
543
+ return {
544
+ bucketName: 'bucketName',
545
+ mountPath: 'mountPath',
546
+ path: 'path',
547
+ readOnly: 'readOnly',
548
+ };
549
+ }
550
+
551
+ static types(): { [key: string]: any } {
552
+ return {
553
+ bucketName: 'string',
554
+ mountPath: 'string',
555
+ path: 'string',
556
+ readOnly: 'boolean',
557
+ };
558
+ }
559
+
560
+ validate() {
561
+ super.validate();
562
+ }
563
+
564
+ constructor(map?: { [key: string]: any }) {
565
+ super(map);
566
+ }
567
+ }
568
+
569
+ export class GetCustomAgentResponseBodyDataProtocolPaths extends $dara.Model {
570
+ /**
571
+ * @example
572
+ * AG-UI 对话接口
573
+ */
574
+ description?: string;
575
+ /**
576
+ * @remarks
577
+ * This parameter is required.
578
+ *
579
+ * @example
580
+ * /agui
581
+ */
582
+ name?: string;
583
+ static names(): { [key: string]: string } {
584
+ return {
585
+ description: 'description',
586
+ name: 'name',
587
+ };
588
+ }
589
+
590
+ static types(): { [key: string]: any } {
591
+ return {
592
+ description: 'string',
593
+ name: 'string',
594
+ };
595
+ }
596
+
597
+ validate() {
598
+ super.validate();
599
+ }
600
+
601
+ constructor(map?: { [key: string]: any }) {
602
+ super(map);
603
+ }
604
+ }
605
+
606
+ export class GetCustomAgentResponseBodyDataProtocol extends $dara.Model {
607
+ headers?: { [key: string]: string };
608
+ paths?: GetCustomAgentResponseBodyDataProtocolPaths[];
609
+ /**
610
+ * @remarks
611
+ * This parameter is required.
612
+ *
613
+ * @example
614
+ * agui
615
+ */
616
+ type?: string;
617
+ static names(): { [key: string]: string } {
618
+ return {
619
+ headers: 'headers',
620
+ paths: 'paths',
621
+ type: 'type',
622
+ };
623
+ }
624
+
625
+ static types(): { [key: string]: any } {
626
+ return {
627
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
628
+ paths: { 'type': 'array', 'itemType': GetCustomAgentResponseBodyDataProtocolPaths },
629
+ type: 'string',
630
+ };
631
+ }
632
+
633
+ validate() {
634
+ if(this.headers) {
635
+ $dara.Model.validateMap(this.headers);
636
+ }
637
+ if(Array.isArray(this.paths)) {
638
+ $dara.Model.validateArray(this.paths);
639
+ }
640
+ super.validate();
641
+ }
642
+
643
+ constructor(map?: { [key: string]: any }) {
644
+ super(map);
645
+ }
646
+ }
647
+
648
+ export class GetCustomAgentResponseBodyDataRuntimeCompute extends $dara.Model {
649
+ /**
650
+ * @remarks
651
+ * This parameter is required.
652
+ *
653
+ * @example
654
+ * STANDARD
655
+ */
656
+ computeClass?: string;
657
+ static names(): { [key: string]: string } {
658
+ return {
659
+ computeClass: 'computeClass',
660
+ };
661
+ }
662
+
663
+ static types(): { [key: string]: any } {
664
+ return {
665
+ computeClass: 'string',
666
+ };
667
+ }
668
+
669
+ validate() {
670
+ super.validate();
671
+ }
672
+
673
+ constructor(map?: { [key: string]: any }) {
674
+ super(map);
675
+ }
676
+ }
677
+
678
+ export class GetCustomAgentResponseBodyDataRuntimeHpa extends $dara.Model {
679
+ /**
680
+ * @remarks
681
+ * This parameter is required.
682
+ */
683
+ enabled?: boolean;
684
+ /**
685
+ * @remarks
686
+ * 正整数,必须与 sessionTtlSeconds 同时配置。
687
+ *
688
+ * @example
689
+ * 100
690
+ */
691
+ maxConcurrentSessionsPerSandbox?: number;
692
+ /**
693
+ * @remarks
694
+ * 开启时为正整数,关闭时为非负整数;不得小于 minSandboxCount。
695
+ *
696
+ * @example
697
+ * 10
698
+ */
699
+ maxSandboxCount?: number;
700
+ /**
701
+ * @remarks
702
+ * 非负整数。开启弹性时必填;关闭时如提供上下限,必须成对提供。
703
+ *
704
+ * @example
705
+ * 1
706
+ */
707
+ minSandboxCount?: number;
708
+ /**
709
+ * @remarks
710
+ * 正整数,必须与 maxConcurrentSessionsPerSandbox 同时配置。
711
+ *
712
+ * @example
713
+ * 600
714
+ */
715
+ sessionTtlSeconds?: number;
716
+ static names(): { [key: string]: string } {
717
+ return {
718
+ enabled: 'enabled',
719
+ maxConcurrentSessionsPerSandbox: 'maxConcurrentSessionsPerSandbox',
720
+ maxSandboxCount: 'maxSandboxCount',
721
+ minSandboxCount: 'minSandboxCount',
722
+ sessionTtlSeconds: 'sessionTtlSeconds',
723
+ };
724
+ }
725
+
726
+ static types(): { [key: string]: any } {
727
+ return {
728
+ enabled: 'boolean',
729
+ maxConcurrentSessionsPerSandbox: 'number',
730
+ maxSandboxCount: 'number',
731
+ minSandboxCount: 'number',
732
+ sessionTtlSeconds: 'number',
733
+ };
734
+ }
735
+
736
+ validate() {
737
+ super.validate();
738
+ }
739
+
740
+ constructor(map?: { [key: string]: any }) {
741
+ super(map);
742
+ }
743
+ }
744
+
745
+ export class GetCustomAgentResponseBodyDataRuntimeSessionPolicy extends $dara.Model {
746
+ /**
747
+ * @example
748
+ * X-Session-Id
749
+ */
750
+ headerName?: string;
751
+ /**
752
+ * @remarks
753
+ * This parameter is required.
754
+ *
755
+ * @example
756
+ * AFFINITY
757
+ */
758
+ type?: string;
759
+ static names(): { [key: string]: string } {
760
+ return {
761
+ headerName: 'headerName',
762
+ type: 'type',
763
+ };
764
+ }
765
+
766
+ static types(): { [key: string]: any } {
767
+ return {
768
+ headerName: 'string',
769
+ type: 'string',
770
+ };
771
+ }
772
+
773
+ validate() {
774
+ super.validate();
775
+ }
776
+
777
+ constructor(map?: { [key: string]: any }) {
778
+ super(map);
779
+ }
780
+ }
781
+
782
+ export class GetCustomAgentResponseBodyDataRuntime extends $dara.Model {
783
+ /**
784
+ * @remarks
785
+ * This parameter is required.
786
+ */
787
+ compute?: GetCustomAgentResponseBodyDataRuntimeCompute;
788
+ /**
789
+ * @remarks
790
+ * Agent 当前 spec 版本的 HPA 配置,与 Managed Agent 一致。开启时必须提供最小和最大 Sandbox 数;并发会话上限与会话空闲超时必须一起配置。
791
+ */
792
+ hpa?: GetCustomAgentResponseBodyDataRuntimeHpa;
793
+ /**
794
+ * @remarks
795
+ * This parameter is required.
796
+ */
797
+ sessionPolicy?: GetCustomAgentResponseBodyDataRuntimeSessionPolicy;
798
+ static names(): { [key: string]: string } {
799
+ return {
800
+ compute: 'compute',
801
+ hpa: 'hpa',
802
+ sessionPolicy: 'sessionPolicy',
803
+ };
804
+ }
805
+
806
+ static types(): { [key: string]: any } {
807
+ return {
808
+ compute: GetCustomAgentResponseBodyDataRuntimeCompute,
809
+ hpa: GetCustomAgentResponseBodyDataRuntimeHpa,
810
+ sessionPolicy: GetCustomAgentResponseBodyDataRuntimeSessionPolicy,
811
+ };
812
+ }
813
+
814
+ validate() {
815
+ if(this.compute && typeof (this.compute as any).validate === 'function') {
816
+ (this.compute as any).validate();
817
+ }
818
+ if(this.hpa && typeof (this.hpa as any).validate === 'function') {
819
+ (this.hpa as any).validate();
820
+ }
821
+ if(this.sessionPolicy && typeof (this.sessionPolicy as any).validate === 'function') {
822
+ (this.sessionPolicy as any).validate();
823
+ }
824
+ super.validate();
825
+ }
826
+
827
+ constructor(map?: { [key: string]: any }) {
828
+ super(map);
829
+ }
830
+ }
831
+
832
+ export class GetCustomAgentResponseBodyData extends $dara.Model {
833
+ /**
834
+ * @example
835
+ * agent-550e8400e29b41d4a716446655440000
836
+ */
837
+ agentId?: string;
838
+ agenticFsMounts?: GetCustomAgentResponseBodyDataAgenticFsMounts[];
839
+ artifact?: GetCustomAgentResponseBodyDataArtifact;
840
+ /**
841
+ * @example
842
+ * CUSTOM
843
+ */
844
+ createMode?: string;
845
+ /**
846
+ * @example
847
+ * 2026-10-10T06:00:00Z
848
+ */
849
+ createdAt?: string;
850
+ /**
851
+ * @example
852
+ * MANAGED
853
+ */
854
+ deployType?: string;
855
+ /**
856
+ * @example
857
+ * 提供对话服务的自定义智能体
858
+ */
859
+ description?: string;
860
+ environment?: GetCustomAgentResponseBodyDataEnvironment;
861
+ healthCheck?: GetCustomAgentResponseBodyDataHealthCheck;
862
+ /**
863
+ * @remarks
864
+ * 可选。仅解释同一响应 latestSpecVersion/latestVersionStatus 的等待或失败;正常待处理、执行中或成功时省略。消息由 Console 白名单映射,不返回原始运行时诊断、Checkpoint 或凭证。
865
+ */
866
+ latestExecutionError?: GetCustomAgentResponseBodyDataLatestExecutionError;
867
+ /**
868
+ * @example
869
+ * 1
870
+ */
871
+ latestSpecVersion?: number;
872
+ /**
873
+ * @example
874
+ * succeeded
875
+ */
876
+ latestVersionStatus?: string;
877
+ logging?: GetCustomAgentResponseBodyDataLogging;
878
+ /**
879
+ * @example
880
+ * my-custom-agent
881
+ */
882
+ name?: string;
883
+ network?: GetCustomAgentResponseBodyDataNetwork;
884
+ ossMounts?: GetCustomAgentResponseBodyDataOssMounts[];
885
+ protocol?: GetCustomAgentResponseBodyDataProtocol[];
886
+ /**
887
+ * @example
888
+ * cn-hangzhou
889
+ */
890
+ regionId?: string;
891
+ /**
892
+ * @example
893
+ * acs:ram::1234567890123456:role/agentcore-runtime-role
894
+ */
895
+ roleArn?: string;
896
+ runtime?: GetCustomAgentResponseBodyDataRuntime;
897
+ sandboxPhaseCounts?: { [key: string]: number };
898
+ /**
899
+ * @example
900
+ * Running
901
+ */
902
+ status?: string;
903
+ /**
904
+ * @example
905
+ * 2026-10-10T06:05:00Z
906
+ */
907
+ updatedAt?: string;
908
+ /**
909
+ * @example
910
+ * ws-a1b2c3d4e5f6
911
+ */
912
+ workspaceId?: string;
913
+ static names(): { [key: string]: string } {
914
+ return {
915
+ agentId: 'agentId',
916
+ agenticFsMounts: 'agenticFsMounts',
917
+ artifact: 'artifact',
918
+ createMode: 'createMode',
919
+ createdAt: 'createdAt',
920
+ deployType: 'deployType',
921
+ description: 'description',
922
+ environment: 'environment',
923
+ healthCheck: 'healthCheck',
924
+ latestExecutionError: 'latestExecutionError',
925
+ latestSpecVersion: 'latestSpecVersion',
926
+ latestVersionStatus: 'latestVersionStatus',
927
+ logging: 'logging',
928
+ name: 'name',
929
+ network: 'network',
930
+ ossMounts: 'ossMounts',
931
+ protocol: 'protocol',
932
+ regionId: 'regionId',
933
+ roleArn: 'roleArn',
934
+ runtime: 'runtime',
935
+ sandboxPhaseCounts: 'sandboxPhaseCounts',
936
+ status: 'status',
937
+ updatedAt: 'updatedAt',
938
+ workspaceId: 'workspaceId',
939
+ };
940
+ }
941
+
942
+ static types(): { [key: string]: any } {
943
+ return {
944
+ agentId: 'string',
945
+ agenticFsMounts: { 'type': 'array', 'itemType': GetCustomAgentResponseBodyDataAgenticFsMounts },
946
+ artifact: GetCustomAgentResponseBodyDataArtifact,
947
+ createMode: 'string',
948
+ createdAt: 'string',
949
+ deployType: 'string',
950
+ description: 'string',
951
+ environment: GetCustomAgentResponseBodyDataEnvironment,
952
+ healthCheck: GetCustomAgentResponseBodyDataHealthCheck,
953
+ latestExecutionError: GetCustomAgentResponseBodyDataLatestExecutionError,
954
+ latestSpecVersion: 'number',
955
+ latestVersionStatus: 'string',
956
+ logging: GetCustomAgentResponseBodyDataLogging,
957
+ name: 'string',
958
+ network: GetCustomAgentResponseBodyDataNetwork,
959
+ ossMounts: { 'type': 'array', 'itemType': GetCustomAgentResponseBodyDataOssMounts },
960
+ protocol: { 'type': 'array', 'itemType': GetCustomAgentResponseBodyDataProtocol },
961
+ regionId: 'string',
962
+ roleArn: 'string',
963
+ runtime: GetCustomAgentResponseBodyDataRuntime,
964
+ sandboxPhaseCounts: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' },
965
+ status: 'string',
966
+ updatedAt: 'string',
967
+ workspaceId: 'string',
968
+ };
969
+ }
970
+
971
+ validate() {
972
+ if(Array.isArray(this.agenticFsMounts)) {
973
+ $dara.Model.validateArray(this.agenticFsMounts);
974
+ }
975
+ if(this.artifact && typeof (this.artifact as any).validate === 'function') {
976
+ (this.artifact as any).validate();
977
+ }
978
+ if(this.environment && typeof (this.environment as any).validate === 'function') {
979
+ (this.environment as any).validate();
980
+ }
981
+ if(this.healthCheck && typeof (this.healthCheck as any).validate === 'function') {
982
+ (this.healthCheck as any).validate();
983
+ }
984
+ if(this.latestExecutionError && typeof (this.latestExecutionError as any).validate === 'function') {
985
+ (this.latestExecutionError as any).validate();
986
+ }
987
+ if(this.logging && typeof (this.logging as any).validate === 'function') {
988
+ (this.logging as any).validate();
989
+ }
990
+ if(this.network && typeof (this.network as any).validate === 'function') {
991
+ (this.network as any).validate();
992
+ }
993
+ if(Array.isArray(this.ossMounts)) {
994
+ $dara.Model.validateArray(this.ossMounts);
995
+ }
996
+ if(Array.isArray(this.protocol)) {
997
+ $dara.Model.validateArray(this.protocol);
998
+ }
999
+ if(this.runtime && typeof (this.runtime as any).validate === 'function') {
1000
+ (this.runtime as any).validate();
1001
+ }
1002
+ if(this.sandboxPhaseCounts) {
1003
+ $dara.Model.validateMap(this.sandboxPhaseCounts);
1004
+ }
1005
+ super.validate();
1006
+ }
1007
+
1008
+ constructor(map?: { [key: string]: any }) {
1009
+ super(map);
1010
+ }
1011
+ }
1012
+
1013
+ export class GetCustomAgentResponseBody extends $dara.Model {
1014
+ /**
1015
+ * @example
1016
+ * SUCCESS
1017
+ */
1018
+ code?: string;
1019
+ data?: GetCustomAgentResponseBodyData;
1020
+ /**
1021
+ * @example
1022
+ * 200
1023
+ */
1024
+ httpStatusCode?: number;
1025
+ /**
1026
+ * @example
1027
+ * success
1028
+ */
1029
+ message?: string;
1030
+ /**
1031
+ * @example
1032
+ * 550E8400-E29B-41D4-A716-446655440000
1033
+ */
1034
+ requestId?: string;
1035
+ success?: boolean;
1036
+ static names(): { [key: string]: string } {
1037
+ return {
1038
+ code: 'code',
1039
+ data: 'data',
1040
+ httpStatusCode: 'httpStatusCode',
1041
+ message: 'message',
1042
+ requestId: 'requestId',
1043
+ success: 'success',
1044
+ };
1045
+ }
1046
+
1047
+ static types(): { [key: string]: any } {
1048
+ return {
1049
+ code: 'string',
1050
+ data: GetCustomAgentResponseBodyData,
1051
+ httpStatusCode: 'number',
1052
+ message: 'string',
1053
+ requestId: 'string',
1054
+ success: 'boolean',
1055
+ };
1056
+ }
1057
+
1058
+ validate() {
1059
+ if(this.data && typeof (this.data as any).validate === 'function') {
1060
+ (this.data as any).validate();
1061
+ }
1062
+ super.validate();
1063
+ }
1064
+
1065
+ constructor(map?: { [key: string]: any }) {
1066
+ super(map);
1067
+ }
1068
+ }
1069
+