* 添加助手消息
(content: string, metadata?: Record<string, any>)
| 219 | * 添加助手消息 |
| 220 | */ |
| 221 | public async addAssistantMessage(content: string, metadata?: Record<string, any>): Promise<void> { |
| 222 | this.ensureReady(); |
| 223 | await this.contextManager!.addMessage('assistant', content, metadata); |
| 224 | this.log(`添加助手消息: ${content.substring(0, 50)}...`); |
| 225 | } |
| 226 | |
| 227 | /** |
| 228 | * 添加系统消息 |
no test coverage detected