@alicloud/agentloop20260520 2.3.8 → 2.4.0
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 +182 -20
- package/dist/client.js +464 -20
- package/dist/client.js.map +1 -1
- package/dist/models/AnalysisTask.d.ts +92 -0
- package/dist/models/AnalysisTask.js +79 -0
- package/dist/models/AnalysisTask.js.map +1 -0
- package/dist/models/AuditTaskState.d.ts +100 -0
- package/dist/models/AuditTaskState.js +101 -0
- package/dist/models/AuditTaskState.js.map +1 -0
- package/dist/models/CancelPipelineRunResponseBody.d.ts +2 -2
- package/dist/models/ConnectorProperties.d.ts +32 -11
- package/dist/models/ConnectorProperties.js.map +1 -1
- package/dist/models/CreateContextStoreApikeyRequest.d.ts +2 -2
- package/dist/models/CreateContextStoreApikeyResponseBody.d.ts +1 -1
- package/dist/models/CreateContextStoreRequest.d.ts +614 -15
- package/dist/models/CreateContextStoreRequest.js +402 -3
- package/dist/models/CreateContextStoreRequest.js.map +1 -1
- package/dist/models/CreateContextStoreResponseBody.d.ts +9 -1
- package/dist/models/CreateContextStoreResponseBody.js +2 -0
- package/dist/models/CreateContextStoreResponseBody.js.map +1 -1
- package/dist/models/CreateOptimizeRunRequest.d.ts +39 -0
- package/dist/models/CreateOptimizeRunRequest.js +62 -0
- package/dist/models/CreateOptimizeRunRequest.js.map +1 -0
- package/dist/models/CreateOptimizeRunResponse.d.ts +19 -0
- package/dist/models/CreateOptimizeRunResponse.js +69 -0
- package/dist/models/CreateOptimizeRunResponse.js.map +1 -0
- package/dist/models/CreateOptimizeRunResponseBody.d.ts +39 -0
- package/dist/models/CreateOptimizeRunResponseBody.js +65 -0
- package/dist/models/CreateOptimizeRunResponseBody.js.map +1 -0
- package/dist/models/CreateOptimizeTaskRequest.d.ts +55 -0
- package/dist/models/CreateOptimizeTaskRequest.js +69 -0
- package/dist/models/CreateOptimizeTaskRequest.js.map +1 -0
- package/dist/models/CreateOptimizeTaskResponse.d.ts +19 -0
- package/dist/models/CreateOptimizeTaskResponse.js +69 -0
- package/dist/models/CreateOptimizeTaskResponse.js.map +1 -0
- package/dist/models/CreateOptimizeTaskResponseBody.d.ts +29 -0
- package/dist/models/CreateOptimizeTaskResponseBody.js +60 -0
- package/dist/models/CreateOptimizeTaskResponseBody.js.map +1 -0
- package/dist/models/DataFilter.d.ts +12 -5
- package/dist/models/DataFilter.js.map +1 -1
- package/dist/models/DeleteContextStoreApikeyResponseBody.d.ts +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/DeleteOptimizeTaskRequest.d.ts +21 -0
- package/dist/models/DeleteOptimizeTaskRequest.js +58 -0
- package/dist/models/DeleteOptimizeTaskRequest.js.map +1 -0
- package/dist/models/DeleteOptimizeTaskResponse.d.ts +19 -0
- package/dist/models/DeleteOptimizeTaskResponse.js +69 -0
- package/dist/models/DeleteOptimizeTaskResponse.js.map +1 -0
- package/dist/models/DeleteOptimizeTaskResponseBody.d.ts +21 -0
- package/dist/models/DeleteOptimizeTaskResponseBody.js +58 -0
- package/dist/models/DeleteOptimizeTaskResponseBody.js.map +1 -0
- package/dist/models/ExperimentConfig.d.ts +27 -6
- package/dist/models/ExperimentConfig.js.map +1 -1
- package/dist/models/ExperimentPlanData.d.ts +77 -0
- package/dist/models/ExperimentPlanData.js.map +1 -1
- package/dist/models/ExperimentRecord.d.ts +154 -0
- package/dist/models/ExperimentRecord.js.map +1 -1
- package/dist/models/GetContextStoreApikeyResponseBody.d.ts +5 -5
- package/dist/models/GetContextStoreResponseBody.d.ts +830 -18
- package/dist/models/GetContextStoreResponseBody.js +532 -1
- package/dist/models/GetContextStoreResponseBody.js.map +1 -1
- package/dist/models/GetDatasetResponseBody.d.ts +11 -3
- package/dist/models/GetDatasetResponseBody.js.map +1 -1
- package/dist/models/GetOptimizeRunRequest.d.ts +13 -0
- package/dist/models/GetOptimizeRunRequest.js +54 -0
- package/dist/models/GetOptimizeRunRequest.js.map +1 -0
- package/dist/models/GetOptimizeRunResponse.d.ts +19 -0
- package/dist/models/GetOptimizeRunResponse.js +69 -0
- package/dist/models/GetOptimizeRunResponse.js.map +1 -0
- package/dist/models/GetOptimizeRunResponseBody.d.ts +163 -0
- package/dist/models/GetOptimizeRunResponseBody.js +100 -0
- package/dist/models/GetOptimizeRunResponseBody.js.map +1 -0
- package/dist/models/GetOptimizeTaskRequest.d.ts +13 -0
- package/dist/models/GetOptimizeTaskRequest.js +54 -0
- package/dist/models/GetOptimizeTaskRequest.js.map +1 -0
- package/dist/models/GetOptimizeTaskResponse.d.ts +19 -0
- package/dist/models/GetOptimizeTaskResponse.js +69 -0
- package/dist/models/GetOptimizeTaskResponse.js.map +1 -0
- package/dist/models/GetOptimizeTaskResponseBody.d.ts +94 -0
- package/dist/models/GetOptimizeTaskResponseBody.js +82 -0
- package/dist/models/GetOptimizeTaskResponseBody.js.map +1 -0
- package/dist/models/GetPipelineStatsRequest.d.ts +9 -0
- package/dist/models/GetPipelineStatsRequest.js.map +1 -1
- package/dist/models/GetPipelineStatsResponseBody.d.ts +78 -1
- package/dist/models/GetPipelineStatsResponseBody.js.map +1 -1
- package/dist/models/IndexJsonKey.d.ts +3 -3
- package/dist/models/IndexKey.d.ts +10 -7
- package/dist/models/IndexKey.js.map +1 -1
- package/dist/models/ListContextStoreApikeysRequest.d.ts +2 -2
- package/dist/models/ListContextStoreApikeysResponseBody.d.ts +5 -5
- package/dist/models/ListContextStoresRequest.d.ts +12 -4
- package/dist/models/ListContextStoresRequest.js +2 -0
- package/dist/models/ListContextStoresRequest.js.map +1 -1
- package/dist/models/ListContextStoresResponseBody.d.ts +24 -8
- package/dist/models/ListContextStoresResponseBody.js +4 -0
- package/dist/models/ListContextStoresResponseBody.js.map +1 -1
- package/dist/models/ListDatasetsRequest.d.ts +6 -2
- package/dist/models/ListDatasetsRequest.js.map +1 -1
- package/dist/models/ListDatasetsResponseBody.d.ts +14 -6
- package/dist/models/ListDatasetsResponseBody.js.map +1 -1
- package/dist/models/ListDatasetsShrinkRequest.d.ts +6 -2
- package/dist/models/ListDatasetsShrinkRequest.js.map +1 -1
- package/dist/models/ListOptimizeRunsRequest.d.ts +53 -0
- package/dist/models/ListOptimizeRunsRequest.js +66 -0
- package/dist/models/ListOptimizeRunsRequest.js.map +1 -0
- package/dist/models/ListOptimizeRunsResponse.d.ts +19 -0
- package/dist/models/ListOptimizeRunsResponse.js +69 -0
- package/dist/models/ListOptimizeRunsResponse.js.map +1 -0
- package/dist/models/ListOptimizeRunsResponseBody.d.ts +204 -0
- package/dist/models/ListOptimizeRunsResponseBody.js +128 -0
- package/dist/models/ListOptimizeRunsResponseBody.js.map +1 -0
- package/dist/models/ListOptimizeTasksRequest.d.ts +45 -0
- package/dist/models/ListOptimizeTasksRequest.js +64 -0
- package/dist/models/ListOptimizeTasksRequest.js.map +1 -0
- package/dist/models/ListOptimizeTasksResponse.d.ts +19 -0
- package/dist/models/ListOptimizeTasksResponse.js +69 -0
- package/dist/models/ListOptimizeTasksResponse.js.map +1 -0
- package/dist/models/ListOptimizeTasksResponseBody.d.ts +135 -0
- package/dist/models/ListOptimizeTasksResponseBody.js +110 -0
- package/dist/models/ListOptimizeTasksResponseBody.js.map +1 -0
- package/dist/models/ListPipelineRunsRequest.d.ts +10 -4
- package/dist/models/ListPipelineRunsRequest.js.map +1 -1
- package/dist/models/ListPipelineRunsResponseBody.d.ts +9 -9
- package/dist/models/ListPipelinesRequest.d.ts +6 -12
- package/dist/models/ListPipelinesRequest.js.map +1 -1
- package/dist/models/ListPipelinesResponseBody.d.ts +56 -37
- package/dist/models/ListPipelinesResponseBody.js.map +1 -1
- package/dist/models/ModelParameters.d.ts +49 -0
- package/dist/models/ModelParameters.js.map +1 -1
- package/dist/models/OfflineExperimentConfig.d.ts +21 -0
- package/dist/models/OfflineExperimentConfig.js.map +1 -1
- package/dist/models/PausePipelineResponseBody.d.ts +3 -3
- package/dist/models/PromptTemplateItem.d.ts +14 -0
- package/dist/models/PromptTemplateItem.js.map +1 -1
- package/dist/models/ResumePipelineResponseBody.d.ts +3 -3
- package/dist/models/RunPipelineRequest.d.ts +4 -4
- package/dist/models/RunPipelineResponseBody.d.ts +4 -4
- package/dist/models/SearchContextRequest.d.ts +61 -4
- package/dist/models/SearchContextRequest.js +33 -1
- package/dist/models/SearchContextRequest.js.map +1 -1
- package/dist/models/SearchContextResponseBody.d.ts +17 -1
- package/dist/models/SearchContextResponseBody.js +4 -0
- package/dist/models/SearchContextResponseBody.js.map +1 -1
- package/dist/models/TerminatePipelineRequest.d.ts +3 -0
- package/dist/models/TerminatePipelineRequest.js.map +1 -1
- package/dist/models/TerminatePipelineResponseBody.d.ts +17 -0
- package/dist/models/TerminatePipelineResponseBody.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/UpdateExperimentPlanRequest.d.ts +6 -6
- package/dist/models/UpdateExperimentPlanResponseBody.d.ts +3 -3
- package/dist/models/UpdateOptimizeRunRequest.d.ts +39 -0
- package/dist/models/UpdateOptimizeRunRequest.js +65 -0
- package/dist/models/UpdateOptimizeRunRequest.js.map +1 -0
- package/dist/models/UpdateOptimizeRunResponse.d.ts +19 -0
- package/dist/models/UpdateOptimizeRunResponse.js +69 -0
- package/dist/models/UpdateOptimizeRunResponse.js.map +1 -0
- package/dist/models/UpdateOptimizeRunResponseBody.d.ts +29 -0
- package/dist/models/UpdateOptimizeRunResponseBody.js +60 -0
- package/dist/models/UpdateOptimizeRunResponseBody.js.map +1 -0
- package/dist/models/UpdateOptimizeTaskRequest.d.ts +39 -0
- package/dist/models/UpdateOptimizeTaskRequest.js +65 -0
- package/dist/models/UpdateOptimizeTaskRequest.js.map +1 -0
- package/dist/models/UpdateOptimizeTaskResponse.d.ts +19 -0
- package/dist/models/UpdateOptimizeTaskResponse.js +69 -0
- package/dist/models/UpdateOptimizeTaskResponse.js.map +1 -0
- package/dist/models/UpdateOptimizeTaskResponseBody.d.ts +21 -0
- package/dist/models/UpdateOptimizeTaskResponseBody.js +58 -0
- package/dist/models/UpdateOptimizeTaskResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +74 -0
- package/dist/models/model.js +171 -21
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +511 -20
- package/src/models/AnalysisTask.ts +124 -0
- package/src/models/AuditTaskState.ts +143 -0
- package/src/models/CancelPipelineRunResponseBody.ts +2 -2
- package/src/models/ConnectorProperties.ts +32 -11
- package/src/models/CreateContextStoreApikeyRequest.ts +2 -2
- package/src/models/CreateContextStoreApikeyResponseBody.ts +1 -1
- package/src/models/CreateContextStoreRequest.ts +896 -15
- package/src/models/CreateContextStoreResponseBody.ts +11 -1
- package/src/models/CreateOptimizeRunRequest.ts +56 -0
- package/src/models/CreateOptimizeRunResponse.ts +40 -0
- package/src/models/CreateOptimizeRunResponseBody.ts +57 -0
- package/src/models/CreateOptimizeTaskRequest.ts +77 -0
- package/src/models/CreateOptimizeTaskResponse.ts +40 -0
- package/src/models/CreateOptimizeTaskResponseBody.ts +44 -0
- package/src/models/DataFilter.ts +12 -5
- package/src/models/DeleteContextStoreApikeyResponseBody.ts +1 -1
- package/src/models/DeleteContextStoreRequest.ts +10 -0
- package/src/models/DeleteContextStoreResponseBody.ts +1 -1
- package/src/models/DeleteOptimizeTaskRequest.ts +34 -0
- package/src/models/DeleteOptimizeTaskResponse.ts +40 -0
- package/src/models/DeleteOptimizeTaskResponseBody.ts +34 -0
- package/src/models/ExperimentConfig.ts +27 -6
- package/src/models/ExperimentPlanData.ts +77 -0
- package/src/models/ExperimentRecord.ts +154 -0
- package/src/models/GetContextStoreApikeyResponseBody.ts +5 -5
- package/src/models/GetContextStoreResponseBody.ts +1202 -18
- package/src/models/GetDatasetResponseBody.ts +11 -3
- package/src/models/GetOptimizeRunRequest.ts +24 -0
- package/src/models/GetOptimizeRunResponse.ts +40 -0
- package/src/models/GetOptimizeRunResponseBody.ts +214 -0
- package/src/models/GetOptimizeTaskRequest.ts +24 -0
- package/src/models/GetOptimizeTaskResponse.ts +40 -0
- package/src/models/GetOptimizeTaskResponseBody.ts +127 -0
- package/src/models/GetPipelineStatsRequest.ts +9 -0
- package/src/models/GetPipelineStatsResponseBody.ts +78 -1
- package/src/models/IndexJsonKey.ts +3 -3
- package/src/models/IndexKey.ts +10 -7
- package/src/models/ListContextStoreApikeysRequest.ts +2 -2
- package/src/models/ListContextStoreApikeysResponseBody.ts +5 -5
- package/src/models/ListContextStoresRequest.ts +14 -4
- package/src/models/ListContextStoresResponseBody.ts +28 -8
- package/src/models/ListDatasetsRequest.ts +6 -2
- package/src/models/ListDatasetsResponseBody.ts +14 -6
- package/src/models/ListDatasetsShrinkRequest.ts +6 -2
- package/src/models/ListOptimizeRunsRequest.ts +74 -0
- package/src/models/ListOptimizeRunsResponse.ts +40 -0
- package/src/models/ListOptimizeRunsResponseBody.ts +274 -0
- package/src/models/ListOptimizeTasksRequest.ts +64 -0
- package/src/models/ListOptimizeTasksResponse.ts +40 -0
- package/src/models/ListOptimizeTasksResponseBody.ts +187 -0
- package/src/models/ListPipelineRunsRequest.ts +10 -4
- package/src/models/ListPipelineRunsResponseBody.ts +9 -9
- package/src/models/ListPipelinesRequest.ts +6 -12
- package/src/models/ListPipelinesResponseBody.ts +56 -37
- package/src/models/ModelParameters.ts +49 -0
- package/src/models/OfflineExperimentConfig.ts +21 -0
- package/src/models/PausePipelineResponseBody.ts +3 -3
- package/src/models/PromptTemplateItem.ts +14 -0
- package/src/models/ResumePipelineResponseBody.ts +3 -3
- package/src/models/RunPipelineRequest.ts +4 -4
- package/src/models/RunPipelineResponseBody.ts +4 -4
- package/src/models/SearchContextRequest.ts +84 -4
- package/src/models/SearchContextResponseBody.ts +21 -1
- package/src/models/TerminatePipelineRequest.ts +3 -0
- package/src/models/TerminatePipelineResponseBody.ts +17 -0
- package/src/models/UpdateContextStoreRequest.ts +710 -9
- package/src/models/UpdateContextStoreResponseBody.ts +10 -0
- package/src/models/UpdateExperimentPlanRequest.ts +6 -6
- package/src/models/UpdateExperimentPlanResponseBody.ts +3 -3
- package/src/models/UpdateOptimizeRunRequest.ts +57 -0
- package/src/models/UpdateOptimizeRunResponse.ts +40 -0
- package/src/models/UpdateOptimizeRunResponseBody.ts +44 -0
- package/src/models/UpdateOptimizeTaskRequest.ts +57 -0
- package/src/models/UpdateOptimizeTaskResponse.ts +40 -0
- package/src/models/UpdateOptimizeTaskResponseBody.ts +34 -0
- package/src/models/model.ts +74 -0
|
@@ -2,12 +2,679 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
export class CreateContextStoreRequestConfigAudit extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Specifies whether to write item events for candidates dropped during recall. Default value: false.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* false
|
|
12
|
+
*/
|
|
13
|
+
droppedCandidates?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* Specifies the logging mode for recall queries. Valid values: raw (plaintext) and hash (HMAC only). Default value: raw.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* raw
|
|
20
|
+
*/
|
|
21
|
+
queryMode?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* Specifies the number of days to retain audit logs. Valid values: 1 to 180. Default value: 30.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* 30
|
|
28
|
+
*/
|
|
29
|
+
retentionDays?: number;
|
|
30
|
+
static names(): { [key: string]: string } {
|
|
31
|
+
return {
|
|
32
|
+
droppedCandidates: 'droppedCandidates',
|
|
33
|
+
queryMode: 'queryMode',
|
|
34
|
+
retentionDays: 'retentionDays',
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
static types(): { [key: string]: any } {
|
|
39
|
+
return {
|
|
40
|
+
droppedCandidates: 'boolean',
|
|
41
|
+
queryMode: 'string',
|
|
42
|
+
retentionDays: 'number',
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
validate() {
|
|
47
|
+
super.validate();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
constructor(map?: { [key: string]: any }) {
|
|
51
|
+
super(map);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export class CreateContextStoreRequestConfigExtractionPolicyModel extends $dara.Model {
|
|
56
|
+
/**
|
|
57
|
+
* @remarks
|
|
58
|
+
* Specifies the name of the extraction model. Currently, only qwen3.8-flash is supported. Platform internal credentials are used.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* qwen3.8-flash
|
|
62
|
+
*/
|
|
63
|
+
name?: string;
|
|
64
|
+
static names(): { [key: string]: string } {
|
|
65
|
+
return {
|
|
66
|
+
name: 'name',
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
static types(): { [key: string]: any } {
|
|
71
|
+
return {
|
|
72
|
+
name: 'string',
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
validate() {
|
|
77
|
+
super.validate();
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
constructor(map?: { [key: string]: any }) {
|
|
81
|
+
super(map);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export class CreateContextStoreRequestConfigExtractionPolicy extends $dara.Model {
|
|
86
|
+
/**
|
|
87
|
+
* @remarks
|
|
88
|
+
* The list of memory categories.
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* ["preference","profile"]
|
|
92
|
+
*/
|
|
93
|
+
categories?: string[];
|
|
94
|
+
/**
|
|
95
|
+
* @remarks
|
|
96
|
+
* Specifies the custom extraction instructions. This parameter is required when preset is set to custom. Length: 1 to 8000 characters.
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* Extract only user product preferences
|
|
100
|
+
*/
|
|
101
|
+
customInstructions?: string;
|
|
102
|
+
/**
|
|
103
|
+
* @remarks
|
|
104
|
+
* The list of exclusion rules. Content that matches these rules is not extracted.
|
|
105
|
+
*
|
|
106
|
+
* @example
|
|
107
|
+
* ["Password","ID number"]
|
|
108
|
+
*/
|
|
109
|
+
excludeRules?: string[];
|
|
110
|
+
/**
|
|
111
|
+
* @remarks
|
|
112
|
+
* The extraction model configuration.
|
|
113
|
+
*/
|
|
114
|
+
model?: CreateContextStoreRequestConfigExtractionPolicyModel;
|
|
115
|
+
/**
|
|
116
|
+
* @remarks
|
|
117
|
+
* Specifies the preset policy. Valid values: fact, toc-profile, tob-digital-twin, and custom. Default value: fact.
|
|
118
|
+
*
|
|
119
|
+
* @example
|
|
120
|
+
* fact
|
|
121
|
+
*/
|
|
122
|
+
preset?: string;
|
|
123
|
+
static names(): { [key: string]: string } {
|
|
124
|
+
return {
|
|
125
|
+
categories: 'categories',
|
|
126
|
+
customInstructions: 'customInstructions',
|
|
127
|
+
excludeRules: 'excludeRules',
|
|
128
|
+
model: 'model',
|
|
129
|
+
preset: 'preset',
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
static types(): { [key: string]: any } {
|
|
134
|
+
return {
|
|
135
|
+
categories: { 'type': 'array', 'itemType': 'string' },
|
|
136
|
+
customInstructions: 'string',
|
|
137
|
+
excludeRules: { 'type': 'array', 'itemType': 'string' },
|
|
138
|
+
model: CreateContextStoreRequestConfigExtractionPolicyModel,
|
|
139
|
+
preset: 'string',
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
validate() {
|
|
144
|
+
if(Array.isArray(this.categories)) {
|
|
145
|
+
$dara.Model.validateArray(this.categories);
|
|
146
|
+
}
|
|
147
|
+
if(Array.isArray(this.excludeRules)) {
|
|
148
|
+
$dara.Model.validateArray(this.excludeRules);
|
|
149
|
+
}
|
|
150
|
+
if(this.model && typeof (this.model as any).validate === 'function') {
|
|
151
|
+
(this.model as any).validate();
|
|
152
|
+
}
|
|
153
|
+
super.validate();
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
constructor(map?: { [key: string]: any }) {
|
|
157
|
+
super(map);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export class CreateContextStoreRequestConfigScopePolicy extends $dara.Model {
|
|
162
|
+
/**
|
|
163
|
+
* @remarks
|
|
164
|
+
* Specifies that at least one of the specified scope fields must be non-empty. Valid values for elements: userId, agentId, appId, and runId.
|
|
165
|
+
*
|
|
166
|
+
* @example
|
|
167
|
+
* ["userId"]
|
|
168
|
+
*/
|
|
169
|
+
requiredAnyOf?: string[];
|
|
170
|
+
static names(): { [key: string]: string } {
|
|
171
|
+
return {
|
|
172
|
+
requiredAnyOf: 'requiredAnyOf',
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
static types(): { [key: string]: any } {
|
|
177
|
+
return {
|
|
178
|
+
requiredAnyOf: { 'type': 'array', 'itemType': 'string' },
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
validate() {
|
|
183
|
+
if(Array.isArray(this.requiredAnyOf)) {
|
|
184
|
+
$dara.Model.validateArray(this.requiredAnyOf);
|
|
185
|
+
}
|
|
186
|
+
super.validate();
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
constructor(map?: { [key: string]: any }) {
|
|
190
|
+
super(map);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export class CreateContextStoreRequestConfigSourceDatasetCustomFields extends $dara.Model {
|
|
195
|
+
/**
|
|
196
|
+
* @remarks
|
|
197
|
+
* Specifies the field description. This parameter is required when usage is set to extraction-input. It is appended to the extraction prompt.
|
|
198
|
+
*
|
|
199
|
+
* @example
|
|
200
|
+
* Customer tier
|
|
201
|
+
*/
|
|
202
|
+
description?: string;
|
|
203
|
+
/**
|
|
204
|
+
* @remarks
|
|
205
|
+
* Specifies whether the field is a sensitive field.
|
|
206
|
+
*
|
|
207
|
+
* @example
|
|
208
|
+
* false
|
|
209
|
+
*/
|
|
210
|
+
sensitive?: boolean;
|
|
211
|
+
/**
|
|
212
|
+
* @remarks
|
|
213
|
+
* The name of the source field.
|
|
214
|
+
*
|
|
215
|
+
* @example
|
|
216
|
+
* customerTier
|
|
217
|
+
*/
|
|
218
|
+
sourceField?: string;
|
|
219
|
+
/**
|
|
220
|
+
* @remarks
|
|
221
|
+
* The target path for writing, such as metadata.customerTier.
|
|
222
|
+
*
|
|
223
|
+
* @example
|
|
224
|
+
* metadata.customerTier
|
|
225
|
+
*/
|
|
226
|
+
target?: string;
|
|
227
|
+
/**
|
|
228
|
+
* @remarks
|
|
229
|
+
* Specifies the usage of the field. Valid values: extraction-input (participates in extraction) and ignore (ignored).
|
|
230
|
+
*
|
|
231
|
+
* @example
|
|
232
|
+
* extraction-input
|
|
233
|
+
*/
|
|
234
|
+
usage?: string;
|
|
235
|
+
static names(): { [key: string]: string } {
|
|
236
|
+
return {
|
|
237
|
+
description: 'description',
|
|
238
|
+
sensitive: 'sensitive',
|
|
239
|
+
sourceField: 'sourceField',
|
|
240
|
+
target: 'target',
|
|
241
|
+
usage: 'usage',
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
static types(): { [key: string]: any } {
|
|
246
|
+
return {
|
|
247
|
+
description: 'string',
|
|
248
|
+
sensitive: 'boolean',
|
|
249
|
+
sourceField: 'string',
|
|
250
|
+
target: 'string',
|
|
251
|
+
usage: 'string',
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
validate() {
|
|
256
|
+
super.validate();
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
constructor(map?: { [key: string]: any }) {
|
|
260
|
+
super(map);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export class CreateContextStoreRequestConfigSourceDatasetFilter extends $dara.Model {
|
|
265
|
+
/**
|
|
266
|
+
* @remarks
|
|
267
|
+
* The subset of the Pipeline where clause, which is pushed down to SQL.
|
|
268
|
+
*
|
|
269
|
+
* @example
|
|
270
|
+
* appId = \\"crm-service\\"
|
|
271
|
+
*/
|
|
272
|
+
where?: string;
|
|
273
|
+
static names(): { [key: string]: string } {
|
|
274
|
+
return {
|
|
275
|
+
where: 'where',
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
static types(): { [key: string]: any } {
|
|
280
|
+
return {
|
|
281
|
+
where: 'string',
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
validate() {
|
|
286
|
+
super.validate();
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
constructor(map?: { [key: string]: any }) {
|
|
290
|
+
super(map);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
export class CreateContextStoreRequestConfigSourceDatasetVersionPolicy extends $dara.Model {
|
|
295
|
+
/**
|
|
296
|
+
* @remarks
|
|
297
|
+
* The consumption mode. Valid values:
|
|
298
|
+
* - follow: Consumes data incrementally based on __dataset_seq.
|
|
299
|
+
* - fixed: Consumes the specified ACTIVE version in full at once.
|
|
300
|
+
*
|
|
301
|
+
* @example
|
|
302
|
+
* follow
|
|
303
|
+
*/
|
|
304
|
+
mode?: string;
|
|
305
|
+
/**
|
|
306
|
+
* @remarks
|
|
307
|
+
* The starting __dataset_seq for the follow mode.
|
|
308
|
+
*
|
|
309
|
+
* @example
|
|
310
|
+
* 0
|
|
311
|
+
*/
|
|
312
|
+
startSeq?: number;
|
|
313
|
+
/**
|
|
314
|
+
* @remarks
|
|
315
|
+
* The dataset version specified for the fixed mode.
|
|
316
|
+
*
|
|
317
|
+
* @example
|
|
318
|
+
* v3
|
|
319
|
+
*/
|
|
320
|
+
version?: string;
|
|
321
|
+
static names(): { [key: string]: string } {
|
|
322
|
+
return {
|
|
323
|
+
mode: 'mode',
|
|
324
|
+
startSeq: 'startSeq',
|
|
325
|
+
version: 'version',
|
|
326
|
+
};
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
static types(): { [key: string]: any } {
|
|
330
|
+
return {
|
|
331
|
+
mode: 'string',
|
|
332
|
+
startSeq: 'number',
|
|
333
|
+
version: 'string',
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
validate() {
|
|
338
|
+
super.validate();
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
constructor(map?: { [key: string]: any }) {
|
|
342
|
+
super(map);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
export class CreateContextStoreRequestConfigSourceDataset extends $dara.Model {
|
|
347
|
+
/**
|
|
348
|
+
* @remarks
|
|
349
|
+
* The list of custom field declarations.
|
|
350
|
+
*/
|
|
351
|
+
customFields?: CreateContextStoreRequestConfigSourceDatasetCustomFields[];
|
|
352
|
+
/**
|
|
353
|
+
* @remarks
|
|
354
|
+
* Specifies the name of the Dataset in the same AgentSpace. This parameter cannot be modified after creation.
|
|
355
|
+
*
|
|
356
|
+
* @example
|
|
357
|
+
* trajectory-with-crm-profile
|
|
358
|
+
*/
|
|
359
|
+
datasetName?: string;
|
|
360
|
+
/**
|
|
361
|
+
* @remarks
|
|
362
|
+
* The row filter conditions.
|
|
363
|
+
*/
|
|
364
|
+
filter?: CreateContextStoreRequestConfigSourceDatasetFilter;
|
|
365
|
+
/**
|
|
366
|
+
* @remarks
|
|
367
|
+
* Specifies the polling interval in seconds. Valid values: 60 to 3600. Default value: 300.
|
|
368
|
+
*
|
|
369
|
+
* @example
|
|
370
|
+
* 300
|
|
371
|
+
*/
|
|
372
|
+
pollIntervalSeconds?: number;
|
|
373
|
+
/**
|
|
374
|
+
* @remarks
|
|
375
|
+
* The Dataset row schema contract. In the current phase, this is fixed to MemorySourceV1.
|
|
376
|
+
*
|
|
377
|
+
* @example
|
|
378
|
+
* MemorySourceV1
|
|
379
|
+
*/
|
|
380
|
+
schemaContract?: string;
|
|
381
|
+
/**
|
|
382
|
+
* @remarks
|
|
383
|
+
* The dataset version consumption policy.
|
|
384
|
+
*/
|
|
385
|
+
versionPolicy?: CreateContextStoreRequestConfigSourceDatasetVersionPolicy;
|
|
386
|
+
static names(): { [key: string]: string } {
|
|
387
|
+
return {
|
|
388
|
+
customFields: 'customFields',
|
|
389
|
+
datasetName: 'datasetName',
|
|
390
|
+
filter: 'filter',
|
|
391
|
+
pollIntervalSeconds: 'pollIntervalSeconds',
|
|
392
|
+
schemaContract: 'schemaContract',
|
|
393
|
+
versionPolicy: 'versionPolicy',
|
|
394
|
+
};
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
static types(): { [key: string]: any } {
|
|
398
|
+
return {
|
|
399
|
+
customFields: { 'type': 'array', 'itemType': CreateContextStoreRequestConfigSourceDatasetCustomFields },
|
|
400
|
+
datasetName: 'string',
|
|
401
|
+
filter: CreateContextStoreRequestConfigSourceDatasetFilter,
|
|
402
|
+
pollIntervalSeconds: 'number',
|
|
403
|
+
schemaContract: 'string',
|
|
404
|
+
versionPolicy: CreateContextStoreRequestConfigSourceDatasetVersionPolicy,
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
validate() {
|
|
409
|
+
if(Array.isArray(this.customFields)) {
|
|
410
|
+
$dara.Model.validateArray(this.customFields);
|
|
411
|
+
}
|
|
412
|
+
if(this.filter && typeof (this.filter as any).validate === 'function') {
|
|
413
|
+
(this.filter as any).validate();
|
|
414
|
+
}
|
|
415
|
+
if(this.versionPolicy && typeof (this.versionPolicy as any).validate === 'function') {
|
|
416
|
+
(this.versionPolicy as any).validate();
|
|
417
|
+
}
|
|
418
|
+
super.validate();
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
constructor(map?: { [key: string]: any }) {
|
|
422
|
+
super(map);
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
export class CreateContextStoreRequestConfigSourceTrajectoryFilter extends $dara.Model {
|
|
427
|
+
/**
|
|
428
|
+
* @remarks
|
|
429
|
+
* The list of agent names. An explicitly empty list returns a 400 error.
|
|
430
|
+
*
|
|
431
|
+
* @example
|
|
432
|
+
* ["sales-copilot"]
|
|
433
|
+
*/
|
|
434
|
+
agentNames?: string[];
|
|
435
|
+
/**
|
|
436
|
+
* @remarks
|
|
437
|
+
* Specifies whether to exclude degraded trajectories. Default value: false, which includes degraded trajectories.
|
|
438
|
+
*
|
|
439
|
+
* @example
|
|
440
|
+
* false
|
|
441
|
+
*/
|
|
442
|
+
excludeDegraded?: boolean;
|
|
443
|
+
/**
|
|
444
|
+
* @remarks
|
|
445
|
+
* The minimum number of steps. The value must be greater than or equal to 0.
|
|
446
|
+
*
|
|
447
|
+
* @example
|
|
448
|
+
* 2
|
|
449
|
+
*/
|
|
450
|
+
minStepCount?: number;
|
|
451
|
+
/**
|
|
452
|
+
* @remarks
|
|
453
|
+
* The native Simple Log Service (SLS) query statement. This statement is combined with the preceding conditions using AND.
|
|
454
|
+
*
|
|
455
|
+
* @example
|
|
456
|
+
* tool_names:"search_order"
|
|
457
|
+
*/
|
|
458
|
+
query?: string;
|
|
459
|
+
/**
|
|
460
|
+
* @remarks
|
|
461
|
+
* The list of service names. A single trailing asterisk (*) is supported. An explicitly empty list returns a 400 error.
|
|
462
|
+
*
|
|
463
|
+
* @example
|
|
464
|
+
* ["crm-service","app-*"]
|
|
465
|
+
*/
|
|
466
|
+
serviceNames?: string[];
|
|
467
|
+
static names(): { [key: string]: string } {
|
|
468
|
+
return {
|
|
469
|
+
agentNames: 'agentNames',
|
|
470
|
+
excludeDegraded: 'excludeDegraded',
|
|
471
|
+
minStepCount: 'minStepCount',
|
|
472
|
+
query: 'query',
|
|
473
|
+
serviceNames: 'serviceNames',
|
|
474
|
+
};
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
static types(): { [key: string]: any } {
|
|
478
|
+
return {
|
|
479
|
+
agentNames: { 'type': 'array', 'itemType': 'string' },
|
|
480
|
+
excludeDegraded: 'boolean',
|
|
481
|
+
minStepCount: 'number',
|
|
482
|
+
query: 'string',
|
|
483
|
+
serviceNames: { 'type': 'array', 'itemType': 'string' },
|
|
484
|
+
};
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
validate() {
|
|
488
|
+
if(Array.isArray(this.agentNames)) {
|
|
489
|
+
$dara.Model.validateArray(this.agentNames);
|
|
490
|
+
}
|
|
491
|
+
if(Array.isArray(this.serviceNames)) {
|
|
492
|
+
$dara.Model.validateArray(this.serviceNames);
|
|
493
|
+
}
|
|
494
|
+
super.validate();
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
constructor(map?: { [key: string]: any }) {
|
|
498
|
+
super(map);
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
export class CreateContextStoreRequestConfigSourceTrajectoryScopeMapping extends $dara.Model {
|
|
503
|
+
/**
|
|
504
|
+
* @remarks
|
|
505
|
+
* The JSONPath expression for agentId. Default value: $.agent_name.
|
|
506
|
+
*
|
|
507
|
+
* @example
|
|
508
|
+
* $.agent_name
|
|
509
|
+
*/
|
|
510
|
+
agentId?: string;
|
|
511
|
+
/**
|
|
512
|
+
* @remarks
|
|
513
|
+
* The JSONPath expression for appId. Default value: $.service_names[0].
|
|
514
|
+
*
|
|
515
|
+
* @example
|
|
516
|
+
* $.service_names[0]
|
|
517
|
+
*/
|
|
518
|
+
appId?: string;
|
|
519
|
+
/**
|
|
520
|
+
* @remarks
|
|
521
|
+
* The JSONPath expression for runId. Default value: $.trajectory_id.
|
|
522
|
+
*
|
|
523
|
+
* @example
|
|
524
|
+
* $.trajectory_id
|
|
525
|
+
*/
|
|
526
|
+
runId?: string;
|
|
527
|
+
/**
|
|
528
|
+
* @remarks
|
|
529
|
+
* The JSONPath expression for userId. By default, this field is not mapped.
|
|
530
|
+
*
|
|
531
|
+
* @example
|
|
532
|
+
* $.trajectory_extensions.user_id
|
|
533
|
+
*/
|
|
534
|
+
userId?: string;
|
|
535
|
+
static names(): { [key: string]: string } {
|
|
536
|
+
return {
|
|
537
|
+
agentId: 'agentId',
|
|
538
|
+
appId: 'appId',
|
|
539
|
+
runId: 'runId',
|
|
540
|
+
userId: 'userId',
|
|
541
|
+
};
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
static types(): { [key: string]: any } {
|
|
545
|
+
return {
|
|
546
|
+
agentId: 'string',
|
|
547
|
+
appId: 'string',
|
|
548
|
+
runId: 'string',
|
|
549
|
+
userId: 'string',
|
|
550
|
+
};
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
validate() {
|
|
554
|
+
super.validate();
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
constructor(map?: { [key: string]: any }) {
|
|
558
|
+
super(map);
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
export class CreateContextStoreRequestConfigSourceTrajectory extends $dara.Model {
|
|
563
|
+
/**
|
|
564
|
+
* @remarks
|
|
565
|
+
* The trajectory filter conditions. Conditions are combined with AND, and items within a list are combined with OR.
|
|
566
|
+
*/
|
|
567
|
+
filter?: CreateContextStoreRequestConfigSourceTrajectoryFilter;
|
|
568
|
+
/**
|
|
569
|
+
* @remarks
|
|
570
|
+
* The name of the trajectory Logstore. Default value: agent-trajectory. This parameter cannot be modified after creation.
|
|
571
|
+
*
|
|
572
|
+
* @example
|
|
573
|
+
* agent-trajectory
|
|
574
|
+
*/
|
|
575
|
+
logstore?: string;
|
|
576
|
+
/**
|
|
577
|
+
* @remarks
|
|
578
|
+
* Specifies the polling interval in seconds. Valid values: 60 to 3600. Default value: 300.
|
|
579
|
+
*
|
|
580
|
+
* @example
|
|
581
|
+
* 300
|
|
582
|
+
*/
|
|
583
|
+
pollIntervalSeconds?: number;
|
|
584
|
+
/**
|
|
585
|
+
* @remarks
|
|
586
|
+
* The scope field mapping. The value is a JSONPath expression. Only the $.a.b and $.a[0] formats are supported.
|
|
587
|
+
*/
|
|
588
|
+
scopeMapping?: CreateContextStoreRequestConfigSourceTrajectoryScopeMapping;
|
|
589
|
+
/**
|
|
590
|
+
* @remarks
|
|
591
|
+
* The start time for trajectory consumption in ISO 8601 UTC format. If not specified, the creation time is used by default.
|
|
592
|
+
*
|
|
593
|
+
* Use the UTC time format: yyyy-MM-ddTHH:mm:ssZ
|
|
594
|
+
*
|
|
595
|
+
* @example
|
|
596
|
+
* 2026-10-01T00:00:00Z
|
|
597
|
+
*/
|
|
598
|
+
startTime?: string;
|
|
599
|
+
static names(): { [key: string]: string } {
|
|
600
|
+
return {
|
|
601
|
+
filter: 'filter',
|
|
602
|
+
logstore: 'logstore',
|
|
603
|
+
pollIntervalSeconds: 'pollIntervalSeconds',
|
|
604
|
+
scopeMapping: 'scopeMapping',
|
|
605
|
+
startTime: 'startTime',
|
|
606
|
+
};
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
static types(): { [key: string]: any } {
|
|
610
|
+
return {
|
|
611
|
+
filter: CreateContextStoreRequestConfigSourceTrajectoryFilter,
|
|
612
|
+
logstore: 'string',
|
|
613
|
+
pollIntervalSeconds: 'number',
|
|
614
|
+
scopeMapping: CreateContextStoreRequestConfigSourceTrajectoryScopeMapping,
|
|
615
|
+
startTime: 'string',
|
|
616
|
+
};
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
validate() {
|
|
620
|
+
if(this.filter && typeof (this.filter as any).validate === 'function') {
|
|
621
|
+
(this.filter as any).validate();
|
|
622
|
+
}
|
|
623
|
+
if(this.scopeMapping && typeof (this.scopeMapping as any).validate === 'function') {
|
|
624
|
+
(this.scopeMapping as any).validate();
|
|
625
|
+
}
|
|
626
|
+
super.validate();
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
constructor(map?: { [key: string]: any }) {
|
|
630
|
+
super(map);
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
export class CreateContextStoreRequestConfigSourceVersionPolicy extends $dara.Model {
|
|
635
|
+
/**
|
|
636
|
+
* @remarks
|
|
637
|
+
* The continuous consumption mode. The value is fixed to follow.
|
|
638
|
+
*
|
|
639
|
+
* @example
|
|
640
|
+
* follow
|
|
641
|
+
*/
|
|
642
|
+
mode?: string;
|
|
643
|
+
/**
|
|
644
|
+
* @remarks
|
|
645
|
+
* The initial consumed append sequence. The value is a decimal string of a non-negative int64 integer. Default value: 0. The __dataset_seq field is used, and the business timestamp is not used as the consumption checkpoint.
|
|
646
|
+
*
|
|
647
|
+
* @example
|
|
648
|
+
* 0
|
|
649
|
+
*/
|
|
650
|
+
startSeq?: string;
|
|
651
|
+
static names(): { [key: string]: string } {
|
|
652
|
+
return {
|
|
653
|
+
mode: 'mode',
|
|
654
|
+
startSeq: 'startSeq',
|
|
655
|
+
};
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
static types(): { [key: string]: any } {
|
|
659
|
+
return {
|
|
660
|
+
mode: 'string',
|
|
661
|
+
startSeq: 'string',
|
|
662
|
+
};
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
validate() {
|
|
666
|
+
super.validate();
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
constructor(map?: { [key: string]: any }) {
|
|
670
|
+
super(map);
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
|
|
7
674
|
export class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
8
675
|
/**
|
|
9
676
|
* @remarks
|
|
10
|
-
*
|
|
677
|
+
* Specifies the AgentSpace where the trace data source is located. If not specified, the default is the AgentSpace in the current path. Cross-AgentSpace is not supported in the current phase. If specified, it must be equal to the path AgentSpace; otherwise, a 400 parameter error is returned. This parameter cannot be modified after creation.
|
|
11
678
|
*
|
|
12
679
|
* @example
|
|
13
680
|
* my-agent-space
|
|
@@ -15,7 +682,44 @@ export class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
15
682
|
agentSpace?: string;
|
|
16
683
|
/**
|
|
17
684
|
* @remarks
|
|
18
|
-
* The
|
|
685
|
+
* The DatasetBinding v1 shared with optimization tasks. It includes version, selection (all/window and structured filters), and customFields. It is validated by the server and does not accept SQL or column mappings.
|
|
686
|
+
*
|
|
687
|
+
* @example
|
|
688
|
+
* {"version":1,"selection":{"mode":"all"}}
|
|
689
|
+
*/
|
|
690
|
+
binding?: { [key: string]: any };
|
|
691
|
+
/**
|
|
692
|
+
* @remarks
|
|
693
|
+
* The Dataset datasource config. This parameter is required when source.type is set to dataset.
|
|
694
|
+
*/
|
|
695
|
+
dataset?: CreateContextStoreRequestConfigSourceDataset;
|
|
696
|
+
/**
|
|
697
|
+
* @remarks
|
|
698
|
+
* The name of the experience dataset source. The dataset must reside in the current AgentSpace. This parameter is provided only when the source type is experience and source.type is dataset.
|
|
699
|
+
*
|
|
700
|
+
* @example
|
|
701
|
+
* reviewed_trajectories
|
|
702
|
+
*/
|
|
703
|
+
datasetName?: string;
|
|
704
|
+
/**
|
|
705
|
+
* @remarks
|
|
706
|
+
* The input format of the dataset. For experience dataset sources, only atif is supported, and the fixed columns must be consistent with the optimization task.
|
|
707
|
+
*
|
|
708
|
+
* @example
|
|
709
|
+
* atif
|
|
710
|
+
*/
|
|
711
|
+
format?: string;
|
|
712
|
+
/**
|
|
713
|
+
* @remarks
|
|
714
|
+
* The maximum number of records to read per batch. Valid values: 1 to 1000. Default value: 1000. In manual mode, exceeding the limit causes a failure. In follow mode, bounded pagination is used to continue consumption.
|
|
715
|
+
*
|
|
716
|
+
* @example
|
|
717
|
+
* 1000
|
|
718
|
+
*/
|
|
719
|
+
maxRecords?: number;
|
|
720
|
+
/**
|
|
721
|
+
* @remarks
|
|
722
|
+
* The start time for data backfill in ISO 8601 UTC format. If not specified, the current time is used.
|
|
19
723
|
*
|
|
20
724
|
* Use the UTC time format: yyyy-MM-ddTHH:mm:ssZ
|
|
21
725
|
*
|
|
@@ -23,21 +727,160 @@ export class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
23
727
|
* 2026-01-01T00:00:00Z
|
|
24
728
|
*/
|
|
25
729
|
startTime?: string;
|
|
730
|
+
/**
|
|
731
|
+
* @remarks
|
|
732
|
+
* The trajectory datasource config. This parameter is required when source.type is trajectory.
|
|
733
|
+
*/
|
|
734
|
+
trajectory?: CreateContextStoreRequestConfigSourceTrajectory;
|
|
735
|
+
/**
|
|
736
|
+
* @remarks
|
|
737
|
+
* The data source type for the memory type. Valid values: trajectory and dataset. If not specified, the value defaults to manual, which means data is written only through AddContexts. This parameter cannot be modified after creation.
|
|
738
|
+
*
|
|
739
|
+
* @example
|
|
740
|
+
* trajectory
|
|
741
|
+
*/
|
|
742
|
+
type?: string;
|
|
743
|
+
/**
|
|
744
|
+
* @remarks
|
|
745
|
+
* The continuous consumption configuration for the native experience dataset. The default mode is manual. The follow mode only allows binding.selection.mode=all and consumes data based on the append sequence. This parameter cannot be modified after creation.
|
|
746
|
+
*/
|
|
747
|
+
versionPolicy?: CreateContextStoreRequestConfigSourceVersionPolicy;
|
|
26
748
|
static names(): { [key: string]: string } {
|
|
27
749
|
return {
|
|
28
750
|
agentSpace: 'agentSpace',
|
|
751
|
+
binding: 'binding',
|
|
752
|
+
dataset: 'dataset',
|
|
753
|
+
datasetName: 'datasetName',
|
|
754
|
+
format: 'format',
|
|
755
|
+
maxRecords: 'maxRecords',
|
|
29
756
|
startTime: 'startTime',
|
|
757
|
+
trajectory: 'trajectory',
|
|
758
|
+
type: 'type',
|
|
759
|
+
versionPolicy: 'versionPolicy',
|
|
30
760
|
};
|
|
31
761
|
}
|
|
32
762
|
|
|
33
763
|
static types(): { [key: string]: any } {
|
|
34
764
|
return {
|
|
35
765
|
agentSpace: 'string',
|
|
766
|
+
binding: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
767
|
+
dataset: CreateContextStoreRequestConfigSourceDataset,
|
|
768
|
+
datasetName: 'string',
|
|
769
|
+
format: 'string',
|
|
770
|
+
maxRecords: 'number',
|
|
36
771
|
startTime: 'string',
|
|
772
|
+
trajectory: CreateContextStoreRequestConfigSourceTrajectory,
|
|
773
|
+
type: 'string',
|
|
774
|
+
versionPolicy: CreateContextStoreRequestConfigSourceVersionPolicy,
|
|
775
|
+
};
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
validate() {
|
|
779
|
+
if(this.binding) {
|
|
780
|
+
$dara.Model.validateMap(this.binding);
|
|
781
|
+
}
|
|
782
|
+
if(this.dataset && typeof (this.dataset as any).validate === 'function') {
|
|
783
|
+
(this.dataset as any).validate();
|
|
784
|
+
}
|
|
785
|
+
if(this.trajectory && typeof (this.trajectory as any).validate === 'function') {
|
|
786
|
+
(this.trajectory as any).validate();
|
|
787
|
+
}
|
|
788
|
+
if(this.versionPolicy && typeof (this.versionPolicy as any).validate === 'function') {
|
|
789
|
+
(this.versionPolicy as any).validate();
|
|
790
|
+
}
|
|
791
|
+
super.validate();
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
constructor(map?: { [key: string]: any }) {
|
|
795
|
+
super(map);
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
export class CreateContextStoreRequestConfigStoragePolicy extends $dara.Model {
|
|
800
|
+
/**
|
|
801
|
+
* @remarks
|
|
802
|
+
* The allowed storage actions. Default value: all actions, including ADD, UPDATE, MERGE, and DELETE.
|
|
803
|
+
*
|
|
804
|
+
* @example
|
|
805
|
+
* ["ADD","UPDATE","MERGE","DELETE"]
|
|
806
|
+
*/
|
|
807
|
+
allowedActions?: string[];
|
|
808
|
+
/**
|
|
809
|
+
* @remarks
|
|
810
|
+
* Specifies whether to enable deduplication in event mode. Default value: true.
|
|
811
|
+
*
|
|
812
|
+
* @example
|
|
813
|
+
* true
|
|
814
|
+
*/
|
|
815
|
+
dedupe?: boolean;
|
|
816
|
+
/**
|
|
817
|
+
* @remarks
|
|
818
|
+
* Specifies whether to enable human edit protection. Default value: true. When enabled, automatic extraction does not overwrite manually modified memories.
|
|
819
|
+
*
|
|
820
|
+
* @example
|
|
821
|
+
* true
|
|
822
|
+
*/
|
|
823
|
+
humanEditProtection?: boolean;
|
|
824
|
+
/**
|
|
825
|
+
* @remarks
|
|
826
|
+
* The merge key for upsert operations. Valid values: factKey, semantic, and both. Default value: semantic.
|
|
827
|
+
*
|
|
828
|
+
* @example
|
|
829
|
+
* semantic
|
|
830
|
+
*/
|
|
831
|
+
mergeKey?: string;
|
|
832
|
+
/**
|
|
833
|
+
* @remarks
|
|
834
|
+
* The storage mode. Valid values: event for event appending, and upsert for merged updates. Default value: upsert.
|
|
835
|
+
*
|
|
836
|
+
* @example
|
|
837
|
+
* upsert
|
|
838
|
+
*/
|
|
839
|
+
mode?: string;
|
|
840
|
+
/**
|
|
841
|
+
* @remarks
|
|
842
|
+
* The similarity threshold for semantic merging. Valid values: 0 to 1. Default value: 0.4.
|
|
843
|
+
*
|
|
844
|
+
* @example
|
|
845
|
+
* 0.4
|
|
846
|
+
*/
|
|
847
|
+
similarityThreshold?: number;
|
|
848
|
+
/**
|
|
849
|
+
* @remarks
|
|
850
|
+
* The number of days before memories expire. A value of 0 indicates that memories do not expire.
|
|
851
|
+
*
|
|
852
|
+
* @example
|
|
853
|
+
* 0
|
|
854
|
+
*/
|
|
855
|
+
ttlDays?: number;
|
|
856
|
+
static names(): { [key: string]: string } {
|
|
857
|
+
return {
|
|
858
|
+
allowedActions: 'allowedActions',
|
|
859
|
+
dedupe: 'dedupe',
|
|
860
|
+
humanEditProtection: 'humanEditProtection',
|
|
861
|
+
mergeKey: 'mergeKey',
|
|
862
|
+
mode: 'mode',
|
|
863
|
+
similarityThreshold: 'similarityThreshold',
|
|
864
|
+
ttlDays: 'ttlDays',
|
|
865
|
+
};
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
static types(): { [key: string]: any } {
|
|
869
|
+
return {
|
|
870
|
+
allowedActions: { 'type': 'array', 'itemType': 'string' },
|
|
871
|
+
dedupe: 'boolean',
|
|
872
|
+
humanEditProtection: 'boolean',
|
|
873
|
+
mergeKey: 'string',
|
|
874
|
+
mode: 'string',
|
|
875
|
+
similarityThreshold: 'number',
|
|
876
|
+
ttlDays: 'number',
|
|
37
877
|
};
|
|
38
878
|
}
|
|
39
879
|
|
|
40
880
|
validate() {
|
|
881
|
+
if(Array.isArray(this.allowedActions)) {
|
|
882
|
+
$dara.Model.validateArray(this.allowedActions);
|
|
883
|
+
}
|
|
41
884
|
super.validate();
|
|
42
885
|
}
|
|
43
886
|
|
|
@@ -47,6 +890,16 @@ export class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
47
890
|
}
|
|
48
891
|
|
|
49
892
|
export class CreateContextStoreRequestConfig extends $dara.Model {
|
|
893
|
+
/**
|
|
894
|
+
* @remarks
|
|
895
|
+
* The audit configuration.
|
|
896
|
+
*/
|
|
897
|
+
audit?: CreateContextStoreRequestConfigAudit;
|
|
898
|
+
/**
|
|
899
|
+
* @remarks
|
|
900
|
+
* The extraction policy for the memory type.
|
|
901
|
+
*/
|
|
902
|
+
extractionPolicy?: CreateContextStoreRequestConfigExtractionPolicy;
|
|
50
903
|
/**
|
|
51
904
|
* @remarks
|
|
52
905
|
* The metadata field mapping. The key is the business field and the value is the storage field.
|
|
@@ -57,7 +910,7 @@ export class CreateContextStoreRequestConfig extends $dara.Model {
|
|
|
57
910
|
metadataField?: { [key: string]: string };
|
|
58
911
|
/**
|
|
59
912
|
* @remarks
|
|
60
|
-
*
|
|
913
|
+
* Specifies the experience mining interval, which controls how often experience mining is executed. Valid values: 1h, 6h, 12h, and 1d. Default value: 1d. This parameter cannot be modified after creation.
|
|
61
914
|
*
|
|
62
915
|
* @example
|
|
63
916
|
* 1d
|
|
@@ -65,9 +918,12 @@ export class CreateContextStoreRequestConfig extends $dara.Model {
|
|
|
65
918
|
miningInterval?: string;
|
|
66
919
|
/**
|
|
67
920
|
* @remarks
|
|
68
|
-
* The
|
|
69
|
-
|
|
70
|
-
|
|
921
|
+
* The scope constraint policy.
|
|
922
|
+
*/
|
|
923
|
+
scopePolicy?: CreateContextStoreRequestConfigScopePolicy;
|
|
924
|
+
/**
|
|
925
|
+
* @remarks
|
|
926
|
+
* The list of service names. This parameter is required and cannot be empty. It works with source.agentSpace to locate the trace data source. The trajectory extraction service uses agentSpace to find the bound CMS workspace and project or logstore, and then filters by serviceName. This parameter cannot be modified after creation.
|
|
71
927
|
*
|
|
72
928
|
* @example
|
|
73
929
|
* ["order-service","payment-service"]
|
|
@@ -75,37 +931,62 @@ export class CreateContextStoreRequestConfig extends $dara.Model {
|
|
|
75
931
|
serviceNames?: string[];
|
|
76
932
|
/**
|
|
77
933
|
* @remarks
|
|
78
|
-
* The datasource config, which serves only as the root
|
|
934
|
+
* The datasource config, which serves only as the root identity for the data source. This is an optional block.
|
|
79
935
|
*/
|
|
80
936
|
source?: CreateContextStoreRequestConfigSource;
|
|
937
|
+
/**
|
|
938
|
+
* @remarks
|
|
939
|
+
* The storage policy for the memory type.
|
|
940
|
+
*/
|
|
941
|
+
storagePolicy?: CreateContextStoreRequestConfigStoragePolicy;
|
|
81
942
|
static names(): { [key: string]: string } {
|
|
82
943
|
return {
|
|
944
|
+
audit: 'audit',
|
|
945
|
+
extractionPolicy: 'extractionPolicy',
|
|
83
946
|
metadataField: 'metadataField',
|
|
84
947
|
miningInterval: 'miningInterval',
|
|
948
|
+
scopePolicy: 'scopePolicy',
|
|
85
949
|
serviceNames: 'serviceNames',
|
|
86
950
|
source: 'source',
|
|
951
|
+
storagePolicy: 'storagePolicy',
|
|
87
952
|
};
|
|
88
953
|
}
|
|
89
954
|
|
|
90
955
|
static types(): { [key: string]: any } {
|
|
91
956
|
return {
|
|
957
|
+
audit: CreateContextStoreRequestConfigAudit,
|
|
958
|
+
extractionPolicy: CreateContextStoreRequestConfigExtractionPolicy,
|
|
92
959
|
metadataField: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
93
960
|
miningInterval: 'string',
|
|
961
|
+
scopePolicy: CreateContextStoreRequestConfigScopePolicy,
|
|
94
962
|
serviceNames: { 'type': 'array', 'itemType': 'string' },
|
|
95
963
|
source: CreateContextStoreRequestConfigSource,
|
|
964
|
+
storagePolicy: CreateContextStoreRequestConfigStoragePolicy,
|
|
96
965
|
};
|
|
97
966
|
}
|
|
98
967
|
|
|
99
968
|
validate() {
|
|
969
|
+
if(this.audit && typeof (this.audit as any).validate === 'function') {
|
|
970
|
+
(this.audit as any).validate();
|
|
971
|
+
}
|
|
972
|
+
if(this.extractionPolicy && typeof (this.extractionPolicy as any).validate === 'function') {
|
|
973
|
+
(this.extractionPolicy as any).validate();
|
|
974
|
+
}
|
|
100
975
|
if(this.metadataField) {
|
|
101
976
|
$dara.Model.validateMap(this.metadataField);
|
|
102
977
|
}
|
|
978
|
+
if(this.scopePolicy && typeof (this.scopePolicy as any).validate === 'function') {
|
|
979
|
+
(this.scopePolicy as any).validate();
|
|
980
|
+
}
|
|
103
981
|
if(Array.isArray(this.serviceNames)) {
|
|
104
982
|
$dara.Model.validateArray(this.serviceNames);
|
|
105
983
|
}
|
|
106
984
|
if(this.source && typeof (this.source as any).validate === 'function') {
|
|
107
985
|
(this.source as any).validate();
|
|
108
986
|
}
|
|
987
|
+
if(this.storagePolicy && typeof (this.storagePolicy as any).validate === 'function') {
|
|
988
|
+
(this.storagePolicy as any).validate();
|
|
989
|
+
}
|
|
109
990
|
super.validate();
|
|
110
991
|
}
|
|
111
992
|
|
|
@@ -117,12 +998,12 @@ export class CreateContextStoreRequestConfig extends $dara.Model {
|
|
|
117
998
|
export class CreateContextStoreRequest extends $dara.Model {
|
|
118
999
|
/**
|
|
119
1000
|
* @remarks
|
|
120
|
-
* The context
|
|
1001
|
+
* The context library configuration, including data sources and metadata field mappings.
|
|
121
1002
|
*/
|
|
122
1003
|
config?: CreateContextStoreRequestConfig;
|
|
123
1004
|
/**
|
|
124
1005
|
* @remarks
|
|
125
|
-
* The context store name
|
|
1006
|
+
* The name of the context store. The name must be globally unique within AgentSpace and 2 to 64 characters in length.
|
|
126
1007
|
*
|
|
127
1008
|
* This parameter is required.
|
|
128
1009
|
*
|
|
@@ -132,7 +1013,7 @@ export class CreateContextStoreRequest extends $dara.Model {
|
|
|
132
1013
|
contextStoreName?: string;
|
|
133
1014
|
/**
|
|
134
1015
|
* @remarks
|
|
135
|
-
* The context store
|
|
1016
|
+
* The type of the context store. Valid values include experience and memory.
|
|
136
1017
|
*
|
|
137
1018
|
* This parameter is required.
|
|
138
1019
|
*
|
|
@@ -142,15 +1023,15 @@ export class CreateContextStoreRequest extends $dara.Model {
|
|
|
142
1023
|
contextType?: string;
|
|
143
1024
|
/**
|
|
144
1025
|
* @remarks
|
|
145
|
-
* The description of the context store, which helps users understand its purpose.
|
|
1026
|
+
* The description of the context store, which helps business users understand its purpose.
|
|
146
1027
|
*
|
|
147
1028
|
* @example
|
|
148
|
-
*
|
|
1029
|
+
* My context store
|
|
149
1030
|
*/
|
|
150
1031
|
description?: string;
|
|
151
1032
|
/**
|
|
152
1033
|
* @remarks
|
|
153
|
-
* The idempotency token, which is a unique string generated by the client to ensure the
|
|
1034
|
+
* The idempotency token, which is a unique string generated by the client to ensure the idempotency of the creation operation.
|
|
154
1035
|
*
|
|
155
1036
|
* @example
|
|
156
1037
|
* a1b2c3d4-1234-5678-90ab-cdef12345678
|