@solazah/solazah-runtime 0.2.71 → 0.2.72
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/package.json +1 -1
- package/types/Copilot.d.ts +7 -0
package/package.json
CHANGED
package/types/Copilot.d.ts
CHANGED
|
@@ -135,6 +135,11 @@ export interface CopilotOptions extends CopilotChatOptions {
|
|
|
135
135
|
* 之后照常以新输入开 invoke。
|
|
136
136
|
*/
|
|
137
137
|
editFromMessageId?: string;
|
|
138
|
+
/**
|
|
139
|
+
* 接着跑一轮没跑完的:从这条中断标记起回卷(删掉它),不加新的用户消息,按现有历史接着跑。
|
|
140
|
+
* 有它时 run() 的输入不用。
|
|
141
|
+
*/
|
|
142
|
+
continueFromMessageId?: string;
|
|
138
143
|
/**
|
|
139
144
|
* 内部字段:run() 给 CopilotAgent 的"本轮入口 HumanMessage id"。
|
|
140
145
|
* 持久化时按这个 id 在 latestState.messages 里找下标,从下标开始 slice 落库。
|
|
@@ -149,6 +154,8 @@ export interface CopilotOptions extends CopilotChatOptions {
|
|
|
149
154
|
* 从下一条开始 slice,避免重复落库 + 抗历史 placeholder 污染。
|
|
150
155
|
*/
|
|
151
156
|
persistFromToolCallId?: string;
|
|
157
|
+
/** 内部字段:续跑没跑完的一轮时没有入口消息,持久化从开跑前 state 里最后一条之后切。 */
|
|
158
|
+
persistAfterMessageId?: string;
|
|
152
159
|
/**
|
|
153
160
|
* 本轮用户消息附上的图片。视觉模型拼成 image_url 内容块,纯文本模型丢弃(见 CopilotHumanContent)。
|
|
154
161
|
*/
|