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

Method recordToolUsage

src/core/task/Task.ts:4625–4631  ·  view source on GitHub ↗
(toolName: ToolName)

Source from the content-addressed store, hash-verified

4623 }
4624
4625 public recordToolUsage(toolName: ToolName) {
4626 if (!this.toolUsage[toolName]) {
4627 this.toolUsage[toolName] = { attempts: 0, failures: 0 }
4628 }
4629
4630 this.toolUsage[toolName].attempts++
4631 }
4632
4633 public recordToolError(toolName: ToolName, error?: string) {
4634 if (!this.toolUsage[toolName]) {

Callers 6

executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
presentAssistantMessageFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected