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

Method reset_strategy

core/strategy_tracker.py:376–381  ·  view source on GitHub ↗

Reset statistics for a strategy.

(self, strategy: str)

Source from the content-addressed store, hash-verified

374 }
375
376 def reset_strategy(self, strategy: str):
377 """Reset statistics for a strategy."""
378 if strategy in self._stats:
379 self._stats[strategy] = StrategyStats(strategy)
380 self._save_tracker()
381 info(f"Reset statistics for strategy '{strategy}'")
382
383 def clear(self):
384 """Clear all strategy statistics."""

Callers

nothing calls this directly

Calls 3

_save_trackerMethod · 0.95
infoFunction · 0.90
StrategyStatsClass · 0.85

Tested by

no test coverage detected