@mxmweb/rtext 1.4.3 → 1.5.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.
@@ -6,7 +6,7 @@
6
6
  * 思维链节点业务类型
7
7
  * - plan: 理解与规划
8
8
  * - retrieve: 召回 / 检索
9
- * - think: 深度思考
9
+ * - think: 深度思考 / 推理
10
10
  * - reason: 推理
11
11
  */
12
12
  export type ThoughtBusinessType = 'plan' | 'retrieve' | 'think' | 'reason';
@@ -57,8 +57,8 @@ export declare const DEFAULT_THOUGHT_CHAIN_VERSION: ThoughtChainVersionMode;
57
57
  * 由具体使用方通过交叉类型扩展。
58
58
  */
59
59
  export interface ThoughtSSEMeta {
60
- /** 节点业务类型:plan / retrieve / think */
60
+ /** 节点业务类型:plan / retrieve / think / reason */
61
61
  businessType?: ThoughtBusinessType;
62
- /** 节点状态:1.待执行 2.运行中 3.执行完成 4.执行失败 5.异常 */
62
+ /** 节点状态:1.运行中 2.完成 3.失败 4.异常 */
63
63
  nodeStatus?: ThoughtNodeStatus;
64
64
  }
@@ -11,8 +11,10 @@ export interface RawChainNode {
11
11
  }
12
12
  /**
13
13
  * 统一的标题映射
14
+ * @param type 业务类型
15
+ * @param nodeStatus 节点状态,可选。如果提供,会根据状态返回不同的标题
14
16
  */
15
- export declare function getThoughtTitleByBusinessType(type: ThoughtBusinessType): string;
17
+ export declare function getThoughtTitleByBusinessType(type: ThoughtBusinessType, nodeStatus?: ThoughtNodeStatus): string;
16
18
  /**
17
19
  * 将历史回复中的 chain 数组映射为 UI 使用的 ThoughtNode 列表
18
20
  * 2025-12-19 新增: 支持 rtext 思维链 UI 升级。