* 获取缓存的工具调用结果
(toolName: string, input: any)
| 153 | * 获取缓存的工具调用结果 |
| 154 | */ |
| 155 | getToolResult(toolName: string, input: any): any { |
| 156 | const inputHash = this.hashInput(input); |
| 157 | const key = `tool:${toolName}:${inputHash}`; |
| 158 | return this.get(key); |
| 159 | } |
| 160 | |
| 161 | /** |
| 162 | * 缓存上下文压缩结果 |
no test coverage detected