@cozeloop/prompt-components 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/dist/es/idls/fornax_ml_flow/index.js +2322 -0
  2. package/dist/es/idls/fornax_ml_flow/namespaces/ai_annotate.js +41 -0
  3. package/dist/es/idls/fornax_ml_flow/namespaces/aidpcallback.js +108 -0
  4. package/dist/es/idls/fornax_ml_flow/namespaces/annotation_job.js +52 -0
  5. package/dist/es/idls/fornax_ml_flow/namespaces/base.js +0 -0
  6. package/dist/es/idls/fornax_ml_flow/namespaces/batch_infer.js +72 -0
  7. package/dist/es/idls/fornax_ml_flow/namespaces/dataprocess.js +10 -0
  8. package/dist/es/idls/fornax_ml_flow/namespaces/dataset.js +36 -0
  9. package/dist/es/idls/fornax_ml_flow/namespaces/datasetv2.js +139 -0
  10. package/dist/es/idls/fornax_ml_flow/namespaces/datasetv2job.js +40 -0
  11. package/dist/es/idls/fornax_ml_flow/namespaces/datasetv2lineage.js +25 -0
  12. package/dist/es/idls/fornax_ml_flow/namespaces/datasetv2similarity.js +12 -0
  13. package/dist/es/idls/fornax_ml_flow/namespaces/filter.js +0 -0
  14. package/dist/es/idls/fornax_ml_flow/namespaces/flow_devops_evaluation_callback_common.js +36 -0
  15. package/dist/es/idls/fornax_ml_flow/namespaces/flow_devops_prompt_common.js +318 -0
  16. package/dist/es/idls/fornax_ml_flow/namespaces/fornax_domain_model.js +326 -0
  17. package/dist/es/idls/fornax_ml_flow/namespaces/ml_flow_domain_model.js +327 -0
  18. package/dist/es/idls/fornax_ml_flow/namespaces/openapi.js +0 -0
  19. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotateservice.js +0 -0
  20. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotationjobservice.js +0 -0
  21. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_batchinferservice.js +0 -0
  22. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_crowdsourcingannotationjobservice.js +0 -0
  23. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_dataprocessservice.js +0 -0
  24. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservice.js +0 -0
  25. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservicev2.js +0 -0
  26. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_modelservice.js +0 -0
  27. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_annotationjobservice.js +0 -0
  28. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_batchinferservice.js +0 -0
  29. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_datasetservicev2.js +0 -0
  30. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_tagservice.js +0 -0
  31. package/dist/es/idls/fornax_ml_flow/namespaces/tag.js +33 -0
  32. package/dist/es/idls/prompt_api/index.js +2009 -0
  33. package/dist/es/idls/prompt_api/namespaces/base.js +0 -0
  34. package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_callback.js +35 -0
  35. package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_commercial_openapi.js +0 -0
  36. package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_common.js +318 -0
  37. package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_debug.js +0 -0
  38. package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_manage.js +23 -0
  39. package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_mcp.js +0 -0
  40. package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_optimize.js +0 -0
  41. package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_paas.js +43 -0
  42. package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_platform.js +0 -0
  43. package/dist/es/idls/prompt_api/namespaces/mcp.js +9 -0
  44. package/dist/es/idls/prompt_api/namespaces/model.js +320 -0
  45. package/dist/es/idls/prompt_api/namespaces/permission.js +47 -0
  46. package/dist/es/idls/prompt_api/namespaces/release.js +25 -0
  47. package/dist/es/prompt-editor/index.js +1 -1
  48. package/dist/es/utils/model-config.js +3 -3
  49. package/dist/lib/idls/fornax_ml_flow/index.js +2414 -0
  50. package/dist/lib/idls/fornax_ml_flow/namespaces/ai_annotate.js +69 -0
  51. package/dist/lib/idls/fornax_ml_flow/namespaces/aidpcallback.js +140 -0
  52. package/dist/lib/idls/fornax_ml_flow/namespaces/annotation_job.js +82 -0
  53. package/dist/lib/idls/fornax_ml_flow/namespaces/base.js +16 -0
  54. package/dist/lib/idls/fornax_ml_flow/namespaces/batch_infer.js +105 -0
  55. package/dist/lib/idls/fornax_ml_flow/namespaces/dataprocess.js +34 -0
  56. package/dist/lib/idls/fornax_ml_flow/namespaces/dataset.js +63 -0
  57. package/dist/lib/idls/fornax_ml_flow/namespaces/datasetv2.js +177 -0
  58. package/dist/lib/idls/fornax_ml_flow/namespaces/datasetv2job.js +68 -0
  59. package/dist/lib/idls/fornax_ml_flow/namespaces/datasetv2lineage.js +50 -0
  60. package/dist/lib/idls/fornax_ml_flow/namespaces/datasetv2similarity.js +37 -0
  61. package/dist/lib/idls/fornax_ml_flow/namespaces/filter.js +16 -0
  62. package/dist/lib/idls/fornax_ml_flow/namespaces/flow_devops_evaluation_callback_common.js +62 -0
  63. package/dist/lib/idls/fornax_ml_flow/namespaces/flow_devops_prompt_common.js +378 -0
  64. package/dist/lib/idls/fornax_ml_flow/namespaces/fornax_domain_model.js +384 -0
  65. package/dist/lib/idls/fornax_ml_flow/namespaces/ml_flow_domain_model.js +385 -0
  66. package/dist/lib/idls/fornax_ml_flow/namespaces/openapi.js +16 -0
  67. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotateservice.js +16 -0
  68. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotationjobservice.js +16 -0
  69. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_batchinferservice.js +16 -0
  70. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_crowdsourcingannotationjobservice.js +16 -0
  71. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_dataprocessservice.js +16 -0
  72. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservice.js +16 -0
  73. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservicev2.js +16 -0
  74. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_modelservice.js +16 -0
  75. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_annotationjobservice.js +16 -0
  76. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_batchinferservice.js +16 -0
  77. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_datasetservicev2.js +16 -0
  78. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_tagservice.js +16 -0
  79. package/dist/lib/idls/fornax_ml_flow/namespaces/tag.js +60 -0
  80. package/dist/lib/idls/prompt_api/index.js +2071 -0
  81. package/dist/lib/idls/prompt_api/namespaces/base.js +16 -0
  82. package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_callback.js +62 -0
  83. package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_commercial_openapi.js +16 -0
  84. package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_common.js +378 -0
  85. package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_debug.js +16 -0
  86. package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_manage.js +49 -0
  87. package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_mcp.js +16 -0
  88. package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_optimize.js +16 -0
  89. package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_paas.js +72 -0
  90. package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_platform.js +16 -0
  91. package/dist/lib/idls/prompt_api/namespaces/mcp.js +33 -0
  92. package/dist/lib/idls/prompt_api/namespaces/model.js +377 -0
  93. package/dist/lib/idls/prompt_api/namespaces/permission.js +72 -0
  94. package/dist/lib/idls/prompt_api/namespaces/release.js +50 -0
  95. package/dist/lib/prompt-editor/index.js +1 -1
  96. package/dist/lib/utils/model-config.js +13 -3
  97. package/dist/types/idls/fornax_ml_flow/index.d.ts +779 -0
  98. package/dist/types/idls/fornax_ml_flow/namespaces/ai_annotate.d.ts +102 -0
  99. package/dist/types/idls/fornax_ml_flow/namespaces/aidpcallback.d.ts +227 -0
  100. package/dist/types/idls/fornax_ml_flow/namespaces/annotation_job.d.ts +402 -0
  101. package/dist/types/idls/fornax_ml_flow/namespaces/base.d.ts +18 -0
  102. package/dist/types/idls/fornax_ml_flow/namespaces/batch_infer.d.ts +331 -0
  103. package/dist/types/idls/fornax_ml_flow/namespaces/dataprocess.d.ts +16 -0
  104. package/dist/types/idls/fornax_ml_flow/namespaces/dataset.d.ts +88 -0
  105. package/dist/types/idls/fornax_ml_flow/namespaces/datasetv2.d.ts +462 -0
  106. package/dist/types/idls/fornax_ml_flow/namespaces/datasetv2job.d.ts +180 -0
  107. package/dist/types/idls/fornax_ml_flow/namespaces/datasetv2lineage.d.ts +69 -0
  108. package/dist/types/idls/fornax_ml_flow/namespaces/datasetv2similarity.d.ts +8 -0
  109. package/dist/types/idls/fornax_ml_flow/namespaces/filter.d.ts +39 -0
  110. package/dist/types/idls/fornax_ml_flow/namespaces/flow_devops_evaluation_callback_common.d.ts +88 -0
  111. package/dist/types/idls/fornax_ml_flow/namespaces/flow_devops_prompt_common.d.ts +370 -0
  112. package/dist/types/idls/fornax_ml_flow/namespaces/fornax_domain_model.d.ts +320 -0
  113. package/dist/types/idls/fornax_ml_flow/namespaces/ml_flow_domain_model.d.ts +510 -0
  114. package/dist/types/idls/fornax_ml_flow/namespaces/openapi.d.ts +6 -0
  115. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotateservice.d.ts +106 -0
  116. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotationjobservice.d.ts +256 -0
  117. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_batchinferservice.d.ts +73 -0
  118. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_crowdsourcingannotationjobservice.d.ts +94 -0
  119. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_dataprocessservice.d.ts +11 -0
  120. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservice.d.ts +24 -0
  121. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservicev2.d.ts +653 -0
  122. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_modelservice.d.ts +83 -0
  123. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_annotationjobservice.d.ts +81 -0
  124. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_batchinferservice.d.ts +24 -0
  125. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_datasetservicev2.d.ts +260 -0
  126. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_tagservice.d.ts +111 -0
  127. package/dist/types/idls/fornax_ml_flow/namespaces/tag.d.ts +109 -0
  128. package/dist/types/idls/prompt_api/index.d.ts +667 -0
  129. package/dist/types/idls/prompt_api/namespaces/base.d.ts +18 -0
  130. package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_callback.d.ts +102 -0
  131. package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_commercial_openapi.d.ts +81 -0
  132. package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_common.d.ts +1270 -0
  133. package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_debug.d.ts +197 -0
  134. package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_manage.d.ts +769 -0
  135. package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_mcp.d.ts +301 -0
  136. package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_optimize.d.ts +155 -0
  137. package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_paas.d.ts +198 -0
  138. package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_platform.d.ts +230 -0
  139. package/dist/types/idls/prompt_api/namespaces/mcp.d.ts +95 -0
  140. package/dist/types/idls/prompt_api/namespaces/model.d.ts +315 -0
  141. package/dist/types/idls/prompt_api/namespaces/permission.d.ts +52 -0
  142. package/dist/types/idls/prompt_api/namespaces/release.d.ts +62 -0
  143. package/dist/types/model-config-editor/basic-type.d.ts +2 -2
  144. package/dist/types/model-config-editor/model-config-form.d.ts +1 -1
  145. package/dist/types/model-config-editor/popover-type.d.ts +3 -3
  146. package/dist/types/model-select/index.d.ts +1 -1
  147. package/dist/types/model-select/model-option/index.d.ts +1 -1
  148. package/dist/types/prompt-editor/index.d.ts +1 -1
  149. package/dist/types/utils/model-config.d.ts +4 -4
  150. package/package.json +5 -3
@@ -0,0 +1,402 @@
1
+ import * as filter from './filter';
2
+ import * as flow_devops_prompt_common from './flow_devops_prompt_common';
3
+ import * as batch_infer from './batch_infer';
4
+ export type Int64 = string | number;
5
+ export declare enum AIAnnotatorCategory {
6
+ /** 在线 */
7
+ Online = 1,
8
+ /** 离线 */
9
+ Offline = 2,
10
+ }
11
+ export declare enum AnnotationType {
12
+ /** 大模型打标 */
13
+ AI = 1,
14
+ /** 规则打标 */
15
+ Rule = 2,
16
+ /** 手动打标 */
17
+ Manual = 3,
18
+ }
19
+ export declare enum CrowdsourcingAnnotateJobStatus {
20
+ Undefined = 0,
21
+ Sending = 1,
22
+ In_Progress = 2,
23
+ Abnormal = 3,
24
+ Completed = 4,
25
+ Terminated = 5,
26
+ }
27
+ export declare enum CrowdsourcingAnnotationPlatform {
28
+ Undefined = 0,
29
+ AIDP = 1,
30
+ AIDP_Lite = 2,
31
+ }
32
+ export declare enum DataSelectScope {
33
+ Undefined = 0,
34
+ All = 1,
35
+ Filtered = 2,
36
+ Manually_Selected = 3,
37
+ }
38
+ export declare enum RuleAnnotatorCategory {
39
+ /** python */
40
+ Python = 1,
41
+ }
42
+ export declare enum ThinkingOutputBehavior {
43
+ UNSPECIFIED = 0,
44
+ WithoutThinking = 1,
45
+ ThinkingToSpecifiedColumn = 2,
46
+ }
47
+ export interface AIAnnotator {
48
+ /** 该字段和内层的PromptCategory含义不同,代表是否关联已有评估器,当前没有用到该字段 */
49
+ category?: AIAnnotatorCategory;
50
+ onlineAIAnnotator?: OnlineAIAnnotator;
51
+ offlineAIAnnotator?: OfflineAIAnnotator;
52
+ }
53
+ export interface AIDPConfig {
54
+ /** AIDP 用户 ID */
55
+ userID: string;
56
+ /** AIDP 任务 ID */
57
+ taskID: string;
58
+ /** 任务名称 */
59
+ taskName: string;
60
+ /** 任务详情链接,返回字段 */
61
+ taskURL?: string;
62
+ answerSchema?: string;
63
+ }
64
+ export interface AIDPField {
65
+ key?: string;
66
+ name?: string;
67
+ }
68
+ export interface AIDPFlowNode {
69
+ nodeID?: string;
70
+ name?: string;
71
+ }
72
+ export interface AIDPTaskFlowConfig {
73
+ nodes?: Array<AIDPFlowNode>;
74
+ requiredFields?: Array<AIDPField>;
75
+ }
76
+ export interface AIDPTaskSummary {
77
+ /** 任务ID */
78
+ taskID?: string;
79
+ /** 任务名称 */
80
+ title?: string;
81
+ /** 项目名称 */
82
+ projectName?: string;
83
+ /** 回调配置 */
84
+ callbackOpts?: CallbackOpts;
85
+ /** 答案模板ID */
86
+ templateID?: string;
87
+ /** 任务链接 */
88
+ taskURL?: string;
89
+ }
90
+ export interface AnnotateStatusDetail {
91
+ /** 总数据量 */
92
+ inputSize?: string;
93
+ /** 已送标数据量 */
94
+ sent?: string;
95
+ /** 已取标数据量 */
96
+ received?: string;
97
+ }
98
+ export interface AnnotationConfig {
99
+ /** 标注任务类型 */
100
+ annotationType?: AnnotationType;
101
+ /** 大模型打标器配置 */
102
+ aiAnnotator?: AIAnnotator;
103
+ /** 规则打标器配置 */
104
+ ruleAnnotator?: RuleAnnotator;
105
+ }
106
+ export interface AnnotationJob {
107
+ /** 主键ID */
108
+ id?: string;
109
+ appId?: string;
110
+ spaceId?: string;
111
+ /** JobID */
112
+ annotationJobId?: string;
113
+ jobDomain?: string;
114
+ targetID?: string;
115
+ /** 任务的版本,非数据集版本 */
116
+ version?: string;
117
+ /** 状态:active/inactive */
118
+ status?: string;
119
+ name?: string;
120
+ annotationConfig?: AnnotationConfig;
121
+ targetResourceName?: string;
122
+ extra?: string;
123
+ /** 通用信息 */
124
+ createdAt?: string;
125
+ createdBy?: string;
126
+ updatedAt?: string;
127
+ updatedBy?: string;
128
+ }
129
+ export interface AnnotationJobRunInstance {
130
+ /** 运行后产生的Job实例ID */
131
+ annotationJobRunID?: string;
132
+ /** 总条数 */
133
+ total?: number;
134
+ /** 成功条数 */
135
+ successCnt?: number;
136
+ /** 失败条数 */
137
+ failedCnt?: number;
138
+ /** 任务状态,running/success/failed/canceled/partial_success */
139
+ status?: string;
140
+ /** 仅在 GetAnnotationJobProcess 接口返回,用于轮询查询输出列关联的打标任务 */
141
+ outputFieldKeys?: Array<string>;
142
+ /** JobID非ID */
143
+ jobID?: string;
144
+ job?: AnnotationJob;
145
+ createdBy?: string;
146
+ createdAt?: string;
147
+ endAt?: string;
148
+ runLog?: AnnotationJobRunLog;
149
+ }
150
+ export interface AnnotationJobRunLog {
151
+ /** 错误日志 */
152
+ errorMsg?: string;
153
+ /** 离线任务的跳转链接 */
154
+ offlineJobProviderUrl?: string;
155
+ }
156
+ export interface Annotator {
157
+ /** 类型: 手工manual、关联associated */
158
+ category?: string;
159
+ /** 手工配置 */
160
+ manualAnnotator?: ManualAnnotator;
161
+ }
162
+ export interface CallbackOpts {
163
+ CallbackType?: string;
164
+ }
165
+ export interface CrowdsourcingAnnotateInputConfig {
166
+ /** 输入数据集ID */
167
+ inputDatasetID: string;
168
+ /** 输入数据集名 */
169
+ inputDatasetName: string;
170
+ /** 输入数据集版本 */
171
+ inputDatasetVersionNum: string;
172
+ /** 输入数据集Veriosn主键 */
173
+ inputDatasetVersionID: string;
174
+ /** 三段式版本号返回字段 */
175
+ inputDatasetVersion?: string;
176
+ /** 需要标注数据的itemID */
177
+ itemIDs?: Array<Int64>;
178
+ /** 数据筛选条件,待定看标签的具体实现 */
179
+ filter?: filter.Filter;
180
+ /** 返回字段 */
181
+ fieldMeta?: filter.FieldMetaInfoData;
182
+ /** 返回字段 */
183
+ total?: number;
184
+ /** 发送字段映射配置 */
185
+ inputMappings: Array<InputMapping>;
186
+ /** 数据范围 */
187
+ dataSelectScope?: DataSelectScope;
188
+ }
189
+ export interface CrowdsourcingAnnotateJob {
190
+ /** 主键 */
191
+ id?: string;
192
+ name?: string;
193
+ description?: string;
194
+ platform?: CrowdsourcingAnnotationPlatform;
195
+ /** AIDP 配置 */
196
+ aidpConfig?: AIDPConfig;
197
+ /** 送标配置 */
198
+ inputConfig?: CrowdsourcingAnnotateInputConfig;
199
+ /** 取标配置 */
200
+ outputConfig?: CrowdsourcingAnnotateOutputConfig;
201
+ /** 数据详情存储的数据集ID */
202
+ InternalDatasetID?: string;
203
+ /** 任务状态 */
204
+ status?: CrowdsourcingAnnotateJobStatus;
205
+ /** 失败的原因 */
206
+ terminateReason?: string;
207
+ /** 任务进展 */
208
+ statusDetail?: AnnotateStatusDetail;
209
+ /** 创建时间 */
210
+ createdAt?: string;
211
+ /** 更新时间/结束时间 */
212
+ updatedAt?: string;
213
+ /** 创建人 */
214
+ createdBy?: string;
215
+ }
216
+ export interface CrowdsourcingAnnotateOutputConfig {
217
+ /** 是否自动取标 */
218
+ isAutoFetchRes: boolean;
219
+ /** 是否自动输出到新数据集 */
220
+ isAutoExportToNewDataset: boolean;
221
+ /** 输出数据集名称 */
222
+ outputDatasetName?: string;
223
+ /** 输出数据集ID 返回字段 */
224
+ outputDatasetID?: string;
225
+ /** 是否拆解标注结果 */
226
+ isParseAnnotateRes: boolean;
227
+ /** 输出映射 */
228
+ outputMappings?: Array<OutputMapping>;
229
+ }
230
+ export interface InputMapping {
231
+ /** 输入类型: 固定值fixed、关联字段use_column、之前输入former_model_input、之前输出former_model_output */
232
+ sourceType?: string;
233
+ /** 输入值 */
234
+ sourceValue?: string;
235
+ /** 输出类型: prompt变量名prompt_var_name */
236
+ targetType?: string;
237
+ /** 输出值 */
238
+ targetValue?: string;
239
+ /** 如果是列这个字段可以存储name */
240
+ sourceName?: string;
241
+ }
242
+ export interface ManualAnnotator {
243
+ /** 模型配置 */
244
+ model?: flow_devops_prompt_common.ModelConfig;
245
+ /** prompt类型:手工manual、关联associated */
246
+ promptCategory?: string;
247
+ /** 手工填入的数据内容 */
248
+ promptContent?: string;
249
+ /** 关联时 */
250
+ promptID?: string;
251
+ /** 关联时 */
252
+ promptVersion?: string;
253
+ userPromptColumnName?: string;
254
+ /** 输入映射 */
255
+ inputMappings?: Array<InputMapping>;
256
+ /** 输出映射 */
257
+ outputMappings?: Array<OutputMapping>;
258
+ /** thinking输出映射,当ThinkingOutputBehavior=ThinkingToSpecifiedColumn时使用 */
259
+ thinkingOutputMapping?: OutputMapping;
260
+ }
261
+ export interface OfflineAIAnnotator {
262
+ /** 批量推理配置
263
+ 模型来源 */
264
+ batchInferprovider?: batch_infer.Provider;
265
+ /** 模型配置 & 资源配置 */
266
+ batchInferProviderInfo?: batch_infer.ProviderInfo;
267
+ /** 模型参数 */
268
+ batchInferParam?: batch_infer.BatchInferParam;
269
+ /** 任务配置
270
+ prompt类型 manual/associated/none */
271
+ promptCategory?: string;
272
+ /** 手工填入的数据内容 */
273
+ promptContent?: string;
274
+ /** 关联时 */
275
+ promptID?: string;
276
+ /** 关联时 */
277
+ promptVersion?: string;
278
+ userPromptColumnName?: string;
279
+ /** 输入映射 */
280
+ inputMappings?: Array<InputMapping>;
281
+ /** 输出映射 */
282
+ outputMappings?: Array<OutputMapping>;
283
+ /** 仅为空值打标 */
284
+ onlyForEmpty?: boolean;
285
+ /** 仅为失败打标 */
286
+ onlyForFailed?: boolean;
287
+ /** 允许未配置的标签选项 */
288
+ allowUndefinedTagValues?: boolean;
289
+ }
290
+ export interface OnlineAIAnnotator {
291
+ /** 标注器配置 */
292
+ annotator?: Annotator;
293
+ /** 推理次数 */
294
+ inferRound?: number;
295
+ /** 批处理数据量 */
296
+ batchSize?: number;
297
+ /** 仅为空值打标 */
298
+ onlyForEmpty?: boolean;
299
+ /** 仅为失败打标 */
300
+ onlyForFailed?: boolean;
301
+ /** 允许未配置的标签选项 */
302
+ allowUndefinedTagValues?: boolean;
303
+ /** 自动更新 */
304
+ autoUpdate?: boolean;
305
+ /** 打标并发度 */
306
+ executeConcurrency?: number;
307
+ /** 输出模型thinking过程的策略 */
308
+ thinkingOutputBehavior?: ThinkingOutputBehavior;
309
+ }
310
+ export interface OutputMapping {
311
+ /** 输入类型: plain、json_path */
312
+ sourceType?: string;
313
+ /** 输入值 */
314
+ sourceValue?: string;
315
+ /** 输出类型: use_column、plain */
316
+ targetType?: string;
317
+ /** 输出值 */
318
+ targetValue?: string;
319
+ /** targetType是use_column时标识是否是新建列 */
320
+ isNewColumn?: boolean;
321
+ /** 输入值的标签/name */
322
+ sourceName?: string;
323
+ }
324
+ export interface PassKTask {
325
+ /** 推理模型配置 */
326
+ reasoner?: Annotator;
327
+ /** 推理次数 */
328
+ inferenceRound?: number;
329
+ /** 评估器配置 */
330
+ judge?: Annotator;
331
+ /** 正确阈值 */
332
+ positiveThreshold?: number;
333
+ }
334
+ export interface QualityScoreJob {
335
+ /** 唯一ID,创建时不传 */
336
+ id?: string;
337
+ /** appID,创建时不传 */
338
+ appID?: number;
339
+ /** 空间ID,创建时不传 */
340
+ spaceID?: string;
341
+ /** 数据集ID,创建时不传 */
342
+ datasetID?: string;
343
+ /** 版本号,创建时不传 */
344
+ version?: string;
345
+ /** job ID,创建时不传 */
346
+ jobID?: string;
347
+ /** 任务名字, 可不传 */
348
+ name?: string;
349
+ /** 任务状态: active、inactive */
350
+ status?: string;
351
+ /** 标注任务类型: passk */
352
+ category?: string;
353
+ /** passKTask 任务内容 */
354
+ passKTask?: PassKTask;
355
+ /** 是否自动计算新增数据 */
356
+ autoCalculateNewData?: boolean;
357
+ /** 通用信息 */
358
+ createdAt?: string;
359
+ createdBy?: string;
360
+ updatedAt?: string;
361
+ updatedBy?: string;
362
+ }
363
+ export interface QualityScoreJobInstance {
364
+ /** instance唯一id */
365
+ id?: string;
366
+ /** 任务ID */
367
+ jobID?: string;
368
+ /** 总条数 */
369
+ total?: number;
370
+ /** 成功条数 */
371
+ successCnt?: number;
372
+ /** 失败条数 */
373
+ failedCnt?: number;
374
+ /** 任务状态 */
375
+ status?: string;
376
+ }
377
+ export interface RuleAnnotator {
378
+ /** 规则类型 */
379
+ category?: RuleAnnotatorCategory;
380
+ /** 规则内容 */
381
+ content?: string;
382
+ /** 输入映射 */
383
+ inputMappings?: Array<InputMapping>;
384
+ /** 输出映射 */
385
+ outputMappings?: Array<OutputMapping>;
386
+ /** 允许未配置的标签选项 */
387
+ allowUndefinedTagValues?: boolean;
388
+ /** 仅为空值打标 */
389
+ onlyForEmpty?: boolean;
390
+ /** 仅为失败项打标 */
391
+ onlyForFailed?: boolean;
392
+ }
393
+ export interface SearchConfig {
394
+ /** 数据集ID */
395
+ datasetID?: string;
396
+ /** 搜索的任务名称 */
397
+ jobName?: string;
398
+ /** 搜索的任务ID */
399
+ jobID?: string;
400
+ /** 搜索的创建人 */
401
+ createdBy?: Array<string>;
402
+ }
@@ -0,0 +1,18 @@
1
+ export type Int64 = string | number;
2
+ export interface Base {
3
+ LogID?: string;
4
+ Caller?: string;
5
+ Addr?: string;
6
+ Client?: string;
7
+ TrafficEnv?: TrafficEnv;
8
+ Extra?: Record<string, string>;
9
+ }
10
+ export interface BaseResp {
11
+ StatusMessage?: string;
12
+ StatusCode?: number;
13
+ Extra?: Record<string, string>;
14
+ }
15
+ export interface TrafficEnv {
16
+ Open?: boolean;
17
+ Env?: string;
18
+ }