@alicloud/agentloop20260520 2.5.1 → 2.5.3
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 +36 -24
- package/dist/client.js +36 -24
- package/dist/client.js.map +1 -1
- package/dist/models/CreateDatasetVersionRequest.d.ts +3 -3
- package/dist/models/CreateExperimentPlanRequest.d.ts +11 -8
- package/dist/models/CreateExperimentPlanRequest.js.map +1 -1
- package/dist/models/CreateExperimentPlanResponseBody.d.ts +1 -1
- package/dist/models/CreatePipelineRequest.d.ts +32 -29
- package/dist/models/CreatePipelineRequest.js.map +1 -1
- package/dist/models/CreatePipelineResponseBody.d.ts +1 -1
- package/dist/models/DescribeRegionsRequest.d.ts +1 -1
- package/dist/models/DescribeRegionsResponseBody.d.ts +3 -3
- package/dist/models/GetAgentSpaceResponseBody.d.ts +11 -2
- package/dist/models/GetAgentSpaceResponseBody.js.map +1 -1
- package/dist/models/GetEvaluationRunResponseBody.d.ts +27 -17
- package/dist/models/GetEvaluationRunResponseBody.js +5 -0
- package/dist/models/GetEvaluationRunResponseBody.js.map +1 -1
- package/dist/models/GetEvaluationTaskResponseBody.d.ts +23 -13
- package/dist/models/GetEvaluationTaskResponseBody.js +5 -0
- package/dist/models/GetEvaluationTaskResponseBody.js.map +1 -1
- package/dist/models/GetOptimizeTaskResponseBody.d.ts +14 -5
- package/dist/models/GetOptimizeTaskResponseBody.js.map +1 -1
- package/dist/models/GetPipelineRunResponseBody.d.ts +25 -21
- package/dist/models/GetPipelineRunResponseBody.js.map +1 -1
- package/dist/models/ListAgentSpacesRequest.d.ts +2 -2
- package/dist/models/ListAgentSpacesResponseBody.d.ts +5 -5
- package/dist/models/ListAgentSpacesShrinkRequest.d.ts +2 -2
- package/dist/models/ListDatasetVersionsRequest.d.ts +1 -1
- package/dist/models/ListEvaluatorsRequest.d.ts +2 -2
- package/dist/models/ListEvaluatorsResponseBody.d.ts +7 -7
- package/dist/models/ListExperimentPlansRequest.d.ts +5 -5
- package/dist/models/ListExperimentPlansResponseBody.d.ts +3 -3
- package/dist/models/ListOptimizeRunsRequest.d.ts +6 -6
- package/dist/models/ListOptimizeRunsResponseBody.d.ts +25 -8
- package/dist/models/ListOptimizeRunsResponseBody.js.map +1 -1
- package/dist/models/ListOptimizeTasksRequest.d.ts +2 -2
- package/dist/models/ListOptimizeTasksResponseBody.d.ts +17 -8
- package/dist/models/ListOptimizeTasksResponseBody.js.map +1 -1
- package/dist/models/ListPipelineRunsRequest.d.ts +5 -5
- package/dist/models/ListPipelineRunsResponseBody.d.ts +18 -9
- package/dist/models/ListPipelineRunsResponseBody.js.map +1 -1
- package/dist/models/MetaSchemaValue.d.ts +1 -1
- package/dist/models/PreviewPipelineRequest.d.ts +13 -10
- package/dist/models/PreviewPipelineRequest.js.map +1 -1
- package/dist/models/PreviewPipelineResponseBody.d.ts +12 -12
- package/dist/models/SearchContextRequest.d.ts +10 -10
- package/dist/models/SearchContextResponseBody.d.ts +32 -6
- package/dist/models/SearchContextResponseBody.js.map +1 -1
- package/dist/models/UpdateContextStoreRequest.d.ts +59 -45
- package/dist/models/UpdateContextStoreRequest.js.map +1 -1
- package/dist/models/UpdateContextStoreResponseBody.d.ts +5 -5
- package/dist/models/UpdateEvaluatorSkillRequest.d.ts +11 -11
- package/dist/models/UpdateExperimentPlanRequest.d.ts +7 -4
- package/dist/models/UpdateExperimentPlanRequest.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +36 -24
- package/src/models/CreateDatasetVersionRequest.ts +3 -3
- package/src/models/CreateExperimentPlanRequest.ts +11 -8
- package/src/models/CreateExperimentPlanResponseBody.ts +1 -1
- package/src/models/CreatePipelineRequest.ts +32 -29
- package/src/models/CreatePipelineResponseBody.ts +1 -1
- package/src/models/DescribeRegionsRequest.ts +1 -1
- package/src/models/DescribeRegionsResponseBody.ts +3 -3
- package/src/models/GetAgentSpaceResponseBody.ts +11 -2
- package/src/models/GetEvaluationRunResponseBody.ts +30 -17
- package/src/models/GetEvaluationTaskResponseBody.ts +26 -13
- package/src/models/GetOptimizeTaskResponseBody.ts +14 -5
- package/src/models/GetPipelineRunResponseBody.ts +25 -21
- package/src/models/ListAgentSpacesRequest.ts +2 -2
- package/src/models/ListAgentSpacesResponseBody.ts +5 -5
- package/src/models/ListAgentSpacesShrinkRequest.ts +2 -2
- package/src/models/ListDatasetVersionsRequest.ts +1 -1
- package/src/models/ListEvaluatorsRequest.ts +2 -2
- package/src/models/ListEvaluatorsResponseBody.ts +7 -7
- package/src/models/ListExperimentPlansRequest.ts +5 -5
- package/src/models/ListExperimentPlansResponseBody.ts +3 -3
- package/src/models/ListOptimizeRunsRequest.ts +6 -6
- package/src/models/ListOptimizeRunsResponseBody.ts +25 -8
- package/src/models/ListOptimizeTasksRequest.ts +2 -2
- package/src/models/ListOptimizeTasksResponseBody.ts +17 -8
- package/src/models/ListPipelineRunsRequest.ts +5 -5
- package/src/models/ListPipelineRunsResponseBody.ts +18 -9
- package/src/models/MetaSchemaValue.ts +1 -1
- package/src/models/PreviewPipelineRequest.ts +13 -10
- package/src/models/PreviewPipelineResponseBody.ts +12 -12
- package/src/models/SearchContextRequest.ts +10 -10
- package/src/models/SearchContextResponseBody.ts +32 -6
- package/src/models/UpdateContextStoreRequest.ts +59 -45
- package/src/models/UpdateContextStoreResponseBody.ts +5 -5
- package/src/models/UpdateEvaluatorSkillRequest.ts +11 -11
- package/src/models/UpdateExperimentPlanRequest.ts +7 -4
package/src/client.ts
CHANGED
|
@@ -368,7 +368,7 @@ export default class Client extends OpenApi {
|
|
|
368
368
|
}
|
|
369
369
|
|
|
370
370
|
/**
|
|
371
|
-
* Creates a named historical version for a dataset in a specified agent workspace to preserve the historical state of the dataset. You can call ListDatasetVersions to query version information.
|
|
371
|
+
* Creates a named historical version for a dataset in a specified agent workspace to preserve the historical state of the dataset. You can call ListDatasetVersions to query version information. When a version is no longer needed, you can call DeleteDatasetVersion to delete it.
|
|
372
372
|
*
|
|
373
373
|
* @param request - CreateDatasetVersionRequest
|
|
374
374
|
* @param headers - map
|
|
@@ -411,7 +411,7 @@ export default class Client extends OpenApi {
|
|
|
411
411
|
}
|
|
412
412
|
|
|
413
413
|
/**
|
|
414
|
-
* Creates a named historical version for a dataset in a specified agent workspace to preserve the historical state of the dataset. You can call ListDatasetVersions to query version information.
|
|
414
|
+
* Creates a named historical version for a dataset in a specified agent workspace to preserve the historical state of the dataset. You can call ListDatasetVersions to query version information. When a version is no longer needed, you can call DeleteDatasetVersion to delete it.
|
|
415
415
|
*
|
|
416
416
|
* @param request - CreateDatasetVersionRequest
|
|
417
417
|
* @returns CreateDatasetVersionResponse
|
|
@@ -679,7 +679,7 @@ export default class Client extends OpenApi {
|
|
|
679
679
|
* Creates an experiment plan.
|
|
680
680
|
*
|
|
681
681
|
* @remarks
|
|
682
|
-
*
|
|
682
|
+
* Calls CreateExperimentPlan to create an experiment plan in a specified AgentSpace. This operation is used 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.
|
|
683
683
|
*
|
|
684
684
|
* @param request - CreateExperimentPlanRequest
|
|
685
685
|
* @param headers - map
|
|
@@ -751,7 +751,7 @@ export default class Client extends OpenApi {
|
|
|
751
751
|
* Creates an experiment plan.
|
|
752
752
|
*
|
|
753
753
|
* @remarks
|
|
754
|
-
*
|
|
754
|
+
* Calls CreateExperimentPlan to create an experiment plan in a specified AgentSpace. This operation is used 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.
|
|
755
755
|
*
|
|
756
756
|
* @param request - CreateExperimentPlanRequest
|
|
757
757
|
* @returns CreateExperimentPlanResponse
|
|
@@ -1217,7 +1217,7 @@ export default class Client extends OpenApi {
|
|
|
1217
1217
|
}
|
|
1218
1218
|
|
|
1219
1219
|
/**
|
|
1220
|
-
* Deletes a historical version of a dataset in a specified agent
|
|
1220
|
+
* Deletes a historical version of a dataset in a specified agent space. After the deletion, the version no longer appears in the list returned by ListDatasetVersions. This operation does not delete the dataset itself, current data, or other historical versions.
|
|
1221
1221
|
*
|
|
1222
1222
|
* @param request - DeleteDatasetVersionRequest
|
|
1223
1223
|
* @param headers - map
|
|
@@ -1244,7 +1244,7 @@ export default class Client extends OpenApi {
|
|
|
1244
1244
|
}
|
|
1245
1245
|
|
|
1246
1246
|
/**
|
|
1247
|
-
* Deletes a historical version of a dataset in a specified agent
|
|
1247
|
+
* Deletes a historical version of a dataset in a specified agent space. After the deletion, the version no longer appears in the list returned by ListDatasetVersions. This operation does not delete the dataset itself, current data, or other historical versions.
|
|
1248
1248
|
*
|
|
1249
1249
|
* @param request - DeleteDatasetVersionRequest
|
|
1250
1250
|
* @returns DeleteDatasetVersionResponse
|
|
@@ -2277,7 +2277,10 @@ export default class Client extends OpenApi {
|
|
|
2277
2277
|
}
|
|
2278
2278
|
|
|
2279
2279
|
/**
|
|
2280
|
-
* Queries the details of a single
|
|
2280
|
+
* Queries the details of a single run, including the data window, execute status, retry information, run statistics, and fault message.
|
|
2281
|
+
*
|
|
2282
|
+
* @remarks
|
|
2283
|
+
* Invokes GetPipelineRun to retrieve the details of a single pipeline run, including the data window, execute status, retry information, run statistics, and fault message.
|
|
2281
2284
|
*
|
|
2282
2285
|
* @param request - GetPipelineRunRequest
|
|
2283
2286
|
* @param headers - map
|
|
@@ -2304,7 +2307,10 @@ export default class Client extends OpenApi {
|
|
|
2304
2307
|
}
|
|
2305
2308
|
|
|
2306
2309
|
/**
|
|
2307
|
-
* Queries the details of a single
|
|
2310
|
+
* Queries the details of a single run, including the data window, execute status, retry information, run statistics, and fault message.
|
|
2311
|
+
*
|
|
2312
|
+
* @remarks
|
|
2313
|
+
* Invokes GetPipelineRun to retrieve the details of a single pipeline run, including the data window, execute status, retry information, run statistics, and fault message.
|
|
2308
2314
|
*
|
|
2309
2315
|
* @param request - GetPipelineRunRequest
|
|
2310
2316
|
* @returns GetPipelineRunResponse
|
|
@@ -2552,7 +2558,7 @@ export default class Client extends OpenApi {
|
|
|
2552
2558
|
}
|
|
2553
2559
|
|
|
2554
2560
|
/**
|
|
2555
|
-
* Performs a paged query to retrieve the historical versions of a dataset in a specified agent
|
|
2561
|
+
* Performs a paged query to retrieve the historical versions of a dataset in a specified agent space and returns the version names, descriptions, and creation time. Deleted versions are not returned in the list. Do not specify nextToken in the first request. For subsequent requests, use the nextToken from the previous response to continue paging.
|
|
2556
2562
|
*
|
|
2557
2563
|
* @param request - ListDatasetVersionsRequest
|
|
2558
2564
|
* @param headers - map
|
|
@@ -2589,7 +2595,7 @@ export default class Client extends OpenApi {
|
|
|
2589
2595
|
}
|
|
2590
2596
|
|
|
2591
2597
|
/**
|
|
2592
|
-
* Performs a paged query to retrieve the historical versions of a dataset in a specified agent
|
|
2598
|
+
* Performs a paged query to retrieve the historical versions of a dataset in a specified agent space and returns the version names, descriptions, and creation time. Deleted versions are not returned in the list. Do not specify nextToken in the first request. For subsequent requests, use the nextToken from the previous response to continue paging.
|
|
2593
2599
|
*
|
|
2594
2600
|
* @param request - ListDatasetVersionsRequest
|
|
2595
2601
|
* @returns ListDatasetVersionsResponse
|
|
@@ -2847,7 +2853,7 @@ export default class Client extends OpenApi {
|
|
|
2847
2853
|
}
|
|
2848
2854
|
|
|
2849
2855
|
/**
|
|
2850
|
-
* Queries
|
|
2856
|
+
* Queries the list of evaluators.
|
|
2851
2857
|
*
|
|
2852
2858
|
* @param request - ListEvaluatorsRequest
|
|
2853
2859
|
* @param headers - map
|
|
@@ -2900,7 +2906,7 @@ export default class Client extends OpenApi {
|
|
|
2900
2906
|
}
|
|
2901
2907
|
|
|
2902
2908
|
/**
|
|
2903
|
-
* Queries
|
|
2909
|
+
* Queries the list of evaluators.
|
|
2904
2910
|
*
|
|
2905
2911
|
* @param request - ListEvaluatorsRequest
|
|
2906
2912
|
* @returns ListEvaluatorsResponse
|
|
@@ -2915,7 +2921,7 @@ export default class Client extends OpenApi {
|
|
|
2915
2921
|
* Queries the list of experiment plans.
|
|
2916
2922
|
*
|
|
2917
2923
|
* @remarks
|
|
2918
|
-
* Calls ListExperimentPlans to query the list of experiment plans under a specified AgentSpace for the current account.
|
|
2924
|
+
* Calls ListExperimentPlans to query the list of experiment plans under a specified AgentSpace for the current account. This operation supports fuzzy match by plan name, filtering by status, and pagination by using `offset` and `limit`.
|
|
2919
2925
|
*
|
|
2920
2926
|
* @param request - ListExperimentPlansRequest
|
|
2921
2927
|
* @param headers - map
|
|
@@ -2971,7 +2977,7 @@ export default class Client extends OpenApi {
|
|
|
2971
2977
|
* Queries the list of experiment plans.
|
|
2972
2978
|
*
|
|
2973
2979
|
* @remarks
|
|
2974
|
-
* Calls ListExperimentPlans to query the list of experiment plans under a specified AgentSpace for the current account.
|
|
2980
|
+
* Calls ListExperimentPlans to query the list of experiment plans under a specified AgentSpace for the current account. This operation supports fuzzy match by plan name, filtering by status, and pagination by using `offset` and `limit`.
|
|
2975
2981
|
*
|
|
2976
2982
|
* @param request - ListExperimentPlansRequest
|
|
2977
2983
|
* @returns ListExperimentPlansResponse
|
|
@@ -3062,7 +3068,7 @@ export default class Client extends OpenApi {
|
|
|
3062
3068
|
}
|
|
3063
3069
|
|
|
3064
3070
|
/**
|
|
3065
|
-
*
|
|
3071
|
+
* Queries the run records of a specified optimization task by using paging. Complete result references and frozen outputs are queried by calling GetOptimizeRun.
|
|
3066
3072
|
*
|
|
3067
3073
|
* @param request - ListOptimizeRunsRequest
|
|
3068
3074
|
* @param headers - map
|
|
@@ -3111,7 +3117,7 @@ export default class Client extends OpenApi {
|
|
|
3111
3117
|
}
|
|
3112
3118
|
|
|
3113
3119
|
/**
|
|
3114
|
-
*
|
|
3120
|
+
* Queries the run records of a specified optimization task by using paging. Complete result references and frozen outputs are queried by calling GetOptimizeRun.
|
|
3115
3121
|
*
|
|
3116
3122
|
* @param request - ListOptimizeRunsRequest
|
|
3117
3123
|
* @returns ListOptimizeRunsResponse
|
|
@@ -3123,7 +3129,7 @@ export default class Client extends OpenApi {
|
|
|
3123
3129
|
}
|
|
3124
3130
|
|
|
3125
3131
|
/**
|
|
3126
|
-
*
|
|
3132
|
+
* Performs a paging query on the optimization tasks in a specified AgentSpace and returns the task status, configurations, and scheduling checkpoints.
|
|
3127
3133
|
*
|
|
3128
3134
|
* @param request - ListOptimizeTasksRequest
|
|
3129
3135
|
* @param headers - map
|
|
@@ -3168,7 +3174,7 @@ export default class Client extends OpenApi {
|
|
|
3168
3174
|
}
|
|
3169
3175
|
|
|
3170
3176
|
/**
|
|
3171
|
-
*
|
|
3177
|
+
* Performs a paging query on the optimization tasks in a specified AgentSpace and returns the task status, configurations, and scheduling checkpoints.
|
|
3172
3178
|
*
|
|
3173
3179
|
* @param request - ListOptimizeTasksRequest
|
|
3174
3180
|
* @returns ListOptimizeTasksResponse
|
|
@@ -3180,7 +3186,10 @@ export default class Client extends OpenApi {
|
|
|
3180
3186
|
}
|
|
3181
3187
|
|
|
3182
3188
|
/**
|
|
3183
|
-
* Queries the run history. Supports filtering by status, trigger type, and time range, and cursor-based pagination.
|
|
3189
|
+
* Queries the run history. Supports filtering by status, trigger type, and time range, and uses cursor-based pagination.
|
|
3190
|
+
*
|
|
3191
|
+
* @remarks
|
|
3192
|
+
* Calls the ListPipelineRuns operation to query the pipeline run history. You can filter the results by status, trigger type, and time range, and use cursor-based pagination.
|
|
3184
3193
|
*
|
|
3185
3194
|
* @param request - ListPipelineRunsRequest
|
|
3186
3195
|
* @param headers - map
|
|
@@ -3233,7 +3242,10 @@ export default class Client extends OpenApi {
|
|
|
3233
3242
|
}
|
|
3234
3243
|
|
|
3235
3244
|
/**
|
|
3236
|
-
* Queries the run history. Supports filtering by status, trigger type, and time range, and cursor-based pagination.
|
|
3245
|
+
* Queries the run history. Supports filtering by status, trigger type, and time range, and uses cursor-based pagination.
|
|
3246
|
+
*
|
|
3247
|
+
* @remarks
|
|
3248
|
+
* Calls the ListPipelineRuns operation to query the pipeline run history. You can filter the results by status, trigger type, and time range, and use cursor-based pagination.
|
|
3237
3249
|
*
|
|
3238
3250
|
* @param request - ListPipelineRunsRequest
|
|
3239
3251
|
* @returns ListPipelineRunsResponse
|
|
@@ -3359,8 +3371,8 @@ export default class Client extends OpenApi {
|
|
|
3359
3371
|
*
|
|
3360
3372
|
* @remarks
|
|
3361
3373
|
* ## Request description
|
|
3362
|
-
* - **agentSpace** must be an AgentSpace instance
|
|
3363
|
-
* - **source.type** currently supports only the `logstore` type
|
|
3374
|
+
* - **agentSpace** must be an existing AgentSpace instance under the current account.
|
|
3375
|
+
* - **source.type** currently supports only the `logstore` type. The `logstore.project` and `logstore.logstore` must be authorized within the AgentSpace and reside in the same region.
|
|
3364
3376
|
* - **pipeline.nodes** must contain at least one `Source` node and cannot be empty.
|
|
3365
3377
|
* - **fromTime** and **toTime** are UNIX timestamps in seconds. **fromTime** must be earlier than **toTime**.
|
|
3366
3378
|
* - A maximum of 5 records are returned, and internal fields of the data source system are automatically filtered out.
|
|
@@ -3412,8 +3424,8 @@ export default class Client extends OpenApi {
|
|
|
3412
3424
|
*
|
|
3413
3425
|
* @remarks
|
|
3414
3426
|
* ## Request description
|
|
3415
|
-
* - **agentSpace** must be an AgentSpace instance
|
|
3416
|
-
* - **source.type** currently supports only the `logstore` type
|
|
3427
|
+
* - **agentSpace** must be an existing AgentSpace instance under the current account.
|
|
3428
|
+
* - **source.type** currently supports only the `logstore` type. The `logstore.project` and `logstore.logstore` must be authorized within the AgentSpace and reside in the same region.
|
|
3417
3429
|
* - **pipeline.nodes** must contain at least one `Source` node and cannot be empty.
|
|
3418
3430
|
* - **fromTime** and **toTime** are UNIX timestamps in seconds. **fromTime** must be earlier than **toTime**.
|
|
3419
3431
|
* - A maximum of 5 records are returned, and internal fields of the data source system are automatically filtered out.
|
|
@@ -5,15 +5,15 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class CreateDatasetVersionRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The description of the version. This parameter is optional. If
|
|
8
|
+
* The description of the version. This parameter is optional. If you do not specify this parameter, an empty string is used.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
|
-
* Dataset version used for the
|
|
11
|
+
* Dataset version used for the initial evaluation
|
|
12
12
|
*/
|
|
13
13
|
description?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The name of the version to be created, which is used to identify the version within the current dataset. The name cannot be empty after leading and trailing whitespaces are removed. The length
|
|
16
|
+
* The name of the version to be created, which is used to identify the version within the current dataset. The name cannot be empty after leading and trailing whitespaces are removed. The length cannot exceed 128 bytes in UTF-8 encoding, and the name cannot contain forward slashes (/).
|
|
17
17
|
*
|
|
18
18
|
* This parameter is required.
|
|
19
19
|
*
|
|
@@ -7,7 +7,7 @@ import { ExperimentConfig } from "./ExperimentConfig";
|
|
|
7
7
|
export class CreateExperimentPlanRequest extends $dara.Model {
|
|
8
8
|
/**
|
|
9
9
|
* @remarks
|
|
10
|
-
* The ID of the associated dataset. If
|
|
10
|
+
* The ID of the associated dataset. If this parameter is not specified, the execution phase is processed in simple mode.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* rca_benckmark_eval
|
|
@@ -23,7 +23,7 @@ export class CreateExperimentPlanRequest extends $dara.Model {
|
|
|
23
23
|
description?: string;
|
|
24
24
|
/**
|
|
25
25
|
* @remarks
|
|
26
|
-
* The list of evaluators. After
|
|
26
|
+
* The list of evaluators. After configuration, evaluation can be automatically triggered when the experiment is completed.
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
29
|
* [{"evaluatorRef": "Builtin.agent_correctness", "name": "Builtin.agent_correctness", "type": "AGENT", "resultName": "Builtin.agent_correctness", "resultType": "score", "variableMapping": {"input": "experiment_input", "output": "experiment_output", "expected_output": "dataset.ground_truth_json"}, "filters": {"query": "", "sample": "100"}, "config": {"variables": [], "prompt": ""}}, {"evaluatorRef": "rca-toxicity-safety-accuracy", "name": "rca-toxicity-safety-accuracy", "type": "AGENT", "resultName": "rca-toxicity-safety-accuracy", "resultType": "score", "variableMapping": {"input": "experiment_input", "output": "experiment_output", "question": "dataset.question", "expected_output": "dataset.ground_truth_json", "payload_json": "dataset.payload_json"}, "filters": {"query": "", "sample": "100"}, "config": {"variables": [], "prompt": ""}}]
|
|
@@ -31,7 +31,7 @@ export class CreateExperimentPlanRequest extends $dara.Model {
|
|
|
31
31
|
evaluators?: Evaluator[];
|
|
32
32
|
/**
|
|
33
33
|
* @remarks
|
|
34
|
-
* The type of the experiment. Valid values: OFFLINE and ONLINE
|
|
34
|
+
* The type of the experiment. Valid values: `OFFLINE` and `ONLINE`.
|
|
35
35
|
*
|
|
36
36
|
* This parameter is required.
|
|
37
37
|
*
|
|
@@ -41,7 +41,7 @@ export class CreateExperimentPlanRequest extends $dara.Model {
|
|
|
41
41
|
experimentType?: string;
|
|
42
42
|
/**
|
|
43
43
|
* @remarks
|
|
44
|
-
* The list of experiment configurations.
|
|
44
|
+
* The list of experiment configurations. A maximum of five configurations can be specified. This parameter is optional or can be an empty array for offline experiments. For online experiments, at least one configuration must be specified.
|
|
45
45
|
*
|
|
46
46
|
* This parameter is required.
|
|
47
47
|
*
|
|
@@ -59,12 +59,15 @@ export class CreateExperimentPlanRequest extends $dara.Model {
|
|
|
59
59
|
input?: { [key: string]: any };
|
|
60
60
|
/**
|
|
61
61
|
* @remarks
|
|
62
|
-
* The name of the associated data processing pipeline. This parameter is optional. After
|
|
62
|
+
* The name of the associated data processing pipeline. This parameter is optional. After association, when the experiment execution under this plan is completed and the experiment results are written to the Logstore, the system filters by the traceId of the current experiment trace and calls PreviewPipeline to write the results processed by the pipeline together.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* my-pipeline
|
|
63
66
|
*/
|
|
64
67
|
pipelineName?: string;
|
|
65
68
|
/**
|
|
66
69
|
* @remarks
|
|
67
|
-
* The name of the experiment plan. The name must be unique within the same account in
|
|
70
|
+
* The name of the experiment plan. The name must be unique within the same account in the same AgentSpace.
|
|
68
71
|
*
|
|
69
72
|
* This parameter is required.
|
|
70
73
|
*
|
|
@@ -74,7 +77,7 @@ export class CreateExperimentPlanRequest extends $dara.Model {
|
|
|
74
77
|
planName?: string;
|
|
75
78
|
/**
|
|
76
79
|
* @remarks
|
|
77
|
-
* The custom query SQL clause in partial dataset mode.
|
|
80
|
+
* The custom query SQL clause in partial dataset mode. This parameter can be used when `selectedItemIds` is empty.
|
|
78
81
|
*
|
|
79
82
|
* @example
|
|
80
83
|
* status=\\"OK\\"
|
|
@@ -82,7 +85,7 @@ export class CreateExperimentPlanRequest extends $dara.Model {
|
|
|
82
85
|
querySql?: string;
|
|
83
86
|
/**
|
|
84
87
|
* @remarks
|
|
85
|
-
* The list of selected data item IDs in partial dataset mode. This parameter must be used together with
|
|
88
|
+
* The list of selected data item IDs in partial dataset mode. This parameter must be used together with `datasetId`.
|
|
86
89
|
*
|
|
87
90
|
* @example
|
|
88
91
|
* ["019ef4d5-a0f0-7114-832d-5542d771cd8c", "019f1729-be9b-7769-a006-8e98023ad7ad"]
|
|
@@ -29,7 +29,7 @@ export class CreateExperimentPlanResponseBody extends $dara.Model {
|
|
|
29
29
|
requestId?: string;
|
|
30
30
|
/**
|
|
31
31
|
* @remarks
|
|
32
|
-
* The creation result. A value of created indicates success.
|
|
32
|
+
* The creation result. A value of `created` indicates success.
|
|
33
33
|
*
|
|
34
34
|
* @example
|
|
35
35
|
* created
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class CreatePipelineRequestExecutePolicyContinuous extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The bootstrap historical start
|
|
8
|
+
* The bootstrap historical start point as a UNIX timestamp in seconds. It shares the same precision as runOnce or scheduled fromTime. Millisecond values greater than or equal to 1e12 are automatically converted. The cursor starts from this time aligned to the grid and catches up window by window. After catching up, it switches to minute intervals. By default, it starts from the current time and processes only incremental data.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* 1735660800
|
|
@@ -35,7 +35,7 @@ export class CreatePipelineRequestExecutePolicyContinuous extends $dara.Model {
|
|
|
35
35
|
export class CreatePipelineRequestExecutePolicyRunOnce extends $dara.Model {
|
|
36
36
|
/**
|
|
37
37
|
* @remarks
|
|
38
|
-
* The start time of the data processing window as a UNIX timestamp in seconds. The value must be
|
|
38
|
+
* The start time of the data processing window as a UNIX timestamp in seconds. The value must be less than the toTime value.
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* 1735660800
|
|
@@ -43,7 +43,7 @@ export class CreatePipelineRequestExecutePolicyRunOnce extends $dara.Model {
|
|
|
43
43
|
fromTime?: number;
|
|
44
44
|
/**
|
|
45
45
|
* @remarks
|
|
46
|
-
* The end time of the data processing window as a UNIX timestamp in seconds. The value must be
|
|
46
|
+
* The end time of the data processing window as a UNIX timestamp in seconds. The value must be greater than the fromTime value.
|
|
47
47
|
*
|
|
48
48
|
* @example
|
|
49
49
|
* 1735747200
|
|
@@ -75,7 +75,7 @@ export class CreatePipelineRequestExecutePolicyRunOnce extends $dara.Model {
|
|
|
75
75
|
export class CreatePipelineRequestExecutePolicyScheduled extends $dara.Model {
|
|
76
76
|
/**
|
|
77
77
|
* @remarks
|
|
78
|
-
* The start time
|
|
78
|
+
* The scheduling start time as a UNIX timestamp in milliseconds.
|
|
79
79
|
*
|
|
80
80
|
* @example
|
|
81
81
|
* 1735660800000
|
|
@@ -115,7 +115,7 @@ export class CreatePipelineRequestExecutePolicyScheduled extends $dara.Model {
|
|
|
115
115
|
export class CreatePipelineRequestExecutePolicy extends $dara.Model {
|
|
116
116
|
/**
|
|
117
117
|
* @remarks
|
|
118
|
-
* The continuous execution configuration
|
|
118
|
+
* The continuous execution configuration. This is used when the type is trace. The processing frequency is a fixed value managed by the server.
|
|
119
119
|
*
|
|
120
120
|
* @example
|
|
121
121
|
* {"fromTime":1735660800}
|
|
@@ -131,7 +131,7 @@ export class CreatePipelineRequestExecutePolicy extends $dara.Model {
|
|
|
131
131
|
mode?: string;
|
|
132
132
|
/**
|
|
133
133
|
* @remarks
|
|
134
|
-
* The single execution configuration. This parameter is required only when the mode is
|
|
134
|
+
* The single execution configuration. This parameter is required only when the mode is RunOnce.
|
|
135
135
|
*
|
|
136
136
|
* @example
|
|
137
137
|
* {"fromTime":1735660800,"toTime":1735664400}
|
|
@@ -139,7 +139,7 @@ export class CreatePipelineRequestExecutePolicy extends $dara.Model {
|
|
|
139
139
|
runOnce?: CreatePipelineRequestExecutePolicyRunOnce;
|
|
140
140
|
/**
|
|
141
141
|
* @remarks
|
|
142
|
-
* The periodic scheduling configuration. This parameter is required only when the mode is
|
|
142
|
+
* The periodic scheduling configuration. This parameter is required only when the mode is Scheduled.
|
|
143
143
|
*
|
|
144
144
|
* @example
|
|
145
145
|
* {"interval":"1h","fromTime":1735660800}
|
|
@@ -192,7 +192,10 @@ export class CreatePipelineRequestPipelineNodes extends $dara.Model {
|
|
|
192
192
|
id?: string;
|
|
193
193
|
/**
|
|
194
194
|
* @remarks
|
|
195
|
-
* The parameters of the node
|
|
195
|
+
* The parameters of the node. This is a key-value structure that varies based on the node type.
|
|
196
|
+
*
|
|
197
|
+
* @example
|
|
198
|
+
* {"ID": "ID"}
|
|
196
199
|
*/
|
|
197
200
|
parameters?: { [key: string]: any };
|
|
198
201
|
/**
|
|
@@ -312,7 +315,7 @@ export class CreatePipelineRequestSinkConditionDefaultSink extends $dara.Model {
|
|
|
312
315
|
dataset?: CreatePipelineRequestSinkConditionDefaultSinkDataset;
|
|
313
316
|
/**
|
|
314
317
|
* @remarks
|
|
315
|
-
* The default destination type.
|
|
318
|
+
* The default destination type. Currently, only dataset is supported.
|
|
316
319
|
*
|
|
317
320
|
* @example
|
|
318
321
|
* dataset
|
|
@@ -387,12 +390,12 @@ export class CreatePipelineRequestSinkConditionRoutesSinkDataset extends $dara.M
|
|
|
387
390
|
export class CreatePipelineRequestSinkConditionRoutesSink extends $dara.Model {
|
|
388
391
|
/**
|
|
389
392
|
* @remarks
|
|
390
|
-
* The destination dataset
|
|
393
|
+
* The destination dataset for the route.
|
|
391
394
|
*/
|
|
392
395
|
dataset?: CreatePipelineRequestSinkConditionRoutesSinkDataset;
|
|
393
396
|
/**
|
|
394
397
|
* @remarks
|
|
395
|
-
* The route destination type.
|
|
398
|
+
* The route destination type. Currently, only dataset is supported.
|
|
396
399
|
*
|
|
397
400
|
* @example
|
|
398
401
|
* dataset
|
|
@@ -443,7 +446,7 @@ export class CreatePipelineRequestSinkConditionRoutes extends $dara.Model {
|
|
|
443
446
|
id?: string;
|
|
444
447
|
/**
|
|
445
448
|
* @remarks
|
|
446
|
-
* The
|
|
449
|
+
* The sink for the route.
|
|
447
450
|
*/
|
|
448
451
|
sink?: CreatePipelineRequestSinkConditionRoutesSink;
|
|
449
452
|
static names(): { [key: string]: string } {
|
|
@@ -477,12 +480,12 @@ export class CreatePipelineRequestSinkConditionRoutes extends $dara.Model {
|
|
|
477
480
|
export class CreatePipelineRequestSinkCondition extends $dara.Model {
|
|
478
481
|
/**
|
|
479
482
|
* @remarks
|
|
480
|
-
* The default
|
|
483
|
+
* The default sink used when no conditional route is matched.
|
|
481
484
|
*/
|
|
482
485
|
defaultSink?: CreatePipelineRequestSinkConditionDefaultSink;
|
|
483
486
|
/**
|
|
484
487
|
* @remarks
|
|
485
|
-
* The route matching mode.
|
|
488
|
+
* The route matching mode. Currently, only all is supported.
|
|
486
489
|
*
|
|
487
490
|
* @example
|
|
488
491
|
* all
|
|
@@ -567,7 +570,7 @@ export class CreatePipelineRequestSinkDataset extends $dara.Model {
|
|
|
567
570
|
export class CreatePipelineRequestSink extends $dara.Model {
|
|
568
571
|
/**
|
|
569
572
|
* @remarks
|
|
570
|
-
* The conditional routing configuration
|
|
573
|
+
* The conditional routing configuration, which is used only when sink.type is set to condition.
|
|
571
574
|
*/
|
|
572
575
|
condition?: CreatePipelineRequestSinkCondition;
|
|
573
576
|
/**
|
|
@@ -577,7 +580,7 @@ export class CreatePipelineRequestSink extends $dara.Model {
|
|
|
577
580
|
dataset?: CreatePipelineRequestSinkDataset;
|
|
578
581
|
/**
|
|
579
582
|
* @remarks
|
|
580
|
-
* The destination type. Currently,
|
|
583
|
+
* The destination type. Currently, dataset is supported.
|
|
581
584
|
*
|
|
582
585
|
* @example
|
|
583
586
|
* Dataset
|
|
@@ -665,7 +668,7 @@ export class CreatePipelineRequestSourceInputFields extends $dara.Model {
|
|
|
665
668
|
name?: string;
|
|
666
669
|
/**
|
|
667
670
|
* @remarks
|
|
668
|
-
* The
|
|
671
|
+
* The type of the field. Valid values: text, long, double, and json.
|
|
669
672
|
*
|
|
670
673
|
* @example
|
|
671
674
|
* text
|
|
@@ -747,7 +750,7 @@ export class CreatePipelineRequestSourceLogstore extends $dara.Model {
|
|
|
747
750
|
export class CreatePipelineRequestSourceTrajectoryEnrich extends $dara.Model {
|
|
748
751
|
/**
|
|
749
752
|
* @remarks
|
|
750
|
-
* The list of enrichment columns. This parameter is retained for
|
|
753
|
+
* The list of enrichment columns. This parameter is retained for compatibility. The current implementation outputs only the fixed column agent_trajectory, so this parameter no longer affects the output.
|
|
751
754
|
*
|
|
752
755
|
* @example
|
|
753
756
|
* ["input","output","session_id"]
|
|
@@ -790,7 +793,7 @@ export class CreatePipelineRequestSourceTrajectoryEnrich extends $dara.Model {
|
|
|
790
793
|
export class CreatePipelineRequestSourceTrajectory extends $dara.Model {
|
|
791
794
|
/**
|
|
792
795
|
* @remarks
|
|
793
|
-
* The trajectory enrichment configuration. It mounts trajectory data into the scrubbing result based on trace_id. When writing to
|
|
796
|
+
* The trajectory enrichment configuration. It mounts trajectory data into the scrubbing result based on trace_id. When writing to the dataset, the data is stored in the fixed column agent_trajectory, where the column value is the trajectory JSON content.
|
|
794
797
|
*
|
|
795
798
|
* @example
|
|
796
799
|
* {"enabled":true,"columns":["input","output"]}
|
|
@@ -823,7 +826,7 @@ export class CreatePipelineRequestSourceTrajectory extends $dara.Model {
|
|
|
823
826
|
export class CreatePipelineRequestSource extends $dara.Model {
|
|
824
827
|
/**
|
|
825
828
|
* @remarks
|
|
826
|
-
* The
|
|
829
|
+
* The Dataset datasource config under the current AgentSpace.
|
|
827
830
|
*
|
|
828
831
|
* @example
|
|
829
832
|
* {"dataset":"my-dataset","filter":"status = \\"pending\\""}
|
|
@@ -831,7 +834,7 @@ export class CreatePipelineRequestSource extends $dara.Model {
|
|
|
831
834
|
dataset?: CreatePipelineRequestSourceDataset;
|
|
832
835
|
/**
|
|
833
836
|
* @remarks
|
|
834
|
-
* The input fields and their
|
|
837
|
+
* The input fields and their types. This applies to all data source types.
|
|
835
838
|
*
|
|
836
839
|
* @example
|
|
837
840
|
* [{"name":"question","type":"text"}]
|
|
@@ -847,7 +850,7 @@ export class CreatePipelineRequestSource extends $dara.Model {
|
|
|
847
850
|
logstore?: CreatePipelineRequestSourceLogstore;
|
|
848
851
|
/**
|
|
849
852
|
* @remarks
|
|
850
|
-
* The trajectory data configuration. This
|
|
853
|
+
* The trajectory data configuration. This is optional and takes effect only when the type is trace. It retrieves ATIF standard trajectory data from the trajectory scrubbing service and extends it by feature.
|
|
851
854
|
*
|
|
852
855
|
* @example
|
|
853
856
|
* {"enrich":{"enabled":true,"columns":["input","output"]}}
|
|
@@ -855,7 +858,7 @@ export class CreatePipelineRequestSource extends $dara.Model {
|
|
|
855
858
|
trajectory?: CreatePipelineRequestSourceTrajectory;
|
|
856
859
|
/**
|
|
857
860
|
* @remarks
|
|
858
|
-
* The data source type. Currently,
|
|
861
|
+
* The data source type. Currently, SLS is supported.
|
|
859
862
|
*
|
|
860
863
|
* @example
|
|
861
864
|
* SLS
|
|
@@ -905,15 +908,15 @@ export class CreatePipelineRequestSource extends $dara.Model {
|
|
|
905
908
|
export class CreatePipelineRequest extends $dara.Model {
|
|
906
909
|
/**
|
|
907
910
|
* @remarks
|
|
908
|
-
* The description of the pipeline
|
|
911
|
+
* The description of the pipeline. Maximum length: 256 characters.
|
|
909
912
|
*
|
|
910
913
|
* @example
|
|
911
|
-
* Collect trace data from
|
|
914
|
+
* Collect trace data from SLS and perform data cleaning into a Dataset
|
|
912
915
|
*/
|
|
913
916
|
description?: string;
|
|
914
917
|
/**
|
|
915
918
|
* @remarks
|
|
916
|
-
* The
|
|
919
|
+
* The scheduling method.
|
|
917
920
|
*
|
|
918
921
|
* @example
|
|
919
922
|
* {"mode":"RunOnce","runOnce":{"fromTime":1735660800,"toTime":1735664400}}
|
|
@@ -929,7 +932,7 @@ export class CreatePipelineRequest extends $dara.Model {
|
|
|
929
932
|
pipeline?: CreatePipelineRequestPipeline;
|
|
930
933
|
/**
|
|
931
934
|
* @remarks
|
|
932
|
-
* The name of the pipeline. The name must be 3 to 63 characters in length and can contain only lowercase letters, digits, and hyphens
|
|
935
|
+
* The name of the pipeline. The name must be 3 to 63 characters in length and can contain only lowercase letters, digits, and hyphens.
|
|
933
936
|
*
|
|
934
937
|
* @example
|
|
935
938
|
* my-pipeline
|
|
@@ -937,7 +940,7 @@ export class CreatePipelineRequest extends $dara.Model {
|
|
|
937
940
|
pipelineName?: string;
|
|
938
941
|
/**
|
|
939
942
|
* @remarks
|
|
940
|
-
* The pipeline sink, which
|
|
943
|
+
* The pipeline sink, which is the data write destination.
|
|
941
944
|
*/
|
|
942
945
|
sink?: CreatePipelineRequestSink;
|
|
943
946
|
/**
|
|
@@ -950,7 +953,7 @@ export class CreatePipelineRequest extends $dara.Model {
|
|
|
950
953
|
source?: CreatePipelineRequestSource;
|
|
951
954
|
/**
|
|
952
955
|
* @remarks
|
|
953
|
-
* The idempotency token
|
|
956
|
+
* The idempotency token. It is a unique string generated by the client to ensure the idempotence of the create operation.
|
|
954
957
|
*
|
|
955
958
|
* @example
|
|
956
959
|
* a1b2c3d4-1234-5678-90ab-cdef12345678
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class CreatePipelineResponseBody extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The request ID
|
|
8
|
+
* The request ID used to locate the request for troubleshooting.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* 9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M
|
|
@@ -16,7 +16,7 @@ export class DescribeRegionsResponseBodyRegions extends $dara.Model {
|
|
|
16
16
|
* The region name.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
|
-
*
|
|
19
|
+
* China (Hangzhou)
|
|
20
20
|
*/
|
|
21
21
|
localName?: string;
|
|
22
22
|
/**
|
|
@@ -65,7 +65,7 @@ export class DescribeRegionsResponseBodyRegions extends $dara.Model {
|
|
|
65
65
|
export class DescribeRegionsResponseBody extends $dara.Model {
|
|
66
66
|
/**
|
|
67
67
|
* @remarks
|
|
68
|
-
* The maximum number of
|
|
68
|
+
* The maximum number of records returned in a single request.
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
71
|
* 100
|
|
@@ -73,7 +73,7 @@ export class DescribeRegionsResponseBody extends $dara.Model {
|
|
|
73
73
|
maxResults?: number;
|
|
74
74
|
/**
|
|
75
75
|
* @remarks
|
|
76
|
-
* The pagination token.
|
|
76
|
+
* The pagination token. This value is empty if no more pages are available.
|
|
77
77
|
*
|
|
78
78
|
* @example
|
|
79
79
|
* ydx438PDAW1lYRJZbBn9
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class GetAgentSpaceResponseBodyMseNamespace extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The attach type of the MSE namespace. AutoCreated indicates automatic creation by AgentLoop. UserSelected indicates that
|
|
8
|
+
* The attach type of the MSE namespace. AutoCreated indicates automatic creation by AgentLoop. UserSelected indicates that you select and attach an existing namespace when creating the AgentSpace.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* AutoCreated
|
|
@@ -54,11 +54,17 @@ export class GetAgentSpaceResponseBodyMseNamespace extends $dara.Model {
|
|
|
54
54
|
|
|
55
55
|
export class GetAgentSpaceResponseBodyTags extends $dara.Model {
|
|
56
56
|
/**
|
|
57
|
+
* @remarks
|
|
58
|
+
* The tag key.
|
|
59
|
+
*
|
|
57
60
|
* @example
|
|
58
61
|
* env
|
|
59
62
|
*/
|
|
60
63
|
key?: string;
|
|
61
64
|
/**
|
|
65
|
+
* @remarks
|
|
66
|
+
* The tag value, which can be an empty string.
|
|
67
|
+
*
|
|
62
68
|
* @example
|
|
63
69
|
* test
|
|
64
70
|
*/
|
|
@@ -159,8 +165,11 @@ export class GetAgentSpaceResponseBody extends $dara.Model {
|
|
|
159
165
|
*/
|
|
160
166
|
slsProject?: string;
|
|
161
167
|
/**
|
|
168
|
+
* @remarks
|
|
169
|
+
* The complete standard tags of the active AgentSpace in the current region. An empty array is returned if it is confirmed that no tags exist. This field is omitted if the AgentSpace is not active or the tags cannot be determined. The omission of this field does not indicate that no tags exist.
|
|
170
|
+
*
|
|
162
171
|
* @example
|
|
163
|
-
* [{
|
|
172
|
+
* [{"key":"env","value":"test"}]
|
|
164
173
|
*/
|
|
165
174
|
tags?: GetAgentSpaceResponseBodyTags[];
|
|
166
175
|
/**
|