@alicloud/agentloop20260520 2.4.2 → 2.4.4
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 +2 -2
- package/dist/client.js +17 -2
- package/dist/client.js.map +1 -1
- package/dist/models/CreateContextStoreRequest.d.ts +69 -48
- package/dist/models/CreateContextStoreRequest.js.map +1 -1
- package/dist/models/CreateContextStoreResponseBody.d.ts +1 -1
- package/dist/models/GetContextStoreResponseBody.d.ts +132 -55
- package/dist/models/GetContextStoreResponseBody.js +31 -1
- package/dist/models/GetContextStoreResponseBody.js.map +1 -1
- package/dist/models/GetDatasetRequest.d.ts +8 -0
- package/dist/models/GetDatasetRequest.js +6 -2
- package/dist/models/GetDatasetRequest.js.map +1 -1
- package/dist/models/GetDatasetResponseBody.d.ts +1 -1
- package/dist/models/ListContextStoresRequest.d.ts +1 -1
- package/dist/models/ListContextStoresResponseBody.d.ts +10 -6
- package/dist/models/ListContextStoresResponseBody.js.map +1 -1
- package/dist/models/SearchContextRequest.d.ts +8 -8
- package/dist/models/SearchContextResponseBody.d.ts +54 -3
- package/dist/models/SearchContextResponseBody.js +23 -0
- package/dist/models/SearchContextResponseBody.js.map +1 -1
- package/dist/models/UpdateContextStoreRequest.d.ts +88 -33
- package/dist/models/UpdateContextStoreRequest.js +6 -0
- package/dist/models/UpdateContextStoreRequest.js.map +1 -1
- package/dist/models/UpdateContextStoreResponseBody.d.ts +32 -2
- package/dist/models/UpdateContextStoreResponseBody.js +27 -1
- package/dist/models/UpdateContextStoreResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +2 -0
- package/dist/models/model.js +38 -34
- package/dist/models/model.js.map +1 -1
- package/package.json +2 -1
- package/src/client.ts +20 -2
- package/src/models/CreateContextStoreRequest.ts +69 -48
- package/src/models/CreateContextStoreResponseBody.ts +1 -1
- package/src/models/GetContextStoreResponseBody.ts +153 -55
- package/src/models/GetDatasetRequest.ts +10 -0
- package/src/models/GetDatasetResponseBody.ts +1 -1
- package/src/models/ListContextStoresRequest.ts +1 -1
- package/src/models/ListContextStoresResponseBody.ts +10 -6
- package/src/models/SearchContextRequest.ts +8 -8
- package/src/models/SearchContextResponseBody.ts +73 -3
- package/src/models/UpdateContextStoreRequest.ts +94 -33
- package/src/models/UpdateContextStoreResponseBody.ts +49 -2
- package/src/models/model.ts +2 -0
|
@@ -37,7 +37,7 @@ export class ListContextStoresRequest extends $dara.Model {
|
|
|
37
37
|
nextToken?: string;
|
|
38
38
|
/**
|
|
39
39
|
* @remarks
|
|
40
|
-
* The
|
|
40
|
+
* The data source type of the memory context store used for filtering. Valid values: manual, trajectory, and dataset. If this parameter is not specified, no filtering is performed.
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
43
|
* trajectory
|
|
@@ -29,7 +29,7 @@ export class ListContextStoresResponseBodyResults extends $dara.Model {
|
|
|
29
29
|
contextType?: string;
|
|
30
30
|
/**
|
|
31
31
|
* @remarks
|
|
32
|
-
* The time when the context store was created
|
|
32
|
+
* The time when the context store was created. The time is in the ISO 8601 UTC format.
|
|
33
33
|
*
|
|
34
34
|
* Use the UTC time format: yyyy-MM-ddTHH:mm:ssZ
|
|
35
35
|
*
|
|
@@ -63,7 +63,7 @@ export class ListContextStoresResponseBodyResults extends $dara.Model {
|
|
|
63
63
|
serviceNames?: string[];
|
|
64
64
|
/**
|
|
65
65
|
* @remarks
|
|
66
|
-
* The
|
|
66
|
+
* The data source type of the memory context store. Valid values: manual, trajectory, and dataset. This parameter has a value only for the memory type.
|
|
67
67
|
*
|
|
68
68
|
* @example
|
|
69
69
|
* trajectory
|
|
@@ -79,16 +79,20 @@ export class ListContextStoresResponseBodyResults extends $dara.Model {
|
|
|
79
79
|
status?: string;
|
|
80
80
|
/**
|
|
81
81
|
* @remarks
|
|
82
|
-
* The
|
|
82
|
+
* The storage mode of the memory context store. Valid values: event and upsert. This parameter has a value only for the memory type.
|
|
83
83
|
*
|
|
84
84
|
* @example
|
|
85
85
|
* upsert
|
|
86
86
|
*/
|
|
87
87
|
storageMode?: string;
|
|
88
|
+
/**
|
|
89
|
+
* @remarks
|
|
90
|
+
* The actual storage modes of each policy. A hybrid context store includes both event and upsert.
|
|
91
|
+
*/
|
|
88
92
|
storageModes?: string[];
|
|
89
93
|
/**
|
|
90
94
|
* @remarks
|
|
91
|
-
* The time when the context store was last updated
|
|
95
|
+
* The time when the context store was last updated. The time is in the ISO 8601 UTC format.
|
|
92
96
|
*
|
|
93
97
|
* Use the UTC time format: yyyy-MM-ddTHH:mm:ssZ
|
|
94
98
|
*
|
|
@@ -148,7 +152,7 @@ export class ListContextStoresResponseBodyResults extends $dara.Model {
|
|
|
148
152
|
export class ListContextStoresResponseBody extends $dara.Model {
|
|
149
153
|
/**
|
|
150
154
|
* @remarks
|
|
151
|
-
* The maximum number of
|
|
155
|
+
* The maximum number of entries per page specified in the request.
|
|
152
156
|
*
|
|
153
157
|
* @example
|
|
154
158
|
* 20
|
|
@@ -164,7 +168,7 @@ export class ListContextStoresResponseBody extends $dara.Model {
|
|
|
164
168
|
nextToken?: string;
|
|
165
169
|
/**
|
|
166
170
|
* @remarks
|
|
167
|
-
* The request ID, which
|
|
171
|
+
* The request ID, which is used to locate the request during troubleshooting.
|
|
168
172
|
*
|
|
169
173
|
* @example
|
|
170
174
|
* 9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class SearchContextRequestScope extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
*
|
|
8
|
+
* The ID of the agent.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* sales-copilot
|
|
@@ -13,7 +13,7 @@ export class SearchContextRequestScope extends $dara.Model {
|
|
|
13
13
|
agentId?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The application
|
|
16
|
+
* The ID of the application.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* crm-service
|
|
@@ -21,7 +21,7 @@ export class SearchContextRequestScope extends $dara.Model {
|
|
|
21
21
|
appId?: string;
|
|
22
22
|
/**
|
|
23
23
|
* @remarks
|
|
24
|
-
* The run
|
|
24
|
+
* The ID of the run.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
27
|
* run-001
|
|
@@ -29,7 +29,7 @@ export class SearchContextRequestScope extends $dara.Model {
|
|
|
29
29
|
runId?: string;
|
|
30
30
|
/**
|
|
31
31
|
* @remarks
|
|
32
|
-
* The user
|
|
32
|
+
* The ID of the user.
|
|
33
33
|
*
|
|
34
34
|
* @example
|
|
35
35
|
* u-10001
|
|
@@ -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
|
|
84
|
+
* Specifies whether to include memories with sourceState=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 based on the top-N similarity.
|
|
93
93
|
*
|
|
94
94
|
* @example
|
|
95
95
|
* 10
|
|
@@ -115,12 +115,12 @@ export class SearchContextRequest extends $dara.Model {
|
|
|
115
115
|
retrievalOption?: string;
|
|
116
116
|
/**
|
|
117
117
|
* @remarks
|
|
118
|
-
* The recall scope. If a field with the same name
|
|
118
|
+
* The recall scope. If a field with the same name exists in the filter, a 400 ScopeFilterConflict error is returned.
|
|
119
119
|
*/
|
|
120
120
|
scope?: SearchContextRequestScope;
|
|
121
121
|
/**
|
|
122
122
|
* @remarks
|
|
123
|
-
* Filters results by extraction strategy
|
|
123
|
+
* Filters results by extraction strategy IDs. Multiple IDs in the list are evaluated with an OR logic. If this parameter is not specified, all strategies are recalled. An empty list returns a 400 error. Valid IDs with no matches return empty results. Historical removed strategy IDs are supported.
|
|
124
124
|
*
|
|
125
125
|
* @example
|
|
126
126
|
* ["preferences","profile"]
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class SearchContextResponseBody extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The audit write status. Valid values: ok
|
|
8
|
+
* The audit write status. Valid values: ok and degraded.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* ok
|
|
@@ -13,7 +13,28 @@ export class SearchContextResponseBody extends $dara.Model {
|
|
|
13
13
|
auditStatus?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The
|
|
16
|
+
* The call ID for the multi-strategy recall of the experience store.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* 550e8400-e29b-41d4-a716-446655440000
|
|
20
|
+
*/
|
|
21
|
+
callId?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
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
|
+
diagnostics?: { [key: string]: any };
|
|
27
|
+
/**
|
|
28
|
+
* @remarks
|
|
29
|
+
* The actual experience recall mode used for the current request. Valid values: direct, agentic, and hybrid.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* agentic
|
|
33
|
+
*/
|
|
34
|
+
mode?: string;
|
|
35
|
+
/**
|
|
36
|
+
* @remarks
|
|
37
|
+
* The ID of the recall event. You can use this ID to call the GetContextStoreRecall operation to view audit details.
|
|
17
38
|
*
|
|
18
39
|
* @example
|
|
19
40
|
* 0190f1c2-7d3e-7a1b-9c4d-2e5f6a7b8c9d
|
|
@@ -21,7 +42,12 @@ export class SearchContextResponseBody extends $dara.Model {
|
|
|
21
42
|
recallEventId?: string;
|
|
22
43
|
/**
|
|
23
44
|
* @remarks
|
|
24
|
-
* The
|
|
45
|
+
* The list of relevance judgment results for candidate experiences.
|
|
46
|
+
*/
|
|
47
|
+
relevance?: { [key: string]: any }[];
|
|
48
|
+
/**
|
|
49
|
+
* @remarks
|
|
50
|
+
* The ID of the request. You can use this ID to locate the request for troubleshooting.
|
|
25
51
|
*
|
|
26
52
|
* @example
|
|
27
53
|
* 9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M
|
|
@@ -32,28 +58,72 @@ export class SearchContextResponseBody extends $dara.Model {
|
|
|
32
58
|
* The list of retrieval results, sorted by similarity in descending order.
|
|
33
59
|
*/
|
|
34
60
|
results?: { [key: string]: any }[];
|
|
61
|
+
/**
|
|
62
|
+
* @remarks
|
|
63
|
+
* The list of rewritten queries generated based on the original retrieval query. The original query is not included.
|
|
64
|
+
*/
|
|
65
|
+
rewrittenQueries?: string[];
|
|
66
|
+
/**
|
|
67
|
+
* @remarks
|
|
68
|
+
* The processing status of the current experience recall call. Valid values: success, degraded, failed, and error.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* success
|
|
72
|
+
*/
|
|
73
|
+
status?: string;
|
|
74
|
+
/**
|
|
75
|
+
* @remarks
|
|
76
|
+
* The strategy implementation version used for the current experience recall. This is used for auditing and result tracing.
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* experience-recall-20261031-v5
|
|
80
|
+
*/
|
|
81
|
+
strategyVersion?: string;
|
|
35
82
|
static names(): { [key: string]: string } {
|
|
36
83
|
return {
|
|
37
84
|
auditStatus: 'auditStatus',
|
|
85
|
+
callId: 'callId',
|
|
86
|
+
diagnostics: 'diagnostics',
|
|
87
|
+
mode: 'mode',
|
|
38
88
|
recallEventId: 'recallEventId',
|
|
89
|
+
relevance: 'relevance',
|
|
39
90
|
requestId: 'requestId',
|
|
40
91
|
results: 'results',
|
|
92
|
+
rewrittenQueries: 'rewrittenQueries',
|
|
93
|
+
status: 'status',
|
|
94
|
+
strategyVersion: 'strategyVersion',
|
|
41
95
|
};
|
|
42
96
|
}
|
|
43
97
|
|
|
44
98
|
static types(): { [key: string]: any } {
|
|
45
99
|
return {
|
|
46
100
|
auditStatus: 'string',
|
|
101
|
+
callId: 'string',
|
|
102
|
+
diagnostics: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
103
|
+
mode: 'string',
|
|
47
104
|
recallEventId: 'string',
|
|
105
|
+
relevance: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
|
|
48
106
|
requestId: 'string',
|
|
49
107
|
results: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
|
|
108
|
+
rewrittenQueries: { 'type': 'array', 'itemType': 'string' },
|
|
109
|
+
status: 'string',
|
|
110
|
+
strategyVersion: 'string',
|
|
50
111
|
};
|
|
51
112
|
}
|
|
52
113
|
|
|
53
114
|
validate() {
|
|
115
|
+
if(this.diagnostics) {
|
|
116
|
+
$dara.Model.validateMap(this.diagnostics);
|
|
117
|
+
}
|
|
118
|
+
if(Array.isArray(this.relevance)) {
|
|
119
|
+
$dara.Model.validateArray(this.relevance);
|
|
120
|
+
}
|
|
54
121
|
if(Array.isArray(this.results)) {
|
|
55
122
|
$dara.Model.validateArray(this.results);
|
|
56
123
|
}
|
|
124
|
+
if(Array.isArray(this.rewrittenQueries)) {
|
|
125
|
+
$dara.Model.validateArray(this.rewrittenQueries);
|
|
126
|
+
}
|
|
57
127
|
super.validate();
|
|
58
128
|
}
|
|
59
129
|
|