MCPcopy Create free account
hub / github.com/atripati/ark / ToolStats

Struct ToolStats

pkg/context/engine.go:368–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366}
367
368type ToolStats struct {
369 TotalCalls int
370 Successes int
371 Failures int
372 ConsecutiveFails int
373 AvgLatency time.Duration
374 AvgCost float64
375 LastUsed time.Time
376 LastErrorType ErrorType
377}
378
379func (ts *ToolStats) SuccessRate() float64 {
380 if ts.TotalCalls == 0 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected