@alicloud/agentloop20260520 2.4.3 → 2.4.5

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 (64) hide show
  1. package/dist/client.d.ts +14 -14
  2. package/dist/client.js +26 -14
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateAgentSpaceRequest.d.ts +11 -3
  5. package/dist/models/CreateAgentSpaceRequest.js +2 -0
  6. package/dist/models/CreateAgentSpaceRequest.js.map +1 -1
  7. package/dist/models/CreateContextStoreRequest.d.ts +69 -61
  8. package/dist/models/CreateContextStoreRequest.js +2 -0
  9. package/dist/models/CreateContextStoreRequest.js.map +1 -1
  10. package/dist/models/CreateContextStoreResponseBody.d.ts +2 -2
  11. package/dist/models/CreateExperimentPlanRequest.d.ts +9 -9
  12. package/dist/models/CreateExperimentPlanResponseBody.d.ts +3 -3
  13. package/dist/models/CreatePipelineRequest.d.ts +36 -36
  14. package/dist/models/CreatePipelineResponseBody.d.ts +1 -1
  15. package/dist/models/GetContextStoreResponseBody.d.ts +84 -78
  16. package/dist/models/GetContextStoreResponseBody.js +2 -0
  17. package/dist/models/GetContextStoreResponseBody.js.map +1 -1
  18. package/dist/models/GetDatasetRequest.d.ts +8 -0
  19. package/dist/models/GetDatasetRequest.js +6 -2
  20. package/dist/models/GetDatasetRequest.js.map +1 -1
  21. package/dist/models/GetDatasetResponseBody.d.ts +1 -1
  22. package/dist/models/GetExperimentPlanResponseBody.d.ts +10 -10
  23. package/dist/models/GetExperimentRunResponseBody.d.ts +1 -1
  24. package/dist/models/ListAgentSpacesRequest.d.ts +2 -2
  25. package/dist/models/ListAgentSpacesResponseBody.d.ts +15 -8
  26. package/dist/models/ListAgentSpacesResponseBody.js.map +1 -1
  27. package/dist/models/ListExperimentRunsRequest.d.ts +6 -6
  28. package/dist/models/ListExperimentRunsResponseBody.d.ts +2 -2
  29. package/dist/models/ModelParameters.d.ts +142 -6
  30. package/dist/models/ModelParameters.js +69 -1
  31. package/dist/models/ModelParameters.js.map +1 -1
  32. package/dist/models/UpdateContextStoreRequest.d.ts +58 -59
  33. package/dist/models/UpdateContextStoreRequest.js +2 -0
  34. package/dist/models/UpdateContextStoreRequest.js.map +1 -1
  35. package/dist/models/UpdateContextStoreResponseBody.d.ts +2 -2
  36. package/dist/models/UpdateExperimentPlanRequest.d.ts +5 -5
  37. package/dist/models/UpdateExperimentPlanResponseBody.d.ts +1 -1
  38. package/dist/models/model.d.ts +2 -0
  39. package/dist/models/model.js +15 -11
  40. package/dist/models/model.js.map +1 -1
  41. package/package.json +2 -1
  42. package/src/client.ts +28 -14
  43. package/src/models/CreateAgentSpaceRequest.ts +13 -3
  44. package/src/models/CreateContextStoreRequest.ts +71 -61
  45. package/src/models/CreateContextStoreResponseBody.ts +2 -2
  46. package/src/models/CreateExperimentPlanRequest.ts +9 -9
  47. package/src/models/CreateExperimentPlanResponseBody.ts +3 -3
  48. package/src/models/CreatePipelineRequest.ts +36 -36
  49. package/src/models/CreatePipelineResponseBody.ts +1 -1
  50. package/src/models/GetContextStoreResponseBody.ts +86 -78
  51. package/src/models/GetDatasetRequest.ts +10 -0
  52. package/src/models/GetDatasetResponseBody.ts +1 -1
  53. package/src/models/GetExperimentPlanResponseBody.ts +10 -10
  54. package/src/models/GetExperimentRunResponseBody.ts +1 -1
  55. package/src/models/ListAgentSpacesRequest.ts +2 -2
  56. package/src/models/ListAgentSpacesResponseBody.ts +15 -8
  57. package/src/models/ListExperimentRunsRequest.ts +6 -6
  58. package/src/models/ListExperimentRunsResponseBody.ts +2 -2
  59. package/src/models/ModelParameters.ts +192 -6
  60. package/src/models/UpdateContextStoreRequest.ts +60 -59
  61. package/src/models/UpdateContextStoreResponseBody.ts +2 -2
  62. package/src/models/UpdateExperimentPlanRequest.ts +5 -5
  63. package/src/models/UpdateExperimentPlanResponseBody.ts +1 -1
  64. package/src/models/model.ts +2 -0
