feat: /compress 上下文压缩 + Skill 渐进式加载

This commit is contained in:
Metona Dev
2026-04-24 12:35:49 +08:00
parent fe85251738
commit 8e53a411d6
5 changed files with 220 additions and 43 deletions
+5 -1
View File
@@ -8,6 +8,8 @@ export interface OllamaMessage {
reasoning_content?: string;
tool_calls?: ToolCall[];
tool_name?: string;
/** 标记此消息为 LLM 压缩摘要生成 */
compressed?: boolean;
}
export interface OllamaChatParams {
@@ -94,7 +96,7 @@ export interface FileContent {
}
export interface ChatMessage {
role: 'user' | 'assistant';
role: 'user' | 'assistant' | 'system';
content: string;
timestamp: number;
model?: string;
@@ -107,6 +109,8 @@ export interface ChatMessage {
_fileContents?: FileContent[];
stopped?: boolean;
toolCalls?: ToolCallRecord[];
/** 标记此消息为 LLM 压缩摘要生成 */
compressed?: boolean;
}
export interface ChatSession {