import type { SanitizeRule } from '../types'; /** * 首条非 system 消息检测规则。 * * 检测场景:第一条非 system 消息不是 user 消息。 * 问题原因:对话必须由用户发起。如果历史消息被截断或丢失, * 可能导致消息列表以 assistant/tool 开头。 * 修复策略:在第一条非 system 消息之前插入占位符 user 消息。 * * @example * 输入: [system, assistant, tool] // 缺少开头的 user 消息 * 输出: [system, user("[System: Conversation history is incomplete.]"), assistant, tool] */ export declare const leadingNonUserRule: SanitizeRule;