@alicloud/agentloop20260520 2.3.0 → 2.3.2
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 +12 -12
- package/dist/client.js +34 -17
- package/dist/client.js.map +1 -1
- package/dist/models/CreateAgentSpaceRequest.d.ts +2 -1
- package/dist/models/CreateAgentSpaceRequest.js +2 -0
- package/dist/models/CreateAgentSpaceRequest.js.map +1 -1
- package/dist/models/CreateExperimentPlanRequest.d.ts +7 -6
- package/dist/models/CreateExperimentPlanRequest.js +2 -0
- package/dist/models/CreateExperimentPlanRequest.js.map +1 -1
- package/dist/models/CreateExperimentPlanResponseBody.d.ts +1 -1
- package/dist/models/ExperimentPlanData.d.ts +1 -0
- package/dist/models/ExperimentPlanData.js +2 -0
- package/dist/models/ExperimentPlanData.js.map +1 -1
- package/dist/models/GetAgentSpaceResponseBody.d.ts +4 -3
- package/dist/models/GetAgentSpaceResponseBody.js +2 -0
- package/dist/models/GetAgentSpaceResponseBody.js.map +1 -1
- package/dist/models/GetDatasetResponseBody.d.ts +3 -0
- package/dist/models/GetDatasetResponseBody.js +5 -0
- package/dist/models/GetDatasetResponseBody.js.map +1 -1
- package/dist/models/GetExperimentPlanResponseBody.d.ts +5 -4
- package/dist/models/GetExperimentPlanResponseBody.js +2 -0
- package/dist/models/GetExperimentPlanResponseBody.js.map +1 -1
- package/dist/models/ListAgentSpacesResponseBody.d.ts +1 -0
- package/dist/models/ListAgentSpacesResponseBody.js +2 -0
- package/dist/models/ListAgentSpacesResponseBody.js.map +1 -1
- package/dist/models/ListDatasetsRequest.d.ts +3 -0
- package/dist/models/ListDatasetsRequest.js +5 -0
- package/dist/models/ListDatasetsRequest.js.map +1 -1
- package/dist/models/ListDatasetsResponseBody.d.ts +3 -0
- package/dist/models/ListDatasetsResponseBody.js +5 -0
- package/dist/models/ListDatasetsResponseBody.js.map +1 -1
- package/dist/models/ListDatasetsShrinkRequest.d.ts +38 -0
- package/dist/models/ListDatasetsShrinkRequest.js +64 -0
- package/dist/models/ListDatasetsShrinkRequest.js.map +1 -0
- package/dist/models/RunStrategies.d.ts +14 -0
- package/dist/models/RunStrategies.js.map +1 -1
- package/dist/models/UpdateExperimentPlanRequest.d.ts +3 -2
- package/dist/models/UpdateExperimentPlanRequest.js +2 -0
- package/dist/models/UpdateExperimentPlanRequest.js.map +1 -1
- package/dist/models/UpdateExperimentPlanResponseBody.d.ts +1 -1
- package/dist/models/model.d.ts +1 -0
- package/dist/models/model.js +4 -2
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +39 -17
- package/src/models/CreateAgentSpaceRequest.ts +4 -1
- package/src/models/CreateExperimentPlanRequest.ts +9 -6
- package/src/models/CreateExperimentPlanResponseBody.ts +1 -1
- package/src/models/ExperimentPlanData.ts +3 -0
- package/src/models/GetAgentSpaceResponseBody.ts +6 -3
- package/src/models/GetDatasetResponseBody.ts +6 -0
- package/src/models/GetExperimentPlanResponseBody.ts +7 -4
- package/src/models/ListAgentSpacesResponseBody.ts +3 -0
- package/src/models/ListDatasetsRequest.ts +6 -0
- package/src/models/ListDatasetsResponseBody.ts +6 -0
- package/src/models/ListDatasetsShrinkRequest.ts +57 -0
- package/src/models/RunStrategies.ts +14 -0
- package/src/models/UpdateExperimentPlanRequest.ts +5 -2
- package/src/models/UpdateExperimentPlanResponseBody.ts +1 -1
- package/src/models/model.ts +1 -0
package/dist/client.d.ts
CHANGED
|
@@ -182,7 +182,7 @@ export default class Client extends OpenApi {
|
|
|
182
182
|
* Creates an experiment plan.
|
|
183
183
|
*
|
|
184
184
|
* @remarks
|
|
185
|
-
* Calls CreateExperimentPlan to create an experiment plan under a specified AgentSpace. Use this operation to define the configuration of an offline or online experiment, including the data source, optional evaluators, and experiment groups required for online experiments. After the plan is created, call CreateExperimentRun to start execution.
|
|
185
|
+
* Calls CreateExperimentPlan to create an experiment plan under a specified AgentSpace. Use this operation to define the configuration of an offline or online experiment, including the data source, optional evaluators, and experiment groups required for online experiments. After the plan is created, call CreateExperimentRun to start the execution.
|
|
186
186
|
*
|
|
187
187
|
* @param request - CreateExperimentPlanRequest
|
|
188
188
|
* @param headers - map
|
|
@@ -196,7 +196,7 @@ export default class Client extends OpenApi {
|
|
|
196
196
|
* Creates an experiment plan.
|
|
197
197
|
*
|
|
198
198
|
* @remarks
|
|
199
|
-
* Calls CreateExperimentPlan to create an experiment plan under a specified AgentSpace. Use this operation to define the configuration of an offline or online experiment, including the data source, optional evaluators, and experiment groups required for online experiments. After the plan is created, call CreateExperimentRun to start execution.
|
|
199
|
+
* Calls CreateExperimentPlan to create an experiment plan under a specified AgentSpace. Use this operation to define the configuration of an offline or online experiment, including the data source, optional evaluators, and experiment groups required for online experiments. After the plan is created, call CreateExperimentRun to start the execution.
|
|
200
200
|
*
|
|
201
201
|
* @param request - CreateExperimentPlanRequest
|
|
202
202
|
* @returns CreateExperimentPlanResponse
|
|
@@ -635,10 +635,10 @@ export default class Client extends OpenApi {
|
|
|
635
635
|
*/
|
|
636
636
|
getEvaluatorSkill(name: string, skillName: string, request: $_model.GetEvaluatorSkillRequest): Promise<$_model.GetEvaluatorSkillResponse>;
|
|
637
637
|
/**
|
|
638
|
-
*
|
|
638
|
+
* Queries an experiment plan.
|
|
639
639
|
*
|
|
640
640
|
* @remarks
|
|
641
|
-
* Calls
|
|
641
|
+
* Calls GetExperimentPlan to query the complete configuration of a specified experiment plan, including experiment groups, data sources, evaluators, and timestamps.
|
|
642
642
|
*
|
|
643
643
|
* @param request - GetExperimentPlanRequest
|
|
644
644
|
* @param headers - map
|
|
@@ -649,10 +649,10 @@ export default class Client extends OpenApi {
|
|
|
649
649
|
[key: string]: string;
|
|
650
650
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.GetExperimentPlanResponse>;
|
|
651
651
|
/**
|
|
652
|
-
*
|
|
652
|
+
* Queries an experiment plan.
|
|
653
653
|
*
|
|
654
654
|
* @remarks
|
|
655
|
-
* Calls
|
|
655
|
+
* Calls GetExperimentPlan to query the complete configuration of a specified experiment plan, including experiment groups, data sources, evaluators, and timestamps.
|
|
656
656
|
*
|
|
657
657
|
* @param request - GetExperimentPlanRequest
|
|
658
658
|
* @returns GetExperimentPlanResponse
|
|
@@ -737,7 +737,7 @@ export default class Client extends OpenApi {
|
|
|
737
737
|
*/
|
|
738
738
|
getPipelineStats(agentSpace: string, pipelineName: string, request: $_model.GetPipelineStatsRequest): Promise<$_model.GetPipelineStatsResponse>;
|
|
739
739
|
/**
|
|
740
|
-
* Queries
|
|
740
|
+
* Queries the list of AgentSpaces.
|
|
741
741
|
*
|
|
742
742
|
* @param request - ListAgentSpacesRequest
|
|
743
743
|
* @param headers - map
|
|
@@ -748,7 +748,7 @@ export default class Client extends OpenApi {
|
|
|
748
748
|
[key: string]: string;
|
|
749
749
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.ListAgentSpacesResponse>;
|
|
750
750
|
/**
|
|
751
|
-
* Queries
|
|
751
|
+
* Queries the list of AgentSpaces.
|
|
752
752
|
*
|
|
753
753
|
* @param request - ListAgentSpacesRequest
|
|
754
754
|
* @returns ListAgentSpacesResponse
|
|
@@ -793,12 +793,12 @@ export default class Client extends OpenApi {
|
|
|
793
793
|
/**
|
|
794
794
|
* Queries a list of datasets.
|
|
795
795
|
*
|
|
796
|
-
* @param
|
|
796
|
+
* @param tmpReq - ListDatasetsRequest
|
|
797
797
|
* @param headers - map
|
|
798
798
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
799
799
|
* @returns ListDatasetsResponse
|
|
800
800
|
*/
|
|
801
|
-
listDatasetsWithOptions(agentSpace: string,
|
|
801
|
+
listDatasetsWithOptions(agentSpace: string, tmpReq: $_model.ListDatasetsRequest, headers: {
|
|
802
802
|
[key: string]: string;
|
|
803
803
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.ListDatasetsResponse>;
|
|
804
804
|
/**
|
|
@@ -1218,7 +1218,7 @@ export default class Client extends OpenApi {
|
|
|
1218
1218
|
* Updates an experiment plan.
|
|
1219
1219
|
*
|
|
1220
1220
|
* @remarks
|
|
1221
|
-
* Calls UpdateExperimentPlan to update a specified experiment plan. Fields that are not
|
|
1221
|
+
* Calls UpdateExperimentPlan to update a specified experiment plan. Fields that are not included in the request remain unchanged. Only plans created by the current account can be updated.
|
|
1222
1222
|
*
|
|
1223
1223
|
* @param request - UpdateExperimentPlanRequest
|
|
1224
1224
|
* @param headers - map
|
|
@@ -1232,7 +1232,7 @@ export default class Client extends OpenApi {
|
|
|
1232
1232
|
* Updates an experiment plan.
|
|
1233
1233
|
*
|
|
1234
1234
|
* @remarks
|
|
1235
|
-
* Calls UpdateExperimentPlan to update a specified experiment plan. Fields that are not
|
|
1235
|
+
* Calls UpdateExperimentPlan to update a specified experiment plan. Fields that are not included in the request remain unchanged. Only plans created by the current account can be updated.
|
|
1236
1236
|
*
|
|
1237
1237
|
* @param request - UpdateExperimentPlanRequest
|
|
1238
1238
|
* @returns UpdateExperimentPlanResponse
|
package/dist/client.js
CHANGED
|
@@ -50,15 +50,15 @@ class Client extends openapi_core_1.default {
|
|
|
50
50
|
super(config);
|
|
51
51
|
this._endpointRule = "regional";
|
|
52
52
|
this._endpointMap = {
|
|
53
|
-
'cn-zhangjiakou': "agentloop.cn-zhangjiakou.aliyuncs.com",
|
|
54
53
|
'cn-shenzhen': "agentloop.cn-shenzhen.aliyuncs.com",
|
|
54
|
+
'cn-beijing': "agentloop.cn-beijing.aliyuncs.com",
|
|
55
55
|
'cn-shanghai': "agentloop.cn-shanghai.aliyuncs.com",
|
|
56
|
+
'cn-guangzhou': "agentloop.cn-guangzhou.aliyuncs.com",
|
|
56
57
|
'cn-hongkong': "agentloop.cn-hongkong.aliyuncs.com",
|
|
58
|
+
'ap-southeast-1': "agentloop.ap-southeast-1.aliyuncs.com",
|
|
59
|
+
'cn-zhangjiakou': "agentloop.cn-zhangjiakou.aliyuncs.com",
|
|
57
60
|
'cn-hangzhou': "agentloop.cn-hangzhou.aliyuncs.com",
|
|
58
|
-
'cn-guangzhou': "agentloop.cn-guangzhou.aliyuncs.com",
|
|
59
61
|
'cn-chengdu': "agentloop.cn-chengdu.aliyuncs.com",
|
|
60
|
-
'cn-beijing': "agentloop.cn-beijing.aliyuncs.com",
|
|
61
|
-
'ap-southeast-1': "agentloop.ap-southeast-1.aliyuncs.com",
|
|
62
62
|
};
|
|
63
63
|
this.checkConfig(config);
|
|
64
64
|
this._endpoint = this.getEndpoint("agentloop", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
|
|
@@ -180,6 +180,9 @@ class Client extends openapi_core_1.default {
|
|
|
180
180
|
if (!$dara.isNull(request.description)) {
|
|
181
181
|
body["description"] = request.description;
|
|
182
182
|
}
|
|
183
|
+
if (!$dara.isNull(request.mseNamespaceId)) {
|
|
184
|
+
body["mseNamespaceId"] = request.mseNamespaceId;
|
|
185
|
+
}
|
|
183
186
|
if (!$dara.isNull(request.trajectoryStoreEnabled)) {
|
|
184
187
|
body["trajectoryStoreEnabled"] = request.trajectoryStoreEnabled;
|
|
185
188
|
}
|
|
@@ -590,7 +593,7 @@ class Client extends openapi_core_1.default {
|
|
|
590
593
|
* Creates an experiment plan.
|
|
591
594
|
*
|
|
592
595
|
* @remarks
|
|
593
|
-
* Calls CreateExperimentPlan to create an experiment plan under a specified AgentSpace. Use this operation to define the configuration of an offline or online experiment, including the data source, optional evaluators, and experiment groups required for online experiments. After the plan is created, call CreateExperimentRun to start execution.
|
|
596
|
+
* Calls CreateExperimentPlan to create an experiment plan under a specified AgentSpace. Use this operation to define the configuration of an offline or online experiment, including the data source, optional evaluators, and experiment groups required for online experiments. After the plan is created, call CreateExperimentRun to start the execution.
|
|
594
597
|
*
|
|
595
598
|
* @param request - CreateExperimentPlanRequest
|
|
596
599
|
* @param headers - map
|
|
@@ -618,6 +621,9 @@ class Client extends openapi_core_1.default {
|
|
|
618
621
|
if (!$dara.isNull(request.input)) {
|
|
619
622
|
body["input"] = request.input;
|
|
620
623
|
}
|
|
624
|
+
if (!$dara.isNull(request.pipelineName)) {
|
|
625
|
+
body["pipelineName"] = request.pipelineName;
|
|
626
|
+
}
|
|
621
627
|
if (!$dara.isNull(request.planName)) {
|
|
622
628
|
body["planName"] = request.planName;
|
|
623
629
|
}
|
|
@@ -648,7 +654,7 @@ class Client extends openapi_core_1.default {
|
|
|
648
654
|
* Creates an experiment plan.
|
|
649
655
|
*
|
|
650
656
|
* @remarks
|
|
651
|
-
* Calls CreateExperimentPlan to create an experiment plan under a specified AgentSpace. Use this operation to define the configuration of an offline or online experiment, including the data source, optional evaluators, and experiment groups required for online experiments. After the plan is created, call CreateExperimentRun to start execution.
|
|
657
|
+
* Calls CreateExperimentPlan to create an experiment plan under a specified AgentSpace. Use this operation to define the configuration of an offline or online experiment, including the data source, optional evaluators, and experiment groups required for online experiments. After the plan is created, call CreateExperimentRun to start the execution.
|
|
652
658
|
*
|
|
653
659
|
* @param request - CreateExperimentPlanRequest
|
|
654
660
|
* @returns CreateExperimentPlanResponse
|
|
@@ -1658,10 +1664,10 @@ class Client extends openapi_core_1.default {
|
|
|
1658
1664
|
return await this.getEvaluatorSkillWithOptions(name, skillName, request, headers, runtime);
|
|
1659
1665
|
}
|
|
1660
1666
|
/**
|
|
1661
|
-
*
|
|
1667
|
+
* Queries an experiment plan.
|
|
1662
1668
|
*
|
|
1663
1669
|
* @remarks
|
|
1664
|
-
* Calls
|
|
1670
|
+
* Calls GetExperimentPlan to query the complete configuration of a specified experiment plan, including experiment groups, data sources, evaluators, and timestamps.
|
|
1665
1671
|
*
|
|
1666
1672
|
* @param request - GetExperimentPlanRequest
|
|
1667
1673
|
* @param headers - map
|
|
@@ -1687,10 +1693,10 @@ class Client extends openapi_core_1.default {
|
|
|
1687
1693
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetExperimentPlanResponse({}));
|
|
1688
1694
|
}
|
|
1689
1695
|
/**
|
|
1690
|
-
*
|
|
1696
|
+
* Queries an experiment plan.
|
|
1691
1697
|
*
|
|
1692
1698
|
* @remarks
|
|
1693
|
-
* Calls
|
|
1699
|
+
* Calls GetExperimentPlan to query the complete configuration of a specified experiment plan, including experiment groups, data sources, evaluators, and timestamps.
|
|
1694
1700
|
*
|
|
1695
1701
|
* @param request - GetExperimentPlanRequest
|
|
1696
1702
|
* @returns GetExperimentPlanResponse
|
|
@@ -1866,7 +1872,7 @@ class Client extends openapi_core_1.default {
|
|
|
1866
1872
|
return await this.getPipelineStatsWithOptions(agentSpace, pipelineName, request, headers, runtime);
|
|
1867
1873
|
}
|
|
1868
1874
|
/**
|
|
1869
|
-
* Queries
|
|
1875
|
+
* Queries the list of AgentSpaces.
|
|
1870
1876
|
*
|
|
1871
1877
|
* @param request - ListAgentSpacesRequest
|
|
1872
1878
|
* @param headers - map
|
|
@@ -1906,7 +1912,7 @@ class Client extends openapi_core_1.default {
|
|
|
1906
1912
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListAgentSpacesResponse({}));
|
|
1907
1913
|
}
|
|
1908
1914
|
/**
|
|
1909
|
-
* Queries
|
|
1915
|
+
* Queries the list of AgentSpaces.
|
|
1910
1916
|
*
|
|
1911
1917
|
* @param request - ListAgentSpacesRequest
|
|
1912
1918
|
* @returns ListAgentSpacesResponse
|
|
@@ -2015,17 +2021,25 @@ class Client extends openapi_core_1.default {
|
|
|
2015
2021
|
/**
|
|
2016
2022
|
* Queries a list of datasets.
|
|
2017
2023
|
*
|
|
2018
|
-
* @param
|
|
2024
|
+
* @param tmpReq - ListDatasetsRequest
|
|
2019
2025
|
* @param headers - map
|
|
2020
2026
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2021
2027
|
* @returns ListDatasetsResponse
|
|
2022
2028
|
*/
|
|
2023
|
-
async listDatasetsWithOptions(agentSpace,
|
|
2024
|
-
|
|
2029
|
+
async listDatasetsWithOptions(agentSpace, tmpReq, headers, runtime) {
|
|
2030
|
+
tmpReq.validate();
|
|
2031
|
+
let request = new $_model.ListDatasetsShrinkRequest({});
|
|
2032
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
2033
|
+
if (!$dara.isNull(tmpReq.labels)) {
|
|
2034
|
+
request.labelsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.labels, "labels", "json");
|
|
2035
|
+
}
|
|
2025
2036
|
let query = {};
|
|
2026
2037
|
if (!$dara.isNull(request.datasetName)) {
|
|
2027
2038
|
query["datasetName"] = request.datasetName;
|
|
2028
2039
|
}
|
|
2040
|
+
if (!$dara.isNull(request.labelsShrink)) {
|
|
2041
|
+
query["labels"] = request.labelsShrink;
|
|
2042
|
+
}
|
|
2029
2043
|
if (!$dara.isNull(request.maxResults)) {
|
|
2030
2044
|
query["maxResults"] = request.maxResults;
|
|
2031
2045
|
}
|
|
@@ -3206,7 +3220,7 @@ class Client extends openapi_core_1.default {
|
|
|
3206
3220
|
* Updates an experiment plan.
|
|
3207
3221
|
*
|
|
3208
3222
|
* @remarks
|
|
3209
|
-
* Calls UpdateExperimentPlan to update a specified experiment plan. Fields that are not
|
|
3223
|
+
* Calls UpdateExperimentPlan to update a specified experiment plan. Fields that are not included in the request remain unchanged. Only plans created by the current account can be updated.
|
|
3210
3224
|
*
|
|
3211
3225
|
* @param request - UpdateExperimentPlanRequest
|
|
3212
3226
|
* @param headers - map
|
|
@@ -3237,6 +3251,9 @@ class Client extends openapi_core_1.default {
|
|
|
3237
3251
|
if (!$dara.isNull(request.input)) {
|
|
3238
3252
|
body["input"] = request.input;
|
|
3239
3253
|
}
|
|
3254
|
+
if (!$dara.isNull(request.pipelineName)) {
|
|
3255
|
+
body["pipelineName"] = request.pipelineName;
|
|
3256
|
+
}
|
|
3240
3257
|
if (!$dara.isNull(request.planName)) {
|
|
3241
3258
|
body["planName"] = request.planName;
|
|
3242
3259
|
}
|
|
@@ -3267,7 +3284,7 @@ class Client extends openapi_core_1.default {
|
|
|
3267
3284
|
* Updates an experiment plan.
|
|
3268
3285
|
*
|
|
3269
3286
|
* @remarks
|
|
3270
|
-
* Calls UpdateExperimentPlan to update a specified experiment plan. Fields that are not
|
|
3287
|
+
* Calls UpdateExperimentPlan to update a specified experiment plan. Fields that are not included in the request remain unchanged. Only plans created by the current account can be updated.
|
|
3271
3288
|
*
|
|
3272
3289
|
* @param request - UpdateExperimentPlanRequest
|
|
3273
3290
|
* @returns UpdateExperimentPlanResponse
|