@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,1270 @@
1
+ import * as model from './model';
2
+ export type Int64 = string | number;
3
+ export declare enum AnnotateType {
4
+ /** GSB评估规则场景, 仅包含badcase */
5
+ BadCase = 1,
6
+ }
7
+ /** 主体类型 */
8
+ export declare enum AuthPrincipalType {
9
+ Undefined = 0,
10
+ /** 用户 */
11
+ User = 1,
12
+ /** 部门 */
13
+ Department = 2,
14
+ }
15
+ export declare enum ComboType {
16
+ ComboTypeUndefined = 0,
17
+ ComboTypeAnd = 1,
18
+ ComboTypeOr = 2,
19
+ }
20
+ export declare enum CompareType {
21
+ Undefined = 0,
22
+ /** SP 比较 */
23
+ SystemPromptCmp = 1,
24
+ /** 模型比较 */
25
+ ModelCmp = 2,
26
+ /** 自由比较 */
27
+ SelfCmp = 3,
28
+ }
29
+ export declare enum ConditionType {
30
+ ConditionTypeUndefined = 0,
31
+ ConditionTypeExpr = 1,
32
+ ConditionTypeCombo = 2,
33
+ }
34
+ export declare enum ContentType {
35
+ Text = 1,
36
+ Image = 2,
37
+ Binary = 3,
38
+ ImageVariable = 4,
39
+ }
40
+ export declare enum Env {
41
+ Undefined = 0,
42
+ /** boe */
43
+ BOE = 1,
44
+ /** onlien */
45
+ Online = 2,
46
+ }
47
+ export declare enum EvalStrategyStrategyEnum {
48
+ Undefined = 0,
49
+ /** 一期仅支持AIPaas GSB */
50
+ AIPassGSB = 1,
51
+ /** 二期迁移Fornax */
52
+ FornaxEval = 2,
53
+ }
54
+ export declare enum GrayReleaseFieldType {
55
+ Undefined = 0,
56
+ Uid = 1,
57
+ Did = 2,
58
+ CustomKey = 3,
59
+ }
60
+ export declare enum GrayReleaseStrategy {
61
+ /** 不开启灰度 */
62
+ None = 0,
63
+ /** 实例灰度 */
64
+ InstanceGrayRelease = 1,
65
+ }
66
+ export declare enum GSBResult {
67
+ Undefined = 0,
68
+ Good = 1,
69
+ Same = 2,
70
+ Bad = 3,
71
+ }
72
+ export declare enum MessageType {
73
+ System = 1,
74
+ User = 2,
75
+ Assistant = 3,
76
+ Tool = 4,
77
+ Placeholder = 20,
78
+ }
79
+ /** 模型系列,特别指不同模型接入商 */
80
+ export declare enum ModelClass {
81
+ Undefined = 0,
82
+ /** gpt */
83
+ GPT = 1,
84
+ /** 字节 */
85
+ SEED = 2,
86
+ /** google */
87
+ Gemini = 3,
88
+ /** 亚马逊 */
89
+ Claude = 4,
90
+ /** 文心一言 */
91
+ Ernie = 5,
92
+ /** 百川 */
93
+ Baichuan = 6,
94
+ /** 阿里 */
95
+ Qwen = 7,
96
+ /** 智谱 */
97
+ GML = 8,
98
+ /** 深度求索 */
99
+ DeepSeek = 9,
100
+ }
101
+ export declare enum OperatorType {
102
+ OperatorTypeUndefined = 0,
103
+ OperatorTypeEq = 1,
104
+ OperatorTypeIn = 2,
105
+ OperatorTypeNotIn = 3,
106
+ OperatorTypeNotEq = 4,
107
+ OperatorTypeGt = 5,
108
+ OperatorTypeGte = 6,
109
+ OperatorTypeLt = 7,
110
+ OperatorTypeLte = 8,
111
+ OperatorTypeIsNull = 9,
112
+ OperatorTypeIsNotNull = 10,
113
+ }
114
+ export declare enum OptimizeEngine {
115
+ Undefined = 0,
116
+ AIPaas_GradientDescent = 1,
117
+ }
118
+ export declare enum OptimizeExecutionStatus {
119
+ Undefined = 0,
120
+ Init = 1,
121
+ Running = 2,
122
+ Canceled = 3,
123
+ Fail = 4,
124
+ Completed = 5,
125
+ }
126
+ export declare enum OptimizeTargetType {
127
+ Prompt = 1,
128
+ }
129
+ export declare enum OrderField {
130
+ CreateTime = 1,
131
+ LastedPublishTime = 2,
132
+ }
133
+ /** Prompt 加密类型 */
134
+ export declare enum PromptEncryptOption {
135
+ Undefined = 0,
136
+ /** 加密且返回明文 */
137
+ EncryptWithPlainText = 1,
138
+ /** 加密且不返回明文 */
139
+ EncryptWithoutPlainText = 2,
140
+ }
141
+ /** 提示词类型 */
142
+ export declare enum PromptType {
143
+ Undefined = 0,
144
+ /** 补全模式 */
145
+ Completion = 1,
146
+ /** 聊天模式 */
147
+ Chat = 2,
148
+ /** 补全模式V2 */
149
+ Completion_V2 = 3,
150
+ /** Prompt片段 */
151
+ Segment = 4,
152
+ }
153
+ /** 发布状态 */
154
+ export declare enum PublishStatus {
155
+ Undefined = 0,
156
+ /** 未发布 */
157
+ UnPublish = 1,
158
+ /** 已发布 */
159
+ Published = 2,
160
+ }
161
+ export declare enum ReleaseStatus {
162
+ Undefined = 0,
163
+ /** 在线 */
164
+ Online = 1,
165
+ /** 下线 */
166
+ Offline = 2,
167
+ /** 灰度中(废弃) */
168
+ InGray = 3,
169
+ /** 小流量 */
170
+ Canary = 4,
171
+ /** 单机房 */
172
+ SingleDC = 5,
173
+ }
174
+ export declare enum ReleaseSubtaskStatus {
175
+ /** 未开始 */
176
+ PendingStart = 1,
177
+ /** 进行中 */
178
+ InProgress = 2,
179
+ /** 执行成功待确认 */
180
+ ExecuteSuccess = 3,
181
+ /** 待审批 */
182
+ PendingApproval = 4,
183
+ /** 审批通过 */
184
+ ApprovalPassed = 5,
185
+ /** 审批驳回 */
186
+ ApprovalRejected = 6,
187
+ /** 已完成 */
188
+ Finished = 7,
189
+ /** 失败 */
190
+ Failed = 8,
191
+ /** 已跳过 */
192
+ Skipped = 9,
193
+ /** 已回滚 */
194
+ Rollbacked = 10,
195
+ /** 已取消 */
196
+ Canceled = 11,
197
+ }
198
+ export declare enum ReleaseTaskStatus {
199
+ /** 未开始 */
200
+ PendingStart = 1,
201
+ /** 进行中 */
202
+ Inprogress = 2,
203
+ /** 待审批 */
204
+ PendingApproval = 3,
205
+ /** 审批通过 */
206
+ ApprovalPass = 4,
207
+ /** 审批驳回 */
208
+ ApprovalRejected = 5,
209
+ /** 灰度发布中 */
210
+ GrayReleasing = 6,
211
+ /** 发布完成 */
212
+ Finished = 7,
213
+ /** 已取消 */
214
+ Canceled = 8,
215
+ /** 已回滚 */
216
+ Rollbacked = 9,
217
+ }
218
+ export declare enum ReleaseType {
219
+ Undefined = 0,
220
+ /** 发布 */
221
+ Release = 1,
222
+ /** 回滚 */
223
+ RollBack = 2,
224
+ /** 下线 */
225
+ Offline = 3,
226
+ /** 灰度发布(废弃) */
227
+ GrayRelease = 4,
228
+ /** 灰度取消(废弃) */
229
+ GrayCancel = 5,
230
+ /** 小流量发布 */
231
+ CanaryRelease = 6,
232
+ /** 单机房发布 */
233
+ SingleDCRelease = 7,
234
+ }
235
+ export declare enum ReplyType {
236
+ /** 最终结果 */
237
+ ReplyTypeFinalAnswer = 0,
238
+ /** 工具调用 */
239
+ ReplyTypeToolCall = 1,
240
+ }
241
+ export declare enum ReportEventType {
242
+ Undefined = 0,
243
+ /** 调试官方 Prompt */
244
+ DebugOfficialPrompt = 1,
245
+ /** 采用官方 Prompt */
246
+ AdoptOfficialPrompt = 2,
247
+ }
248
+ /** 资源类型 */
249
+ export declare enum ResourceType {
250
+ Undefined = 0,
251
+ Space = 1,
252
+ Prompt = 2,
253
+ Application = 3,
254
+ Evaluation = 4,
255
+ Trace = 5,
256
+ Agent = 6,
257
+ }
258
+ /** 密级标签 */
259
+ export declare enum SecurityLevel {
260
+ Undefined = 0,
261
+ L1 = 1,
262
+ L2 = 2,
263
+ L3 = 3,
264
+ L4 = 4,
265
+ }
266
+ /** 空间角色类型 */
267
+ export declare enum SpaceRoleType {
268
+ Undefined = 0,
269
+ /** 负责人 */
270
+ Owner = 1,
271
+ /** 开发者 */
272
+ Developer = 2,
273
+ /** 测试人员 */
274
+ Tester = 3,
275
+ }
276
+ /** 空间类型 */
277
+ export declare enum SpaceType {
278
+ Undefined = 0,
279
+ Personal = 1,
280
+ Team = 2,
281
+ /** 官方空间 */
282
+ Official = 3,
283
+ }
284
+ export declare enum StreamState {
285
+ /** 非流式 */
286
+ StreamStateNone = 1,
287
+ /** 流式传输开始(首包) */
288
+ StreamStateBegin = 2,
289
+ /** 流式传输中 */
290
+ StreamStateStreaming = 3,
291
+ /** 流失传输结束(尾包) */
292
+ StreamStateEnd = 4,
293
+ }
294
+ export declare enum TenantType {
295
+ /** 字节 */
296
+ ByteDance = 0,
297
+ /** 懂车帝 */
298
+ Dcar = 1,
299
+ }
300
+ export declare enum ToolChoiceType {
301
+ Auto = 1,
302
+ None = 2,
303
+ Specific = 3,
304
+ }
305
+ export declare enum ToolType {
306
+ Function = 1,
307
+ /** for gemini native tool */
308
+ GoogleSearch = 2,
309
+ }
310
+ export declare enum TriggerOperation {
311
+ /** 开始 */
312
+ Start = 1,
313
+ /** 审批通过 */
314
+ ApprovalPass = 2,
315
+ /** 审批驳回 */
316
+ ApprovalReject = 3,
317
+ /** 完成 */
318
+ Finish = 4,
319
+ /** 重试 */
320
+ Retry = 5,
321
+ /** 跳过 */
322
+ Skip = 6,
323
+ /** 下一步(目前自动触发,不需要前端触发) */
324
+ Next = 7,
325
+ }
326
+ /** 变量类型 */
327
+ export declare enum VariableType {
328
+ Undefined = 0,
329
+ String = 1,
330
+ /** 废弃,使用Number 不分区整数和浮点数 */
331
+ Integer = 2,
332
+ Boolean = 3,
333
+ Number = 4,
334
+ Array = 5,
335
+ Object = 6,
336
+ Placeholder = 7,
337
+ Image = 8,
338
+ }
339
+ export interface AccessPointConfig {
340
+ static_headers?: Array<AccessPointConfigDef>;
341
+ dynamic_headers?: Array<AccessPointConfigDef>;
342
+ static_params?: Array<AccessPointConfigDef>;
343
+ dynamic_params?: Array<AccessPointConfigDef>;
344
+ }
345
+ export interface AccessPointConfigDef {
346
+ key?: string;
347
+ value?: string;
348
+ is_required?: boolean;
349
+ }
350
+ export interface AllowList {
351
+ /** 流量标识字段 */
352
+ field?: GrayReleaseField;
353
+ /** 名单取值 */
354
+ values?: Array<string>;
355
+ }
356
+ export interface AnnotatedDataset {
357
+ /** 标注数据集元信息 */
358
+ meta?: AnnotateMeta;
359
+ dataset_id?: Int64;
360
+ }
361
+ export interface AnnotateMeta {
362
+ /** 数据标注类型 */
363
+ type?: AnnotateType;
364
+ /** 必填字段 */
365
+ required_cols?: Array<string>;
366
+ }
367
+ export interface ApprovalInfo {
368
+ /** 审批人 */
369
+ approver?: string;
370
+ /** 审批是否通过 */
371
+ approval_pass?: boolean;
372
+ /** 审批备注 */
373
+ approval_comment?: string;
374
+ /** 审批时间 */
375
+ approval_time?: Int64;
376
+ }
377
+ /** 操作信息 */
378
+ export interface AuthAction {
379
+ /** 唯一标识 */
380
+ unique_key?: string;
381
+ /** 操作展示名称 */
382
+ name?: string;
383
+ /** 实体类型,世纪不绑定实体,仅记录操作对象 */
384
+ entity_type?: string;
385
+ }
386
+ /** 鉴权部门 */
387
+ export interface AuthDepartment {
388
+ /** 部门ID */
389
+ department_id?: string;
390
+ }
391
+ /** 鉴权资源,客体 */
392
+ export interface AuthEntity {
393
+ /** 实体唯一ID */
394
+ id?: string;
395
+ /** 实体类型 */
396
+ entity_type?: string;
397
+ }
398
+ /** 鉴权主体 */
399
+ export interface AuthPrincipal {
400
+ /** 主体类型 */
401
+ auth_principal_type?: AuthPrincipalType;
402
+ /** 鉴权用户 */
403
+ auth_user?: AuthUser;
404
+ /** 鉴权部门 */
405
+ auth_department?: AuthDepartment;
406
+ }
407
+ /** 角色信息 */
408
+ export interface AuthRole {
409
+ /** 唯一标识 */
410
+ unique_key?: string;
411
+ /** 角色展示名称 */
412
+ name?: string;
413
+ /** 关联的Action列表 */
414
+ actions?: Array<AuthAction>;
415
+ /** 实体类型 */
416
+ entity_type?: string;
417
+ }
418
+ /** 鉴权用户 */
419
+ export interface AuthUser {
420
+ /** sso_username,与openUserID传一个即可 */
421
+ sso_user_id?: string;
422
+ /** fornax userID */
423
+ open_user_id?: string;
424
+ /** 租户类型 */
425
+ tenant?: TenantType;
426
+ }
427
+ export interface BinaryContent {
428
+ mime_type?: string;
429
+ data?: Blob;
430
+ }
431
+ export interface BlockList {
432
+ /** 流量标识字段 */
433
+ field?: GrayReleaseField;
434
+ /** 名单取值 */
435
+ values?: Array<string>;
436
+ }
437
+ export interface ComboCondition {
438
+ combo_type?: ComboType;
439
+ conditions?: Array<Condition>;
440
+ }
441
+ /** 训练场比较配置 */
442
+ export interface CompareConfig {
443
+ compare_type?: CompareType;
444
+ /** JSON序列化存储比较内容 */
445
+ compare_info?: string;
446
+ }
447
+ export interface Condition {
448
+ /** 条件类型 */
449
+ condition_type?: ConditionType;
450
+ expr?: OperatorExpr;
451
+ combo_condition?: ComboCondition;
452
+ }
453
+ export interface ContentPart {
454
+ type?: ContentType;
455
+ /** 文本内容 */
456
+ text?: string;
457
+ /** 图片URL */
458
+ image?: Image;
459
+ /** 二进制内容 */
460
+ binary_content?: BinaryContent;
461
+ /** 配置 */
462
+ config?: ContentPartConfig;
463
+ }
464
+ export interface ContentPartConfig {
465
+ image_resolution?: string;
466
+ }
467
+ export interface DebugBrief {
468
+ /** 调试记录 ID */
469
+ debug_id?: Int64;
470
+ /** 调试 Prompt 缩略信息 */
471
+ prompt_brief?: string;
472
+ /** 响应结果,0表示成功 */
473
+ status_code?: number;
474
+ /** 请求发起时间(单步调试模式下对应第一步的开始时间) */
475
+ start_time_ms?: Int64;
476
+ /** 耗时 */
477
+ cost_ms?: Int64;
478
+ /** 响应最终完成时间(单步调试模式下对应最后一步的完成时间) */
479
+ end_time_ms?: Int64;
480
+ /** 输入 Token 数 */
481
+ input_token?: Int64;
482
+ /** 输出 Token 数 */
483
+ output_token?: Int64;
484
+ }
485
+ export interface DebugDetail {
486
+ /** 输入内容,预留 1-20
487
+ 调试记录 ID */
488
+ debug_id?: Int64;
489
+ /** System Prompt和模型配置 */
490
+ prompt?: Prompt;
491
+ /** 用户输入消息 */
492
+ message?: Message;
493
+ /** 历史消息 */
494
+ contexts?: Array<Message>;
495
+ /** 变量值列表 */
496
+ variables?: Array<Variable>;
497
+ /** 操作人 UserID */
498
+ operator?: string;
499
+ /** 输出内容,预留 21-40 */
500
+ log_id?: string;
501
+ status_code?: number;
502
+ status_message?: string;
503
+ /** 请求发起时间 */
504
+ start_time_ms?: Int64;
505
+ /** 响应最终完成时间 */
506
+ end_time_ms?: Int64;
507
+ /** 耗时 */
508
+ cost_ms?: Int64;
509
+ /** 回复信息全文 */
510
+ item?: ReplyItem;
511
+ /** 参数替换后的 Prompt */
512
+ real_prompt?: PromptText;
513
+ /** 工具调用 */
514
+ tool_calls?: Array<ToolCallCombine>;
515
+ }
516
+ export interface DebugMessage {
517
+ message?: Message;
518
+ debug_id?: string;
519
+ output_token?: Int64;
520
+ cost_ms?: Int64;
521
+ input_token?: Int64;
522
+ reasoning_content?: string;
523
+ }
524
+ export interface ErrInfo {
525
+ log_id?: string;
526
+ msg?: string;
527
+ }
528
+ export interface EvalCaseSource {
529
+ /** 评估用例ID */
530
+ eval_case_id?: Int64;
531
+ }
532
+ export interface EvalResult {
533
+ gsb_result?: GSBResult;
534
+ }
535
+ export interface EvalResultStat {
536
+ improve_cases_cnt?: number;
537
+ reduced_cases_cnt?: number;
538
+ constant_cases_cnt?: number;
539
+ }
540
+ export interface EvalStrategy {
541
+ /** 评估 */
542
+ strategy?: EvalStrategyStrategyEnum;
543
+ /** 关联的Forna评估用例,评估策略为FornaxEval是赋值 */
544
+ eval_case_source?: EvalCaseSource;
545
+ }
546
+ export interface Function {
547
+ name?: string;
548
+ description?: string;
549
+ parameters?: string;
550
+ }
551
+ export interface FunctionCall {
552
+ name?: string;
553
+ arguments?: string;
554
+ }
555
+ export interface GrayReleaseBucket {
556
+ /** 流量标识字段 */
557
+ field?: GrayReleaseField;
558
+ /** 灰度占比 */
559
+ in_gray?: number;
560
+ /** 灰度基数,如bucket_size=1000,in_gray=1,则1/1000的流量会命中灰度 */
561
+ bucket_size?: number;
562
+ }
563
+ export interface GrayReleaseConfig {
564
+ /** 白名单 */
565
+ allow_list?: AllowList;
566
+ /** 黑名单 */
567
+ block_list?: BlockList;
568
+ /** 灰度桶 */
569
+ bucket?: GrayReleaseBucket;
570
+ /** 过滤条件 */
571
+ condition?: Condition;
572
+ }
573
+ export interface GrayReleaseField {
574
+ /** 灰度字段类型 */
575
+ type?: GrayReleaseFieldType;
576
+ /** 灰度字段为customKey时,填写对应的key */
577
+ custom_key?: string;
578
+ }
579
+ export interface Image {
580
+ url?: string;
581
+ uri?: string;
582
+ }
583
+ export interface ImageVariable {
584
+ link?: Image;
585
+ binary?: BinaryContent;
586
+ }
587
+ export interface Label {
588
+ id?: Int64;
589
+ name?: string;
590
+ }
591
+ export interface LarkAction {
592
+ value?: string;
593
+ name?: string;
594
+ }
595
+ export interface LarkCallbackEvent {
596
+ type?: string;
597
+ operator?: LarkOperator;
598
+ token?: string;
599
+ action?: LarkAction;
600
+ }
601
+ export interface LarkCallbackHeader {
602
+ event_id?: string;
603
+ token?: string;
604
+ create_time?: string;
605
+ event_type?: string;
606
+ tenant_key?: string;
607
+ app_id?: string;
608
+ }
609
+ export interface LarkCard {
610
+ type?: string;
611
+ data?: LarkCardTemplateData;
612
+ }
613
+ export interface LarkCardTemplateData {
614
+ template_id?: string;
615
+ template_variable?: Record<string, string>;
616
+ template_version_name?: string;
617
+ }
618
+ export interface LarkOperator {
619
+ tenant_key?: string;
620
+ user_id?: string;
621
+ open_id?: string;
622
+ }
623
+ export interface LarkToast {
624
+ type?: string;
625
+ content?: string;
626
+ }
627
+ export interface MCPServerCombine {
628
+ mcp_server_id?: Int64;
629
+ name?: string;
630
+ tools?: Array<Tool>;
631
+ access_point_id?: Int64;
632
+ /** 环境,BOE/PPE/Online */
633
+ env?: string;
634
+ /** 泳道 */
635
+ lane?: string;
636
+ /** Server描述 */
637
+ description?: string;
638
+ /** 是否支持与prompt一起发布 */
639
+ is_publish_supported?: boolean;
640
+ /** MCP接入点配置 */
641
+ access_point_config?: AccessPointConfig;
642
+ }
643
+ /** Message */
644
+ export interface Message {
645
+ id?: Int64;
646
+ message_type?: MessageType;
647
+ content?: string;
648
+ tool_calls?: Array<ToolCallCombine>;
649
+ tool_call_id?: string;
650
+ /** 消息内容分片 */
651
+ parts?: Array<ContentPart>;
652
+ /** 消息元数据 */
653
+ metadata?: Record<string, string>;
654
+ /** 加密后的消息内容 */
655
+ encrypt_content?: string;
656
+ }
657
+ /** 模型信息 */
658
+ export interface Model {
659
+ /** 模型ID */
660
+ id?: Int64;
661
+ /** 模型名称 */
662
+ name?: string;
663
+ /** 模型系列 */
664
+ model_class?: ModelClass;
665
+ /** 模型限额 */
666
+ model_quota?: ModelQuota;
667
+ temperature?: ModelParameter;
668
+ top_k?: ModelParameter;
669
+ top_p?: ModelParameter;
670
+ function_call_enable?: boolean;
671
+ json_mode_enable?: boolean;
672
+ }
673
+ /** 模型配置数据 */
674
+ export interface ModelConfig {
675
+ /** 模型ID */
676
+ id?: Int64;
677
+ /** 模型名称 */
678
+ name?: string;
679
+ /** 模型系列 */
680
+ model_class?: ModelClass;
681
+ temperature?: number;
682
+ max_tokens?: number;
683
+ top_k?: number;
684
+ top_p?: number;
685
+ json_mode?: boolean;
686
+ /** deprecated */
687
+ function_call_mode?: boolean;
688
+ presence_penalty?: number;
689
+ frequency_penalty?: number;
690
+ /** 模型提供方 */
691
+ provider?: model.Provider;
692
+ /** 模型提供方的模型唯一标识(应对saas无法传modelID的场景) */
693
+ provider_model_id?: string;
694
+ /** thinking参数 */
695
+ thinking?: ThinkingConfig;
696
+ /** 模型额外参数,会反序列化到具体调用模型的request中,优先级低于上述显式声明的参数 */
697
+ extra?: string;
698
+ }
699
+ /** 模型参数 */
700
+ export interface ModelParameter {
701
+ /** 模型参数名称 */
702
+ name?: string;
703
+ /** 默认值 */
704
+ default_value?: string;
705
+ /** 当前值 */
706
+ value?: string;
707
+ /** 步长 */
708
+ step?: string;
709
+ /** 最小值 */
710
+ min?: string;
711
+ /** 最大值 */
712
+ max?: string;
713
+ }
714
+ /** 模型约束 */
715
+ export interface ModelQuota {
716
+ /** token限制 */
717
+ token_limit?: Int64;
718
+ }
719
+ export interface OperatorExpr {
720
+ operator?: OperatorType;
721
+ var?: string;
722
+ const_val?: string;
723
+ }
724
+ export interface OptimizeEngineSource {
725
+ /** 关联的任务ID */
726
+ task_id?: string;
727
+ optimize_engine?: OptimizeEngine;
728
+ }
729
+ export interface OptimizeExecution {
730
+ id?: Int64;
731
+ status?: OptimizeExecutionStatus;
732
+ /** 固化DataSet */
733
+ dataset?: AnnotatedDataset;
734
+ /** run Task时候的优化对象实体snapshot,包含版本信息 */
735
+ optimize_target?: OptimizeTarget;
736
+ /** 结果评估评估策略snapshot */
737
+ eval_startegy?: EvalStrategy;
738
+ /** 关联的优化任务资源 */
739
+ optimize_engine_source?: OptimizeEngineSource;
740
+ /** 任务整体耗时 */
741
+ cost_ms?: Int64;
742
+ /** 任务开始执行时间 */
743
+ start_time_ms?: Int64;
744
+ /** 任务执行完成时间 */
745
+ end_time_ms?: Int64;
746
+ creator_id?: string;
747
+ space_id?: Int64;
748
+ log_id?: string;
749
+ task_id?: Int64;
750
+ /** 创建时间 */
751
+ create_tsms?: Int64;
752
+ /** 更新时间 */
753
+ update_tsms?: Int64;
754
+ }
755
+ export interface OptimizeResult {
756
+ /** 优化结果
757
+ 在优化结果里的序列号 */
758
+ sequence_id?: string;
759
+ /** 关联的优化执行记录ID */
760
+ execution_id?: Int64;
761
+ /** 评估结果对象 */
762
+ optimize_result?: OptimizeTarget;
763
+ /** 评估结果
764
+ 模型正确预测的样本比例或准确率 */
765
+ accuracy?: number;
766
+ /** 模型正确预测的样本比例或准确率 */
767
+ eval_result_stat?: EvalResultStat;
768
+ /** 一期评估结果结构, 二期预计复用Fornax评测Dashboard */
769
+ row_eval_result_group?: Array<RowEvalResult>;
770
+ /** 关联评测任务资源 */
771
+ eval_case_source?: EvalCaseSource;
772
+ }
773
+ export interface OptimizeTarget {
774
+ /** 待优化对象类型 */
775
+ type?: OptimizeTargetType;
776
+ /** prompt类型对应的数据结构 */
777
+ prompt?: PromptOpTarget;
778
+ }
779
+ export interface OptimizeTask {
780
+ /** Task ID */
781
+ id?: Int64;
782
+ /** Task名称 */
783
+ display_name?: string;
784
+ /** Task描述 */
785
+ description?: string;
786
+ /** 优化对象 */
787
+ target?: OptimizeTarget;
788
+ /** 创建者ID */
789
+ creator?: string;
790
+ /** 创建时间 */
791
+ create_tsms?: Int64;
792
+ /** 更新时间 */
793
+ update_tsms?: Int64;
794
+ /** 是否列表可见 */
795
+ visible?: boolean;
796
+ /** 标注数据集 */
797
+ annotated_dataset?: AnnotatedDataset;
798
+ /** 评估规则 */
799
+ eval_strategy?: EvalStrategy;
800
+ /** 优化引擎 */
801
+ optimize_engine?: OptimizeEngine;
802
+ space_id?: Int64;
803
+ /** 关联的运行记录,list接口只返回最近一条 */
804
+ executions?: Array<OptimizeExecution>;
805
+ }
806
+ export interface OrderParam {
807
+ /** 排序字段 */
808
+ order_by?: OrderField;
809
+ /** 是否升序 */
810
+ asc?: boolean;
811
+ }
812
+ /** Prompt */
813
+ export interface Prompt {
814
+ /** Prompt ID */
815
+ id?: Int64;
816
+ /** 唯一标识 */
817
+ prompt_key?: string;
818
+ /** Prompt名称 */
819
+ display_name?: string;
820
+ /** Prompt描述 */
821
+ description?: string;
822
+ /** Prompt类型 */
823
+ prompt_type?: PromptType;
824
+ /** 创建者ID */
825
+ creator?: string;
826
+ /** 创建时间 */
827
+ create_tsms?: Int64;
828
+ /** 更新时间 */
829
+ update_tsms?: Int64;
830
+ /** 发布状态 */
831
+ status?: PublishStatus;
832
+ /** 版本 */
833
+ version?: string;
834
+ /** 模型配置 */
835
+ model_config?: ModelConfig;
836
+ /** PromptText */
837
+ prompt_text?: PromptText;
838
+ /** Prompt输入 */
839
+ prompt_input?: PromptInput;
840
+ /** 发布信息 */
841
+ publish_info?: PromptPublishInfo;
842
+ /** 标签 */
843
+ labels?: Array<Label>;
844
+ /** 热度 */
845
+ heat?: Int64;
846
+ /** 是否为草稿 */
847
+ is_draft?: boolean;
848
+ /** 草稿关联版本 */
849
+ draft_base_version?: string;
850
+ /** 工具定义 */
851
+ tools?: Array<ToolCombine>;
852
+ /** 发布最终信息 */
853
+ infos?: Array<ReleaseInfo>;
854
+ /** 密级标签 */
855
+ security_level?: SecurityLevel;
856
+ tool_call_config?: ToolCallConfig;
857
+ /** 模版引擎的类型 */
858
+ template_type?: string;
859
+ /** 元数据 */
860
+ metadata?: Record<string, string>;
861
+ /** 是否嵌套Prompt片段 */
862
+ has_segment?: boolean;
863
+ /** 标签(仅平台接口使用,PromptHub暂时无法获取) */
864
+ tags?: Array<Tag>;
865
+ /** 是否批量调试 */
866
+ is_batch_debug?: boolean;
867
+ /** 创建人信息 */
868
+ creator_info?: UserInfo;
869
+ /** 草稿基于BaseVersion是否有编辑 */
870
+ is_draft_edited?: boolean;
871
+ /** MCP服务列表 */
872
+ mcp_servers?: Array<MCPServerCombine>;
873
+ /** 版本快照关联的上一个版本 */
874
+ snapshot_base_version?: string;
875
+ }
876
+ /** Prompt 基础信息,不含版本相关的详情内容 */
877
+ export interface PromptBasic {
878
+ /** Prompt ID */
879
+ id?: Int64;
880
+ /** 唯一标识 */
881
+ prompt_key?: string;
882
+ /** Prompt名称 */
883
+ display_name?: string;
884
+ /** Prompt描述 */
885
+ description?: string;
886
+ /** 创建者ID */
887
+ creator?: string;
888
+ /** 创建时间 */
889
+ create_tsms?: Int64;
890
+ /** 更新时间 */
891
+ update_tsms?: Int64;
892
+ /** 提交状态 */
893
+ status?: PublishStatus;
894
+ /** 最后提交版本 */
895
+ last_publish_version?: string;
896
+ /** 密级标签 */
897
+ security_level?: SecurityLevel;
898
+ }
899
+ /** Prompt输入 */
900
+ export interface PromptInput {
901
+ variables?: Array<Variable>;
902
+ }
903
+ export interface PromptOpTarget {
904
+ /** Prompt唯一标识 */
905
+ prompt_key?: string;
906
+ /** 版本 */
907
+ prompt_version?: string;
908
+ /** Prompt内容,特定场景赋值 */
909
+ prompt_text?: PromptText;
910
+ /** Prompt名称 */
911
+ prompt_name?: string;
912
+ /** PromptID */
913
+ prompt_id?: Int64;
914
+ }
915
+ /** 发布信息 */
916
+ export interface PromptPublishInfo {
917
+ /** 发布者 */
918
+ publisher?: string;
919
+ /** 发布描述 */
920
+ publish_description?: string;
921
+ /** 发布时间 */
922
+ publish_tsms?: Int64;
923
+ /** 发布者详情 */
924
+ publisher_info?: UserInfo;
925
+ }
926
+ /** PromptText */
927
+ export interface PromptText {
928
+ /** System Prompt */
929
+ system_prompt?: Message;
930
+ /** User Prompt */
931
+ user_prompt?: Message;
932
+ /** MessageList */
933
+ message_list?: Array<Message>;
934
+ }
935
+ export interface QualityInspectionInfo {
936
+ /** 是否缺少质检策略 */
937
+ is_guard_missing?: boolean;
938
+ /** 质检id */
939
+ guard_id?: Int64;
940
+ /** 质检链接 */
941
+ guard_url?: string;
942
+ }
943
+ export interface ReleaseApprovalConfig {
944
+ /** 是否开启审核 */
945
+ enable?: boolean;
946
+ /** 灰度策略 */
947
+ gray_release_strategy?: GrayReleaseStrategy;
948
+ }
949
+ export interface ReleaseConfig {
950
+ /** 是否灰度发布(不再生效,废弃) */
951
+ if_gray_release?: boolean;
952
+ /** 灰度发布配置(不再生效,废弃) */
953
+ gray_release_config?: GrayReleaseConfig;
954
+ /** 是否逃逸审批 */
955
+ approval_escape?: boolean;
956
+ /** 逃逸审批备注 */
957
+ approval_escape_comment?: string;
958
+ /** 灰度发布策略 */
959
+ gray_release_strategy?: GrayReleaseStrategy;
960
+ /** 逃逸灰度发布备注 */
961
+ gray_release_escape_comment?: string;
962
+ /** 创建工单时空间是否开启发布审核 */
963
+ space_approval_enable?: boolean;
964
+ /** 创建工单时空间灰度发布策略 */
965
+ space_gray_release_strategy?: GrayReleaseStrategy;
966
+ }
967
+ export interface ReleaseInfo {
968
+ /** release id */
969
+ id?: Int64;
970
+ /** 版本 */
971
+ version?: string;
972
+ /** 上一个发布的版本 */
973
+ pre_version?: string;
974
+ /** 环境 */
975
+ env?: Env;
976
+ /** 泳道 */
977
+ feature?: string;
978
+ /** 发布人 */
979
+ publisher?: string;
980
+ /** 创建时间 */
981
+ create_time?: Int64;
982
+ /** 更新时间 */
983
+ update_time?: Int64;
984
+ /** 灰度发布配置 */
985
+ gray_release_config?: GrayReleaseConfig;
986
+ /** 发布状态 */
987
+ status?: ReleaseStatus;
988
+ /** 发布label */
989
+ label?: string;
990
+ }
991
+ export interface ReleaseResource {
992
+ prompt_id?: Int64;
993
+ prompt_version?: string;
994
+ prompt_pre_version?: string;
995
+ release_id?: Int64;
996
+ }
997
+ export interface ReleaseSubtask {
998
+ /** 子任务id */
999
+ id?: Int64;
1000
+ /** 发布工单id */
1001
+ release_task_id?: Int64;
1002
+ /** 子任务唯一标识 */
1003
+ subtask_key?: string;
1004
+ /** 子任务状态 */
1005
+ status?: ReleaseSubtaskStatus;
1006
+ /** 开始人 */
1007
+ trigger_user?: string;
1008
+ /** 完成人 */
1009
+ finish_user?: string;
1010
+ /** 跳过人 */
1011
+ skip_user?: string;
1012
+ /** 审批信息 */
1013
+ approval_info?: ApprovalInfo;
1014
+ /** 错误信息 */
1015
+ err_info?: ErrInfo;
1016
+ /** 开始时间 */
1017
+ start_time?: Int64;
1018
+ /** 完成时间 */
1019
+ finish_time?: Int64;
1020
+ /** 创建时间 */
1021
+ create_time?: Int64;
1022
+ /** 更新时间 */
1023
+ update_time?: Int64;
1024
+ /** 子任务额外信息 */
1025
+ subtask_extra?: SubtaskExtra;
1026
+ /** crcc阶段id */
1027
+ crcc_stage_id?: string;
1028
+ }
1029
+ export interface ReleaseSubtaskConfig {
1030
+ /** 子任务唯一标识 */
1031
+ subtask_key?: string;
1032
+ /** 子任务展示名称 */
1033
+ display_name?: string;
1034
+ /** 子任务描述 */
1035
+ desc?: string;
1036
+ /** 是否可跳过 */
1037
+ skippable?: boolean;
1038
+ /** 是否可重试 */
1039
+ retryable?: boolean;
1040
+ /** 是否需要审批 */
1041
+ approval_required?: boolean;
1042
+ }
1043
+ export interface ReleaseTask {
1044
+ /** 发布工单id */
1045
+ id?: Int64;
1046
+ /** 空间id */
1047
+ space_id?: Int64;
1048
+ /** 发布资源列表 */
1049
+ release_resources?: Array<ReleaseResource>;
1050
+ /** 发布环境 */
1051
+ env?: Env;
1052
+ /** 发布泳道 */
1053
+ feature?: string;
1054
+ /** 发布配置 */
1055
+ release_config?: ReleaseConfig;
1056
+ /** 发布备注 */
1057
+ comment?: string;
1058
+ /** 发布人 */
1059
+ release_user?: string;
1060
+ /** 取消发布人 */
1061
+ cancel_user?: string;
1062
+ /** 回滚人 */
1063
+ rollback_user?: string;
1064
+ /** 发布状态 */
1065
+ status?: ReleaseTaskStatus;
1066
+ /** 子任务配置 */
1067
+ subtask_configs?: Array<ReleaseSubtaskConfig>;
1068
+ /** 当前子任务key */
1069
+ current_subtask_key?: string;
1070
+ /** 子任务列表(当前状态信息) */
1071
+ subtasks?: Record<string, ReleaseSubtask>;
1072
+ /** 是否可取消 */
1073
+ cancelable?: boolean;
1074
+ /** 是否可回滚 */
1075
+ rollbackable?: boolean;
1076
+ /** 开始时间 */
1077
+ start_time?: Int64;
1078
+ /** 完成时间 */
1079
+ finish_time?: Int64;
1080
+ /** 创建时间 */
1081
+ create_time?: Int64;
1082
+ /** 更新时间 */
1083
+ update_time?: Int64;
1084
+ /** 回调事件id */
1085
+ crcc_event_id?: string;
1086
+ /** 发布label */
1087
+ label?: string;
1088
+ }
1089
+ export interface ReplyItem {
1090
+ stream_state?: StreamState;
1091
+ reply_type?: ReplyType;
1092
+ content?: string;
1093
+ token_consumption?: TokenConsumption;
1094
+ tool_calls?: Array<ToolCallCombine>;
1095
+ debug_trace_key?: string;
1096
+ reasoning_content?: string;
1097
+ /** 多模态内容返回 */
1098
+ parts?: Array<ContentPart>;
1099
+ finish_reason?: string;
1100
+ prompt_version?: string;
1101
+ /** Tool执行结果 */
1102
+ tool_call_responses?: Array<ToolCallResponse>;
1103
+ }
1104
+ export interface ReportEvent {
1105
+ report_event_type?: ReportEventType;
1106
+ prompt_id?: Int64;
1107
+ }
1108
+ export interface RowEvalResult {
1109
+ input?: string;
1110
+ output_before?: string;
1111
+ /** 优化前的评估结果 */
1112
+ eval_before?: string;
1113
+ output_after?: string;
1114
+ /** 评估结果 */
1115
+ eval_result?: EvalResult;
1116
+ /** 额外变量 */
1117
+ variables?: Record<string, string>;
1118
+ }
1119
+ /** 空间 */
1120
+ export interface Space {
1121
+ /** 空间ID */
1122
+ id?: Int64;
1123
+ /** 空间名称 */
1124
+ name?: string;
1125
+ /** 空间描述 */
1126
+ description?: string;
1127
+ /** 空间类型 */
1128
+ space_type?: SpaceType;
1129
+ /** 空间创建人 */
1130
+ creator?: string;
1131
+ /** 创建时间 */
1132
+ create_tsms?: Int64;
1133
+ /** 更新时间 */
1134
+ update_tsms?: Int64;
1135
+ /** 发布审核配置 */
1136
+ release_approval_config?: ReleaseApprovalConfig;
1137
+ /** 空间来源 */
1138
+ space_origin?: string;
1139
+ }
1140
+ /** 空间成员 */
1141
+ export interface SpaceMember {
1142
+ /** 空间ID */
1143
+ space_id?: Int64;
1144
+ /** 成员 */
1145
+ member?: AuthPrincipal;
1146
+ /** 空间角色类型 */
1147
+ space_role_type?: SpaceRoleType;
1148
+ }
1149
+ /** 主体+客体+权限点,鉴权结果 */
1150
+ export interface SubjectActionObjectAuthRes {
1151
+ /** 主体+客体+权限点 鉴权对 */
1152
+ subject_action_objects?: SubjectActionObjects;
1153
+ /** 是否允许 */
1154
+ is_allowed?: boolean;
1155
+ }
1156
+ /** 主体+客体+权限点,鉴权组合信息 */
1157
+ export interface SubjectActionObjects {
1158
+ /** 主体,鉴权时通常为用户 */
1159
+ subject?: AuthPrincipal;
1160
+ /** 权限唯一标识 */
1161
+ action?: string;
1162
+ /** 客体列表,默认按照或的逻辑处理 */
1163
+ objects?: Array<AuthEntity>;
1164
+ }
1165
+ /** 主体+客体+角色 */
1166
+ export interface SubjectRoleObject {
1167
+ /** 主体,授权时可以时用户或部门 */
1168
+ subject?: AuthPrincipal;
1169
+ /** 角色信息 */
1170
+ role?: AuthRole;
1171
+ /** 客体 */
1172
+ object?: AuthEntity;
1173
+ }
1174
+ export interface SubtaskExtra {
1175
+ /** 质检信息 */
1176
+ quality_inspection_info?: QualityInspectionInfo;
1177
+ }
1178
+ /** fornax 标签 */
1179
+ export interface Tag {
1180
+ id?: Int64;
1181
+ name?: string;
1182
+ }
1183
+ export interface ThinkingConfig {
1184
+ /** 是否开启 */
1185
+ enabled?: boolean;
1186
+ /** thinking内容的最大输出token */
1187
+ budget_tokens?: Int64;
1188
+ }
1189
+ export interface TokenConsumption {
1190
+ input_token?: Int64;
1191
+ output_token?: Int64;
1192
+ }
1193
+ export interface Tool {
1194
+ type?: ToolType;
1195
+ function?: Function;
1196
+ }
1197
+ export interface ToolCall {
1198
+ id?: string;
1199
+ type?: ToolType;
1200
+ function_call?: FunctionCall;
1201
+ }
1202
+ export interface ToolCallCombine {
1203
+ tool_call?: ToolCall;
1204
+ /** mock 数据 */
1205
+ mock_response?: string;
1206
+ }
1207
+ export interface ToolCallConfig {
1208
+ tool_choice?: ToolChoiceType;
1209
+ specification?: ToolChoiceSpecification;
1210
+ }
1211
+ export interface ToolCallResponse {
1212
+ tool_call_id?: string;
1213
+ name?: string;
1214
+ content?: string;
1215
+ }
1216
+ export interface ToolChoiceSpecification {
1217
+ type?: ToolType;
1218
+ name?: string;
1219
+ }
1220
+ export interface ToolCombine {
1221
+ /** 工具定义 */
1222
+ tool_def?: Tool;
1223
+ /** mock 数据 */
1224
+ mock_response?: Array<string>;
1225
+ /** 是否禁用 */
1226
+ disable?: boolean;
1227
+ }
1228
+ export interface UserDebugConfig {
1229
+ /** 开启单步调试 */
1230
+ step_by_step?: boolean;
1231
+ /** Prompt 调试类型 */
1232
+ prompt_type?: PromptType;
1233
+ }
1234
+ export interface UserInfo {
1235
+ /** 姓名 */
1236
+ name?: string;
1237
+ /** 英文名称 */
1238
+ en_name?: string;
1239
+ /** 用户头像url */
1240
+ avatar_url?: string;
1241
+ /** 72 * 72 头像 */
1242
+ avatar_thumb?: string;
1243
+ /** 用户应用内唯一标识 */
1244
+ open_id?: string;
1245
+ /** 用户应用开发商内唯一标识 */
1246
+ union_id?: string;
1247
+ /** 企业标识 */
1248
+ tenant_key?: string;
1249
+ /** 用户在租户内的唯一标识 */
1250
+ user_id?: string;
1251
+ /** 用户邮箱 */
1252
+ email?: string;
1253
+ /** 租户 */
1254
+ tenant?: TenantType;
1255
+ }
1256
+ /** prompt变量 */
1257
+ export interface Variable {
1258
+ /** 变量名字 */
1259
+ key?: string;
1260
+ /** 变量描述 */
1261
+ desc?: string;
1262
+ /** 变量类型 */
1263
+ variable_type?: VariableType;
1264
+ /** 是否必须 */
1265
+ is_required?: boolean;
1266
+ /** 变量值/mock值 */
1267
+ value?: string;
1268
+ placeholder_messages?: Array<Message>;
1269
+ image?: ImageVariable;
1270
+ }