fix(experiments): 使用百分比输入并补齐场景管理入口
输入50表示50%,保留0.01%精度且不改变既有分组配置;独立管理场景并标注预置或后台创建来源,创建实验使用动态场景列表。
This commit is contained in:
+14
-1
@@ -1158,7 +1158,9 @@ export type Entry = {
|
||||
export type Experiment = {
|
||||
id: string;
|
||||
name: string;
|
||||
scope: "ui" | "chat";
|
||||
scope: string;
|
||||
runtime?: "ui" | "chat";
|
||||
sceneName?: string;
|
||||
state: "draft" | "running" | "paused" | "finished";
|
||||
revision?: number;
|
||||
config: {
|
||||
@@ -1174,3 +1176,14 @@ export type Experiment = {
|
||||
description: string;
|
||||
};
|
||||
};
|
||||
|
||||
/** 实验场景与应用接入点映射。 */
|
||||
export type ExperimentScene = {
|
||||
id: string;
|
||||
name: string;
|
||||
runtime: "ui" | "chat";
|
||||
description: string;
|
||||
enabled: number;
|
||||
builtin: number;
|
||||
revision: number;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user