(toolName: ToolName, error?: string)
| 4631 | } |
| 4632 | |
| 4633 | public recordToolError(toolName: ToolName, error?: string) { |
| 4634 | if (!this.toolUsage[toolName]) { |
| 4635 | this.toolUsage[toolName] = { attempts: 0, failures: 0 } |
| 4636 | } |
| 4637 | |
| 4638 | this.toolUsage[toolName].failures++ |
| 4639 | |
| 4640 | if (error) { |
| 4641 | this.emit(RooCodeEventName.TaskToolFailed, this.taskId, toolName, error) |
| 4642 | } |
| 4643 | } |
| 4644 | |
| 4645 | // Getters |
| 4646 |
no test coverage detected