@kweaver-ai/chatkit 0.1.9 → 0.1.11
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 +2 -2
- package/dist/chatkit.cjs.js +84 -84
- package/dist/chatkit.es.js +14719 -13994
- package/dist/components/base/ChatKitBase.d.ts +29 -7
- package/dist/components/base/assistant/MessageList.d.ts +0 -4
- package/dist/components/base/copilot/MessageList.d.ts +0 -4
- package/dist/components/dip/DIPBase.d.ts +38 -2
- package/dist/types/index.d.ts +25 -1
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -291,9 +291,9 @@ ChatKitBase 是 AI 对话组件的核心基类。开发者不能直接挂载 Cha
|
|
|
291
291
|
|
|
292
292
|
| 方法名 | 参数 | 返回值 | 说明 |
|
|
293
293
|
|--------|------|--------|------|
|
|
294
|
-
| createConversation | `()` | `Promise<void>` |
|
|
294
|
+
| createConversation | `()` | `Promise<void>` | 清空现有会话并获取开场白信息 |
|
|
295
295
|
| loadConversation | `(conversationId: string)` | `Promise<void>` | 加载指定 ID 的历史会话 |
|
|
296
|
-
| send | `(text: string, ctx?: ApplicationContext, conversationID?: string)` | `Promise<ChatMessage>` |
|
|
296
|
+
| send | `(text: string, ctx?: ApplicationContext, conversationID?: string, regenerateMessageId?: string)` | `Promise<ChatMessage>` | 发送消息,支持传入上下文、会话 ID 和重新生成的消息 ID |
|
|
297
297
|
| injectApplicationContext | `(ctx: ApplicationContext)` | `void` | 向 ChatKit 注入应用上下文 |
|
|
298
298
|
| removeApplicationContext | `()` | `void` | 移除注入的应用上下文 |
|
|
299
299
|
| getConversations | `(page?: number, size?: number)` | `Promise<ConversationHistory[]>` | 获取历史会话列表 |
|