@alicloud/dms20250414 2.0.0 → 2.1.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 +21 -6
- package/dist/client.js +60 -6
- package/dist/client.js.map +1 -1
- package/dist/models/CreateAgentRequest.d.ts +21 -0
- package/dist/models/CreateAgentRequest.js +64 -0
- package/dist/models/CreateAgentRequest.js.map +1 -0
- package/dist/models/CreateAgentResponse.d.ts +19 -0
- package/dist/models/CreateAgentResponse.js +69 -0
- package/dist/models/CreateAgentResponse.js.map +1 -0
- package/dist/models/CreateAgentResponseBody.d.ts +66 -0
- package/dist/models/CreateAgentResponseBody.js +154 -0
- package/dist/models/CreateAgentResponseBody.js.map +1 -0
- package/dist/models/CreateDataAgentSessionRequest.d.ts +42 -18
- package/dist/models/CreateDataAgentSessionRequest.js.map +1 -1
- package/dist/models/CreateDataAgentSessionResponseBody.d.ts +52 -29
- package/dist/models/CreateDataAgentSessionResponseBody.js.map +1 -1
- package/dist/models/CreateDataAgentSessionShrinkRequest.d.ts +2 -2
- package/dist/models/CreateDataAgentThemeRequest.d.ts +16 -8
- package/dist/models/CreateDataAgentThemeRequest.js +2 -0
- package/dist/models/CreateDataAgentThemeRequest.js.map +1 -1
- package/dist/models/CreateDataAgentThemeResponseBody.d.ts +2 -2
- package/dist/models/DescribeDataAgentSessionRequest.d.ts +1 -1
- package/dist/models/DescribeDataAgentSessionResponseBody.d.ts +19 -20
- package/dist/models/DescribeDataAgentSessionResponseBody.js.map +1 -1
- package/dist/models/DescribeDataAgentThemeResponseBody.d.ts +9 -13
- package/dist/models/DescribeDataAgentThemeResponseBody.js.map +1 -1
- package/dist/models/ListDataAgentAccuracyTestInstancesResponseBody.d.ts +9 -2
- package/dist/models/ListDataAgentAccuracyTestInstancesResponseBody.js.map +1 -1
- package/dist/models/ListDataAgentThemeRequest.d.ts +15 -7
- package/dist/models/ListDataAgentThemeRequest.js +2 -0
- package/dist/models/ListDataAgentThemeRequest.js.map +1 -1
- package/dist/models/ListDataAgentThemeResponseBody.d.ts +8 -8
- package/dist/models/model.d.ts +5 -0
- package/dist/models/model.js +23 -13
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +68 -6
- package/src/models/CreateAgentRequest.ts +40 -0
- package/src/models/CreateAgentResponse.ts +40 -0
- package/src/models/CreateAgentResponseBody.ts +157 -0
- package/src/models/CreateDataAgentSessionRequest.ts +42 -18
- package/src/models/CreateDataAgentSessionResponseBody.ts +52 -29
- package/src/models/CreateDataAgentSessionShrinkRequest.ts +2 -2
- package/src/models/CreateDataAgentThemeRequest.ts +18 -8
- package/src/models/CreateDataAgentThemeResponseBody.ts +2 -2
- package/src/models/DescribeDataAgentSessionRequest.ts +1 -1
- package/src/models/DescribeDataAgentSessionResponseBody.ts +19 -20
- package/src/models/DescribeDataAgentThemeResponseBody.ts +9 -13
- package/src/models/ListDataAgentAccuracyTestInstancesResponseBody.ts +9 -2
- package/src/models/ListDataAgentThemeRequest.ts +17 -7
- package/src/models/ListDataAgentThemeResponseBody.ts +8 -8
- package/src/models/model.ts +5 -0
package/dist/client.d.ts
CHANGED
|
@@ -134,6 +134,21 @@ export default class Client extends OpenApi {
|
|
|
134
134
|
* @returns ConfigDataAgentMemoryResponse
|
|
135
135
|
*/
|
|
136
136
|
configDataAgentMemory(request: $_model.ConfigDataAgentMemoryRequest): Promise<$_model.ConfigDataAgentMemoryResponse>;
|
|
137
|
+
/**
|
|
138
|
+
* 创建 Agent
|
|
139
|
+
*
|
|
140
|
+
* @param request - CreateAgentRequest
|
|
141
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
142
|
+
* @returns CreateAgentResponse
|
|
143
|
+
*/
|
|
144
|
+
createAgentWithOptions(request: $_model.CreateAgentRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateAgentResponse>;
|
|
145
|
+
/**
|
|
146
|
+
* 创建 Agent
|
|
147
|
+
*
|
|
148
|
+
* @param request - CreateAgentRequest
|
|
149
|
+
* @returns CreateAgentResponse
|
|
150
|
+
*/
|
|
151
|
+
createAgent(request: $_model.CreateAgentRequest): Promise<$_model.CreateAgentResponse>;
|
|
137
152
|
/**
|
|
138
153
|
* Creates an Airflow instance in a workspace.
|
|
139
154
|
*
|
|
@@ -231,7 +246,7 @@ export default class Client extends OpenApi {
|
|
|
231
246
|
*/
|
|
232
247
|
createDataAgentKnowledgeBase(request: $_model.CreateDataAgentKnowledgeBaseRequest): Promise<$_model.CreateDataAgentKnowledgeBaseResponse>;
|
|
233
248
|
/**
|
|
234
|
-
*
|
|
249
|
+
* Creates a DataAgent session.
|
|
235
250
|
*
|
|
236
251
|
* @param tmpReq - CreateDataAgentSessionRequest
|
|
237
252
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -239,7 +254,7 @@ export default class Client extends OpenApi {
|
|
|
239
254
|
*/
|
|
240
255
|
createDataAgentSessionWithOptions(tmpReq: $_model.CreateDataAgentSessionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateDataAgentSessionResponse>;
|
|
241
256
|
/**
|
|
242
|
-
*
|
|
257
|
+
* Creates a DataAgent session.
|
|
243
258
|
*
|
|
244
259
|
* @param request - CreateDataAgentSessionRequest
|
|
245
260
|
* @returns CreateDataAgentSessionResponse
|
|
@@ -708,7 +723,7 @@ export default class Client extends OpenApi {
|
|
|
708
723
|
*/
|
|
709
724
|
describeDataAgentSession(request: $_model.DescribeDataAgentSessionRequest): Promise<$_model.DescribeDataAgentSessionResponse>;
|
|
710
725
|
/**
|
|
711
|
-
* Invokes the DescribeDataAgentTheme operation to query the details of a
|
|
726
|
+
* Invokes the DescribeDataAgentTheme operation to query the details of a specific DataAgent theme, including the theme name, stage, source, common scenarios, description, and creation and modification time.
|
|
712
727
|
*
|
|
713
728
|
* @param request - DescribeDataAgentThemeRequest
|
|
714
729
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -716,7 +731,7 @@ export default class Client extends OpenApi {
|
|
|
716
731
|
*/
|
|
717
732
|
describeDataAgentThemeWithOptions(request: $_model.DescribeDataAgentThemeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeDataAgentThemeResponse>;
|
|
718
733
|
/**
|
|
719
|
-
* Invokes the DescribeDataAgentTheme operation to query the details of a
|
|
734
|
+
* Invokes the DescribeDataAgentTheme operation to query the details of a specific DataAgent theme, including the theme name, stage, source, common scenarios, description, and creation and modification time.
|
|
720
735
|
*
|
|
721
736
|
* @param request - DescribeDataAgentThemeRequest
|
|
722
737
|
* @returns DescribeDataAgentThemeResponse
|
|
@@ -1429,7 +1444,7 @@ export default class Client extends OpenApi {
|
|
|
1429
1444
|
*/
|
|
1430
1445
|
listDataAgentSkillMeta(request: $_model.ListDataAgentSkillMetaRequest): Promise<$_model.ListDataAgentSkillMetaResponse>;
|
|
1431
1446
|
/**
|
|
1432
|
-
*
|
|
1447
|
+
* Calls the ListDataAgentTheme operation to query the DataAgent theme list by paging. You can filter results by theme stage, source, and common scenario.
|
|
1433
1448
|
*
|
|
1434
1449
|
* @param request - ListDataAgentThemeRequest
|
|
1435
1450
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1437,7 +1452,7 @@ export default class Client extends OpenApi {
|
|
|
1437
1452
|
*/
|
|
1438
1453
|
listDataAgentThemeWithOptions(request: $_model.ListDataAgentThemeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListDataAgentThemeResponse>;
|
|
1439
1454
|
/**
|
|
1440
|
-
*
|
|
1455
|
+
* Calls the ListDataAgentTheme operation to query the DataAgent theme list by paging. You can filter results by theme stage, source, and common scenario.
|
|
1441
1456
|
*
|
|
1442
1457
|
* @param request - ListDataAgentThemeRequest
|
|
1443
1458
|
* @returns ListDataAgentThemeResponse
|
package/dist/client.js
CHANGED
|
@@ -508,6 +508,54 @@ class Client extends openapi_core_1.default {
|
|
|
508
508
|
let runtime = new $dara.RuntimeOptions({});
|
|
509
509
|
return await this.configDataAgentMemoryWithOptions(request, runtime);
|
|
510
510
|
}
|
|
511
|
+
/**
|
|
512
|
+
* 创建 Agent
|
|
513
|
+
*
|
|
514
|
+
* @param request - CreateAgentRequest
|
|
515
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
516
|
+
* @returns CreateAgentResponse
|
|
517
|
+
*/
|
|
518
|
+
async createAgentWithOptions(request, runtime) {
|
|
519
|
+
request.validate();
|
|
520
|
+
let query = {};
|
|
521
|
+
if (!$dara.isNull(request.agentName)) {
|
|
522
|
+
query["AgentName"] = request.agentName;
|
|
523
|
+
}
|
|
524
|
+
if (!$dara.isNull(request.agentType)) {
|
|
525
|
+
query["AgentType"] = request.agentType;
|
|
526
|
+
}
|
|
527
|
+
if (!$dara.isNull(request.description)) {
|
|
528
|
+
query["Description"] = request.description;
|
|
529
|
+
}
|
|
530
|
+
if (!$dara.isNull(request.expireAfterSeconds)) {
|
|
531
|
+
query["ExpireAfterSeconds"] = request.expireAfterSeconds;
|
|
532
|
+
}
|
|
533
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
534
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
535
|
+
});
|
|
536
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
537
|
+
action: "CreateAgent",
|
|
538
|
+
version: "2025-04-14",
|
|
539
|
+
protocol: "HTTPS",
|
|
540
|
+
pathname: "/",
|
|
541
|
+
method: "POST",
|
|
542
|
+
authType: "AK",
|
|
543
|
+
style: "RPC",
|
|
544
|
+
reqBodyType: "formData",
|
|
545
|
+
bodyType: "json",
|
|
546
|
+
});
|
|
547
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateAgentResponse({}));
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* 创建 Agent
|
|
551
|
+
*
|
|
552
|
+
* @param request - CreateAgentRequest
|
|
553
|
+
* @returns CreateAgentResponse
|
|
554
|
+
*/
|
|
555
|
+
async createAgent(request) {
|
|
556
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
557
|
+
return await this.createAgentWithOptions(request, runtime);
|
|
558
|
+
}
|
|
511
559
|
/**
|
|
512
560
|
* Creates an Airflow instance in a workspace.
|
|
513
561
|
*
|
|
@@ -951,7 +999,7 @@ class Client extends openapi_core_1.default {
|
|
|
951
999
|
return await this.createDataAgentKnowledgeBaseWithOptions(request, runtime);
|
|
952
1000
|
}
|
|
953
1001
|
/**
|
|
954
|
-
*
|
|
1002
|
+
* Creates a DataAgent session.
|
|
955
1003
|
*
|
|
956
1004
|
* @param tmpReq - CreateDataAgentSessionRequest
|
|
957
1005
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -997,7 +1045,7 @@ class Client extends openapi_core_1.default {
|
|
|
997
1045
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateDataAgentSessionResponse({}));
|
|
998
1046
|
}
|
|
999
1047
|
/**
|
|
1000
|
-
*
|
|
1048
|
+
* Creates a DataAgent session.
|
|
1001
1049
|
*
|
|
1002
1050
|
* @param request - CreateDataAgentSessionRequest
|
|
1003
1051
|
* @returns CreateDataAgentSessionResponse
|
|
@@ -1082,6 +1130,9 @@ class Client extends openapi_core_1.default {
|
|
|
1082
1130
|
if (!$dara.isNull(request.themeType)) {
|
|
1083
1131
|
query["ThemeType"] = request.themeType;
|
|
1084
1132
|
}
|
|
1133
|
+
if (!$dara.isNull(request.workspaceId)) {
|
|
1134
|
+
query["WorkspaceId"] = request.workspaceId;
|
|
1135
|
+
}
|
|
1085
1136
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1086
1137
|
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1087
1138
|
});
|
|
@@ -2476,7 +2527,7 @@ class Client extends openapi_core_1.default {
|
|
|
2476
2527
|
return await this.describeDataAgentSessionWithOptions(request, runtime);
|
|
2477
2528
|
}
|
|
2478
2529
|
/**
|
|
2479
|
-
* Invokes the DescribeDataAgentTheme operation to query the details of a
|
|
2530
|
+
* Invokes the DescribeDataAgentTheme operation to query the details of a specific DataAgent theme, including the theme name, stage, source, common scenarios, description, and creation and modification time.
|
|
2480
2531
|
*
|
|
2481
2532
|
* @param request - DescribeDataAgentThemeRequest
|
|
2482
2533
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2505,7 +2556,7 @@ class Client extends openapi_core_1.default {
|
|
|
2505
2556
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeDataAgentThemeResponse({}));
|
|
2506
2557
|
}
|
|
2507
2558
|
/**
|
|
2508
|
-
* Invokes the DescribeDataAgentTheme operation to query the details of a
|
|
2559
|
+
* Invokes the DescribeDataAgentTheme operation to query the details of a specific DataAgent theme, including the theme name, stage, source, common scenarios, description, and creation and modification time.
|
|
2509
2560
|
*
|
|
2510
2561
|
* @param request - DescribeDataAgentThemeRequest
|
|
2511
2562
|
* @returns DescribeDataAgentThemeResponse
|
|
@@ -4699,7 +4750,7 @@ class Client extends openapi_core_1.default {
|
|
|
4699
4750
|
return await this.listDataAgentSkillMetaWithOptions(request, runtime);
|
|
4700
4751
|
}
|
|
4701
4752
|
/**
|
|
4702
|
-
*
|
|
4753
|
+
* Calls the ListDataAgentTheme operation to query the DataAgent theme list by paging. You can filter results by theme stage, source, and common scenario.
|
|
4703
4754
|
*
|
|
4704
4755
|
* @param request - ListDataAgentThemeRequest
|
|
4705
4756
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -4729,6 +4780,9 @@ class Client extends openapi_core_1.default {
|
|
|
4729
4780
|
if (!$dara.isNull(request.themeType)) {
|
|
4730
4781
|
query["ThemeType"] = request.themeType;
|
|
4731
4782
|
}
|
|
4783
|
+
if (!$dara.isNull(request.workspaceId)) {
|
|
4784
|
+
query["WorkspaceId"] = request.workspaceId;
|
|
4785
|
+
}
|
|
4732
4786
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
4733
4787
|
query: openapi_core_2.OpenApiUtil.query(query),
|
|
4734
4788
|
});
|
|
@@ -4746,7 +4800,7 @@ class Client extends openapi_core_1.default {
|
|
|
4746
4800
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListDataAgentThemeResponse({}));
|
|
4747
4801
|
}
|
|
4748
4802
|
/**
|
|
4749
|
-
*
|
|
4803
|
+
* Calls the ListDataAgentTheme operation to query the DataAgent theme list by paging. You can filter results by theme stage, source, and common scenario.
|
|
4750
4804
|
*
|
|
4751
4805
|
* @param request - ListDataAgentThemeRequest
|
|
4752
4806
|
* @returns ListDataAgentThemeResponse
|