rt-chat-messages 1.0.1 → 1.0.2

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.
package/README.md CHANGED
@@ -71,17 +71,32 @@ const handleCopy = (message) => {
71
71
 
72
72
  **Props**
73
73
 
74
- | 属性 | 类型 | 默认值 | 说明 |
75
- | ---------------- | --------------- | ---------- | ------------------------------------ |
76
- | `messages` | `ChatMessage[]` | `[]` | 消息列表 |
77
- | `isStreaming` | `boolean` | `false` | 是否正在流式输出(用于优化渲染性能) |
78
- | `isTyping` | `boolean` | `false` | 是否显示输入的等待动画 |
79
- | `autoScroll` | `boolean` | `true` | 是否自动跟随内容滚动到底部 |
80
- | `showWelcome` | `boolean` | `true` | 是否显示欢迎页(当无消息时) |
81
- | `appName` | `string` | `'AI助手'` | 欢迎页显示的名称 |
82
- | `appLogo` | `string` | - | 欢迎页 Logo URL |
83
- | `agentSteps` | `AgentStep[]` | `[]` | Agent 执行步骤数据 |
84
- | `showAgentSteps` | `boolean` | `true` | 是否显示 Agent 步骤 |
74
+ | 属性 | 类型 | 默认值 | 说明 |
75
+ | ---------------- | --------------- | ---------- | -------------------------------------------------- |
76
+ | `messages` | `ChatMessage[]` | `[]` | 消息列表 |
77
+ | `isStreaming` | `boolean` | `false` | 是否正在流式输出(用于优化渲染性能) |
78
+ | `isTyping` | `boolean` | `false` | 是否显示输入的等待动画 |
79
+ | `autoScroll` | `boolean` | `true` | 是否自动跟随内容滚动到底部 |
80
+ | `showWelcome` | `boolean` | `true` | 是否显示欢迎页(当无消息时) |
81
+ | `appName` | `string` | `'AI助手'` | 欢迎页显示的名称 |
82
+ | `appLogo` | `string` | - | 欢迎页 Logo URL |
83
+ | `agentSteps` | `AgentStep[]` | `[]` | Agent 执行步骤(用于展示思考过程),格式见下方定义 |
84
+ | `showAgentSteps` | `boolean` | `true` | 是否显示 Agent 步骤 |
85
+
86
+ #### AgentStep 类型定义
87
+
88
+ ```typescript
89
+ export interface AgentStep {
90
+ /** 唯一标识符 */
91
+ name: string;
92
+ /** 显示名称 */
93
+ displayName: string;
94
+ /** 状态 */
95
+ status: "running" | "completed" | "error";
96
+ /** 开始时间戳 (ms) */
97
+ startTime?: number;
98
+ }
99
+ ```
85
100
 
86
101
  **Events**
87
102