package/dist/client.d.ts CHANGED
@@ -63,7 +63,7 @@ export default class Client extends OpenApi {
63
63
  */
64
64
  createAgentSpace(request: $_model.CreateAgentSpaceRequest): Promise<$_model.CreateAgentSpaceResponse>;
65
65
  /**
66
- * Creates a context library.
66
+ * Creates a context store.
67
67
  *
68
68
  * @param request - CreateContextStoreRequest
69
69
  * @param headers - map
@@ -74,7 +74,7 @@ export default class Client extends OpenApi {
74
74
  [key: string]: string;
75
75
  }, runtime: $dara.RuntimeOptions): Promise<$_model.CreateContextStoreResponse>;
76
76
  /**
77
- * Creates a context library.
77
+ * Creates a context store.
78
78
  *
79
79
  * @param request - CreateContextStoreRequest
80
80
  * @returns CreateContextStoreResponse
@@ -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. This operation defines the configuration for 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.
185
+ * Creates an experiment plan in a specified AgentSpace. You can use this operation to define the configuration for 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 initiate 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. This operation defines the configuration for 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.
199
+ * Creates an experiment plan in a specified AgentSpace. You can use this operation to define the configuration for 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 initiate the execution.
200
200
  *
201
201
  * @param request - CreateExperimentPlanRequest
202
202
  * @returns CreateExperimentPlanResponse
@@ -721,10 +721,10 @@ export default class Client extends OpenApi {
721
721
  */
722
722
  getExperimentPlan(agentSpace: string, planId: string, request: $_model.GetExperimentPlanRequest): Promise<$_model.GetExperimentPlanResponse>;
723
723
  /**
724
- * Queries the details of an experiment run record.
724
+ * Queries the details of an experiment run.
725
725
  *
726
726
  * @remarks
727
- * Calls GetExperimentRun to query the details of a specific experiment run record, including the status, progress, configuration snapshot, and associated evaluation task ID.
727
+ * Calls the GetExperimentRun operation to query the details of an experiment run, including the status, progress, configuration snapshot, and associated evaluation task ID.
728
728
  *
729
729
  * @param request - GetExperimentRunRequest
730
730
  * @param headers - map
@@ -735,10 +735,10 @@ export default class Client extends OpenApi {
735
735
  [key: string]: string;
736
736
  }, runtime: $dara.RuntimeOptions): Promise<$_model.GetExperimentRunResponse>;
737
737
  /**
738
- * Queries the details of an experiment run record.
738
+ * Queries the details of an experiment run.
739
739
  *
740
740
  * @remarks
741
- * Calls GetExperimentRun to query the details of a specific experiment run record, including the status, progress, configuration snapshot, and associated evaluation task ID.
741
+ * Calls the GetExperimentRun operation to query the details of an experiment run, including the status, progress, configuration snapshot, and associated evaluation task ID.
742
742
  *
743
743
  * @param request - GetExperimentRunRequest
744
744
  * @returns GetExperimentRunResponse
@@ -1009,10 +1009,10 @@ export default class Client extends OpenApi {
1009
1009
  */
1010
1010
  listExperimentPlans(agentSpace: string, request: $_model.ListExperimentPlansRequest): Promise<$_model.ListExperimentPlansResponse>;
1011
1011
  /**
1012
- * Queries a list of experiment run records.
1012
+ * Queries a list of experiment runs.
1013
1013
  *
1014
1014
  * @remarks
1015
- * Calls ListExperimentRuns to query experiment run records under a specified AgentSpace for the current account. You can filter results by status, dataset, plan name, or experiment name, and use `page`/`pageSize` for pagination.
1015
+ * Calls the ListExperimentRuns operation to query the experiment execution records of the current account in a specified AgentSpace. You can filter records by status, dataset, plan name, and experiment name, and paginate results by using page and pageSize.
1016
1016
  *
1017
1017
  * @param request - ListExperimentRunsRequest
1018
1018
  * @param headers - map
@@ -1023,10 +1023,10 @@ export default class Client extends OpenApi {
1023
1023
  [key: string]: string;
1024
1024
  }, runtime: $dara.RuntimeOptions): Promise<$_model.ListExperimentRunsResponse>;
1025
1025
  /**
1026
- * Queries a list of experiment run records.
1026
+ * Queries a list of experiment runs.
1027
1027
  *
1028
1028
  * @remarks
1029
- * Calls ListExperimentRuns to query experiment run records under a specified AgentSpace for the current account. You can filter results by status, dataset, plan name, or experiment name, and use `page`/`pageSize` for pagination.
1029
+ * Calls the ListExperimentRuns operation to query the experiment execution records of the current account in a specified AgentSpace. You can filter records by status, dataset, plan name, and experiment name, and paginate results by using page and pageSize.
1030
1030
  *
1031
1031
  * @param request - ListExperimentRunsRequest
1032
1032
  * @returns ListExperimentRunsResponse
@@ -1358,7 +1358,7 @@ export default class Client extends OpenApi {
1358
1358
  * Updates an experiment plan.
1359
1359
  *
1360
1360
  * @remarks
1361
- * Updates a specified experiment plan. Fields that are not specified remain unchanged. You can only update plans created by the current account.
1361
+ * Updates a specified experiment plan. Unspecified fields remain unchanged. Only plans created by the current account can be updated.
1362
1362
  *
1363
1363
  * @param request - UpdateExperimentPlanRequest
1364
1364
  * @param headers - map
@@ -1372,7 +1372,7 @@ export default class Client extends OpenApi {
1372
1372
  * Updates an experiment plan.
1373
1373
  *
1374
1374
  * @remarks
1375
- * Updates a specified experiment plan. Fields that are not specified remain unchanged. You can only update plans created by the current account.
1375
+ * Updates a specified experiment plan. Unspecified fields remain unchanged. Only plans created by the current account can be updated.
1376
1376
  *
1377
1377
  * @param request - UpdateExperimentPlanRequest
1378
1378
  * @returns UpdateExperimentPlanResponse
package/dist/client.js CHANGED
@@ -41,6 +41,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
41
41
  Object.defineProperty(exports, "__esModule", { value: true });
42
42
  // This file is auto-generated, don't edit it
43
43
  const $dara = __importStar(require("@darabonba/typescript"));
44
+ const gateway_pop_1 = __importDefault(require("@alicloud/gateway-pop"));
44
45
  const openapi_core_1 = __importDefault(require("@alicloud/openapi-core"));
45
46
  const openapi_core_2 = require("@alicloud/openapi-core");
46
47
  const $_model = __importStar(require("./models/model"));
@@ -48,6 +49,9 @@ __exportStar(require("./models/model"), exports);
48
49
  class Client extends openapi_core_1.default {
49
50
  constructor(config) {
50
51
  super(config);
52
+ this._productId = "AgentLoop";
53
+ let gatewayClient = new gateway_pop_1.default();
54
+ this._spi = gatewayClient;
51
55
  this._endpointRule = "regional";
52
56
  this.checkConfig(config);
53
57
  this._endpoint = this.getEndpoint("agentloop", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
@@ -172,6 +176,9 @@ class Client extends openapi_core_1.default {
172
176
  if (!$dara.isNull(request.mseNamespaceId)) {
173
177
  body["mseNamespaceId"] = request.mseNamespaceId;
174
178
  }
179
+ if (!$dara.isNull(request.trajectoryEmbeddingEnabled)) {
180
+ body["trajectoryEmbeddingEnabled"] = request.trajectoryEmbeddingEnabled;
181
+ }
175
182
  if (!$dara.isNull(request.trajectoryStoreEnabled)) {
176
183
  body["trajectoryStoreEnabled"] = request.trajectoryStoreEnabled;
177
184
  }
@@ -205,7 +212,7 @@ class Client extends openapi_core_1.default {
205
212
  return await this.createAgentSpaceWithOptions(request, headers, runtime);
206
213
  }
207
214
  /**
208
- * Creates a context library.
215
+ * Creates a context store.
209
216
  *
210
217
  * @param request - CreateContextStoreRequest
211
218
  * @param headers - map
@@ -250,7 +257,7 @@ class Client extends openapi_core_1.default {
250
257
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateContextStoreResponse({}));
251
258
  }
252
259
  /**
253
- * Creates a context library.
260
+ * Creates a context store.
254
261
  *
255
262
  * @param request - CreateContextStoreRequest
256
263
  * @returns CreateContextStoreResponse
@@ -582,7 +589,7 @@ class Client extends openapi_core_1.default {
582
589
  * Creates an experiment plan.
583
590
  *
584
591
  * @remarks
585
- * Calls CreateExperimentPlan to create an experiment plan under a specified AgentSpace. This operation defines the configuration for 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.
592
+ * Creates an experiment plan in a specified AgentSpace. You can use this operation to define the configuration for 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 initiate the execution.
586
593
  *
587
594
  * @param request - CreateExperimentPlanRequest
588
595
  * @param headers - map
@@ -643,7 +650,7 @@ class Client extends openapi_core_1.default {
643
650
  * Creates an experiment plan.
644
651
  *
645
652
  * @remarks
646
- * Calls CreateExperimentPlan to create an experiment plan under a specified AgentSpace. This operation defines the configuration for 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.
653
+ * Creates an experiment plan in a specified AgentSpace. You can use this operation to define the configuration for 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 initiate the execution.
647
654
  *
648
655
  * @param request - CreateExperimentPlanRequest
649
656
  * @returns CreateExperimentPlanResponse
@@ -1628,8 +1635,13 @@ class Client extends openapi_core_1.default {
1628
1635
  */
1629
1636
  async getDatasetWithOptions(agentSpace, datasetName, request, headers, runtime) {
1630
1637
  request.validate();
1638
+ let query = {};
1639
+ if (!$dara.isNull(request.version)) {
1640
+ query["version"] = request.version;
1641
+ }
1631
1642
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1632
1643
  headers: headers,
1644
+ query: openapi_core_2.OpenApiUtil.query(query),
1633
1645
  });
