@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
|
@@ -14,7 +14,7 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
|
|
|
14
14
|
aggQuery?: string;
|
|
15
15
|
/**
|
|
16
16
|
* @remarks
|
|
17
|
-
* The
|
|
17
|
+
* The mapping from column names to data types, such as string, long, double, or json.
|
|
18
18
|
*
|
|
19
19
|
* @example
|
|
20
20
|
* ["long","string"]
|
|
@@ -54,7 +54,7 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
|
|
|
54
54
|
elapsedMillisecond?: number;
|
|
55
55
|
/**
|
|
56
56
|
* @remarks
|
|
57
|
-
*
|
|
57
|
+
* Indicates whether an SQL query is used.
|
|
58
58
|
*
|
|
59
59
|
* @example
|
|
60
60
|
* true
|
|
@@ -62,7 +62,7 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
|
|
|
62
62
|
hasSQL?: boolean;
|
|
63
63
|
/**
|
|
64
64
|
* @remarks
|
|
65
|
-
*
|
|
65
|
+
* Indicates whether nanosecond-level ordering is enabled.
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
68
|
* true
|
|
@@ -78,7 +78,7 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
|
|
|
78
78
|
keys?: string[];
|
|
79
79
|
/**
|
|
80
80
|
* @remarks
|
|
81
|
-
* The maximum number of
|
|
81
|
+
* The maximum number of returned rows.
|
|
82
82
|
*
|
|
83
83
|
* @example
|
|
84
84
|
* 5
|
|
@@ -86,7 +86,7 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
|
|
|
86
86
|
limited?: number;
|
|
87
87
|
/**
|
|
88
88
|
* @remarks
|
|
89
|
-
* The
|
|
89
|
+
* The query mode identifier.
|
|
90
90
|
*
|
|
91
91
|
* @example
|
|
92
92
|
* 1
|
|
@@ -94,7 +94,7 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
|
|
|
94
94
|
mode?: number;
|
|
95
95
|
/**
|
|
96
96
|
* @remarks
|
|
97
|
-
* The number of
|
|
97
|
+
* The number of processed data bytes.
|
|
98
98
|
*
|
|
99
99
|
* @example
|
|
100
100
|
* 524288
|
|
@@ -110,7 +110,7 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
|
|
|
110
110
|
processedRows?: number;
|
|
111
111
|
/**
|
|
112
112
|
* @remarks
|
|
113
|
-
* The Simple Log Service (SLS) query progress. A value of Complete indicates that the query is
|
|
113
|
+
* The Simple Log Service (SLS) query progress. A value of Complete indicates that the query is finished.
|
|
114
114
|
*
|
|
115
115
|
* @example
|
|
116
116
|
* Complete
|
|
@@ -118,7 +118,7 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
|
|
|
118
118
|
progress?: string;
|
|
119
119
|
/**
|
|
120
120
|
* @remarks
|
|
121
|
-
* The number of
|
|
121
|
+
* The number of scanned raw data bytes.
|
|
122
122
|
*
|
|
123
123
|
* @example
|
|
124
124
|
* 1048576
|
|
@@ -126,7 +126,7 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
|
|
|
126
126
|
scanBytes?: number;
|
|
127
127
|
/**
|
|
128
128
|
* @remarks
|
|
129
|
-
* The dataset schema
|
|
129
|
+
* The dataset schema for the final output of the pipeline. The keys are field names, and the type in the values supports text, long, double, and json. The field order is determined by the keys field.
|
|
130
130
|
*
|
|
131
131
|
* @example
|
|
132
132
|
* {"status":{"type":"long"}}
|
|
@@ -218,10 +218,10 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
|
|
|
218
218
|
export class PreviewPipelineResponseBody extends $dara.Model {
|
|
219
219
|
/**
|
|
220
220
|
* @remarks
|
|
221
|
-
* The collection of sample rows
|
|
221
|
+
* The collection of sample rows. This array of maps includes only the first N rows (up to 5 rows by default) and does not reflect the complete write plan.
|
|
222
222
|
*
|
|
223
223
|
* @example
|
|
224
|
-
* [{"
|
|
224
|
+
* [{\\"type\\": \\"saturation\\", \\"value\\": 0}, {\\"type\\": \\"load\\", \\"value\\": 0}, {\\"type\\": \\"latency\\", \\"value\\": 1}, {\\"type\\": \\"error\\", \\"value\\": 0}]
|
|
225
225
|
*/
|
|
226
226
|
data?: { [key: string]: string }[];
|
|
227
227
|
/**
|
|
@@ -231,7 +231,7 @@ export class PreviewPipelineResponseBody extends $dara.Model {
|
|
|
231
231
|
meta?: PreviewPipelineResponseBodyMeta;
|
|
232
232
|
/**
|
|
233
233
|
* @remarks
|
|
234
|
-
* The request ID
|
|
234
|
+
* The request ID used to locate the request during troubleshooting.
|
|
235
235
|
*
|
|
236
236
|
* @example
|
|
237
237
|
* 9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M
|
|
@@ -65,10 +65,10 @@ export class SearchContextRequestScope extends $dara.Model {
|
|
|
65
65
|
export class SearchContextRequest extends $dara.Model {
|
|
66
66
|
/**
|
|
67
67
|
* @remarks
|
|
68
|
-
* The structured filter conditions. The
|
|
68
|
+
* The structured filter conditions. The experience store supports scene. When __agentloopControl.mode is set to direct, hybrid, or agentic, multi-strategy recall with auditing is used, and you can pass source, callId, application, fields, channels, and budget simultaneously. The management plane can additionally pass contentStatus=all, active, candidate, gray, or deprecated to perform content retrieval, which includes disabled or unreviewed content and is not affected by store-level runtime switches. The API key runtime entry prohibits contentStatus and retains the original governance thresholds. The maximum value of timeoutMs is 60000. If mode is not passed, the existing semantics of fields, channels, minQualityScore, expansion, and debug are retained. When query is *, you can use includeCandidates, cursor, and offset to browse experiences (management plane only).
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
|
-
* {"
|
|
71
|
+
* {"scene":"incident-recovery","__agentloopControl":{"fields":["when_to_use","summary"],"channels":["vector","fulltext"],"minQualityScore":0.6,"expansion":false,"debug":true}}
|
|
72
72
|
*/
|
|
73
73
|
filter?: { [key: string]: any };
|
|
74
74
|
/**
|
|
@@ -81,7 +81,7 @@ export class SearchContextRequest extends $dara.Model {
|
|
|
81
81
|
formatted?: boolean;
|
|
82
82
|
/**
|
|
83
83
|
* @remarks
|
|
84
|
-
* Specifies whether to include memories with sourceState
|
|
84
|
+
* Specifies whether to include memories with sourceState set to inactive. Default value: false.
|
|
85
85
|
*
|
|
86
86
|
* @example
|
|
87
87
|
* false
|
|
@@ -89,7 +89,7 @@ export class SearchContextRequest extends $dara.Model {
|
|
|
89
89
|
includeInactive?: boolean;
|
|
90
90
|
/**
|
|
91
91
|
* @remarks
|
|
92
|
-
* The maximum number of returned results
|
|
92
|
+
* The maximum number of returned results (Top-N similarity).
|
|
93
93
|
*
|
|
94
94
|
* @example
|
|
95
95
|
* 10
|
|
@@ -102,25 +102,25 @@ export class SearchContextRequest extends $dara.Model {
|
|
|
102
102
|
* This parameter is required.
|
|
103
103
|
*
|
|
104
104
|
* @example
|
|
105
|
-
* Recent user
|
|
105
|
+
* Recent user preference settings
|
|
106
106
|
*/
|
|
107
107
|
query?: string;
|
|
108
108
|
/**
|
|
109
109
|
* @remarks
|
|
110
|
-
* The retrieval options
|
|
110
|
+
* The retrieval options. The experience store supports normal and reranker (deterministic reranking). The memory store uses its own retrieval strategy. For real-time recall in the experience store, the limit ranges from 1 to 20.
|
|
111
111
|
*
|
|
112
112
|
* @example
|
|
113
|
-
*
|
|
113
|
+
* normal
|
|
114
114
|
*/
|
|
115
115
|
retrievalOption?: string;
|
|
116
116
|
/**
|
|
117
117
|
* @remarks
|
|
118
|
-
* The recall scope. If
|
|
118
|
+
* The recall scope. If this field conflicts with a field of the same name in filter, a 400 ScopeFilterConflict error is returned.
|
|
119
119
|
*/
|
|
120
120
|
scope?: SearchContextRequestScope;
|
|
121
121
|
/**
|
|
122
122
|
* @remarks
|
|
123
|
-
* Filters results by extraction strategy IDs.
|
|
123
|
+
* Filters results by extraction strategy IDs. The conditions in the list are combined by using the OR operator. If this parameter is not passed, all strategies are recalled. An empty list returns a 400 error. If the format is valid but no matching IDs are found, an empty result is returned. Historical removed strategy IDs are supported.
|
|
124
124
|
*
|
|
125
125
|
* @example
|
|
126
126
|
* ["preferences","profile"]
|
|
@@ -128,7 +128,7 @@ export class SearchContextRequest extends $dara.Model {
|
|
|
128
128
|
strategyIds?: string[];
|
|
129
129
|
/**
|
|
130
130
|
* @remarks
|
|
131
|
-
* The similarity threshold. Results with a
|
|
131
|
+
* The similarity threshold. Results with a score lower than this value are filtered out. Valid values: 0 to 1.
|
|
132
132
|
*
|
|
133
133
|
* @example
|
|
134
134
|
* 0.5
|
|
@@ -13,7 +13,7 @@ export class SearchContextResponseBody extends $dara.Model {
|
|
|
13
13
|
auditStatus?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The call ID for
|
|
16
|
+
* The call ID for multi-strategy recall in the experience store.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* 550e8400-e29b-41d4-a716-446655440000
|
|
@@ -22,11 +22,22 @@ export class SearchContextResponseBody extends $dara.Model {
|
|
|
22
22
|
/**
|
|
23
23
|
* @remarks
|
|
24
24
|
* The diagnostics information for the current experience recall, including duration, model call volume, and filtering. The actual diagnostics items are determined by the running mode.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* {
|
|
28
|
+
* "durationMs": 386.5,
|
|
29
|
+
* "modelCalls": 2,
|
|
30
|
+
* "relevanceValidation": "semantic",
|
|
31
|
+
* "candidateCount": 1,
|
|
32
|
+
* "filtering": {
|
|
33
|
+
* "model_not_relevant": 0
|
|
34
|
+
* }
|
|
35
|
+
* }
|
|
25
36
|
*/
|
|
26
37
|
diagnostics?: { [key: string]: any };
|
|
27
38
|
/**
|
|
28
39
|
* @remarks
|
|
29
|
-
* The
|
|
40
|
+
* The experience recall mode actually used for the current request. Valid values: direct, agentic, and hybrid.
|
|
30
41
|
*
|
|
31
42
|
* @example
|
|
32
43
|
* agentic
|
|
@@ -34,7 +45,7 @@ export class SearchContextResponseBody extends $dara.Model {
|
|
|
34
45
|
mode?: string;
|
|
35
46
|
/**
|
|
36
47
|
* @remarks
|
|
37
|
-
* The ID of the recall event. You can use this ID to call
|
|
48
|
+
* The ID of the recall event. You can use this ID to call GetContextStoreRecall to view audit details.
|
|
38
49
|
*
|
|
39
50
|
* @example
|
|
40
51
|
* 0190f1c2-7d3e-7a1b-9c4d-2e5f6a7b8c9d
|
|
@@ -43,11 +54,20 @@ export class SearchContextResponseBody extends $dara.Model {
|
|
|
43
54
|
/**
|
|
44
55
|
* @remarks
|
|
45
56
|
* The list of relevance judgment results for candidate experiences.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* [
|
|
60
|
+
* {
|
|
61
|
+
* "contextId": "a:1",
|
|
62
|
+
* "judgment": "relevant",
|
|
63
|
+
* "reason": "This experience explains how to skip tasks with unchanged inputs, which is relevant to the search query."
|
|
64
|
+
* }
|
|
65
|
+
* ]
|
|
46
66
|
*/
|
|
47
67
|
relevance?: { [key: string]: any }[];
|
|
48
68
|
/**
|
|
49
69
|
* @remarks
|
|
50
|
-
* The ID of the request. You can use this ID to locate the request
|
|
70
|
+
* The ID of the request. You can use this ID to locate the request when troubleshooting issues.
|
|
51
71
|
*
|
|
52
72
|
* @example
|
|
53
73
|
* 9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M
|
|
@@ -55,12 +75,18 @@ export class SearchContextResponseBody extends $dara.Model {
|
|
|
55
75
|
requestId?: string;
|
|
56
76
|
/**
|
|
57
77
|
* @remarks
|
|
58
|
-
* The list of retrieval results, sorted by similarity in descending order.
|
|
78
|
+
* The list of retrieval results, sorted by similarity in descending order. Each item contains contextId, context, metadata, score, rank, revision, strategyVersion, and strategyId.
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* [{"contextId":"01a1cf08-c368-7c83******","strategyId":"default","context":"The assistant recommends steamed seafood because it is fresh and not spicy, which aligns with the user\\"s preference for seafood and constraint against spicy food.","metadata":{"contextType":"memory","memoryType":"long","userId":"test_user_002","agentId":"95273000000000","appId":"mm_480d961******","runId":"jr-80ded1d6******","strategyId":"default","category":"recommendation","kind":"state","sourceKind":"api","sourceId":"addctx:75395808-cb81-54cd******","revision":1,"reviewStatus":"unreviewed","sourceState":"active","factKey":"assistant:recommendation:dish******","sessionId":"test_session_001"},"score":0.6617179,"rank":1,"revision":1,"strategyVersion":1}]
|
|
59
82
|
*/
|
|
60
83
|
results?: { [key: string]: any }[];
|
|
61
84
|
/**
|
|
62
85
|
* @remarks
|
|
63
86
|
* The list of rewritten queries generated based on the original retrieval query. The original query is not included.
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* ["How to avoid repeatedly executing unchanged inputs"]
|
|
64
90
|
*/
|
|
65
91
|
rewrittenQueries?: string[];
|
|
66
92
|
/**
|
|
@@ -73,7 +99,7 @@ export class SearchContextResponseBody extends $dara.Model {
|
|
|
73
99
|
status?: string;
|
|
74
100
|
/**
|
|
75
101
|
* @remarks
|
|
76
|
-
* The
|
|
102
|
+
* The implementation version of the strategy used for the current experience recall. This is used for auditing and result tracing.
|
|
77
103
|
*
|
|
78
104
|
* @example
|
|
79
105
|
* experience-recall-20261031-v5
|
|
@@ -85,7 +85,7 @@ export class UpdateContextStoreRequestConfigExtractionPoliciesModel extends $dar
|
|
|
85
85
|
export class UpdateContextStoreRequestConfigExtractionPoliciesStoragePolicy extends $dara.Model {
|
|
86
86
|
/**
|
|
87
87
|
* @remarks
|
|
88
|
-
* The allowed storage actions.
|
|
88
|
+
* The allowed storage actions. By default, all actions are allowed, including ADD, UPDATE, MERGE, and DELETE.
|
|
89
89
|
*
|
|
90
90
|
* @example
|
|
91
91
|
* ["ADD","UPDATE","MERGE","DELETE"]
|
|
@@ -93,7 +93,7 @@ export class UpdateContextStoreRequestConfigExtractionPoliciesStoragePolicy exte
|
|
|
93
93
|
allowedActions?: string[];
|
|
94
94
|
/**
|
|
95
95
|
* @remarks
|
|
96
|
-
* Specifies whether to
|
|
96
|
+
* Specifies whether to enable deduplication in event mode. Default value: true.
|
|
97
97
|
*
|
|
98
98
|
* @example
|
|
99
99
|
* true
|
|
@@ -101,7 +101,7 @@ export class UpdateContextStoreRequestConfigExtractionPoliciesStoragePolicy exte
|
|
|
101
101
|
dedupe?: boolean;
|
|
102
102
|
/**
|
|
103
103
|
* @remarks
|
|
104
|
-
* Specifies whether to enable
|
|
104
|
+
* Specifies whether to enable manual edit protection. Default value: true. When enabled, automatic extraction does not overwrite manually modified memories.
|
|
105
105
|
*
|
|
106
106
|
* @example
|
|
107
107
|
* true
|
|
@@ -109,7 +109,11 @@ export class UpdateContextStoreRequestConfigExtractionPoliciesStoragePolicy exte
|
|
|
109
109
|
humanEditProtection?: boolean;
|
|
110
110
|
/**
|
|
111
111
|
* @remarks
|
|
112
|
-
* The merge key for the upsert mode. Valid values:
|
|
112
|
+
* The merge key for the upsert mode. Valid values:
|
|
113
|
+
* - factKey
|
|
114
|
+
* - semantic
|
|
115
|
+
* - both
|
|
116
|
+
* Default value: semantic.
|
|
113
117
|
*
|
|
114
118
|
* @example
|
|
115
119
|
* semantic
|
|
@@ -117,7 +121,10 @@ export class UpdateContextStoreRequestConfigExtractionPoliciesStoragePolicy exte
|
|
|
117
121
|
mergeKey?: string;
|
|
118
122
|
/**
|
|
119
123
|
* @remarks
|
|
120
|
-
* The storage mode. Valid values:
|
|
124
|
+
* The storage mode. Valid values:
|
|
125
|
+
* - event: event append
|
|
126
|
+
* - upsert: merge and update
|
|
127
|
+
* Default value: upsert.
|
|
121
128
|
*
|
|
122
129
|
* @example
|
|
123
130
|
* upsert
|
|
@@ -133,7 +140,7 @@ export class UpdateContextStoreRequestConfigExtractionPoliciesStoragePolicy exte
|
|
|
133
140
|
similarityThreshold?: number;
|
|
134
141
|
/**
|
|
135
142
|
* @remarks
|
|
136
|
-
* The number of days before memory expires. A value of 0 indicates that the memory does not expire.
|
|
143
|
+
* The number of days before a memory expires. A value of 0 indicates that the memory does not expire.
|
|
137
144
|
*
|
|
138
145
|
* @example
|
|
139
146
|
* 0
|
|
@@ -186,7 +193,7 @@ export class UpdateContextStoreRequestConfigExtractionPolicies extends $dara.Mod
|
|
|
186
193
|
categories?: string[];
|
|
187
194
|
/**
|
|
188
195
|
* @remarks
|
|
189
|
-
* The custom extraction instructions. This
|
|
196
|
+
* The custom extraction instructions. This is required when preset is set to custom. The length must be 1 to 8,000 characters.
|
|
190
197
|
*
|
|
191
198
|
* @example
|
|
192
199
|
* Extract only user product preferences
|
|
@@ -194,7 +201,7 @@ export class UpdateContextStoreRequestConfigExtractionPolicies extends $dara.Mod
|
|
|
194
201
|
customInstructions?: string;
|
|
195
202
|
/**
|
|
196
203
|
* @remarks
|
|
197
|
-
* Specifies whether to execute this policy for new input. Default value: true. Disabling the policy does not delete historical
|
|
204
|
+
* Specifies whether to execute this policy for new input. Default value: true. Disabling the policy does not delete historical memories.
|
|
198
205
|
*
|
|
199
206
|
* @example
|
|
200
207
|
* true
|
|
@@ -231,12 +238,12 @@ export class UpdateContextStoreRequestConfigExtractionPolicies extends $dara.Mod
|
|
|
231
238
|
preset?: string;
|
|
232
239
|
/**
|
|
233
240
|
* @remarks
|
|
234
|
-
* The independent storage rules for this policy. If omitted, the original value is retained. New policies use the default value.
|
|
241
|
+
* The independent storage rules for this policy. If omitted, the original value is retained. New policies use the default value. By default, the validity period is refreshed for repeatedly confirmed memories.
|
|
235
242
|
*/
|
|
236
243
|
storagePolicy?: UpdateContextStoreRequestConfigExtractionPoliciesStoragePolicy;
|
|
237
244
|
/**
|
|
238
245
|
* @remarks
|
|
239
|
-
* The ID of the extraction policy. This parameter is optional. If omitted, the default value is
|
|
246
|
+
* The ID of the extraction policy. This parameter is optional. If omitted, the default value is default. The ID must start with a letter and can contain only letters, digits, underscores, and hyphens. It can be up to 64 characters in length. After default processing, the ID must be unique within the same database. Modifying the name or instructions does not change this ID.
|
|
240
247
|
*
|
|
241
248
|
* @example
|
|
242
249
|
* preferences
|
|
@@ -332,7 +339,7 @@ export class UpdateContextStoreRequestConfigExtractionPolicy extends $dara.Model
|
|
|
332
339
|
categories?: string[];
|
|
333
340
|
/**
|
|
334
341
|
* @remarks
|
|
335
|
-
* The custom extraction instructions. This
|
|
342
|
+
* The custom extraction instructions. This is required when preset is set to custom. The length must be 1 to 8,000 characters.
|
|
336
343
|
*
|
|
337
344
|
* @example
|
|
338
345
|
* Extract only user product preferences
|
|
@@ -400,7 +407,7 @@ export class UpdateContextStoreRequestConfigExtractionPolicy extends $dara.Model
|
|
|
400
407
|
export class UpdateContextStoreRequestConfigScopePolicy extends $dara.Model {
|
|
401
408
|
/**
|
|
402
409
|
* @remarks
|
|
403
|
-
*
|
|
410
|
+
* At least one scope field must be non-empty. Valid element values are userId, agentId, appId, and runId.
|
|
404
411
|
*
|
|
405
412
|
* @example
|
|
406
413
|
* ["userId"]
|
|
@@ -433,7 +440,7 @@ export class UpdateContextStoreRequestConfigScopePolicy extends $dara.Model {
|
|
|
433
440
|
export class UpdateContextStoreRequestConfigSourceDatasetCustomFields extends $dara.Model {
|
|
434
441
|
/**
|
|
435
442
|
* @remarks
|
|
436
|
-
* The field
|
|
443
|
+
* The description of the field. This is required when usage is set to extraction-input.
|
|
437
444
|
*
|
|
438
445
|
* @example
|
|
439
446
|
* Customer tier
|
|
@@ -441,7 +448,7 @@ export class UpdateContextStoreRequestConfigSourceDatasetCustomFields extends $d
|
|
|
441
448
|
description?: string;
|
|
442
449
|
/**
|
|
443
450
|
* @remarks
|
|
444
|
-
* Specifies whether the field is
|
|
451
|
+
* Specifies whether the field is sensitive.
|
|
445
452
|
*
|
|
446
453
|
* @example
|
|
447
454
|
* false
|
|
@@ -449,7 +456,7 @@ export class UpdateContextStoreRequestConfigSourceDatasetCustomFields extends $d
|
|
|
449
456
|
sensitive?: boolean;
|
|
450
457
|
/**
|
|
451
458
|
* @remarks
|
|
452
|
-
* The source field
|
|
459
|
+
* The name of the source field.
|
|
453
460
|
*
|
|
454
461
|
* @example
|
|
455
462
|
* customerTier
|
|
@@ -457,7 +464,7 @@ export class UpdateContextStoreRequestConfigSourceDatasetCustomFields extends $d
|
|
|
457
464
|
sourceField?: string;
|
|
458
465
|
/**
|
|
459
466
|
* @remarks
|
|
460
|
-
* The
|
|
467
|
+
* The target path for writing data, such as metadata.customerTier.
|
|
461
468
|
*
|
|
462
469
|
* @example
|
|
463
470
|
* metadata.customerTier
|
|
@@ -533,7 +540,7 @@ export class UpdateContextStoreRequestConfigSourceDatasetFilter extends $dara.Mo
|
|
|
533
540
|
export class UpdateContextStoreRequestConfigSourceDataset extends $dara.Model {
|
|
534
541
|
/**
|
|
535
542
|
* @remarks
|
|
536
|
-
* The list of custom field declarations. If
|
|
543
|
+
* The list of custom field declarations. If specified, the entire list is overwritten.
|
|
537
544
|
*/
|
|
538
545
|
customFields?: UpdateContextStoreRequestConfigSourceDatasetCustomFields[];
|
|
539
546
|
/**
|
|
@@ -599,7 +606,7 @@ export class UpdateContextStoreRequestConfigSourceTrajectoryFilter extends $dara
|
|
|
599
606
|
excludeDegraded?: boolean;
|
|
600
607
|
/**
|
|
601
608
|
* @remarks
|
|
602
|
-
* The minimum
|
|
609
|
+
* The minimum number of steps. The value must be greater than or equal to 0.
|
|
603
610
|
*
|
|
604
611
|
* @example
|
|
605
612
|
* 2
|
|
@@ -607,7 +614,7 @@ export class UpdateContextStoreRequestConfigSourceTrajectoryFilter extends $dara
|
|
|
607
614
|
minStepCount?: number;
|
|
608
615
|
/**
|
|
609
616
|
* @remarks
|
|
610
|
-
* The native Simple Log Service (SLS) query statement
|
|
617
|
+
* The native Simple Log Service (SLS) query statement. This is combined with the preceding conditions using AND.
|
|
611
618
|
*
|
|
612
619
|
* @example
|
|
613
620
|
* tool_names:"search_order"
|
|
@@ -675,7 +682,7 @@ export class UpdateContextStoreRequestConfigSourceTrajectoryScopeMapping extends
|
|
|
675
682
|
appId?: string;
|
|
676
683
|
/**
|
|
677
684
|
* @remarks
|
|
678
|
-
* The JSONPath for runId.
|
|
685
|
+
* The JSONPath for runId. By default, this field is not mapped to prevent memory isolation by a single trajectory.
|
|
679
686
|
*
|
|
680
687
|
* @example
|
|
681
688
|
* $.trajectory_id
|
|
@@ -683,7 +690,7 @@ export class UpdateContextStoreRequestConfigSourceTrajectoryScopeMapping extends
|
|
|
683
690
|
runId?: string;
|
|
684
691
|
/**
|
|
685
692
|
* @remarks
|
|
686
|
-
* The JSONPath for userId.
|
|
693
|
+
* The JSONPath for userId. By default, version 1 does not map this field, and version 2 sequentially retrieves user.id and enduser.id from agent attributes.
|
|
687
694
|
*
|
|
688
695
|
* @example
|
|
689
696
|
* $.trajectory_extensions.user_id
|
|
@@ -719,12 +726,12 @@ export class UpdateContextStoreRequestConfigSourceTrajectoryScopeMapping extends
|
|
|
719
726
|
export class UpdateContextStoreRequestConfigSourceTrajectory extends $dara.Model {
|
|
720
727
|
/**
|
|
721
728
|
* @remarks
|
|
722
|
-
* The trajectory filter conditions. Conditions are combined with AND,
|
|
729
|
+
* The trajectory filter conditions. Conditions are combined with AND, while items within a list are combined with OR.
|
|
723
730
|
*/
|
|
724
731
|
filter?: UpdateContextStoreRequestConfigSourceTrajectoryFilter;
|
|
725
732
|
/**
|
|
726
733
|
* @remarks
|
|
727
|
-
* The name of the trajectory Logstore. Default value: agent-trajectory.
|
|
734
|
+
* The name of the trajectory Logstore. Default value: agent-trajectory. This cannot be changed after creation.
|
|
728
735
|
*
|
|
729
736
|
* @example
|
|
730
737
|
* agent-trajectory
|
|
@@ -740,12 +747,12 @@ export class UpdateContextStoreRequestConfigSourceTrajectory extends $dara.Model
|
|
|
740
747
|
pollIntervalSeconds?: number;
|
|
741
748
|
/**
|
|
742
749
|
* @remarks
|
|
743
|
-
* The scope field mapping. Dot paths, array
|
|
750
|
+
* The scope field mapping. Dot paths, array subscripts, and quoted property keys are supported. An empty string indicates no mapping.
|
|
744
751
|
*/
|
|
745
752
|
scopeMapping?: UpdateContextStoreRequestConfigSourceTrajectoryScopeMapping;
|
|
746
753
|
/**
|
|
747
754
|
* @remarks
|
|
748
|
-
* The default mapping version for trajectory identity. Version 1 retains the
|
|
755
|
+
* The default mapping version for trajectory identity. Version 1 retains the legacy rules. Version 2 reads user.id or enduser.id from agent attributes. The version is frozen upon creation.
|
|
749
756
|
*
|
|
750
757
|
* @example
|
|
751
758
|
* 2
|
|
@@ -789,7 +796,7 @@ export class UpdateContextStoreRequestConfigSourceTrajectory extends $dara.Model
|
|
|
789
796
|
export class UpdateContextStoreRequestConfigSource extends $dara.Model {
|
|
790
797
|
/**
|
|
791
798
|
* @remarks
|
|
792
|
-
* The AgentSpace where the trace data source is located. Cross-AgentSpace
|
|
799
|
+
* The AgentSpace where the trace data source is located. Cross-AgentSpace operations are not supported in the current version. If specified, the value must be equal to the path AgentSpace. Otherwise, a 400 parameter error is returned. The AgentSpace cannot be changed after creation.
|
|
793
800
|
*
|
|
794
801
|
* @example
|
|
795
802
|
* my-agent-space
|
|
@@ -797,12 +804,12 @@ export class UpdateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
797
804
|
agentSpace?: string;
|
|
798
805
|
/**
|
|
799
806
|
* @remarks
|
|
800
|
-
* The updatable items
|
|
807
|
+
* The updatable items for the dataset data source. The datasetName cannot be changed after creation.
|
|
801
808
|
*/
|
|
802
809
|
dataset?: UpdateContextStoreRequestConfigSourceDataset;
|
|
803
810
|
/**
|
|
804
811
|
* @remarks
|
|
805
|
-
* The data backfill
|
|
812
|
+
* The start time for data backfill in ISO 8601 UTC format.
|
|
806
813
|
*
|
|
807
814
|
* @example
|
|
808
815
|
* 2026-01-01T00:00:00Z
|
|
@@ -810,7 +817,7 @@ export class UpdateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
810
817
|
startTime?: string;
|
|
811
818
|
/**
|
|
812
819
|
* @remarks
|
|
813
|
-
* The updatable items
|
|
820
|
+
* The updatable items for the trajectory data source. The source.type cannot be changed after creation.
|
|
814
821
|
*/
|
|
815
822
|
trajectory?: UpdateContextStoreRequestConfigSourceTrajectory;
|
|
816
823
|
static names(): { [key: string]: string } {
|
|
@@ -849,7 +856,7 @@ export class UpdateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
849
856
|
export class UpdateContextStoreRequestConfigStoragePolicy extends $dara.Model {
|
|
850
857
|
/**
|
|
851
858
|
* @remarks
|
|
852
|
-
* The allowed storage actions.
|
|
859
|
+
* The allowed storage actions. By default, all actions are allowed, including ADD, UPDATE, MERGE, and DELETE.
|
|
853
860
|
*
|
|
854
861
|
* @example
|
|
855
862
|
* ["ADD","UPDATE","MERGE","DELETE"]
|
|
@@ -857,7 +864,7 @@ export class UpdateContextStoreRequestConfigStoragePolicy extends $dara.Model {
|
|
|
857
864
|
allowedActions?: string[];
|
|
858
865
|
/**
|
|
859
866
|
* @remarks
|
|
860
|
-
* Specifies whether to
|
|
867
|
+
* Specifies whether to enable deduplication in event mode. Default value: true.
|
|
861
868
|
*
|
|
862
869
|
* @example
|
|
863
870
|
* true
|
|
@@ -865,7 +872,7 @@ export class UpdateContextStoreRequestConfigStoragePolicy extends $dara.Model {
|
|
|
865
872
|
dedupe?: boolean;
|
|
866
873
|
/**
|
|
867
874
|
* @remarks
|
|
868
|
-
* Specifies whether to enable
|
|
875
|
+
* Specifies whether to enable manual edit protection. Default value: true. When enabled, automatic extraction does not overwrite manually modified memories.
|
|
869
876
|
*
|
|
870
877
|
* @example
|
|
871
878
|
* true
|
|
@@ -873,7 +880,11 @@ export class UpdateContextStoreRequestConfigStoragePolicy extends $dara.Model {
|
|
|
873
880
|
humanEditProtection?: boolean;
|
|
874
881
|
/**
|
|
875
882
|
* @remarks
|
|
876
|
-
* The merge key for the upsert mode. Valid values:
|
|
883
|
+
* The merge key for the upsert mode. Valid values:
|
|
884
|
+
* - factKey
|
|
885
|
+
* - semantic
|
|
886
|
+
* - both
|
|
887
|
+
* Default value: semantic.
|
|
877
888
|
*
|
|
878
889
|
* @example
|
|
879
890
|
* semantic
|
|
@@ -881,7 +892,10 @@ export class UpdateContextStoreRequestConfigStoragePolicy extends $dara.Model {
|
|
|
881
892
|
mergeKey?: string;
|
|
882
893
|
/**
|
|
883
894
|
* @remarks
|
|
884
|
-
* The storage mode. Valid values:
|
|
895
|
+
* The storage mode. Valid values:
|
|
896
|
+
* - event: event append
|
|
897
|
+
* - upsert: merge and update
|
|
898
|
+
* Default value: upsert.
|
|
885
899
|
*
|
|
886
900
|
* @example
|
|
887
901
|
* upsert
|
|
@@ -897,7 +911,7 @@ export class UpdateContextStoreRequestConfigStoragePolicy extends $dara.Model {
|
|
|
897
911
|
similarityThreshold?: number;
|
|
898
912
|
/**
|
|
899
913
|
* @remarks
|
|
900
|
-
* The number of days before memory expires. A value of 0 indicates that the memory does not expire.
|
|
914
|
+
* The number of days before a memory expires. A value of 0 indicates that the memory does not expire.
|
|
901
915
|
*
|
|
902
916
|
* @example
|
|
903
917
|
* 0
|
|
@@ -947,7 +961,7 @@ export class UpdateContextStoreRequestConfig extends $dara.Model {
|
|
|
947
961
|
audit?: UpdateContextStoreRequestConfigAudit;
|
|
948
962
|
/**
|
|
949
963
|
* @remarks
|
|
950
|
-
* The list of extraction policies. You can specify 1 to 10 policies. During an update, compatible fields returned as-is are ignored. The strategyVersion
|
|
964
|
+
* The list of extraction policies. You can specify 1 to 10 policies. During an update, compatible fields returned as-is are ignored. The strategyVersion field indicates the snapshot version of the overall database configuration.
|
|
951
965
|
*/
|
|
952
966
|
extractionPolicies?: UpdateContextStoreRequestConfigExtractionPolicies[];
|
|
953
967
|
/**
|
|
@@ -957,7 +971,7 @@ export class UpdateContextStoreRequestConfig extends $dara.Model {
|
|
|
957
971
|
extractionPolicy?: UpdateContextStoreRequestConfigExtractionPolicy;
|
|
958
972
|
/**
|
|
959
973
|
* @remarks
|
|
960
|
-
* The metadata field mapping
|
|
974
|
+
* The metadata field mapping. The key is the business field and the value is the storage field.
|
|
961
975
|
*
|
|
962
976
|
* @example
|
|
963
977
|
* {"userId":"user_id","sessionId":"session_id"}
|
|
@@ -965,7 +979,7 @@ export class UpdateContextStoreRequestConfig extends $dara.Model {
|
|
|
965
979
|
metadataField?: { [key: string]: string };
|
|
966
980
|
/**
|
|
967
981
|
* @remarks
|
|
968
|
-
* Specifies whether the experience library
|
|
982
|
+
* Specifies whether runtime recall is enabled for the experience library. When modifying this property, you must pass expectedRuntimeRecallRevision and submit only this property in the config.
|
|
969
983
|
*/
|
|
970
984
|
runtimeRecallEnabled?: boolean;
|
|
971
985
|
/**
|
|
@@ -975,7 +989,7 @@ export class UpdateContextStoreRequestConfig extends $dara.Model {
|
|
|
975
989
|
scopePolicy?: UpdateContextStoreRequestConfigScopePolicy;
|
|
976
990
|
/**
|
|
977
991
|
* @remarks
|
|
978
|
-
* The datasource config
|
|
992
|
+
* The datasource config. This serves only as the root identity for the datasource.
|
|
979
993
|
*/
|
|
980
994
|
source?: UpdateContextStoreRequestConfigSource;
|
|
981
995
|
/**
|
|
@@ -1042,7 +1056,7 @@ export class UpdateContextStoreRequestConfig extends $dara.Model {
|
|
|
1042
1056
|
export class UpdateContextStoreRequest extends $dara.Model {
|
|
1043
1057
|
/**
|
|
1044
1058
|
* @remarks
|
|
1045
|
-
* The description of the policy change. A new policy version is
|
|
1059
|
+
* The description of the policy change. A new policy version is created when policy fields in the config are modified.
|
|
1046
1060
|
*
|
|
1047
1061
|
* @example
|
|
1048
1062
|
* Relax the similarity threshold
|
|
@@ -1050,12 +1064,12 @@ export class UpdateContextStoreRequest extends $dara.Model {
|
|
|
1050
1064
|
changeNote?: string;
|
|
1051
1065
|
/**
|
|
1052
1066
|
* @remarks
|
|
1053
|
-
* The context library configuration. If
|
|
1067
|
+
* The context library configuration. If specified, the entire configuration is overwritten. If not specified, the original configuration is retained.
|
|
1054
1068
|
*/
|
|
1055
1069
|
config?: UpdateContextStoreRequestConfig;
|
|
1056
1070
|
/**
|
|
1057
1071
|
* @remarks
|
|
1058
|
-
* The context library type.
|
|
1072
|
+
* The context library type. It is generally immutable after creation and is provided only for exception correction.
|
|
1059
1073
|
*
|
|
1060
1074
|
* @example
|
|
1061
1075
|
* experience
|
|
@@ -1071,7 +1085,7 @@ export class UpdateContextStoreRequest extends $dara.Model {
|
|
|
1071
1085
|
description?: string;
|
|
1072
1086
|
/**
|
|
1073
1087
|
* @remarks
|
|
1074
|
-
* Required when modifying the runtime recall switch. The value must be equal to the config.runtimeRecallRevision value returned by GetContextStore. A
|
|
1088
|
+
* Required when modifying the runtime recall switch. The value must be equal to the config.runtimeRecallRevision value returned by GetContextStore. A conflict returns a 409 error.
|
|
1075
1089
|
*
|
|
1076
1090
|
* @example
|
|
1077
1091
|
* 1
|
|
@@ -1087,10 +1101,10 @@ export class UpdateContextStoreRequest extends $dara.Model {
|
|
|
1087
1101
|
reason?: string;
|
|
1088
1102
|
/**
|
|
1089
1103
|
* @remarks
|
|
1090
|
-
* The
|
|
1104
|
+
* The mining status of the experience library. This field applies only to the experience type. The specific valid values and combination constraints are defined by the server.
|
|
1091
1105
|
*
|
|
1092
1106
|
* @example
|
|
1093
|
-
*
|
|
1107
|
+
* Paused
|
|
1094
1108
|
*/
|
|
1095
1109
|
status?: string;
|
|
1096
1110
|
/**
|