@alicloud/agentcore20260804 2.2.1 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +148 -2
- package/dist/client.js +281 -2
- package/dist/client.js.map +1 -1
- package/dist/models/CreateCustomAgentRequest.d.ts +765 -0
- package/dist/models/CreateCustomAgentRequest.js +591 -0
- package/dist/models/CreateCustomAgentRequest.js.map +1 -0
- package/dist/models/CreateCustomAgentResponse.d.ts +19 -0
- package/dist/models/CreateCustomAgentResponse.js +69 -0
- package/dist/models/CreateCustomAgentResponse.js.map +1 -0
- package/dist/models/CreateCustomAgentResponseBody.d.ts +923 -0
- package/dist/models/CreateCustomAgentResponseBody.js +652 -0
- package/dist/models/CreateCustomAgentResponseBody.js.map +1 -0
- package/dist/models/CreateCustomAgentShrinkRequest.d.ts +26 -0
- package/dist/models/CreateCustomAgentShrinkRequest.js +60 -0
- package/dist/models/CreateCustomAgentShrinkRequest.js.map +1 -0
- package/dist/models/DeleteCustomAgentRequest.d.ts +13 -0
- package/dist/models/DeleteCustomAgentRequest.js +54 -0
- package/dist/models/DeleteCustomAgentRequest.js.map +1 -0
- package/dist/models/DeleteCustomAgentResponse.d.ts +19 -0
- package/dist/models/DeleteCustomAgentResponse.js +69 -0
- package/dist/models/DeleteCustomAgentResponse.js.map +1 -0
- package/dist/models/DeleteCustomAgentResponseBody.d.ts +155 -0
- package/dist/models/DeleteCustomAgentResponseBody.js +110 -0
- package/dist/models/DeleteCustomAgentResponseBody.js.map +1 -0
- package/dist/models/GetCustomAgentRequest.d.ts +13 -0
- package/dist/models/GetCustomAgentRequest.js +54 -0
- package/dist/models/GetCustomAgentRequest.js.map +1 -0
- package/dist/models/GetCustomAgentResponse.d.ts +19 -0
- package/dist/models/GetCustomAgentResponse.js +69 -0
- package/dist/models/GetCustomAgentResponse.js.map +1 -0
- package/dist/models/GetCustomAgentResponseBody.d.ts +655 -0
- package/dist/models/GetCustomAgentResponseBody.js +652 -0
- package/dist/models/GetCustomAgentResponseBody.js.map +1 -0
- package/dist/models/ListCustomAgentsRequest.d.ts +29 -0
- package/dist/models/ListCustomAgentsRequest.js +60 -0
- package/dist/models/ListCustomAgentsRequest.js.map +1 -0
- package/dist/models/ListCustomAgentsResponse.d.ts +19 -0
- package/dist/models/ListCustomAgentsResponse.js +69 -0
- package/dist/models/ListCustomAgentsResponse.js.map +1 -0
- package/dist/models/ListCustomAgentsResponseBody.d.ts +248 -0
- package/dist/models/ListCustomAgentsResponseBody.js +171 -0
- package/dist/models/ListCustomAgentsResponseBody.js.map +1 -0
- package/dist/models/ListUsersRequest.d.ts +4 -4
- package/dist/models/ListUsersResponseBody.d.ts +15 -15
- package/dist/models/UpdateCustomAgentRequest.d.ts +757 -0
- package/dist/models/UpdateCustomAgentRequest.js +591 -0
- package/dist/models/UpdateCustomAgentRequest.js.map +1 -0
- package/dist/models/UpdateCustomAgentResponse.d.ts +19 -0
- package/dist/models/UpdateCustomAgentResponse.js +69 -0
- package/dist/models/UpdateCustomAgentResponse.js.map +1 -0
- package/dist/models/UpdateCustomAgentResponseBody.d.ts +910 -0
- package/dist/models/UpdateCustomAgentResponseBody.js +652 -0
- package/dist/models/UpdateCustomAgentResponseBody.js.map +1 -0
- package/dist/models/UpdateCustomAgentShrinkRequest.d.ts +26 -0
- package/dist/models/UpdateCustomAgentShrinkRequest.js +60 -0
- package/dist/models/UpdateCustomAgentShrinkRequest.js.map +1 -0
- package/dist/models/model.d.ts +124 -0
- package/dist/models/model.js +271 -21
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +299 -2
- package/src/models/CreateCustomAgentRequest.ts +1129 -0
- package/src/models/CreateCustomAgentResponse.ts +40 -0
- package/src/models/CreateCustomAgentResponseBody.ts +1337 -0
- package/src/models/CreateCustomAgentShrinkRequest.ts +41 -0
- package/src/models/DeleteCustomAgentRequest.ts +24 -0
- package/src/models/DeleteCustomAgentResponse.ts +40 -0
- package/src/models/DeleteCustomAgentResponseBody.ts +211 -0
- package/src/models/GetCustomAgentRequest.ts +24 -0
- package/src/models/GetCustomAgentResponse.ts +40 -0
- package/src/models/GetCustomAgentResponseBody.ts +1069 -0
- package/src/models/ListCustomAgentsRequest.ts +44 -0
- package/src/models/ListCustomAgentsResponse.ts +40 -0
- package/src/models/ListCustomAgentsResponseBody.ts +345 -0
- package/src/models/ListUsersRequest.ts +4 -4
- package/src/models/ListUsersResponseBody.ts +15 -15
- package/src/models/UpdateCustomAgentRequest.ts +1121 -0
- package/src/models/UpdateCustomAgentResponse.ts +40 -0
- package/src/models/UpdateCustomAgentResponseBody.ts +1324 -0
- package/src/models/UpdateCustomAgentShrinkRequest.ts +41 -0
- package/src/models/model.ts +124 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateCustomAgentShrinkRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The JSON configuration of the custom agent. You must specify name, artifact, roleArn, and runtime.
|
|
9
|
+
*/
|
|
10
|
+
bodyShrink?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* Idempotency is not currently guaranteed. Do not rely on this parameter to prevent duplicate requests.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* custom-agent-request-20261010-001
|
|
17
|
+
*/
|
|
18
|
+
clientToken?: string;
|
|
19
|
+
static names(): { [key: string]: string } {
|
|
20
|
+
return {
|
|
21
|
+
bodyShrink: 'body',
|
|
22
|
+
clientToken: 'clientToken',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
static types(): { [key: string]: any } {
|
|
27
|
+
return {
|
|
28
|
+
bodyShrink: 'string',
|
|
29
|
+
clientToken: 'string',
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
validate() {
|
|
34
|
+
super.validate();
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
constructor(map?: { [key: string]: any }) {
|
|
38
|
+
super(map);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DeleteCustomAgentRequest extends $dara.Model {
|
|
6
|
+
static names(): { [key: string]: string } {
|
|
7
|
+
return {
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
static types(): { [key: string]: any } {
|
|
12
|
+
return {
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
validate() {
|
|
17
|
+
super.validate();
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
constructor(map?: { [key: string]: any }) {
|
|
21
|
+
super(map);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DeleteCustomAgentResponseBody } from "./DeleteCustomAgentResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DeleteCustomAgentResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DeleteCustomAgentResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: DeleteCustomAgentResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DeleteCustomAgentResponseBodyData extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The unique identifier of the custom agent. You can retrieve it from the response of CreateCustomAgent or ListCustomAgents.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* agent-550e8400e29b41d4a716446655440000
|
|
12
|
+
*/
|
|
13
|
+
agentId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The creation method of the agent. The value is CUSTOM for custom agents.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* CUSTOM
|
|
20
|
+
*/
|
|
21
|
+
createMode?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The time when the agent was created. The time is in ISO 8601 format. A trailing Z indicates the UTC time zone. Fractional seconds may be included.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* 2026-10-10T06:00:00Z
|
|
28
|
+
*/
|
|
29
|
+
createdAt?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The deployment method of the agent. Custom agents are deployed and managed by the platform, and the value is MANAGED.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* MANAGED
|
|
36
|
+
*/
|
|
37
|
+
deployType?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The description of the agent\\"s purpose.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* Custom agent that provides conversation services
|
|
44
|
+
*/
|
|
45
|
+
description?: string;
|
|
46
|
+
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* The latest configuration version number. Updates with the same configuration may retain the original version number. This field does not indicate that the configuration has taken effect.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* 1
|
|
52
|
+
*/
|
|
53
|
+
latestSpecVersion?: number;
|
|
54
|
+
/**
|
|
55
|
+
* @remarks
|
|
56
|
+
* The name of the custom agent.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* my-custom-agent
|
|
60
|
+
*/
|
|
61
|
+
name?: string;
|
|
62
|
+
/**
|
|
63
|
+
* @remarks
|
|
64
|
+
* The compute specifications of the agent. Valid values: INTERACTIVE, STANDARD, and HEAVY.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* STANDARD
|
|
68
|
+
*/
|
|
69
|
+
runtime?: string;
|
|
70
|
+
/**
|
|
71
|
+
* @remarks
|
|
72
|
+
* The overall status of the agent. Valid values: Creating: The agent is being created. Running: The agent is running. Failed: The agent failed. Updating: The agent is being updated. Deleting: The agent is being deleted. Deleted: The agent is deleted. To query the execution progress of the latest configuration, call GetCustomAgent.
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* Running
|
|
76
|
+
*/
|
|
77
|
+
status?: string;
|
|
78
|
+
/**
|
|
79
|
+
* @remarks
|
|
80
|
+
* The time when the agent was last updated. The time is in ISO 8601 format. A trailing Z indicates the UTC time zone. Fractional seconds may be included.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* 2026-10-10T06:05:00Z
|
|
84
|
+
*/
|
|
85
|
+
updatedAt?: string;
|
|
86
|
+
/**
|
|
87
|
+
* @remarks
|
|
88
|
+
* The ID of the workspace to which the custom agent belongs.
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* ws-a1b2c3d4e5f6
|
|
92
|
+
*/
|
|
93
|
+
workspaceId?: string;
|
|
94
|
+
static names(): { [key: string]: string } {
|
|
95
|
+
return {
|
|
96
|
+
agentId: 'agentId',
|
|
97
|
+
createMode: 'createMode',
|
|
98
|
+
createdAt: 'createdAt',
|
|
99
|
+
deployType: 'deployType',
|
|
100
|
+
description: 'description',
|
|
101
|
+
latestSpecVersion: 'latestSpecVersion',
|
|
102
|
+
name: 'name',
|
|
103
|
+
runtime: 'runtime',
|
|
104
|
+
status: 'status',
|
|
105
|
+
updatedAt: 'updatedAt',
|
|
106
|
+
workspaceId: 'workspaceId',
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
static types(): { [key: string]: any } {
|
|
111
|
+
return {
|
|
112
|
+
agentId: 'string',
|
|
113
|
+
createMode: 'string',
|
|
114
|
+
createdAt: 'string',
|
|
115
|
+
deployType: 'string',
|
|
116
|
+
description: 'string',
|
|
117
|
+
latestSpecVersion: 'number',
|
|
118
|
+
name: 'string',
|
|
119
|
+
runtime: 'string',
|
|
120
|
+
status: 'string',
|
|
121
|
+
updatedAt: 'string',
|
|
122
|
+
workspaceId: 'string',
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
validate() {
|
|
127
|
+
super.validate();
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
constructor(map?: { [key: string]: any }) {
|
|
131
|
+
super(map);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export class DeleteCustomAgentResponseBody extends $dara.Model {
|
|
136
|
+
/**
|
|
137
|
+
* @remarks
|
|
138
|
+
* The result code of the request. The value is SUCCESS if the request is successful.
|
|
139
|
+
*
|
|
140
|
+
* @example
|
|
141
|
+
* SUCCESS
|
|
142
|
+
*/
|
|
143
|
+
code?: string;
|
|
144
|
+
/**
|
|
145
|
+
* @remarks
|
|
146
|
+
* The summary of the custom agent whose deletion is accepted. The runtime resources are subsequently cleaned up in the background.
|
|
147
|
+
*/
|
|
148
|
+
data?: DeleteCustomAgentResponseBodyData;
|
|
149
|
+
/**
|
|
150
|
+
* @remarks
|
|
151
|
+
* The HTTP status code of the request. The value is 200 if the request is successful.
|
|
152
|
+
*
|
|
153
|
+
* @example
|
|
154
|
+
* 200
|
|
155
|
+
*/
|
|
156
|
+
httpStatusCode?: number;
|
|
157
|
+
/**
|
|
158
|
+
* @remarks
|
|
159
|
+
* The processing result message of the request. The value is success if the request is successful.
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* success
|
|
163
|
+
*/
|
|
164
|
+
message?: string;
|
|
165
|
+
/**
|
|
166
|
+
* @remarks
|
|
167
|
+
* The unique identifier of the request. You can use this ID to locate and troubleshoot issues.
|
|
168
|
+
*
|
|
169
|
+
* @example
|
|
170
|
+
* 550E8400-E29B-41D4-A716-446655440000
|
|
171
|
+
*/
|
|
172
|
+
requestId?: string;
|
|
173
|
+
/**
|
|
174
|
+
* @remarks
|
|
175
|
+
* Indicates whether the request was processed successfully. A value of true indicates that the request was processed successfully. A successful creation, update, or deletion does not mean that the background operation is complete.
|
|
176
|
+
*/
|
|
177
|
+
success?: boolean;
|
|
178
|
+
static names(): { [key: string]: string } {
|
|
179
|
+
return {
|
|
180
|
+
code: 'code',
|
|
181
|
+
data: 'data',
|
|
182
|
+
httpStatusCode: 'httpStatusCode',
|
|
183
|
+
message: 'message',
|
|
184
|
+
requestId: 'requestId',
|
|
185
|
+
success: 'success',
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
static types(): { [key: string]: any } {
|
|
190
|
+
return {
|
|
191
|
+
code: 'string',
|
|
192
|
+
data: DeleteCustomAgentResponseBodyData,
|
|
193
|
+
httpStatusCode: 'number',
|
|
194
|
+
message: 'string',
|
|
195
|
+
requestId: 'string',
|
|
196
|
+
success: 'boolean',
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
validate() {
|
|
201
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
202
|
+
(this.data as any).validate();
|
|
203
|
+
}
|
|
204
|
+
super.validate();
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
constructor(map?: { [key: string]: any }) {
|
|
208
|
+
super(map);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class GetCustomAgentRequest extends $dara.Model {
|
|
6
|
+
static names(): { [key: string]: string } {
|
|
7
|
+
return {
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
static types(): { [key: string]: any } {
|
|
12
|
+
return {
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
validate() {
|
|
17
|
+
super.validate();
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
constructor(map?: { [key: string]: any }) {
|
|
21
|
+
super(map);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { GetCustomAgentResponseBody } from "./GetCustomAgentResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class GetCustomAgentResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: GetCustomAgentResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: GetCustomAgentResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|