@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,1129 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CreateCustomAgentRequestBodyAgenticFsMounts extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The subdirectory under /mnt/agenticfs/ in the container. This parameter is required for each mount item. Mount targets must not be duplicated or overlap in a parent-child relationship.
9
+ *
10
+ * @example
11
+ * /mnt/agenticfs/data
12
+ */
13
+ mountPath?: string;
14
+ /**
15
+ * @remarks
16
+ * The existing non-empty relative directory under the access point. This parameter is required for each mount item. Root directories, absolute paths, and parent directory traversals are not allowed.
17
+ *
18
+ * @example
19
+ * workspace/data
20
+ */
21
+ path?: string;
22
+ /**
23
+ * @remarks
24
+ * Specifies whether the mount is read-only. A value of true indicates read-only, and a value of false indicates read and write. If this parameter is omitted, the default value is false.
25
+ *
26
+ * @example
27
+ * false
28
+ */
29
+ readOnly?: boolean;
30
+ /**
31
+ * @remarks
32
+ * The domain name of the access point. This parameter is required for each mount item. Use the DomainName value from the NAS ListAccessPoints response. Do not include the protocol, port, or path.
33
+ *
34
+ * @example
35
+ * ap-0123456789abcdef0.0123456789-vlm36.cn-hangzhou.nas.aliyuncs.com
36
+ */
37
+ server?: string;
38
+ static names(): { [key: string]: string } {
39
+ return {
40
+ mountPath: 'mountPath',
41
+ path: 'path',
42
+ readOnly: 'readOnly',
43
+ server: 'server',
44
+ };
45
+ }
46
+
47
+ static types(): { [key: string]: any } {
48
+ return {
49
+ mountPath: 'string',
50
+ path: 'string',
51
+ readOnly: 'boolean',
52
+ server: 'string',
53
+ };
54
+ }
55
+
56
+ validate() {
57
+ super.validate();
58
+ }
59
+
60
+ constructor(map?: { [key: string]: any }) {
61
+ super(map);
62
+ }
63
+ }
64
+
65
+ export class CreateCustomAgentRequestBodyArtifactCode extends $dara.Model {
66
+ /**
67
+ * @remarks
68
+ * The startup entry point of the code package. Code package deployment is currently not supported. Omit this parameter.
69
+ *
70
+ * This parameter is required.
71
+ *
72
+ * @example
73
+ * python app.py
74
+ */
75
+ entrypoint?: string;
76
+ /**
77
+ * @remarks
78
+ * The language runtime identifier of the code package. Code package deployment is currently not supported. Omit this parameter.
79
+ *
80
+ * This parameter is required.
81
+ *
82
+ * @example
83
+ * python
84
+ */
85
+ languageRuntime?: string;
86
+ /**
87
+ * @remarks
88
+ * The source URI of the code package. Code package deployment is currently not supported. Omit this parameter.
89
+ *
90
+ * This parameter is required.
91
+ *
92
+ * @example
93
+ * oss://my-agent-bucket/packages/agent.zip
94
+ */
95
+ sourceUri?: string;
96
+ static names(): { [key: string]: string } {
97
+ return {
98
+ entrypoint: 'entrypoint',
99
+ languageRuntime: 'languageRuntime',
100
+ sourceUri: 'sourceUri',
101
+ };
102
+ }
103
+
104
+ static types(): { [key: string]: any } {
105
+ return {
106
+ entrypoint: 'string',
107
+ languageRuntime: 'string',
108
+ sourceUri: 'string',
109
+ };
110
+ }
111
+
112
+ validate() {
113
+ super.validate();
114
+ }
115
+
116
+ constructor(map?: { [key: string]: any }) {
117
+ super(map);
118
+ }
119
+ }
120
+
121
+ export class CreateCustomAgentRequestBodyArtifactContainer extends $dara.Model {
122
+ /**
123
+ * @remarks
124
+ * The optional image startup command. If specified, it must be a non-empty string. If omitted, the default startup method of the image is used.
125
+ *
126
+ * @example
127
+ * python app.py
128
+ */
129
+ entrypoint?: string;
130
+ /**
131
+ * @remarks
132
+ * The ID of the ACR instance to which the image repository belongs. This parameter cannot be empty.
133
+ *
134
+ * This parameter is required.
135
+ *
136
+ * @example
137
+ * cri-a1b2c3d4e5f6
138
+ */
139
+ instanceId?: string;
140
+ /**
141
+ * @remarks
142
+ * The namespace to which the ACR image repository belongs. This parameter cannot be empty.
143
+ *
144
+ * This parameter is required.
145
+ *
146
+ * @example
147
+ * my-agent
148
+ */
149
+ namespace?: string;
150
+ /**
151
+ * @remarks
152
+ * The name of the image repository in the ACR namespace. This parameter cannot be empty.
153
+ *
154
+ * This parameter is required.
155
+ *
156
+ * @example
157
+ * chat-agent
158
+ */
159
+ repo?: string;
160
+ /**
161
+ * @remarks
162
+ * The image tag used for deployment. This parameter cannot be empty. When updating the tag, you must also specify artifact.port and other required image fields.
163
+ *
164
+ * This parameter is required.
165
+ *
166
+ * @example
167
+ * v1.0.0
168
+ */
169
+ tag?: string;
170
+ /**
171
+ * @remarks
172
+ * The source type of the image. Currently, only acr is supported, which indicates Alibaba Cloud Container Registry (ACR).
173
+ *
174
+ * This parameter is required.
175
+ *
176
+ * @example
177
+ * acr
178
+ */
179
+ type?: string;
180
+ static names(): { [key: string]: string } {
181
+ return {
182
+ entrypoint: 'entrypoint',
183
+ instanceId: 'instanceId',
184
+ namespace: 'namespace',
185
+ repo: 'repo',
186
+ tag: 'tag',
187
+ type: 'type',
188
+ };
189
+ }
190
+
191
+ static types(): { [key: string]: any } {
192
+ return {
193
+ entrypoint: 'string',
194
+ instanceId: 'string',
195
+ namespace: 'string',
196
+ repo: 'string',
197
+ tag: 'string',
198
+ type: 'string',
199
+ };
200
+ }
201
+
202
+ validate() {
203
+ super.validate();
204
+ }
205
+
206
+ constructor(map?: { [key: string]: any }) {
207
+ super(map);
208
+ }
209
+ }
210
+
211
+ export class CreateCustomAgentRequestBodyArtifact extends $dara.Model {
212
+ /**
213
+ * @remarks
214
+ * The code package deployment configuration. This feature is currently not supported. Omit this parameter and use artifact.container.
215
+ */
216
+ code?: CreateCustomAgentRequestBodyArtifactCode;
217
+ /**
218
+ * @remarks
219
+ * The ACR container image configuration. You must specify type, instanceId, namespace, repo, and tag. Do not configure code at the same time.
220
+ */
221
+ container?: CreateCustomAgentRequestBodyArtifactContainer;
222
+ /**
223
+ * @remarks
224
+ * The TCP port on which the agent service listens. Valid values: 1 to 65535.
225
+ *
226
+ * This parameter is required.
227
+ *
228
+ * @example
229
+ * 8080
230
+ */
231
+ port?: number;
232
+ static names(): { [key: string]: string } {
233
+ return {
234
+ code: 'code',
235
+ container: 'container',
236
+ port: 'port',
237
+ };
238
+ }
239
+
240
+ static types(): { [key: string]: any } {
241
+ return {
242
+ code: CreateCustomAgentRequestBodyArtifactCode,
243
+ container: CreateCustomAgentRequestBodyArtifactContainer,
244
+ port: 'number',
245
+ };
246
+ }
247
+
248
+ validate() {
249
+ if(this.code && typeof (this.code as any).validate === 'function') {
250
+ (this.code as any).validate();
251
+ }
252
+ if(this.container && typeof (this.container as any).validate === 'function') {
253
+ (this.container as any).validate();
254
+ }
255
+ super.validate();
256
+ }
257
+
258
+ constructor(map?: { [key: string]: any }) {
259
+ super(map);
260
+ }
261
+ }
262
+
263
+ export class CreateCustomAgentRequestBodyEnvironmentVariables extends $dara.Model {
264
+ /**
265
+ * @remarks
266
+ * The name of the environment variable. This parameter cannot be empty and must be unique within the current environment variable list.
267
+ *
268
+ * This parameter is required.
269
+ *
270
+ * @example
271
+ * LOG_LEVEL
272
+ */
273
+ name?: string;
274
+ /**
275
+ * @remarks
276
+ * The value of the environment variable. It must be a string. Empty strings are allowed.
277
+ *
278
+ * This parameter is required.
279
+ *
280
+ * @example
281
+ * info
282
+ */
283
+ value?: string;
284
+ static names(): { [key: string]: string } {
285
+ return {
286
+ name: 'name',
287
+ value: 'value',
288
+ };
289
+ }
290
+
291
+ static types(): { [key: string]: any } {
292
+ return {
293
+ name: 'string',
294
+ value: 'string',
295
+ };
296
+ }
297
+
298
+ validate() {
299
+ super.validate();
300
+ }
301
+
302
+ constructor(map?: { [key: string]: any }) {
303
+ super(map);
304
+ }
305
+ }
306
+
307
+ export class CreateCustomAgentRequestBodyEnvironment extends $dara.Model {
308
+ /**
309
+ * @remarks
310
+ * The list of environment variables. Each item includes a name and a value. The entire list is replaced during an update.
311
+ */
312
+ variables?: CreateCustomAgentRequestBodyEnvironmentVariables[];
313
+ static names(): { [key: string]: string } {
314
+ return {
315
+ variables: 'variables',
316
+ };
317
+ }
318
+
319
+ static types(): { [key: string]: any } {
320
+ return {
321
+ variables: { 'type': 'array', 'itemType': CreateCustomAgentRequestBodyEnvironmentVariables },
322
+ };
323
+ }
324
+
325
+ validate() {
326
+ if(Array.isArray(this.variables)) {
327
+ $dara.Model.validateArray(this.variables);
328
+ }
329
+ super.validate();
330
+ }
331
+
332
+ constructor(map?: { [key: string]: any }) {
333
+ super(map);
334
+ }
335
+ }
336
+
337
+ export class CreateCustomAgentRequestBodyHealthCheck extends $dara.Model {
338
+ /**
339
+ * @remarks
340
+ * This parameter does not take effect. Omit this parameter.
341
+ *
342
+ * @example
343
+ * 1
344
+ */
345
+ healthyThreshold?: number;
346
+ /**
347
+ * @remarks
348
+ * The interval between two health checks, in seconds. It must be a positive integer. If omitted, the default value is 10.
349
+ *
350
+ * @example
351
+ * 10
352
+ */
353
+ intervalSeconds?: number;
354
+ /**
355
+ * @remarks
356
+ * The HTTP health check path. It must start with a forward slash (/). If omitted, the default value is /healthz.
357
+ *
358
+ * @example
359
+ * /healthz
360
+ */
361
+ path?: string;
362
+ /**
363
+ * @remarks
364
+ * The port accessed for health checks. This parameter is required when configuring health checks. Valid values: 1 to 65535.
365
+ *
366
+ * @example
367
+ * 8080
368
+ */
369
+ port?: number;
370
+ /**
371
+ * @remarks
372
+ * The timeout period for a single health check, in seconds. It must be a positive integer and less than intervalSeconds. If omitted, the default value is 2.
373
+ *
374
+ * @example
375
+ * 2
376
+ */
377
+ timeoutSeconds?: number;
378
+ /**
379
+ * @remarks
380
+ * The number of consecutive health check failures required to mark the target as unhealthy. It must be a positive integer. If omitted, the default value is 3.
381
+ *
382
+ * @example
383
+ * 3
384
+ */
385
+ unhealthyThreshold?: number;
386
+ static names(): { [key: string]: string } {
387
+ return {
388
+ healthyThreshold: 'healthyThreshold',
389
+ intervalSeconds: 'intervalSeconds',
390
+ path: 'path',
391
+ port: 'port',
392
+ timeoutSeconds: 'timeoutSeconds',
393
+ unhealthyThreshold: 'unhealthyThreshold',
394
+ };
395
+ }
396
+
397
+ static types(): { [key: string]: any } {
398
+ return {
399
+ healthyThreshold: 'number',
400
+ intervalSeconds: 'number',
401
+ path: 'string',
402
+ port: 'number',
403
+ timeoutSeconds: 'number',
404
+ unhealthyThreshold: 'number',
405
+ };
406
+ }
407
+
408
+ validate() {
409
+ super.validate();
410
+ }
411
+
412
+ constructor(map?: { [key: string]: any }) {
413
+ super(map);
414
+ }
415
+ }
416
+
417
+ export class CreateCustomAgentRequestBodyLoggingSls extends $dara.Model {
418
+ /**
419
+ * @remarks
420
+ * The name of the Simple Log Service Logstore that receives agent logs.
421
+ *
422
+ * @example
423
+ * agent-runtime
424
+ */
425
+ logstore?: string;
426
+ /**
427
+ * @remarks
428
+ * The name of the Simple Log Service project that receives agent logs.
429
+ *
430
+ * @example
431
+ * my-agent-logs
432
+ */
433
+ project?: string;
434
+ static names(): { [key: string]: string } {
435
+ return {
436
+ logstore: 'logstore',
437
+ project: 'project',
438
+ };
439
+ }
440
+
441
+ static types(): { [key: string]: any } {
442
+ return {
443
+ logstore: 'string',
444
+ project: 'string',
445
+ };
446
+ }
447
+
448
+ validate() {
449
+ super.validate();
450
+ }
451
+
452
+ constructor(map?: { [key: string]: any }) {
453
+ super(map);
454
+ }
455
+ }
456
+
457
+ export class CreateCustomAgentRequestBodyLogging extends $dara.Model {
458
+ /**
459
+ * @remarks
460
+ * The Simple Log Service log delivery destination. When configuring this object, neither project nor logstore can be empty.
461
+ */
462
+ sls?: CreateCustomAgentRequestBodyLoggingSls;
463
+ static names(): { [key: string]: string } {
464
+ return {
465
+ sls: 'sls',
466
+ };
467
+ }
468
+
469
+ static types(): { [key: string]: any } {
470
+ return {
471
+ sls: CreateCustomAgentRequestBodyLoggingSls,
472
+ };
473
+ }
474
+
475
+ validate() {
476
+ if(this.sls && typeof (this.sls as any).validate === 'function') {
477
+ (this.sls as any).validate();
478
+ }
479
+ super.validate();
480
+ }
481
+
482
+ constructor(map?: { [key: string]: any }) {
483
+ super(map);
484
+ }
485
+ }
486
+
487
+ export class CreateCustomAgentRequestBodyNetworkAccessInternet extends $dara.Model {
488
+ /**
489
+ * @remarks
490
+ * Specifies whether to allow the agent to access the Internet. A Boolean value must be provided when configuring accessInternet. For this setting to take effect, the workspace must also allow Internet access.
491
+ */
492
+ enabled?: boolean;
493
+ static names(): { [key: string]: string } {
494
+ return {
495
+ enabled: 'enabled',
496
+ };
497
+ }
498
+
499
+ static types(): { [key: string]: any } {
500
+ return {
501
+ enabled: 'boolean',
502
+ };
503
+ }
504
+
505
+ validate() {
506
+ super.validate();
507
+ }
508
+
509
+ constructor(map?: { [key: string]: any }) {
510
+ super(map);
511
+ }
512
+ }
513
+
514
+ export class CreateCustomAgentRequestBodyNetworkAccessVpc extends $dara.Model {
515
+ /**
516
+ * @remarks
517
+ * Specifies whether to allow the agent to access the user VPC configured for the workspace. A Boolean value must be provided when configuring accessVpc. For this setting to take effect, the workspace must also allow VPC access.
518
+ */
519
+ enabled?: boolean;
520
+ static names(): { [key: string]: string } {
521
+ return {
522
+ enabled: 'enabled',
523
+ };
524
+ }
525
+
526
+ static types(): { [key: string]: any } {
527
+ return {
528
+ enabled: 'boolean',
529
+ };
530
+ }
531
+
532
+ validate() {
533
+ super.validate();
534
+ }
535
+
536
+ constructor(map?: { [key: string]: any }) {
537
+ super(map);
538
+ }
539
+ }
540
+
541
+ export class CreateCustomAgentRequestBodyNetwork extends $dara.Model {
542
+ /**
543
+ * @remarks
544
+ * 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.
545
+ */
546
+ accessInternet?: CreateCustomAgentRequestBodyNetworkAccessInternet;
547
+ /**
548
+ * @remarks
549
+ * 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.
550
+ */
551
+ accessVpc?: CreateCustomAgentRequestBodyNetworkAccessVpc;
552
+ static names(): { [key: string]: string } {
553
+ return {
554
+ accessInternet: 'accessInternet',
555
+ accessVpc: 'accessVpc',
556
+ };
557
+ }
558
+
559
+ static types(): { [key: string]: any } {
560
+ return {
561
+ accessInternet: CreateCustomAgentRequestBodyNetworkAccessInternet,
562
+ accessVpc: CreateCustomAgentRequestBodyNetworkAccessVpc,
563
+ };
564
+ }
565
+
566
+ validate() {
567
+ if(this.accessInternet && typeof (this.accessInternet as any).validate === 'function') {
568
+ (this.accessInternet as any).validate();
569
+ }
570
+ if(this.accessVpc && typeof (this.accessVpc as any).validate === 'function') {
571
+ (this.accessVpc as any).validate();
572
+ }
573
+ super.validate();
574
+ }
575
+
576
+ constructor(map?: { [key: string]: any }) {
577
+ super(map);
578
+ }
579
+ }
580
+
581
+ export class CreateCustomAgentRequestBodyOssMounts extends $dara.Model {
582
+ /**
583
+ * @remarks
584
+ * The name of the OSS bucket. This parameter is required for each mount item. The name must be 3 to 63 characters in length and can contain only lowercase letters, digits, and hyphens. It cannot start or end with a hyphen.
585
+ *
586
+ * @example
587
+ * my-agent-data
588
+ */
589
+ bucketName?: string;
590
+ /**
591
+ * @remarks
592
+ * The subdirectory under /mnt/oss/ in the container. This parameter is required for each mount item. Mount targets must not be duplicated or overlap in a parent-child relationship.
593
+ *
594
+ * @example
595
+ * /mnt/oss/train
596
+ */
597
+ mountPath?: string;
598
+ /**
599
+ * @remarks
600
+ * 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.
601
+ *
602
+ * @example
603
+ * datasets/train
604
+ */
605
+ path?: string;
606
+ /**
607
+ * @remarks
608
+ * Specifies whether the mount is read-only. A value of true indicates read-only, and a value of false indicates read and write. If this parameter is omitted, the default value is false.
609
+ */
610
+ readOnly?: boolean;
611
+ static names(): { [key: string]: string } {
612
+ return {
613
+ bucketName: 'bucketName',
614
+ mountPath: 'mountPath',
615
+ path: 'path',
616
+ readOnly: 'readOnly',
617
+ };
618
+ }
619
+
620
+ static types(): { [key: string]: any } {
621
+ return {
622
+ bucketName: 'string',
623
+ mountPath: 'string',
624
+ path: 'string',
625
+ readOnly: 'boolean',
626
+ };
627
+ }
628
+
629
+ validate() {
630
+ super.validate();
631
+ }
632
+
633
+ constructor(map?: { [key: string]: any }) {
634
+ super(map);
635
+ }
636
+ }
637
+
638
+ export class CreateCustomAgentRequestBodyProtocolPaths extends $dara.Model {
639
+ /**
640
+ * @remarks
641
+ * The usage description of the current API path.
642
+ *
643
+ * @example
644
+ * AG-UI conversation API
645
+ */
646
+ description?: string;
647
+ /**
648
+ * @remarks
649
+ * The non-empty API path corresponding to the current protocol.
650
+ *
651
+ * This parameter is required.
652
+ *
653
+ * @example
654
+ * /agui
655
+ */
656
+ name?: string;
657
+ static names(): { [key: string]: string } {
658
+ return {
659
+ description: 'description',
660
+ name: 'name',
661
+ };
662
+ }
663
+
664
+ static types(): { [key: string]: any } {
665
+ return {
666
+ description: 'string',
667
+ name: 'string',
668
+ };
669
+ }
670
+
671
+ validate() {
672
+ super.validate();
673
+ }
674
+
675
+ constructor(map?: { [key: string]: any }) {
676
+ super(map);
677
+ }
678
+ }
679
+
680
+ export class CreateCustomAgentRequestBodyProtocol extends $dara.Model {
681
+ /**
682
+ * @remarks
683
+ * The request header configuration for the current protocol. The key is a non-empty request header name, and the value must be a string.
684
+ */
685
+ headers?: { [key: string]: string };
686
+ /**
687
+ * @remarks
688
+ * The list of API paths corresponding to the current protocol.
689
+ */
690
+ paths?: CreateCustomAgentRequestBodyProtocolPaths[];
691
+ /**
692
+ * @remarks
693
+ * The invocation protocol type. Valid values:
694
+ * - agui: AG-UI protocol.
695
+ * - openai-chat-completion: OpenAI Chat Completions compatible protocol.
696
+ * - custom: Custom protocol.
697
+ *
698
+ * This parameter is required.
699
+ *
700
+ * @example
701
+ * agui
702
+ */
703
+ type?: string;
704
+ static names(): { [key: string]: string } {
705
+ return {
706
+ headers: 'headers',
707
+ paths: 'paths',
708
+ type: 'type',
709
+ };
710
+ }
711
+
712
+ static types(): { [key: string]: any } {
713
+ return {
714
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
715
+ paths: { 'type': 'array', 'itemType': CreateCustomAgentRequestBodyProtocolPaths },
716
+ type: 'string',
717
+ };
718
+ }
719
+
720
+ validate() {
721
+ if(this.headers) {
722
+ $dara.Model.validateMap(this.headers);
723
+ }
724
+ if(Array.isArray(this.paths)) {
725
+ $dara.Model.validateArray(this.paths);
726
+ }
727
+ super.validate();
728
+ }
729
+
730
+ constructor(map?: { [key: string]: any }) {
731
+ super(map);
732
+ }
733
+ }
734
+
735
+ export class CreateCustomAgentRequestBodyRuntimeCompute extends $dara.Model {
736
+ /**
737
+ * @remarks
738
+ * The compute specification. Valid values:
739
+ * - INTERACTIVE: 1 vCPU and 2 GiB of memory.
740
+ * - STANDARD: 2 vCPUs and 4 GiB of memory.
741
+ * - HEAVY: 4 vCPUs and 8 GiB of memory.
742
+ *
743
+ * This parameter is required.
744
+ *
745
+ * @example
746
+ * STANDARD
747
+ */
748
+ computeClass?: string;
749
+ static names(): { [key: string]: string } {
750
+ return {
751
+ computeClass: 'computeClass',
752
+ };
753
+ }
754
+
755
+ static types(): { [key: string]: any } {
756
+ return {
757
+ computeClass: 'string',
758
+ };
759
+ }
760
+
761
+ validate() {
762
+ super.validate();
763
+ }
764
+
765
+ constructor(map?: { [key: string]: any }) {
766
+ super(map);
767
+ }
768
+ }
769
+
770
+ export class CreateCustomAgentRequestBodyRuntimeHpa extends $dara.Model {
771
+ /**
772
+ * @remarks
773
+ * Specifies whether to enable elastic scaling. Valid values:
774
+ * - true: Enabled.
775
+ * - false: Disabled.
776
+ * Default value: false.
777
+ *
778
+ * This parameter is required.
779
+ */
780
+ enabled?: boolean;
781
+ /**
782
+ * @remarks
783
+ * The maximum number of concurrent sessions for a single runtime instance. Valid values: 1 to 100. Default value: 100.
784
+ *
785
+ * @example
786
+ * 100
787
+ */
788
+ maxConcurrentSessionsPerSandbox?: number;
789
+ /**
790
+ * @remarks
791
+ * The maximum number of runtime instances. Valid values: 1 to 100. The value cannot be less than minSandboxCount. Default value: 10.
792
+ *
793
+ * @example
794
+ * 10
795
+ */
796
+ maxSandboxCount?: number;
797
+ /**
798
+ * @remarks
799
+ * The minimum number of runtime instances. Valid values: 1 to 100. The value cannot be greater than maxSandboxCount. Default value: 1.
800
+ *
801
+ * @example
802
+ * 1
803
+ */
804
+ minSandboxCount?: number;
805
+ /**
806
+ * @remarks
807
+ * The session idle timeout in seconds. Valid values: 60 to 86400. Default value: 600.
808
+ *
809
+ * @example
810
+ * 600
811
+ */
812
+ sessionTtlSeconds?: number;
813
+ static names(): { [key: string]: string } {
814
+ return {
815
+ enabled: 'enabled',
816
+ maxConcurrentSessionsPerSandbox: 'maxConcurrentSessionsPerSandbox',
817
+ maxSandboxCount: 'maxSandboxCount',
818
+ minSandboxCount: 'minSandboxCount',
819
+ sessionTtlSeconds: 'sessionTtlSeconds',
820
+ };
821
+ }
822
+
823
+ static types(): { [key: string]: any } {
824
+ return {
825
+ enabled: 'boolean',
826
+ maxConcurrentSessionsPerSandbox: 'number',
827
+ maxSandboxCount: 'number',
828
+ minSandboxCount: 'number',
829
+ sessionTtlSeconds: 'number',
830
+ };
831
+ }
832
+
833
+ validate() {
834
+ super.validate();
835
+ }
836
+
837
+ constructor(map?: { [key: string]: any }) {
838
+ super(map);
839
+ }
840
+ }
841
+
842
+ export class CreateCustomAgentRequestBodyRuntimeSessionPolicy extends $dara.Model {
843
+ /**
844
+ * @remarks
845
+ * The name of the HTTP request header used by the session policy. This parameter is required when type is set to ISOLATED_HEADER_FIELD and must be a valid HTTP request header name. Omit this parameter for other policies.
846
+ *
847
+ * @example
848
+ * X-Session-Id
849
+ */
850
+ headerName?: string;
851
+ /**
852
+ * @remarks
853
+ * The session policy type. Valid values:
854
+ * - AFFINITY: Session affinity.
855
+ * - ISOLATED_HEADER_FIELD: Associates sessions by using the request header specified by headerName.
856
+ * - ISOLATED_COOKIE: Not recommended.
857
+ * - DISABLED: A compatibility option. The response returns AFFINITY.
858
+ *
859
+ * This parameter is required.
860
+ *
861
+ * @example
862
+ * AFFINITY
863
+ */
864
+ type?: string;
865
+ static names(): { [key: string]: string } {
866
+ return {
867
+ headerName: 'headerName',
868
+ type: 'type',
869
+ };
870
+ }
871
+
872
+ static types(): { [key: string]: any } {
873
+ return {
874
+ headerName: 'string',
875
+ type: 'string',
876
+ };
877
+ }
878
+
879
+ validate() {
880
+ super.validate();
881
+ }
882
+
883
+ constructor(map?: { [key: string]: any }) {
884
+ super(map);
885
+ }
886
+ }
887
+
888
+ export class CreateCustomAgentRequestBodyRuntime extends $dara.Model {
889
+ /**
890
+ * @remarks
891
+ * The compute resource configuration for the agent runtime instance.
892
+ *
893
+ * This parameter is required.
894
+ */
895
+ compute?: CreateCustomAgentRequestBodyRuntimeCompute;
896
+ /**
897
+ * @remarks
898
+ * The optional elastic policy. When runtime is provided, if hpa or its fields are omitted, the default values are used: enabled is false, the minimum number of instances is 1, the maximum number of instances is 10, the maximum number of concurrent sessions per instance is 100, and the session idle timeout is 600 seconds. To retain the original policy during an update, provide the complete hpa configuration.
899
+ */
900
+ hpa?: CreateCustomAgentRequestBodyRuntimeHpa;
901
+ /**
902
+ * @remarks
903
+ * The session policy configuration, which is used to set the session association method for requests.
904
+ *
905
+ * This parameter is required.
906
+ */
907
+ sessionPolicy?: CreateCustomAgentRequestBodyRuntimeSessionPolicy;
908
+ static names(): { [key: string]: string } {
909
+ return {
910
+ compute: 'compute',
911
+ hpa: 'hpa',
912
+ sessionPolicy: 'sessionPolicy',
913
+ };
914
+ }
915
+
916
+ static types(): { [key: string]: any } {
917
+ return {
918
+ compute: CreateCustomAgentRequestBodyRuntimeCompute,
919
+ hpa: CreateCustomAgentRequestBodyRuntimeHpa,
920
+ sessionPolicy: CreateCustomAgentRequestBodyRuntimeSessionPolicy,
921
+ };
922
+ }
923
+
924
+ validate() {
925
+ if(this.compute && typeof (this.compute as any).validate === 'function') {
926
+ (this.compute as any).validate();
927
+ }
928
+ if(this.hpa && typeof (this.hpa as any).validate === 'function') {
929
+ (this.hpa as any).validate();
930
+ }
931
+ if(this.sessionPolicy && typeof (this.sessionPolicy as any).validate === 'function') {
932
+ (this.sessionPolicy as any).validate();
933
+ }
934
+ super.validate();
935
+ }
936
+
937
+ constructor(map?: { [key: string]: any }) {
938
+ super(map);
939
+ }
940
+ }
941
+
942
+ export class CreateCustomAgentRequestBody extends $dara.Model {
943
+ /**
944
+ * @remarks
945
+ * The list of additional AgenticFS mounts. The total number of AgenticFS and OSS mounts cannot exceed 10. If you omit this parameter or pass an empty array [] during creation, no additional mounts are configured. If you omit this parameter during an update, the original value is retained. If you pass an empty array [], the list is cleared. You cannot pass null.
946
+ */
947
+ agenticFsMounts?: CreateCustomAgentRequestBodyAgenticFsMounts[];
948
+ /**
949
+ * @remarks
950
+ * The deployment artifact configuration. Currently, only ACR container images are supported. Specify container and the service listening port in port, and omit code.
951
+ *
952
+ * This parameter is required.
953
+ */
954
+ artifact?: CreateCustomAgentRequestBodyArtifact;
955
+ /**
956
+ * @remarks
957
+ * The description of the agent purpose. The maximum length is 1,024 characters after leading and trailing whitespace is removed.
958
+ *
959
+ * @example
960
+ * Custom agent that provides conversation services
961
+ */
962
+ description?: string;
963
+ /**
964
+ * @remarks
965
+ * The environment variable configuration passed to the agent runtime process.
966
+ */
967
+ environment?: CreateCustomAgentRequestBodyEnvironment;
968
+ /**
969
+ * @remarks
970
+ * The optional HTTP health check configuration. If this object is provided, you must specify port. Unspecified items use default values. If omitted during creation, no health check is configured. If this top-level field is omitted during an update, the original configuration is retained. If null is passed, the health check is removed.
971
+ */
972
+ healthCheck?: CreateCustomAgentRequestBodyHealthCheck;
973
+ /**
974
+ * @remarks
975
+ * The agent log delivery configuration. You can specify the Simple Log Service project and Logstore. After a successful creation or update, verify that logs are delivered properly.
976
+ */
977
+ logging?: CreateCustomAgentRequestBodyLogging;
978
+ /**
979
+ * @remarks
980
+ * The name of the custom agent. The length must be 1 to 128 characters after leading and trailing whitespace is removed. The name must be unique within the same workspace.
981
+ *
982
+ * This parameter is required.
983
+ *
984
+ * @example
985
+ * my-custom-agent
986
+ */
987
+ name?: string;
988
+ /**
989
+ * @remarks
990
+ * The network access configuration of the agent. If this object is provided, omitted access items are treated as allowed. The actual accessible range is still limited by the workspace network configuration. To retain the original restrictions during an update, specify both accessInternet and accessVpc.
991
+ */
992
+ network?: CreateCustomAgentRequestBodyNetwork;
993
+ /**
994
+ * @remarks
995
+ * The list of OSS mounts. The total number of OSS and AgenticFS mounts cannot exceed 10. You must specify bucketName, path, and mountPath for each item. Mount targets must not be duplicated or overlap. The entire list is replaced during an update. Pass an empty array [] to clear the list.
996
+ */
997
+ ossMounts?: CreateCustomAgentRequestBodyOssMounts[];
998
+ /**
999
+ * @remarks
1000
+ * The list of invocation protocols supported by the agent. Each item includes the protocol type and optional paths and request headers. The entire list is replaced during an update.
1001
+ */
1002
+ protocol?: CreateCustomAgentRequestBodyProtocol[];
1003
+ /**
1004
+ * @remarks
1005
+ * The ARN of the RAM role used when the agent accesses user cloud resources. The role must have permissions to access the cloud resources.
1006
+ *
1007
+ * This parameter is required.
1008
+ *
1009
+ * @example
1010
+ * acs:ram::1234567890123456:role/agentcore-runtime-role
1011
+ */
1012
+ roleArn?: string;
1013
+ /**
1014
+ * @remarks
1015
+ * The runtime configuration, including compute specifications, session policies, and an optional elastic policy. Both compute and sessionPolicy must be specified.
1016
+ *
1017
+ * This parameter is required.
1018
+ */
1019
+ runtime?: CreateCustomAgentRequestBodyRuntime;
1020
+ static names(): { [key: string]: string } {
1021
+ return {
1022
+ agenticFsMounts: 'agenticFsMounts',
1023
+ artifact: 'artifact',
1024
+ description: 'description',
1025
+ environment: 'environment',
1026
+ healthCheck: 'healthCheck',
1027
+ logging: 'logging',
1028
+ name: 'name',
1029
+ network: 'network',
1030
+ ossMounts: 'ossMounts',
1031
+ protocol: 'protocol',
1032
+ roleArn: 'roleArn',
1033
+ runtime: 'runtime',
1034
+ };
1035
+ }
1036
+
1037
+ static types(): { [key: string]: any } {
1038
+ return {
1039
+ agenticFsMounts: { 'type': 'array', 'itemType': CreateCustomAgentRequestBodyAgenticFsMounts },
1040
+ artifact: CreateCustomAgentRequestBodyArtifact,
1041
+ description: 'string',
1042
+ environment: CreateCustomAgentRequestBodyEnvironment,
1043
+ healthCheck: CreateCustomAgentRequestBodyHealthCheck,
1044
+ logging: CreateCustomAgentRequestBodyLogging,
1045
+ name: 'string',
1046
+ network: CreateCustomAgentRequestBodyNetwork,
1047
+ ossMounts: { 'type': 'array', 'itemType': CreateCustomAgentRequestBodyOssMounts },
1048
+ protocol: { 'type': 'array', 'itemType': CreateCustomAgentRequestBodyProtocol },
1049
+ roleArn: 'string',
1050
+ runtime: CreateCustomAgentRequestBodyRuntime,
1051
+ };
1052
+ }
1053
+
1054
+ validate() {
1055
+ if(Array.isArray(this.agenticFsMounts)) {
1056
+ $dara.Model.validateArray(this.agenticFsMounts);
1057
+ }
1058
+ if(this.artifact && typeof (this.artifact as any).validate === 'function') {
1059
+ (this.artifact as any).validate();
1060
+ }
1061
+ if(this.environment && typeof (this.environment as any).validate === 'function') {
1062
+ (this.environment as any).validate();
1063
+ }
1064
+ if(this.healthCheck && typeof (this.healthCheck as any).validate === 'function') {
1065
+ (this.healthCheck as any).validate();
1066
+ }
1067
+ if(this.logging && typeof (this.logging as any).validate === 'function') {
1068
+ (this.logging as any).validate();
1069
+ }
1070
+ if(this.network && typeof (this.network as any).validate === 'function') {
1071
+ (this.network as any).validate();
1072
+ }
1073
+ if(Array.isArray(this.ossMounts)) {
1074
+ $dara.Model.validateArray(this.ossMounts);
1075
+ }
1076
+ if(Array.isArray(this.protocol)) {
1077
+ $dara.Model.validateArray(this.protocol);
1078
+ }
1079
+ if(this.runtime && typeof (this.runtime as any).validate === 'function') {
1080
+ (this.runtime as any).validate();
1081
+ }
1082
+ super.validate();
1083
+ }
1084
+
1085
+ constructor(map?: { [key: string]: any }) {
1086
+ super(map);
1087
+ }
1088
+ }
1089
+
1090
+ export class CreateCustomAgentRequest extends $dara.Model {
1091
+ /**
1092
+ * @remarks
1093
+ * The JSON configuration of the custom agent. You must specify name, artifact, roleArn, and runtime.
1094
+ */
1095
+ body?: CreateCustomAgentRequestBody;
1096
+ /**
1097
+ * @remarks
1098
+ * Idempotency is not currently guaranteed. Do not rely on this parameter to prevent duplicate requests.
1099
+ *
1100
+ * @example
1101
+ * custom-agent-request-20261010-001
1102
+ */
1103
+ clientToken?: string;
1104
+ static names(): { [key: string]: string } {
1105
+ return {
1106
+ body: 'body',
1107
+ clientToken: 'clientToken',
1108
+ };
1109
+ }
1110
+
1111
+ static types(): { [key: string]: any } {
1112
+ return {
1113
+ body: CreateCustomAgentRequestBody,
1114
+ clientToken: 'string',
1115
+ };
1116
+ }
1117
+
1118
+ validate() {
1119
+ if(this.body && typeof (this.body as any).validate === 'function') {
1120
+ (this.body as any).validate();
1121
+ }
1122
+ super.validate();
1123
+ }
1124
+
1125
+ constructor(map?: { [key: string]: any }) {
1126
+ super(map);
1127
+ }
1128
+ }
1129
+