MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / recordToolError

Method recordToolError

src/core/task/Task.ts:4633–4643  ·  view source on GitHub ↗
(toolName: ToolName, error?: string)

Source from the content-addressed store, hash-verified

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

Callers 15

executeMethod · 0.80
recordValidationErrorMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
validateParamsMethod · 0.80
validateToolExistsMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80

Calls 1

emitMethod · 0.65

Tested by

no test coverage detected