@alicloud/agentloop20260520 2.3.1 → 2.3.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 +18 -18
- package/dist/client.js +25 -22
- 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/CreateEvaluationTaskRequest.d.ts +11 -11
- package/dist/models/CreateExperimentPlanRequest.d.ts +10 -6
- package/dist/models/CreateExperimentPlanRequest.js.map +1 -1
- package/dist/models/CreateExperimentPlanResponseBody.d.ts +2 -2
- package/dist/models/CreatePipelineRequest.d.ts +251 -9
- package/dist/models/CreatePipelineRequest.js +203 -1
- package/dist/models/CreatePipelineRequest.js.map +1 -1
- package/dist/models/Evaluator.d.ts +11 -3
- package/dist/models/Evaluator.js +6 -0
- package/dist/models/Evaluator.js.map +1 -1
- package/dist/models/EvaluatorVariableExtractorMappingValue.d.ts +37 -0
- package/dist/models/EvaluatorVariableExtractorMappingValue.js +62 -0
- package/dist/models/EvaluatorVariableExtractorMappingValue.js.map +1 -0
- 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/GetEvaluationTaskResponseBody.d.ts +3 -3
- package/dist/models/GetExperimentPlanResponseBody.d.ts +8 -4
- package/dist/models/GetExperimentPlanResponseBody.js.map +1 -1
- package/dist/models/GetPipelineResponseBody.d.ts +172 -3
- package/dist/models/GetPipelineResponseBody.js +203 -1
- package/dist/models/GetPipelineResponseBody.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/ListExperimentRunsRequest.d.ts +1 -1
- package/dist/models/PreviewPipelineRequest.d.ts +68 -2
- package/dist/models/PreviewPipelineRequest.js +53 -1
- package/dist/models/PreviewPipelineRequest.js.map +1 -1
- package/dist/models/PreviewPipelineResponseBody.d.ts +6 -6
- package/dist/models/RunPipelineRequest.d.ts +16 -0
- package/dist/models/RunPipelineRequest.js.map +1 -1
- package/dist/models/RunPipelineResponseBody.d.ts +15 -0
- package/dist/models/RunPipelineResponseBody.js.map +1 -1
- package/dist/models/RunStrategies.d.ts +14 -0
- package/dist/models/RunStrategies.js.map +1 -1
- package/dist/models/UpdateEvaluationTaskRequest.d.ts +5 -5
- package/dist/models/UpdateExperimentPlanRequest.d.ts +10 -6
- package/dist/models/UpdateExperimentPlanRequest.js.map +1 -1
- package/dist/models/UpdateExperimentPlanResponseBody.d.ts +3 -3
- package/dist/models/UpdatePipelineRequest.d.ts +267 -13
- package/dist/models/UpdatePipelineRequest.js +205 -1
- package/dist/models/UpdatePipelineRequest.js.map +1 -1
- package/dist/models/model.d.ts +27 -0
- package/dist/models/model.js +83 -28
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +26 -22
- package/src/models/CreateAgentSpaceRequest.ts +4 -1
- package/src/models/CreateEvaluationTaskRequest.ts +11 -11
- package/src/models/CreateExperimentPlanRequest.ts +10 -6
- package/src/models/CreateExperimentPlanResponseBody.ts +2 -2
- package/src/models/CreatePipelineRequest.ts +381 -9
- package/src/models/Evaluator.ts +14 -3
- package/src/models/EvaluatorVariableExtractorMappingValue.ts +54 -0
- package/src/models/GetAgentSpaceResponseBody.ts +6 -3
- package/src/models/GetEvaluationTaskResponseBody.ts +3 -3
- package/src/models/GetExperimentPlanResponseBody.ts +8 -4
- package/src/models/GetPipelineResponseBody.ts +302 -3
- package/src/models/ListAgentSpacesResponseBody.ts +3 -0
- package/src/models/ListExperimentRunsRequest.ts +1 -1
- package/src/models/PreviewPipelineRequest.ts +102 -2
- package/src/models/PreviewPipelineResponseBody.ts +6 -6
- package/src/models/RunPipelineRequest.ts +16 -0
- package/src/models/RunPipelineResponseBody.ts +15 -0
- package/src/models/RunStrategies.ts +14 -0
- package/src/models/UpdateEvaluationTaskRequest.ts +5 -5
- package/src/models/UpdateExperimentPlanRequest.ts +10 -6
- package/src/models/UpdateExperimentPlanResponseBody.ts +3 -3
- package/src/models/UpdatePipelineRequest.ts +399 -13
- package/src/models/model.ts +27 -0
|
@@ -13,7 +13,7 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
|
|
|
13
13
|
aggQuery?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
*
|
|
16
|
+
* `meta.columnTypes` provides the mapping from column names to data types (string / long / double / json).
|
|
17
17
|
*/
|
|
18
18
|
columnTypes?: string[];
|
|
19
19
|
/**
|
|
@@ -65,7 +65,7 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
|
|
|
65
65
|
keys?: string[];
|
|
66
66
|
/**
|
|
67
67
|
* @remarks
|
|
68
|
-
* The maximum number of
|
|
68
|
+
* The maximum number of rows that can be returned.
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
71
|
* 5
|
|
@@ -81,7 +81,7 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
|
|
|
81
81
|
mode?: number;
|
|
82
82
|
/**
|
|
83
83
|
* @remarks
|
|
84
|
-
* The number of
|
|
84
|
+
* The number of data bytes processed.
|
|
85
85
|
*
|
|
86
86
|
* @example
|
|
87
87
|
* 524288
|
|
@@ -97,7 +97,7 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
|
|
|
97
97
|
processedRows?: number;
|
|
98
98
|
/**
|
|
99
99
|
* @remarks
|
|
100
|
-
* The SLS query progress. A value of Complete indicates that the query is complete.
|
|
100
|
+
* The Simple Log Service (SLS) query progress. A value of Complete indicates that the query is complete.
|
|
101
101
|
*
|
|
102
102
|
* @example
|
|
103
103
|
* Complete
|
|
@@ -113,7 +113,7 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
|
|
|
113
113
|
scanBytes?: number;
|
|
114
114
|
/**
|
|
115
115
|
* @remarks
|
|
116
|
-
* The
|
|
116
|
+
* The type and aggregation information of columns.
|
|
117
117
|
*/
|
|
118
118
|
terms?: { [key: string]: any }[];
|
|
119
119
|
/**
|
|
@@ -189,7 +189,7 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
|
|
|
189
189
|
export class PreviewPipelineResponseBody extends $dara.Model {
|
|
190
190
|
/**
|
|
191
191
|
* @remarks
|
|
192
|
-
*
|
|
192
|
+
* `data` is a collection of sample rows (maps within an array) that contains only the first N rows (up to 5 by default) and does not reflect the complete write plan.
|
|
193
193
|
*/
|
|
194
194
|
data?: { [key: string]: string }[];
|
|
195
195
|
/**
|
|
@@ -4,11 +4,17 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class RunPipelineRequestOutput extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Specifies whether to write to the target Dataset. Default value: true.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* true
|
|
9
12
|
*/
|
|
10
13
|
dataset?: boolean;
|
|
11
14
|
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* Specifies whether to return inline results in the response. Default value: false.
|
|
17
|
+
*
|
|
12
18
|
* @example
|
|
13
19
|
* false
|
|
14
20
|
*/
|
|
@@ -38,12 +44,22 @@ export class RunPipelineRequestOutput extends $dara.Model {
|
|
|
38
44
|
|
|
39
45
|
export class RunPipelineRequest extends $dara.Model {
|
|
40
46
|
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* The start of the data processing window, in UNIX seconds. This parameter is required for SQL Pipeline and time window-based WorkItem Source. This parameter is optional for checkpoint-based WorkItem Source types such as Dataset and Logstore Pull.
|
|
49
|
+
*
|
|
41
50
|
* @example
|
|
42
51
|
* 1735660800
|
|
43
52
|
*/
|
|
44
53
|
fromTime?: number;
|
|
54
|
+
/**
|
|
55
|
+
* @remarks
|
|
56
|
+
* The output control settings. SQL Pipeline supports overriding. WorkItem Pipeline uses the saved Sink configuration and must keep the default value.
|
|
57
|
+
*/
|
|
45
58
|
output?: RunPipelineRequestOutput;
|
|
46
59
|
/**
|
|
60
|
+
* @remarks
|
|
61
|
+
* The end of the data processing window, in UNIX seconds. This parameter must be provided together with fromTime and must be greater than fromTime. This parameter is optional for checkpoint-based WorkItem Source types.
|
|
62
|
+
*
|
|
47
63
|
* @example
|
|
48
64
|
* 1735747200
|
|
49
65
|
*/
|
|
@@ -4,26 +4,41 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class RunPipelineResponseBody extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The name of the AgentSpace.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* my-agent-space
|
|
9
12
|
*/
|
|
10
13
|
agentSpaceName?: string;
|
|
11
14
|
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The pipeline name.
|
|
17
|
+
*
|
|
12
18
|
* @example
|
|
13
19
|
* my-pipeline
|
|
14
20
|
*/
|
|
15
21
|
pipelineName?: string;
|
|
16
22
|
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The request ID, which is used to locate and troubleshoot issues.
|
|
25
|
+
*
|
|
17
26
|
* @example
|
|
18
27
|
* 9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M
|
|
19
28
|
*/
|
|
20
29
|
requestId?: string;
|
|
21
30
|
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The run ID created by this trigger.
|
|
33
|
+
*
|
|
22
34
|
* @example
|
|
23
35
|
* run-20260101-0001
|
|
24
36
|
*/
|
|
25
37
|
runId?: string;
|
|
26
38
|
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The current status of the run. The status is typically Pending after the run is queued.
|
|
41
|
+
*
|
|
27
42
|
* @example
|
|
28
43
|
* Pending
|
|
29
44
|
*/
|
|
@@ -5,7 +5,21 @@ import { ContinuousStrategy } from "./ContinuousStrategy";
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
export class RunStrategies extends $dara.Model {
|
|
8
|
+
/**
|
|
9
|
+
* @remarks
|
|
10
|
+
* The historical batch backfill policy. Backfill is enabled when the object exists and enabled is not explicitly set to false.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* {"enabled":true,"startTime":1782816000000,"endTime":1782902400000,"immediate":false}
|
|
14
|
+
*/
|
|
8
15
|
backfill?: BackfillStrategy;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The continuous evaluation policy. Continuous evaluation is enabled when the object exists and enabled is not explicitly set to false.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* {"enabled":true,"intervalUnit":"HOUR","intervalValue":1,"dataDelayMinutes":5}
|
|
22
|
+
*/
|
|
9
23
|
continuous?: ContinuousStrategy;
|
|
10
24
|
static names(): { [key: string]: string } {
|
|
11
25
|
return {
|
|
@@ -15,7 +15,7 @@ export class UpdateEvaluationTaskRequest extends $dara.Model {
|
|
|
15
15
|
config?: { [key: string]: string };
|
|
16
16
|
/**
|
|
17
17
|
* @remarks
|
|
18
|
-
* The filter
|
|
18
|
+
* The filter conditions for evaluation data. JSON objects and JSON strings are supported.
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* {"query":"serviceName=\\"checkout-service\\" AND status=\\"OK\\"","maxRecords":10,"samplingRate":50}
|
|
@@ -26,7 +26,7 @@ export class UpdateEvaluationTaskRequest extends $dara.Model {
|
|
|
26
26
|
* The description of the evaluation task.
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
|
-
*
|
|
29
|
+
* Updated trace link task completion evaluation
|
|
30
30
|
*/
|
|
31
31
|
description?: string;
|
|
32
32
|
/**
|
|
@@ -39,12 +39,12 @@ export class UpdateEvaluationTaskRequest extends $dara.Model {
|
|
|
39
39
|
evaluators?: Evaluator[];
|
|
40
40
|
/**
|
|
41
41
|
* @remarks
|
|
42
|
-
* The new task execution strategies.
|
|
42
|
+
* The new task execution strategies. JSON objects and JSON strings are supported. If the task is in the `Completed`, `Terminated`, or `Failed` state and the new strategy enables backfill or continuous mode, the backend restores the task to the `Pending` state and triggers orchestration.
|
|
43
43
|
*/
|
|
44
44
|
runStrategies?: RunStrategies;
|
|
45
45
|
/**
|
|
46
46
|
* @remarks
|
|
47
|
-
* The task status. Currently the backend only allows users to
|
|
47
|
+
* The task status. Currently, the backend only allows users to manually set this to `Terminated`. Other statuses are managed by the system.
|
|
48
48
|
*
|
|
49
49
|
* @example
|
|
50
50
|
* Terminated
|
|
@@ -60,7 +60,7 @@ export class UpdateEvaluationTaskRequest extends $dara.Model {
|
|
|
60
60
|
tags?: { [key: string]: string };
|
|
61
61
|
/**
|
|
62
62
|
* @remarks
|
|
63
|
-
* The idempotency token. CloudSpec declares this query parameter, but the backend does not currently perform idempotency
|
|
63
|
+
* The idempotency token. CloudSpec declares this query parameter, but the backend does not currently perform idempotency checks.
|
|
64
64
|
*
|
|
65
65
|
* @example
|
|
66
66
|
* a1b2c3d4-1234-5678-90ab-cdef12345678
|
|
@@ -7,7 +7,7 @@ import { ExperimentConfig } from "./ExperimentConfig";
|
|
|
7
7
|
export class UpdateExperimentPlanRequest extends $dara.Model {
|
|
8
8
|
/**
|
|
9
9
|
* @remarks
|
|
10
|
-
* The associated dataset
|
|
10
|
+
* The ID of the associated dataset.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* rca_benckmark_eval
|
|
@@ -26,12 +26,12 @@ export class UpdateExperimentPlanRequest extends $dara.Model {
|
|
|
26
26
|
* The description.
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
|
-
* rca_benchmark_eval_experiment offline experiment
|
|
29
|
+
* rca_benchmark_eval_experiment offline experiment
|
|
30
30
|
*/
|
|
31
31
|
description?: string;
|
|
32
32
|
/**
|
|
33
33
|
* @remarks
|
|
34
|
-
* The
|
|
34
|
+
* The list of evaluators. Omitting this field indicates no modification. Passing an empty array clears the list.
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
37
|
* [{"evaluatorRef": "Builtin.agent_task_completion"}]
|
|
@@ -47,7 +47,7 @@ export class UpdateExperimentPlanRequest extends $dara.Model {
|
|
|
47
47
|
experimentType?: string;
|
|
48
48
|
/**
|
|
49
49
|
* @remarks
|
|
50
|
-
* The experiment
|
|
50
|
+
* The list of experiment configurations. When specified, the entire list is replaced. The number of configurations must be 1 to 5.
|
|
51
51
|
*
|
|
52
52
|
* @example
|
|
53
53
|
* [{"label": "A", "name": "baseline", "modelName": "qwen-max"}]
|
|
@@ -58,13 +58,17 @@ export class UpdateExperimentPlanRequest extends $dara.Model {
|
|
|
58
58
|
* Optional.
|
|
59
59
|
*
|
|
60
60
|
* @example
|
|
61
|
-
* {"question": "How do I
|
|
61
|
+
* {"question": "How do I request a refund?"}
|
|
62
62
|
*/
|
|
63
63
|
input?: { [key: string]: any };
|
|
64
|
+
/**
|
|
65
|
+
* @remarks
|
|
66
|
+
* The name of the associated data processing pipeline. This parameter is optional. If not specified, the value is not updated. If an empty character string is specified, the association is dissociated. After association, when an experiment under this plan finishes execution and writes results to the experiment result Logstore, the system filters by the traceId of the experiment trace and calls PreviewPipeline. The pipeline-processed results are then written together.
|
|
67
|
+
*/
|
|
64
68
|
pipelineName?: string;
|
|
65
69
|
/**
|
|
66
70
|
* @remarks
|
|
67
|
-
* The experiment plan
|
|
71
|
+
* The name of the experiment plan.
|
|
68
72
|
*
|
|
69
73
|
* @example
|
|
70
74
|
* rca_benchmark_eval_experiment
|
|
@@ -8,12 +8,12 @@ export class UpdateExperimentPlanResponseBody extends $dara.Model {
|
|
|
8
8
|
* The prompt message.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
|
-
* Experiment plan updated successfully
|
|
11
|
+
* Experiment plan updated successfully
|
|
12
12
|
*/
|
|
13
13
|
message?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The experiment plan
|
|
16
|
+
* The ID of the experiment plan.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* exp-plan-e95bff54685a4ae29ff3a834c1008a71
|
|
@@ -29,7 +29,7 @@ export class UpdateExperimentPlanResponseBody extends $dara.Model {
|
|
|
29
29
|
requestId?: string;
|
|
30
30
|
/**
|
|
31
31
|
* @remarks
|
|
32
|
-
* The update result.
|
|
32
|
+
* The update result. A value of updated indicates success.
|
|
33
33
|
*
|
|
34
34
|
* @example
|
|
35
35
|
* updated
|