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

Method SuccessRate

pkg/context/engine.go:379–384  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

377}
378
379func (ts *ToolStats) SuccessRate() float64 {
380 if ts.TotalCalls == 0 {
381 return 0.5
382 }
383 return float64(ts.Successes) / float64(ts.TotalCalls)
384}
385
386func (ts *ToolStats) Confidence() float64 {
387 // Cap at log scale to prevent high-history tools from dominating.

Callers 1

RankMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected