@alicloud/agentloop20260520 2.3.7 → 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.
Files changed (83) hide show
  1. package/dist/client.d.ts +14 -14
  2. package/dist/client.js +31 -14
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateContextStoreRequest.d.ts +364 -2
  5. package/dist/models/CreateContextStoreRequest.js +365 -1
  6. package/dist/models/CreateContextStoreRequest.js.map +1 -1
  7. package/dist/models/CreateContextStoreResponseBody.d.ts +5 -0
  8. package/dist/models/CreateContextStoreResponseBody.js +2 -0
  9. package/dist/models/CreateContextStoreResponseBody.js.map +1 -1
  10. package/dist/models/CreatePipelineRequest.d.ts +148 -39
  11. package/dist/models/CreatePipelineRequest.js +76 -1
  12. package/dist/models/CreatePipelineRequest.js.map +1 -1
  13. package/dist/models/CreatePipelineResponseBody.d.ts +1 -1
  14. package/dist/models/DeleteContextStoreRequest.d.ts +8 -0
  15. package/dist/models/DeleteContextStoreRequest.js +6 -2
  16. package/dist/models/DeleteContextStoreRequest.js.map +1 -1
  17. package/dist/models/DeleteContextStoreResponseBody.d.ts +1 -1
  18. package/dist/models/GetContextStoreResponseBody.d.ts +489 -0
  19. package/dist/models/GetContextStoreResponseBody.js +486 -1
  20. package/dist/models/GetContextStoreResponseBody.js.map +1 -1
  21. package/dist/models/GetPipelineResponseBody.d.ts +157 -42
  22. package/dist/models/GetPipelineResponseBody.js +78 -1
  23. package/dist/models/GetPipelineResponseBody.js.map +1 -1
  24. package/dist/models/ListContextStoresRequest.d.ts +5 -0
  25. package/dist/models/ListContextStoresRequest.js +2 -0
  26. package/dist/models/ListContextStoresRequest.js.map +1 -1
  27. package/dist/models/ListContextStoresResponseBody.d.ts +10 -0
  28. package/dist/models/ListContextStoresResponseBody.js +4 -0
  29. package/dist/models/ListContextStoresResponseBody.js.map +1 -1
  30. package/dist/models/ListPipelinesResponseBody.d.ts +111 -0
  31. package/dist/models/ListPipelinesResponseBody.js +102 -1
  32. package/dist/models/ListPipelinesResponseBody.js.map +1 -1
  33. package/dist/models/MetaSchemaValue.d.ts +21 -0
  34. package/dist/models/MetaSchemaValue.js +58 -0
  35. package/dist/models/MetaSchemaValue.js.map +1 -0
  36. package/dist/models/PreviewPipelineRequest.d.ts +91 -17
  37. package/dist/models/PreviewPipelineRequest.js +52 -1
  38. package/dist/models/PreviewPipelineRequest.js.map +1 -1
  39. package/dist/models/PreviewPipelineResponseBody.d.ts +45 -16
  40. package/dist/models/PreviewPipelineResponseBody.js +6 -0
  41. package/dist/models/PreviewPipelineResponseBody.js.map +1 -1
  42. package/dist/models/SearchContextRequest.d.ts +38 -0
  43. package/dist/models/SearchContextRequest.js +33 -1
  44. package/dist/models/SearchContextRequest.js.map +1 -1
  45. package/dist/models/SearchContextResponseBody.d.ts +10 -0
  46. package/dist/models/SearchContextResponseBody.js +4 -0
  47. package/dist/models/SearchContextResponseBody.js.map +1 -1
  48. package/dist/models/UpdateContextStoreRequest.d.ts +479 -9
  49. package/dist/models/UpdateContextStoreRequest.js +331 -1
  50. package/dist/models/UpdateContextStoreRequest.js.map +1 -1
  51. package/dist/models/UpdateContextStoreResponseBody.d.ts +8 -0
  52. package/dist/models/UpdateContextStoreResponseBody.js +2 -0
  53. package/dist/models/UpdateContextStoreResponseBody.js.map +1 -1
  54. package/dist/models/UpdatePipelineRequest.d.ts +140 -32
  55. package/dist/models/UpdatePipelineRequest.js +76 -1
  56. package/dist/models/UpdatePipelineRequest.js.map +1 -1
  57. package/dist/models/UpdatePipelineResponseBody.d.ts +1 -1
  58. package/dist/models/model.d.ts +56 -0
  59. package/dist/models/model.js +211 -98
  60. package/dist/models/model.js.map +1 -1
  61. package/package.json +1 -1
  62. package/src/client.ts +36 -14
  63. package/src/models/CreateContextStoreRequest.ts +620 -2
  64. package/src/models/CreateContextStoreResponseBody.ts +7 -0
  65. package/src/models/CreatePipelineRequest.ts +196 -39
  66. package/src/models/CreatePipelineResponseBody.ts +1 -1
  67. package/src/models/DeleteContextStoreRequest.ts +10 -0
  68. package/src/models/DeleteContextStoreResponseBody.ts +1 -1
  69. package/src/models/GetContextStoreResponseBody.ts +828 -0
  70. package/src/models/GetPipelineResponseBody.ts +207 -42
  71. package/src/models/ListContextStoresRequest.ts +7 -0
  72. package/src/models/ListContextStoresResponseBody.ts +14 -0
  73. package/src/models/ListPipelinesResponseBody.ts +176 -0
  74. package/src/models/MetaSchemaValue.ts +34 -0
  75. package/src/models/PreviewPipelineRequest.ts +124 -17
  76. package/src/models/PreviewPipelineResponseBody.ts +48 -16
  77. package/src/models/SearchContextRequest.ts +61 -0
  78. package/src/models/SearchContextResponseBody.ts +14 -0
  79. package/src/models/UpdateContextStoreRequest.ts +710 -9
  80. package/src/models/UpdateContextStoreResponseBody.ts +10 -0
  81. package/src/models/UpdatePipelineRequest.ts +188 -32
  82. package/src/models/UpdatePipelineResponseBody.ts +1 -1
  83. package/src/models/model.ts +56 -0
