@ibiz-template-plugin/ai-chat 0.0.47 → 0.0.49

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.
@@ -124,6 +124,10 @@ export declare class AiChatController {
124
124
  * 模式参数,用于业务区分
125
125
  */
126
126
  chatMode: string | undefined;
127
+ /**
128
+ * 摘要是否正在处理完成
129
+ */
130
+ private isDigestProcessed;
127
131
  /**
128
132
  * AI资源模式
129
133
  */
@@ -132,6 +136,14 @@ export declare class AiChatController {
132
136
  * 当前话题是否禁止存储
133
137
  */
134
138
  get currentTopicDisableStorage(): boolean;
139
+ /**
140
+ * 当前话题标题模式
141
+ */
142
+ get sessionCaptionMode(): 'default' | 'snippet' | 'summary';
143
+ /**
144
+ * 当前话题标题
145
+ */
146
+ get sessionDefaultCaption(): string;
135
147
  /**
136
148
  * Creates an instance of AiChatController.
137
149
  *
@@ -153,7 +153,7 @@ export declare class AiTopicController {
153
153
  * @param topicId
154
154
  * @param message
155
155
  */
156
- updateTopicCaption(topicId: string, message: string): Promise<void>;
156
+ updateTopicCaption(topicId: string, newCaption: string): Promise<void>;
157
157
  /**
158
158
  * 更新话题数据
159
159
  *
@@ -19,7 +19,6 @@ export declare class ChatTopic implements ITopic {
19
19
  get url(): ITopic['url'];
20
20
  get aiChat(): ITopic['aiChat'];
21
21
  get captionMode(): ITopic['captionMode'];
22
- get captionFilled(): ITopic['captionFilled'];
23
22
  get realid(): ITopic['realid'];
24
23
  get sequence(): ITopic['sequence'];
25
24
  get isTop(): ITopic['isTop'];
@@ -268,4 +268,12 @@ export interface IChatOptions extends IChat {
268
268
  * @return {*} {Promise<object>}
269
269
  */
270
270
  recommendPrompt(context: object, params: object, otherParams: object): Promise<object>;
271
+ /**
272
+ * 聊天内容摘要回调
273
+ * @param context
274
+ * @param params
275
+ * @param otherParams
276
+ * @return {*} {Promise<object>}
277
+ */
278
+ chatDigest(context: object, params: object, otherParams: object): Promise<object>;
271
279
  }
@@ -54,12 +54,6 @@ export interface ITopic {
54
54
  * @type {string}
55
55
  */
56
56
  caption?: string;
57
- /**
58
- * 话题标题是否已填充
59
- *
60
- * @type {bolean}
61
- */
62
- captionFilled?: boolean;
63
57
  /**
64
58
  * 话题标题模式
65
59
  * default:默认值,由外部传入标题决定
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template-plugin/ai-chat",
3
- "version": "0.0.47",
3
+ "version": "0.0.49",
4
4
  "description": "iBiz AI交互框插件",
5
5
  "type": "module",
6
6
  "main": "dist/index.es.js",