* 添加工具调用记录
(toolCall: ToolCall)
| 237 | * 添加工具调用记录 |
| 238 | */ |
| 239 | public async addToolCall(toolCall: ToolCall): Promise<void> { |
| 240 | this.ensureReady(); |
| 241 | await this.contextManager!.addToolCall(toolCall); |
| 242 | this.log(`添加工具调用: ${toolCall.name} (${toolCall.status})`); |
| 243 | } |
| 244 | |
| 245 | /** |
| 246 | * 更新工具状态 |
no test coverage detected