MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / clear

Method clear

core/strategy_tracker.py:383–391  ·  view source on GitHub ↗

Clear all strategy statistics.

(self)

Source from the content-addressed store, hash-verified

381 info(f"Reset statistics for strategy '{strategy}'")
382
383 def clear(self):
384 """Clear all strategy statistics."""
385 self._stats = {
386 name: StrategyStats(name)
387 for name in self.BUILTIN_STRATEGIES
388 }
389 self._recent_records = []
390 self.state.delete("strategy_tracker")
391 info("Strategy tracker cleared")
392
393
394# Global singleton

Callers

nothing calls this directly

Calls 3

infoFunction · 0.90
StrategyStatsClass · 0.85
deleteMethod · 0.80

Tested by

no test coverage detected