@glodon-aiot/bot-client-ui 3.22.3 → 3.22.4

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
@@ -92,6 +92,7 @@ new BotClientUI({
92
92
  | reload | `() => void` | |
93
93
  | activeSession | `Session` | 当前活跃的会话信息 |
94
94
  | input | `(message:string) => void` | 填充输入框内容 |
95
+ | send | `(text: string) => Promise<void>` | 与输入框发送同等能力:走 `beforemessagesend`、用户气泡、思考中、文件/图片。被拦截或校验失败时 Promise reject |
95
96
  | getMessageList | `(sessionId?: string) => Promise<Message[]>` | 获取历史对话列表 |
96
97
 
97
98
  # 类型定义