@alicloud/agentcore20260804 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +144 -24
- package/dist/client.js +335 -24
- package/dist/client.js.map +1 -1
- package/dist/models/CreateCustomAgentRequest.d.ts +63 -33
- package/dist/models/CreateCustomAgentRequest.js +27 -1
- package/dist/models/CreateCustomAgentRequest.js.map +1 -1
- package/dist/models/CreateCustomAgentResponseBody.d.ts +193 -41
- package/dist/models/CreateCustomAgentResponseBody.js +59 -1
- package/dist/models/CreateCustomAgentResponseBody.js.map +1 -1
- package/dist/models/CreateCustomAgentShrinkRequest.d.ts +1 -1
- package/dist/models/CreateImageCacheRequest.d.ts +122 -0
- package/dist/models/CreateImageCacheRequest.js +96 -0
- package/dist/models/CreateImageCacheRequest.js.map +1 -0
- package/dist/models/CreateImageCacheResponse.d.ts +19 -0
- package/dist/models/CreateImageCacheResponse.js +69 -0
- package/dist/models/CreateImageCacheResponse.js.map +1 -0
- package/dist/models/CreateImageCacheResponseBody.d.ts +260 -0
- package/dist/models/CreateImageCacheResponseBody.js +140 -0
- package/dist/models/CreateImageCacheResponseBody.js.map +1 -0
- package/dist/models/CreateImageCacheShrinkRequest.d.ts +50 -0
- package/dist/models/CreateImageCacheShrinkRequest.js +64 -0
- package/dist/models/CreateImageCacheShrinkRequest.js.map +1 -0
- package/dist/models/DeleteImageCacheRequest.d.ts +33 -0
- package/dist/models/DeleteImageCacheRequest.js +60 -0
- package/dist/models/DeleteImageCacheRequest.js.map +1 -0
- package/dist/models/DeleteImageCacheResponse.d.ts +19 -0
- package/dist/models/DeleteImageCacheResponse.js +69 -0
- package/dist/models/DeleteImageCacheResponse.js.map +1 -0
- package/dist/models/DeleteImageCacheResponseBody.d.ts +102 -0
- package/dist/models/DeleteImageCacheResponseBody.js +92 -0
- package/dist/models/DeleteImageCacheResponseBody.js.map +1 -0
- package/dist/models/GetCustomAgentResponseBody.d.ts +130 -66
- package/dist/models/GetCustomAgentResponseBody.js +31 -1
- package/dist/models/GetCustomAgentResponseBody.js.map +1 -1
- package/dist/models/GetImageCacheRequest.d.ts +33 -0
- package/dist/models/GetImageCacheRequest.js +60 -0
- package/dist/models/GetImageCacheRequest.js.map +1 -0
- package/dist/models/GetImageCacheResponse.d.ts +19 -0
- package/dist/models/GetImageCacheResponse.js +69 -0
- package/dist/models/GetImageCacheResponse.js.map +1 -0
- package/dist/models/GetImageCacheResponseBody.d.ts +264 -0
- package/dist/models/GetImageCacheResponseBody.js +140 -0
- package/dist/models/GetImageCacheResponseBody.js.map +1 -0
- package/dist/models/GetWorkspaceAcrRamAuthorizeUrlRequest.d.ts +2 -2
- package/dist/models/GetWorkspaceAcrRamAuthorizeUrlResponseBody.d.ts +23 -1
- package/dist/models/GetWorkspaceAcrRamAuthorizeUrlResponseBody.js.map +1 -1
- package/dist/models/ListImageCachesRequest.d.ts +113 -0
- package/dist/models/ListImageCachesRequest.js +80 -0
- package/dist/models/ListImageCachesRequest.js.map +1 -0
- package/dist/models/ListImageCachesResponse.d.ts +19 -0
- package/dist/models/ListImageCachesResponse.js +69 -0
- package/dist/models/ListImageCachesResponse.js.map +1 -0
- package/dist/models/ListImageCachesResponseBody.d.ts +290 -0
- package/dist/models/ListImageCachesResponseBody.js +146 -0
- package/dist/models/ListImageCachesResponseBody.js.map +1 -0
- package/dist/models/RetryImageCacheRequest.d.ts +60 -0
- package/dist/models/RetryImageCacheRequest.js +82 -0
- package/dist/models/RetryImageCacheRequest.js.map +1 -0
- package/dist/models/RetryImageCacheResponse.d.ts +19 -0
- package/dist/models/RetryImageCacheResponse.js +69 -0
- package/dist/models/RetryImageCacheResponse.js.map +1 -0
- package/dist/models/RetryImageCacheResponseBody.d.ts +264 -0
- package/dist/models/RetryImageCacheResponseBody.js +140 -0
- package/dist/models/RetryImageCacheResponseBody.js.map +1 -0
- package/dist/models/RetryImageCacheShrinkRequest.d.ts +48 -0
- package/dist/models/RetryImageCacheShrinkRequest.js +64 -0
- package/dist/models/RetryImageCacheShrinkRequest.js.map +1 -0
- package/dist/models/UpdateCustomAgentRequest.d.ts +68 -35
- package/dist/models/UpdateCustomAgentRequest.js +27 -1
- package/dist/models/UpdateCustomAgentRequest.js.map +1 -1
- package/dist/models/UpdateCustomAgentResponseBody.d.ts +184 -49
- package/dist/models/UpdateCustomAgentResponseBody.js +59 -1
- package/dist/models/UpdateCustomAgentResponseBody.js.map +1 -1
- package/dist/models/UpdateCustomAgentShrinkRequest.d.ts +2 -2
- package/dist/models/VerifyWorkspaceAcrRamAuthorizationResponseBody.d.ts +33 -3
- package/dist/models/VerifyWorkspaceAcrRamAuthorizationResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +35 -0
- package/dist/models/model.js +157 -86
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +371 -24
- package/src/models/CreateCustomAgentRequest.ts +80 -33
- package/src/models/CreateCustomAgentResponseBody.ts +233 -41
- package/src/models/CreateCustomAgentShrinkRequest.ts +1 -1
- package/src/models/CreateImageCacheRequest.ts +164 -0
- package/src/models/CreateImageCacheResponse.ts +40 -0
- package/src/models/CreateImageCacheResponseBody.ts +337 -0
- package/src/models/CreateImageCacheShrinkRequest.ts +69 -0
- package/src/models/DeleteImageCacheRequest.ts +48 -0
- package/src/models/DeleteImageCacheResponse.ts +40 -0
- package/src/models/DeleteImageCacheResponseBody.ts +140 -0
- package/src/models/GetCustomAgentResponseBody.ts +151 -66
- package/src/models/GetImageCacheRequest.ts +48 -0
- package/src/models/GetImageCacheResponse.ts +40 -0
- package/src/models/GetImageCacheResponseBody.ts +341 -0
- package/src/models/GetWorkspaceAcrRamAuthorizeUrlRequest.ts +2 -2
- package/src/models/GetWorkspaceAcrRamAuthorizeUrlResponseBody.ts +23 -1
- package/src/models/ListImageCachesRequest.ts +148 -0
- package/src/models/ListImageCachesResponse.ts +40 -0
- package/src/models/ListImageCachesResponseBody.ts +373 -0
- package/src/models/RetryImageCacheRequest.ts +90 -0
- package/src/models/RetryImageCacheResponse.ts +40 -0
- package/src/models/RetryImageCacheResponseBody.ts +341 -0
- package/src/models/RetryImageCacheShrinkRequest.ts +67 -0
- package/src/models/UpdateCustomAgentRequest.ts +85 -35
- package/src/models/UpdateCustomAgentResponseBody.ts +224 -49
- package/src/models/UpdateCustomAgentShrinkRequest.ts +2 -2
- package/src/models/VerifyWorkspaceAcrRamAuthorizationResponseBody.ts +33 -3
- package/src/models/model.ts +35 -0
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class UpdateCustomAgentRequestBodyAgenticFsMounts extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The subdirectory under /mnt/agenticfs/ in the container. This field is required for each mount item
|
|
8
|
+
* The subdirectory under /mnt/agenticfs/ in the container. This field is required for each mount item. Mount targets must not be duplicated or form parent-child overrides.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* /mnt/agenticfs/data
|
|
@@ -13,7 +13,7 @@ export class UpdateCustomAgentRequestBodyAgenticFsMounts extends $dara.Model {
|
|
|
13
13
|
mountPath?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The existing non-empty relative directory under the access point. This field is required for each mount item
|
|
16
|
+
* The existing non-empty relative directory under the access point. This field is required for each mount item. Root directories, absolute paths, and parent directory traversals are not allowed.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* workspace/data
|
|
@@ -21,7 +21,7 @@ export class UpdateCustomAgentRequestBodyAgenticFsMounts extends $dara.Model {
|
|
|
21
21
|
path?: string;
|
|
22
22
|
/**
|
|
23
23
|
* @remarks
|
|
24
|
-
* Specifies whether the mount is read-only. A value of true indicates read-only, and false indicates read
|
|
24
|
+
* Specifies whether the mount is read-only. A value of true indicates read-only, and false indicates read and write. If omitted, the default value is false.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
27
|
* false
|
|
@@ -29,7 +29,7 @@ export class UpdateCustomAgentRequestBodyAgenticFsMounts extends $dara.Model {
|
|
|
29
29
|
readOnly?: boolean;
|
|
30
30
|
/**
|
|
31
31
|
* @remarks
|
|
32
|
-
* The domain name of the access point. This field is required for each mount item
|
|
32
|
+
* The domain name of the access point. This field is required for each mount item. Use the DomainName value from the response of the NAS ListAccessPoints operation. Do not include the protocol, port, or path.
|
|
33
33
|
*
|
|
34
34
|
* @example
|
|
35
35
|
* ap-0123456789abcdef0.0123456789-vlm36.cn-hangzhou.nas.aliyuncs.com
|
|
@@ -121,7 +121,7 @@ export class UpdateCustomAgentRequestBodyArtifactCode extends $dara.Model {
|
|
|
121
121
|
export class UpdateCustomAgentRequestBodyArtifactContainer extends $dara.Model {
|
|
122
122
|
/**
|
|
123
123
|
* @remarks
|
|
124
|
-
* The optional executable program and startup parameters. If specified, this must be a non-empty string. When updating the artifact, omitting this field uses the default startup method of the image. To retain the original custom startup command, provide this field
|
|
124
|
+
* The optional executable program and startup parameters. If specified, this must be a non-empty string. When updating the artifact, omitting this field uses the default startup method of the image. To retain the original custom startup command, provide this field as well.
|
|
125
125
|
*
|
|
126
126
|
* @example
|
|
127
127
|
* python app.py
|
|
@@ -169,7 +169,7 @@ export class UpdateCustomAgentRequestBodyArtifactContainer extends $dara.Model {
|
|
|
169
169
|
tag?: string;
|
|
170
170
|
/**
|
|
171
171
|
* @remarks
|
|
172
|
-
* The
|
|
172
|
+
* The source type of the image. Currently, only acr is supported, which indicates Alibaba Cloud Container Registry (ACR).
|
|
173
173
|
*
|
|
174
174
|
* This parameter is required.
|
|
175
175
|
*
|
|
@@ -221,7 +221,7 @@ export class UpdateCustomAgentRequestBodyArtifact extends $dara.Model {
|
|
|
221
221
|
container?: UpdateCustomAgentRequestBodyArtifactContainer;
|
|
222
222
|
/**
|
|
223
223
|
* @remarks
|
|
224
|
-
* The TCP port
|
|
224
|
+
* The TCP port listened by the agent service. Valid values: 1 to 65535.
|
|
225
225
|
*
|
|
226
226
|
* This parameter is required.
|
|
227
227
|
*
|
|
@@ -361,7 +361,7 @@ export class UpdateCustomAgentRequestBodyHealthCheck extends $dara.Model {
|
|
|
361
361
|
path?: string;
|
|
362
362
|
/**
|
|
363
363
|
* @remarks
|
|
364
|
-
* The port accessed
|
|
364
|
+
* The port accessed for health checks. This field is required when configuring a health check. Valid values: 1 to 65535.
|
|
365
365
|
*
|
|
366
366
|
* @example
|
|
367
367
|
* 8080
|
|
@@ -377,7 +377,7 @@ export class UpdateCustomAgentRequestBodyHealthCheck extends $dara.Model {
|
|
|
377
377
|
timeoutSeconds?: number;
|
|
378
378
|
/**
|
|
379
379
|
* @remarks
|
|
380
|
-
* The number of consecutive health check failures
|
|
380
|
+
* The number of consecutive health check failures before the instance is considered unhealthy. This must be a positive integer. If omitted, the default value is 3.
|
|
381
381
|
*
|
|
382
382
|
* @example
|
|
383
383
|
* 3
|
|
@@ -578,10 +578,37 @@ export class UpdateCustomAgentRequestBodyNetwork extends $dara.Model {
|
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
|
|
581
|
+
export class UpdateCustomAgentRequestBodyObservability extends $dara.Model {
|
|
582
|
+
/**
|
|
583
|
+
* @remarks
|
|
584
|
+
* Specifies whether to enable agent observability. Default value: true. If set to false, the platform Python probe is not loaded at runtime, and you must collect observability data yourself.
|
|
585
|
+
*/
|
|
586
|
+
enabled?: boolean;
|
|
587
|
+
static names(): { [key: string]: string } {
|
|
588
|
+
return {
|
|
589
|
+
enabled: 'enabled',
|
|
590
|
+
};
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
static types(): { [key: string]: any } {
|
|
594
|
+
return {
|
|
595
|
+
enabled: 'boolean',
|
|
596
|
+
};
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
validate() {
|
|
600
|
+
super.validate();
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
constructor(map?: { [key: string]: any }) {
|
|
604
|
+
super(map);
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
|
|
581
608
|
export class UpdateCustomAgentRequestBodyOssMounts extends $dara.Model {
|
|
582
609
|
/**
|
|
583
610
|
* @remarks
|
|
584
|
-
* The name of the OSS bucket. This
|
|
611
|
+
* 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
612
|
*
|
|
586
613
|
* @example
|
|
587
614
|
* my-agent-data
|
|
@@ -589,7 +616,7 @@ export class UpdateCustomAgentRequestBodyOssMounts extends $dara.Model {
|
|
|
589
616
|
bucketName?: string;
|
|
590
617
|
/**
|
|
591
618
|
* @remarks
|
|
592
|
-
* The subdirectory under /mnt/oss/ in the container. This
|
|
619
|
+
* The subdirectory under /mnt/oss/ in the container. This parameter is required for each mount item. Mount targets must not be duplicated or form parent-child overlaps.
|
|
593
620
|
*
|
|
594
621
|
* @example
|
|
595
622
|
* /mnt/oss/train
|
|
@@ -597,7 +624,7 @@ export class UpdateCustomAgentRequestBodyOssMounts extends $dara.Model {
|
|
|
597
624
|
mountPath?: string;
|
|
598
625
|
/**
|
|
599
626
|
* @remarks
|
|
600
|
-
* The non-empty object directory prefix in the bucket, such as datasets/train. Leading and trailing
|
|
627
|
+
* The non-empty object directory prefix in the bucket, such as datasets/train. Leading and trailing slashes are removed. The root directory is not supported. Do not use parent directory traversal.
|
|
601
628
|
*
|
|
602
629
|
* @example
|
|
603
630
|
* datasets/train
|
|
@@ -605,7 +632,7 @@ export class UpdateCustomAgentRequestBodyOssMounts extends $dara.Model {
|
|
|
605
632
|
path?: string;
|
|
606
633
|
/**
|
|
607
634
|
* @remarks
|
|
608
|
-
* Specifies whether the mount is read-only. A value of true indicates read-only, and false indicates read
|
|
635
|
+
* Specifies whether the mount is read-only. A value of true indicates read-only, and false indicates read and write. If omitted, the default value is false.
|
|
609
636
|
*/
|
|
610
637
|
readOnly?: boolean;
|
|
611
638
|
static names(): { [key: string]: string } {
|
|
@@ -638,7 +665,7 @@ export class UpdateCustomAgentRequestBodyOssMounts extends $dara.Model {
|
|
|
638
665
|
export class UpdateCustomAgentRequestBodyProtocolPaths extends $dara.Model {
|
|
639
666
|
/**
|
|
640
667
|
* @remarks
|
|
641
|
-
* The description of the current API path.
|
|
668
|
+
* The usage description of the current API path.
|
|
642
669
|
*
|
|
643
670
|
* @example
|
|
644
671
|
* AG-UI conversation API
|
|
@@ -646,7 +673,7 @@ export class UpdateCustomAgentRequestBodyProtocolPaths extends $dara.Model {
|
|
|
646
673
|
description?: string;
|
|
647
674
|
/**
|
|
648
675
|
* @remarks
|
|
649
|
-
* The non-empty API path
|
|
676
|
+
* The non-empty API path for the current protocol.
|
|
650
677
|
*
|
|
651
678
|
* This parameter is required.
|
|
652
679
|
*
|
|
@@ -685,7 +712,7 @@ export class UpdateCustomAgentRequestBodyProtocol extends $dara.Model {
|
|
|
685
712
|
headers?: { [key: string]: string };
|
|
686
713
|
/**
|
|
687
714
|
* @remarks
|
|
688
|
-
* The list of API paths
|
|
715
|
+
* The list of API paths for the current protocol.
|
|
689
716
|
*/
|
|
690
717
|
paths?: UpdateCustomAgentRequestBodyProtocolPaths[];
|
|
691
718
|
/**
|
|
@@ -770,14 +797,17 @@ export class UpdateCustomAgentRequestBodyRuntimeCompute extends $dara.Model {
|
|
|
770
797
|
export class UpdateCustomAgentRequestBodyRuntimeHpa extends $dara.Model {
|
|
771
798
|
/**
|
|
772
799
|
* @remarks
|
|
773
|
-
* Specifies whether to enable elastic scaling.
|
|
800
|
+
* Specifies whether to enable elastic scaling. Valid values:
|
|
801
|
+
* - true: Enabled.
|
|
802
|
+
* - false: Disabled.
|
|
803
|
+
* When runtime is provided, if this field is omitted, the default value is false.
|
|
774
804
|
*
|
|
775
805
|
* This parameter is required.
|
|
776
806
|
*/
|
|
777
807
|
enabled?: boolean;
|
|
778
808
|
/**
|
|
779
809
|
* @remarks
|
|
780
|
-
* The maximum number of concurrent sessions for a single runtime instance. Valid values: 1 to 100.
|
|
810
|
+
* The maximum number of concurrent sessions for a single runtime instance. Valid values: 1 to 100. When runtime is provided, if this field is omitted, the default value is 100.
|
|
781
811
|
*
|
|
782
812
|
* @example
|
|
783
813
|
* 100
|
|
@@ -785,7 +815,7 @@ export class UpdateCustomAgentRequestBodyRuntimeHpa extends $dara.Model {
|
|
|
785
815
|
maxConcurrentSessionsPerSandbox?: number;
|
|
786
816
|
/**
|
|
787
817
|
* @remarks
|
|
788
|
-
* The maximum number of runtime instances. Valid values: 1 to 100. The value cannot be less than minSandboxCount.
|
|
818
|
+
* The maximum number of runtime instances. Valid values: 1 to 100. The value cannot be less than minSandboxCount. When runtime is provided, if this field is omitted, the default value is 10.
|
|
789
819
|
*
|
|
790
820
|
* @example
|
|
791
821
|
* 10
|
|
@@ -793,7 +823,7 @@ export class UpdateCustomAgentRequestBodyRuntimeHpa extends $dara.Model {
|
|
|
793
823
|
maxSandboxCount?: number;
|
|
794
824
|
/**
|
|
795
825
|
* @remarks
|
|
796
|
-
* The minimum number of runtime instances. Valid values: 1 to 100. The value cannot be greater than maxSandboxCount.
|
|
826
|
+
* The minimum number of runtime instances. Valid values: 1 to 100. The value cannot be greater than maxSandboxCount. When runtime is provided, if this field is omitted, the default value is 1.
|
|
797
827
|
*
|
|
798
828
|
* @example
|
|
799
829
|
* 1
|
|
@@ -801,7 +831,7 @@ export class UpdateCustomAgentRequestBodyRuntimeHpa extends $dara.Model {
|
|
|
801
831
|
minSandboxCount?: number;
|
|
802
832
|
/**
|
|
803
833
|
* @remarks
|
|
804
|
-
* The session idle timeout in seconds. Valid values: 60 to 86400.
|
|
834
|
+
* The session idle timeout in seconds. Valid values: 60 to 86400. When runtime is provided, if this field is omitted, the default value is 600.
|
|
805
835
|
*
|
|
806
836
|
* @example
|
|
807
837
|
* 600
|
|
@@ -839,7 +869,7 @@ export class UpdateCustomAgentRequestBodyRuntimeHpa extends $dara.Model {
|
|
|
839
869
|
export class UpdateCustomAgentRequestBodyRuntimeSessionPolicy extends $dara.Model {
|
|
840
870
|
/**
|
|
841
871
|
* @remarks
|
|
842
|
-
* The name of the HTTP request header used by the session policy. This
|
|
872
|
+
* The name of the HTTP request header used by the session policy. This parameter is required when type is ISOLATED_HEADER_FIELD and must be a valid HTTP request header name. Omit this parameter for other policies.
|
|
843
873
|
*
|
|
844
874
|
* @example
|
|
845
875
|
* X-Session-Id
|
|
@@ -849,8 +879,8 @@ export class UpdateCustomAgentRequestBodyRuntimeSessionPolicy extends $dara.Mode
|
|
|
849
879
|
* @remarks
|
|
850
880
|
* The session policy type. Valid values:
|
|
851
881
|
* - AFFINITY: Session affinity.
|
|
852
|
-
* - ISOLATED_HEADER_FIELD: Associates sessions by using the request header specified
|
|
853
|
-
* - ISOLATED_COOKIE: Cookie-based session option.
|
|
882
|
+
* - ISOLATED_HEADER_FIELD: Associates sessions by using the request header specified in headerName.
|
|
883
|
+
* - ISOLATED_COOKIE: Cookie-based session option. Not recommended.
|
|
854
884
|
* - DISABLED: Compatibility option. The response returns AFFINITY.
|
|
855
885
|
*
|
|
856
886
|
* This parameter is required.
|
|
@@ -892,12 +922,12 @@ export class UpdateCustomAgentRequestBodyRuntime extends $dara.Model {
|
|
|
892
922
|
compute?: UpdateCustomAgentRequestBodyRuntimeCompute;
|
|
893
923
|
/**
|
|
894
924
|
* @remarks
|
|
895
|
-
* The optional elastic policy. When runtime is provided, if hpa or its fields are omitted,
|
|
925
|
+
* The optional elastic policy. When runtime is provided, if hpa or its fields are omitted, 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.
|
|
896
926
|
*/
|
|
897
927
|
hpa?: UpdateCustomAgentRequestBodyRuntimeHpa;
|
|
898
928
|
/**
|
|
899
929
|
* @remarks
|
|
900
|
-
* The session policy configuration
|
|
930
|
+
* The session policy configuration used to set the session association method for requests.
|
|
901
931
|
*
|
|
902
932
|
* This parameter is required.
|
|
903
933
|
*/
|
|
@@ -939,12 +969,12 @@ export class UpdateCustomAgentRequestBodyRuntime extends $dara.Model {
|
|
|
939
969
|
export class UpdateCustomAgentRequestBody extends $dara.Model {
|
|
940
970
|
/**
|
|
941
971
|
* @remarks
|
|
942
|
-
* The list of additional AgenticFS mounts. The total number of AgenticFS and OSS mounts cannot exceed 10.
|
|
972
|
+
* The list of additional AgenticFS mounts. The total number of AgenticFS and OSS mounts cannot exceed 10. During creation, omitting this field or passing an empty array [] indicates no additional mounts. During an update, omitting this field retains the original value, and passing an empty array [] clears the list. You cannot pass null.
|
|
943
973
|
*/
|
|
944
974
|
agenticFsMounts?: UpdateCustomAgentRequestBodyAgenticFsMounts[];
|
|
945
975
|
/**
|
|
946
976
|
* @remarks
|
|
947
|
-
* The deployment artifact configuration. Currently, only ACR container images are supported. Specify the container field and the service listening port field. Omit the code field. During an update, you must specify all required fields
|
|
977
|
+
* The deployment artifact configuration. Currently, only ACR container images are supported. Specify the container field and the service listening port field. Omit the code field. During an update, you must specify the port field and all required fields of the container object.
|
|
948
978
|
*/
|
|
949
979
|
artifact?: UpdateCustomAgentRequestBodyArtifact;
|
|
950
980
|
/**
|
|
@@ -972,7 +1002,7 @@ export class UpdateCustomAgentRequestBody extends $dara.Model {
|
|
|
972
1002
|
logging?: UpdateCustomAgentRequestBodyLogging;
|
|
973
1003
|
/**
|
|
974
1004
|
* @remarks
|
|
975
|
-
* The name of the custom agent. The length is 1 to 128 characters after leading and trailing whitespaces are removed. The name must be unique within the same workspace. If omitted, the original value is retained. You cannot pass null or
|
|
1005
|
+
* The name of the custom agent. The length is 1 to 128 characters after leading and trailing whitespaces are removed. The name must be unique within the same workspace. If omitted, the original value is retained. You cannot pass null or an empty name.
|
|
976
1006
|
*
|
|
977
1007
|
* @example
|
|
978
1008
|
* my-custom-agent
|
|
@@ -980,17 +1010,22 @@ export class UpdateCustomAgentRequestBody extends $dara.Model {
|
|
|
980
1010
|
name?: string;
|
|
981
1011
|
/**
|
|
982
1012
|
* @remarks
|
|
983
|
-
* The network access configuration for the agent. When providing this object, omitted access items are treated as allowed. The actual accessible scope is still
|
|
1013
|
+
* The network access configuration for the agent. When providing this object, omitted access items are treated as allowed. The actual accessible scope is still subject to the workspace network configuration. To retain the original restrictions during an update, specify both accessInternet and accessVpc.
|
|
984
1014
|
*/
|
|
985
1015
|
network?: UpdateCustomAgentRequestBodyNetwork;
|
|
986
1016
|
/**
|
|
987
1017
|
* @remarks
|
|
988
|
-
* The
|
|
1018
|
+
* The observability configuration for high-code agents.
|
|
1019
|
+
*/
|
|
1020
|
+
observability?: UpdateCustomAgentRequestBodyObservability;
|
|
1021
|
+
/**
|
|
1022
|
+
* @remarks
|
|
1023
|
+
* The OSS mount list. A maximum of 10 items in total with agenticFsMounts. Each item must include bucketName, path, and mountPath. Mount targets must not be duplicated or overlap. During an update, this list is replaced entirely. Pass an empty array to clear all mounts.
|
|
989
1024
|
*/
|
|
990
1025
|
ossMounts?: UpdateCustomAgentRequestBodyOssMounts[];
|
|
991
1026
|
/**
|
|
992
1027
|
* @remarks
|
|
993
|
-
* The list of invocation protocols supported by the agent. Each item includes the protocol type
|
|
1028
|
+
* The list of invocation protocols supported by the agent. Each item includes the protocol type and optional paths and request headers. During an update, this list is replaced entirely.
|
|
994
1029
|
*/
|
|
995
1030
|
protocol?: UpdateCustomAgentRequestBodyProtocol[];
|
|
996
1031
|
/**
|
|
@@ -1003,9 +1038,17 @@ export class UpdateCustomAgentRequestBody extends $dara.Model {
|
|
|
1003
1038
|
roleArn?: string;
|
|
1004
1039
|
/**
|
|
1005
1040
|
* @remarks
|
|
1006
|
-
* The runtime configuration. When this object is provided,
|
|
1041
|
+
* The runtime configuration. When this object is provided, compute and sessionPolicy must be provided together. To retain the original elastic policy, provide the complete hpa configuration. Omitting the top-level runtime field retains the original configuration.
|
|
1007
1042
|
*/
|
|
1008
1043
|
runtime?: UpdateCustomAgentRequestBodyRuntime;
|
|
1044
|
+
/**
|
|
1045
|
+
* @remarks
|
|
1046
|
+
* If not specified during an update, the original value is retained. Explicitly set to true or false. The system does not automatically default to false. New API contracts reject null and invalid types. Existing compatibility endpoints are processed according to migration conventions.
|
|
1047
|
+
*
|
|
1048
|
+
* @example
|
|
1049
|
+
* true
|
|
1050
|
+
*/
|
|
1051
|
+
useImageCache?: boolean;
|
|
1009
1052
|
static names(): { [key: string]: string } {
|
|
1010
1053
|
return {
|
|
1011
1054
|
agenticFsMounts: 'agenticFsMounts',
|
|
@@ -1016,10 +1059,12 @@ export class UpdateCustomAgentRequestBody extends $dara.Model {
|
|
|
1016
1059
|
logging: 'logging',
|
|
1017
1060
|
name: 'name',
|
|
1018
1061
|
network: 'network',
|
|
1062
|
+
observability: 'observability',
|
|
1019
1063
|
ossMounts: 'ossMounts',
|
|
1020
1064
|
protocol: 'protocol',
|
|
1021
1065
|
roleArn: 'roleArn',
|
|
1022
1066
|
runtime: 'runtime',
|
|
1067
|
+
useImageCache: 'useImageCache',
|
|
1023
1068
|
};
|
|
1024
1069
|
}
|
|
1025
1070
|
|
|
@@ -1033,10 +1078,12 @@ export class UpdateCustomAgentRequestBody extends $dara.Model {
|
|
|
1033
1078
|
logging: UpdateCustomAgentRequestBodyLogging,
|
|
1034
1079
|
name: 'string',
|
|
1035
1080
|
network: UpdateCustomAgentRequestBodyNetwork,
|
|
1081
|
+
observability: UpdateCustomAgentRequestBodyObservability,
|
|
1036
1082
|
ossMounts: { 'type': 'array', 'itemType': UpdateCustomAgentRequestBodyOssMounts },
|
|
1037
1083
|
protocol: { 'type': 'array', 'itemType': UpdateCustomAgentRequestBodyProtocol },
|
|
1038
1084
|
roleArn: 'string',
|
|
1039
1085
|
runtime: UpdateCustomAgentRequestBodyRuntime,
|
|
1086
|
+
useImageCache: 'boolean',
|
|
1040
1087
|
};
|
|
1041
1088
|
}
|
|
1042
1089
|
|
|
@@ -1059,6 +1106,9 @@ export class UpdateCustomAgentRequestBody extends $dara.Model {
|
|
|
1059
1106
|
if(this.network && typeof (this.network as any).validate === 'function') {
|
|
1060
1107
|
(this.network as any).validate();
|
|
1061
1108
|
}
|
|
1109
|
+
if(this.observability && typeof (this.observability as any).validate === 'function') {
|
|
1110
|
+
(this.observability as any).validate();
|
|
1111
|
+
}
|
|
1062
1112
|
if(Array.isArray(this.ossMounts)) {
|
|
1063
1113
|
$dara.Model.validateArray(this.ossMounts);
|
|
1064
1114
|
}
|
|
@@ -1079,12 +1129,12 @@ export class UpdateCustomAgentRequestBody extends $dara.Model {
|
|
|
1079
1129
|
export class UpdateCustomAgentRequest extends $dara.Model {
|
|
1080
1130
|
/**
|
|
1081
1131
|
* @remarks
|
|
1082
|
-
* The update configuration for the custom agent.
|
|
1132
|
+
* The update configuration for the custom agent. Specify at least one top-level field. Omitted top-level fields retain their original values. When providing a configuration object, specify its required subfields and include any optional configurations that you want to retain. Arrays are replaced as a whole.
|
|
1083
1133
|
*/
|
|
1084
1134
|
body?: UpdateCustomAgentRequestBody;
|
|
1085
1135
|
/**
|
|
1086
1136
|
* @remarks
|
|
1087
|
-
*
|
|
1137
|
+
* Idempotence is not currently guaranteed. Do not rely on this parameter to prevent duplicate requests.
|
|
1088
1138
|
*
|
|
1089
1139
|
* @example
|
|
1090
1140
|
* custom-agent-request-20261010-001
|