@alicloud/agentloop20260520 2.3.8 → 2.3.9
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 +19 -2
- package/dist/client.js.map +1 -1
- package/dist/models/CreateContextStoreRequest.d.ts +364 -2
- package/dist/models/CreateContextStoreRequest.js +365 -1
- package/dist/models/CreateContextStoreRequest.js.map +1 -1
- package/dist/models/CreateContextStoreResponseBody.d.ts +5 -0
- package/dist/models/CreateContextStoreResponseBody.js +2 -0
- package/dist/models/CreateContextStoreResponseBody.js.map +1 -1
- package/dist/models/DeleteContextStoreRequest.d.ts +8 -0
- package/dist/models/DeleteContextStoreRequest.js +6 -2
- package/dist/models/DeleteContextStoreRequest.js.map +1 -1
- package/dist/models/DeleteContextStoreResponseBody.d.ts +1 -1
- package/dist/models/GetContextStoreResponseBody.d.ts +489 -0
- package/dist/models/GetContextStoreResponseBody.js +486 -1
- package/dist/models/GetContextStoreResponseBody.js.map +1 -1
- package/dist/models/ListContextStoresRequest.d.ts +5 -0
- package/dist/models/ListContextStoresRequest.js +2 -0
- package/dist/models/ListContextStoresRequest.js.map +1 -1
- package/dist/models/ListContextStoresResponseBody.d.ts +10 -0
- package/dist/models/ListContextStoresResponseBody.js +4 -0
- package/dist/models/ListContextStoresResponseBody.js.map +1 -1
- package/dist/models/SearchContextRequest.d.ts +38 -0
- package/dist/models/SearchContextRequest.js +33 -1
- package/dist/models/SearchContextRequest.js.map +1 -1
- package/dist/models/SearchContextResponseBody.d.ts +10 -0
- package/dist/models/SearchContextResponseBody.js +4 -0
- package/dist/models/SearchContextResponseBody.js.map +1 -1
- package/dist/models/UpdateContextStoreRequest.d.ts +479 -9
- package/dist/models/UpdateContextStoreRequest.js +331 -1
- package/dist/models/UpdateContextStoreRequest.js.map +1 -1
- package/dist/models/UpdateContextStoreResponseBody.d.ts +8 -0
- package/dist/models/UpdateContextStoreResponseBody.js +2 -0
- package/dist/models/UpdateContextStoreResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +40 -0
- package/dist/models/model.js +102 -21
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +24 -2
- package/src/models/CreateContextStoreRequest.ts +620 -2
- package/src/models/CreateContextStoreResponseBody.ts +7 -0
- package/src/models/DeleteContextStoreRequest.ts +10 -0
- package/src/models/DeleteContextStoreResponseBody.ts +1 -1
- package/src/models/GetContextStoreResponseBody.ts +828 -0
- package/src/models/ListContextStoresRequest.ts +7 -0
- package/src/models/ListContextStoresResponseBody.ts +14 -0
- package/src/models/SearchContextRequest.ts +61 -0
- package/src/models/SearchContextResponseBody.ts +14 -0
- package/src/models/UpdateContextStoreRequest.ts +710 -9
- package/src/models/UpdateContextStoreResponseBody.ts +10 -0
- package/src/models/model.ts +40 -0
|
@@ -35,12 +35,18 @@ export class ListContextStoresRequest extends $dara.Model {
|
|
|
35
35
|
* MTIzNDU2Nzg5MA==
|
|
36
36
|
*/
|
|
37
37
|
nextToken?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @example
|
|
40
|
+
* trajectory
|
|
41
|
+
*/
|
|
42
|
+
sourceType?: string;
|
|
38
43
|
static names(): { [key: string]: string } {
|
|
39
44
|
return {
|
|
40
45
|
contextStoreName: 'contextStoreName',
|
|
41
46
|
contextType: 'contextType',
|
|
42
47
|
maxResults: 'maxResults',
|
|
43
48
|
nextToken: 'nextToken',
|
|
49
|
+
sourceType: 'sourceType',
|
|
44
50
|
};
|
|
45
51
|
}
|
|
46
52
|
|
|
@@ -50,6 +56,7 @@ export class ListContextStoresRequest extends $dara.Model {
|
|
|
50
56
|
contextType: 'string',
|
|
51
57
|
maxResults: 'number',
|
|
52
58
|
nextToken: 'string',
|
|
59
|
+
sourceType: 'string',
|
|
53
60
|
};
|
|
54
61
|
}
|
|
55
62
|
|
|
@@ -61,6 +61,11 @@ export class ListContextStoresResponseBodyResults extends $dara.Model {
|
|
|
61
61
|
* ["order-service","payment-service"]
|
|
62
62
|
*/
|
|
63
63
|
serviceNames?: string[];
|
|
64
|
+
/**
|
|
65
|
+
* @example
|
|
66
|
+
* trajectory
|
|
67
|
+
*/
|
|
68
|
+
sourceType?: string;
|
|
64
69
|
/**
|
|
65
70
|
* @remarks
|
|
66
71
|
* The status of the context store. Valid values: ACTIVE, INITIALIZING, and FAILED.
|
|
@@ -69,6 +74,11 @@ export class ListContextStoresResponseBodyResults extends $dara.Model {
|
|
|
69
74
|
* ACTIVE
|
|
70
75
|
*/
|
|
71
76
|
status?: string;
|
|
77
|
+
/**
|
|
78
|
+
* @example
|
|
79
|
+
* upsert
|
|
80
|
+
*/
|
|
81
|
+
storageMode?: string;
|
|
72
82
|
/**
|
|
73
83
|
* @remarks
|
|
74
84
|
* The time when the context store was last updated, in ISO 8601 UTC format.
|
|
@@ -88,7 +98,9 @@ export class ListContextStoresResponseBodyResults extends $dara.Model {
|
|
|
88
98
|
description: 'description',
|
|
89
99
|
regionId: 'regionId',
|
|
90
100
|
serviceNames: 'serviceNames',
|
|
101
|
+
sourceType: 'sourceType',
|
|
91
102
|
status: 'status',
|
|
103
|
+
storageMode: 'storageMode',
|
|
92
104
|
updateTime: 'updateTime',
|
|
93
105
|
};
|
|
94
106
|
}
|
|
@@ -102,7 +114,9 @@ export class ListContextStoresResponseBodyResults extends $dara.Model {
|
|
|
102
114
|
description: 'string',
|
|
103
115
|
regionId: 'string',
|
|
104
116
|
serviceNames: { 'type': 'array', 'itemType': 'string' },
|
|
117
|
+
sourceType: 'string',
|
|
105
118
|
status: 'string',
|
|
119
|
+
storageMode: 'string',
|
|
106
120
|
updateTime: 'string',
|
|
107
121
|
};
|
|
108
122
|
}
|
|
@@ -2,6 +2,54 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
export class SearchContextRequestScope extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* sales-copilot
|
|
9
|
+
*/
|
|
10
|
+
agentId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* crm-service
|
|
14
|
+
*/
|
|
15
|
+
appId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* run-001
|
|
19
|
+
*/
|
|
20
|
+
runId?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* u-10001
|
|
24
|
+
*/
|
|
25
|
+
userId?: string;
|
|
26
|
+
static names(): { [key: string]: string } {
|
|
27
|
+
return {
|
|
28
|
+
agentId: 'agentId',
|
|
29
|
+
appId: 'appId',
|
|
30
|
+
runId: 'runId',
|
|
31
|
+
userId: 'userId',
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
static types(): { [key: string]: any } {
|
|
36
|
+
return {
|
|
37
|
+
agentId: 'string',
|
|
38
|
+
appId: 'string',
|
|
39
|
+
runId: 'string',
|
|
40
|
+
userId: 'string',
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
validate() {
|
|
45
|
+
super.validate();
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
constructor(map?: { [key: string]: any }) {
|
|
49
|
+
super(map);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
5
53
|
export class SearchContextRequest extends $dara.Model {
|
|
6
54
|
/**
|
|
7
55
|
* @remarks
|
|
@@ -19,6 +67,11 @@ export class SearchContextRequest extends $dara.Model {
|
|
|
19
67
|
* true
|
|
20
68
|
*/
|
|
21
69
|
formatted?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* @example
|
|
72
|
+
* false
|
|
73
|
+
*/
|
|
74
|
+
includeInactive?: boolean;
|
|
22
75
|
/**
|
|
23
76
|
* @remarks
|
|
24
77
|
* The maximum number of returned results (similarity Top-N).
|
|
@@ -45,6 +98,7 @@ export class SearchContextRequest extends $dara.Model {
|
|
|
45
98
|
* semantic
|
|
46
99
|
*/
|
|
47
100
|
retrievalOption?: string;
|
|
101
|
+
scope?: SearchContextRequestScope;
|
|
48
102
|
/**
|
|
49
103
|
* @remarks
|
|
50
104
|
* The similarity threshold. Results with a similarity score lower than this value are filtered out. Valid values: 0 to 1.
|
|
@@ -57,9 +111,11 @@ export class SearchContextRequest extends $dara.Model {
|
|
|
57
111
|
return {
|
|
58
112
|
filter: 'filter',
|
|
59
113
|
formatted: 'formatted',
|
|
114
|
+
includeInactive: 'includeInactive',
|
|
60
115
|
limit: 'limit',
|
|
61
116
|
query: 'query',
|
|
62
117
|
retrievalOption: 'retrievalOption',
|
|
118
|
+
scope: 'scope',
|
|
63
119
|
threshold: 'threshold',
|
|
64
120
|
};
|
|
65
121
|
}
|
|
@@ -68,9 +124,11 @@ export class SearchContextRequest extends $dara.Model {
|
|
|
68
124
|
return {
|
|
69
125
|
filter: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
70
126
|
formatted: 'boolean',
|
|
127
|
+
includeInactive: 'boolean',
|
|
71
128
|
limit: 'number',
|
|
72
129
|
query: 'string',
|
|
73
130
|
retrievalOption: 'string',
|
|
131
|
+
scope: SearchContextRequestScope,
|
|
74
132
|
threshold: 'number',
|
|
75
133
|
};
|
|
76
134
|
}
|
|
@@ -79,6 +137,9 @@ export class SearchContextRequest extends $dara.Model {
|
|
|
79
137
|
if(this.filter) {
|
|
80
138
|
$dara.Model.validateMap(this.filter);
|
|
81
139
|
}
|
|
140
|
+
if(this.scope && typeof (this.scope as any).validate === 'function') {
|
|
141
|
+
(this.scope as any).validate();
|
|
142
|
+
}
|
|
82
143
|
super.validate();
|
|
83
144
|
}
|
|
84
145
|
|
|
@@ -3,6 +3,16 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class SearchContextResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* ok
|
|
9
|
+
*/
|
|
10
|
+
auditStatus?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 0190f1c2-7d3e-7a1b-9c4d-2e5f6a7b8c9d
|
|
14
|
+
*/
|
|
15
|
+
recallEventId?: string;
|
|
6
16
|
/**
|
|
7
17
|
* @remarks
|
|
8
18
|
* The request ID. You can use this ID to locate and troubleshoot issues.
|
|
@@ -18,6 +28,8 @@ export class SearchContextResponseBody extends $dara.Model {
|
|
|
18
28
|
results?: { [key: string]: any }[];
|
|
19
29
|
static names(): { [key: string]: string } {
|
|
20
30
|
return {
|
|
31
|
+
auditStatus: 'auditStatus',
|
|
32
|
+
recallEventId: 'recallEventId',
|
|
21
33
|
requestId: 'requestId',
|
|
22
34
|
results: 'results',
|
|
23
35
|
};
|
|
@@ -25,6 +37,8 @@ export class SearchContextResponseBody extends $dara.Model {
|
|
|
25
37
|
|
|
26
38
|
static types(): { [key: string]: any } {
|
|
27
39
|
return {
|
|
40
|
+
auditStatus: 'string',
|
|
41
|
+
recallEventId: 'string',
|
|
28
42
|
requestId: 'string',
|
|
29
43
|
results: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
|
|
30
44
|
};
|