* 添加系统消息
(content: string, metadata?: Record<string, any>)
| 228 | * 添加系统消息 |
| 229 | */ |
| 230 | public async addSystemMessage(content: string, metadata?: Record<string, any>): Promise<void> { |
| 231 | this.ensureReady(); |
| 232 | await this.contextManager!.addMessage('system', content, metadata); |
| 233 | this.log(`添加系统消息: ${content.substring(0, 50)}...`); |
| 234 | } |
| 235 | |
| 236 | /** |
| 237 | * 添加工具调用记录 |
nothing calls this directly
no test coverage detected