@mxmweb/rtext 1.4.4 → 1.5.5

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.
@@ -12,9 +12,9 @@
12
12
  export type ThoughtBusinessType = 'plan' | 'retrieve' | 'think' | 'reason';
13
13
  /**
14
14
  * 思维链节点状态枚举
15
- * 1. 运行中 2. 完成 3. 失败 4. 异常
15
+ * 1. 待执行 2. 运行中 3. 完成 4. 失败 5. 异常
16
16
  */
17
- export type ThoughtNodeStatus = 1 | 2 | 3 | 4;
17
+ export type ThoughtNodeStatus = 1 | 2 | 3 | 4 | 5;
18
18
  /**
19
19
  * 思维链节点统一结构
20
20
  * 用于在 UI 组件中展示 plan / retrieve / think 的进度与内容。
@@ -26,12 +26,14 @@ export interface ThoughtNode {
26
26
  businessType: ThoughtBusinessType;
27
27
  /** 当前状态:待执行 / 运行中 / 完成 / 失败 / 异常 */
28
28
  nodeStatus: ThoughtNodeStatus;
29
- /** UI 中展示的标题,例如“理解规划完成”、“召回成功”等 */
29
+ /** UI 中展示的标题,例如"理解规划完成"、"召回成功"等 */
30
30
  title: string;
31
31
  /** 主体内容文案,通常为模型生成的自然语言描述 */
32
32
  content: string;
33
33
  /** 原始业务数据,便于后续在弹窗中展示完整 JSON 或调试 */
34
34
  rawContent?: any;
35
+ /** 节点响应时间(毫秒),用于显示节点用时 */
36
+ respTime?: number;
35
37
  }
36
38
  /**
37
39
  * 思维链渲染模式
@@ -59,6 +61,6 @@ export declare const DEFAULT_THOUGHT_CHAIN_VERSION: ThoughtChainVersionMode;
59
61
  export interface ThoughtSSEMeta {
60
62
  /** 节点业务类型:plan / retrieve / think / reason */
61
63
  businessType?: ThoughtBusinessType;
62
- /** 节点状态:1.运行中 2.完成 3.失败 4.异常 */
64
+ /** 节点状态:1.待执行 2.运行中 3.完成 4.失败 5.异常 */
63
65
  nodeStatus?: ThoughtNodeStatus;
64
66
  }
@@ -30,6 +30,8 @@ export interface ThoughtSSEChunkMeta {
30
30
  content?: string;
31
31
  type?: string;
32
32
  };
33
+ respTime?: number;
34
+ chainRespTime?: number;
33
35
  }
34
36
  /**
35
37
  * 将实时 SSE chunk 合并到现有 ThoughtNode 列表中