1634
1646
  let params = new openapi_core_2.$OpenApiUtil.Params({
1635
1647
  action: "GetDataset",
@@ -1860,10 +1872,10 @@ class Client extends openapi_core_1.default {
1860
1872
  return await this.getExperimentPlanWithOptions(agentSpace, planId, request, headers, runtime);
1861
1873
  }
1862
1874
  /**
1863
- * Queries the details of an experiment run record.
1875
+ * Queries the details of an experiment run.
1864
1876
  *
1865
1877
  * @remarks
1866
- * Calls GetExperimentRun to query the details of a specific experiment run record, including the status, progress, configuration snapshot, and associated evaluation task ID.
1878
+ * Calls the GetExperimentRun operation to query the details of an experiment run, including the status, progress, configuration snapshot, and associated evaluation task ID.
1867
1879
  *
1868
1880
  * @param request - GetExperimentRunRequest
1869
1881
  * @param headers - map
@@ -1889,10 +1901,10 @@ class Client extends openapi_core_1.default {
1889
1901
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetExperimentRunResponse({}));
1890
1902
  }
1891
1903
  /**
1892
- * Queries the details of an experiment run record.
1904
+ * Queries the details of an experiment run.
1893
1905
  *
1894
1906
  * @remarks
1895
- * Calls GetExperimentRun to query the details of a specific experiment run record, including the status, progress, configuration snapshot, and associated evaluation task ID.
1907
+ * Calls the GetExperimentRun operation to query the details of an experiment run, including the status, progress, configuration snapshot, and associated evaluation task ID.
1896
1908
  *
1897
1909
  * @param request - GetExperimentRunRequest
1898
1910
  * @returns GetExperimentRunResponse
@@ -2593,10 +2605,10 @@ class Client extends openapi_core_1.default {
2593
2605
  return await this.listExperimentPlansWithOptions(agentSpace, request, headers, runtime);
2594
2606
  }
2595
2607
  /**
2596
- * Queries a list of experiment run records.
2608
+ * Queries a list of experiment runs.
2597
2609
  *
2598
2610
  * @remarks
2599
- * Calls ListExperimentRuns to query experiment run records under a specified AgentSpace for the current account. You can filter results by status, dataset, plan name, or experiment name, and use `page`/`pageSize` for pagination.
2611
+ * Calls the ListExperimentRuns operation to query the experiment execution records of the current account in a specified AgentSpace. You can filter records by status, dataset, plan name, and experiment name, and paginate results by using page and pageSize.
2600
2612
  *
2601
2613
  * @param request - ListExperimentRunsRequest
2602
2614
  * @param headers - map
@@ -2648,10 +2660,10 @@ class Client extends openapi_core_1.default {
2648
2660
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListExperimentRunsResponse({}));
2649
2661
  }
2650
2662
  /**
2651
- * Queries a list of experiment run records.
2663
+ * Queries a list of experiment runs.
2652
2664
  *
2653
2665
  * @remarks
2654
- * Calls ListExperimentRuns to query experiment run records under a specified AgentSpace for the current account. You can filter results by status, dataset, plan name, or experiment name, and use `page`/`pageSize` for pagination.
2666
+ * Calls the ListExperimentRuns operation to query the experiment execution records of the current account in a specified AgentSpace. You can filter records by status, dataset, plan name, and experiment name, and paginate results by using page and pageSize.
2655
2667
  *
2656
2668
  * @param request - ListExperimentRunsRequest
2657
2669
  * @returns ListExperimentRunsResponse
@@ -3585,7 +3597,7 @@ class Client extends openapi_core_1.default {
3585
3597
  * Updates an experiment plan.
3586
3598
  *
3587
3599
  * @remarks
3588
- * Updates a specified experiment plan. Fields that are not specified remain unchanged. You can only update plans created by the current account.
3600
+ * Updates a specified experiment plan. Unspecified fields remain unchanged. Only plans created by the current account can be updated.
3589
3601
  *
3590
3602
  * @param request - UpdateExperimentPlanRequest
3591
3603
  * @param headers - map
@@ -3649,7 +3661,7 @@ class Client extends openapi_core_1.default {
3649
3661
  * Updates an experiment plan.
3650
3662
  *
3651
3663
  * @remarks
3652
- * Updates a specified experiment plan. Fields that are not specified remain unchanged. You can only update plans created by the current account.
3664
+ * Updates a specified experiment plan. Unspecified fields remain unchanged. Only plans created by the current account can be updated.
3653
3665
  *
3654
3666
  * @param request - UpdateExperimentPlanRequest
3655
3667
  * @returns UpdateExperimentPlanResponse