@@ -1,11 +1,12 @@
1
1
  // This file is auto-generated, don't edit it
2
2
  import * as $dara from '@darabonba/typescript';
3
+ import { MetaSchemaValue } from "./MetaSchemaValue";
3
4
 
4
5
 
5
6
  export class PreviewPipelineResponseBodyMeta extends $dara.Model {
6
7
  /**
7
8
  * @remarks
8
- * The aggregation analysis SPL statement.
9
+ * The SPL statement for aggregation analysis.
9
10
  *
10
11
  * @example
11
12
  * * | SELECT status, count(*) AS cnt GROUP BY status
@@ -13,7 +14,10 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
13
14
  aggQuery?: string;
14
15
  /**
15
16
  * @remarks
16
- * `meta.columnTypes` provides the mapping from column names to data types (string / long / double / json).
17
+ * The list of data types for each column. This field provides a mapping from column names to data types, such as string, long, double, and json.
18
+ *
19
+ * @example
20
+ * ["long","string"]
17
21
  */
18
22
  columnTypes?: string[];
19
23
  /**
@@ -26,7 +30,7 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
26
30
  count?: number;
27
31
  /**
28
32
  * @remarks
29
- * The number of CPU cores consumed.
33
+ * The number of consumed CPU cores.
30
34
  *
31
35
  * @example
32
36
  * 2
@@ -34,7 +38,7 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
34
38
  cpuCores?: number;
35
39
  /**
36
40
  * @remarks
37
- * The CPU time consumed, in seconds.
41
+ * The consumed CPU time in seconds.
38
42
  *
39
43
  * @example
40
44
  * 0.5
@@ -42,7 +46,7 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
42
46
  cpuSec?: number;
43
47
  /**
44
48
  * @remarks
45
- * The query duration, in milliseconds.
49
+ * The query duration in milliseconds.
46
50
  *
47
51
  * @example
48
52
  * 1200
@@ -50,22 +54,31 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
50
54
  elapsedMillisecond?: number;
51
55
  /**
52
56
  * @remarks
53
- * Indicates whether the query is an SQL query.
57
+ * Specifies whether an SQL query is used.
58
+ *
59
+ * @example
60
+ * true
54
61
  */
55
62
  hasSQL?: boolean;
56
63
  /**
57
64
  * @remarks
58
- * Indicates whether nanosecond-level ordering is enabled.
65
+ * Specifies whether nanosecond-level ordering is enabled.
66
+ *
67
+ * @example
68
+ * true
59
69
  */
60
70
  isAccurate?: boolean;
61
71
  /**
62
72
  * @remarks
63
73
  * The list of result column names.
74
+ *
75
+ * @example
76
+ * ["status","method","path"]
64
77
  */
65
78
  keys?: string[];
66
79
  /**
67
80
  * @remarks
68
- * The maximum number of rows that can be returned.
81
+ * The maximum number of rows returned in the result.
69
82
  *
70
83
  * @example
71
84
  * 5
@@ -73,7 +86,7 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
73
86
  limited?: number;
74
87
  /**
75
88
  * @remarks
76
- * The query mode identifier.
89
+ * The identifier of the query mode.
77
90
  *
78
91
  * @example
79
92
  * 1
@@ -81,7 +94,7 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
81
94
  mode?: number;
82
95
  /**
83
96
  * @remarks
84
- * The number of data bytes processed.
97
+ * The number of bytes of processed data.
85
98
  *
86
99
  * @example
87
100
  * 524288
@@ -97,7 +110,7 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
97
110
  processedRows?: number;
98
111
  /**
99
112
  * @remarks
100
- * The Simple Log Service (SLS) query progress. A value of Complete indicates that the query is complete.
113
+ * The Simple Log Service (SLS) query progress. A value of Complete indicates that the query is completed.
101
114
  *
102
115
  * @example
103
116
  * Complete
@@ -105,7 +118,7 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
105
118
  progress?: string;
106
119
  /**
107
120
  * @remarks
108
- * The number of raw data bytes scanned.
121
+ * The number of bytes of scanned raw data.
109
122
  *
110
123
  * @example
111
124
  * 1048576
@@ -113,12 +126,23 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
113
126
  scanBytes?: number;
114
127
  /**
115
128
  * @remarks
116
- * The type and aggregation information of columns.
129
+ * The dataset schema of the final pipeline output. 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.
130
+ *
131
+ * @example
132
+ * {"status":{"type":"long"}}
133
+ */
134
+ schema?: { [key: string]: MetaSchemaValue };
135
+ /**
136
+ * @remarks
137
+ * The column types and aggregation information.
138
+ *
139
+ * @example
140
+ * [{"column":"status","type":"long"}]
117
141
  */
118
142
  terms?: { [key: string]: any }[];
119
143
  /**
120
144
  * @remarks
121
- * The filter condition SPL statement.
145
+ * The SPL statement for the filter condition.
122
146
  *
123
147
  * @example
124
148
  * status: 200
@@ -141,6 +165,7 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
141
165
  processedRows: 'processedRows',
142
166
  progress: 'progress',
143
167
  scanBytes: 'scanBytes',
168
+ schema: 'schema',
144
169
  terms: 'terms',
145
170
  whereQuery: 'whereQuery',
146
171
  };
@@ -163,6 +188,7 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
163
188
  processedRows: 'number',
164
189
  progress: 'string',
165
190
  scanBytes: 'number',
191
+ schema: { 'type': 'map', 'keyType': 'string', 'valueType': MetaSchemaValue },
166
192
  terms: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
167
193
  whereQuery: 'string',
168
194
  };
@@ -175,6 +201,9 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
175
201
  if(Array.isArray(this.keys)) {
176
202
  $dara.Model.validateArray(this.keys);
177
203
  }
204
+ if(this.schema) {
205
+ $dara.Model.validateMap(this.schema);
206
+ }
178
207
  if(Array.isArray(this.terms)) {
179
208
  $dara.Model.validateArray(this.terms);
180
209
  }
@@ -189,7 +218,10 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
189
218
  export class PreviewPipelineResponseBody extends $dara.Model {
190
219
  /**
191
220
  * @remarks
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.
221
+ * The collection of sample rows for the preview result. Each row is a key-value structure. The array contains only the first N rows, up to 5 rows by default, and does not reflect the complete write plan.
222
+ *
223
+ * @example
224
+ * [{"status":"200","method":"POST"}]
193
225
  */
194
226
  data?: { [key: string]: string }[];
195
227
  /**
@@ -199,7 +231,7 @@ export class PreviewPipelineResponseBody extends $dara.Model {
199
231
  meta?: PreviewPipelineResponseBodyMeta;
200
232
  /**
201
233
  * @remarks
202
- * The request ID, which is used to locate and troubleshoot issues.
234
+ * The request ID. You can use this ID to locate the request when you troubleshoot issues.
203
235
  *
204
236
  * @example
205
237
  * 9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M
@@ -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
  };