import type { SanitizeRule } from '../types'; /** * 连续 assistant 消息(幽灵消息)检测规则。 * * 检测场景:两个 assistant 消息之间缺少 user/tool 消息。 * 问题原因:assistant 消息必须是对 user/tool 消息的响应。 * 当用户消息因故未持久化时,会出现此问题。 * 修复策略:在两个 assistant 消息之间插入占位符 user 消息。 * * @example * 输入: [user, assistant, assistant] // 中间缺少用户消息 * 输出: [user, assistant, user("[System: Original context message was not persisted]"), assistant] */ export declare const ghostAssistantRule: SanitizeRule;