* 更新工作空间信息
(updates: Partial<WorkspaceContext>)
| 253 | * 更新工作空间信息 |
| 254 | */ |
| 255 | updateWorkspace(updates: Partial<WorkspaceContext>): void { |
| 256 | if (!this.currentSessionId) { |
| 257 | throw new Error('没有活动会话'); |
| 258 | } |
| 259 | |
| 260 | this.memory.updateWorkspace(updates); |
| 261 | } |
| 262 | |
| 263 | /** |
| 264 | * 获取格式化的上下文用于 Prompt 构建 |