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

Method _save_tracker

core/strategy_tracker.py:214–223  ·  view source on GitHub ↗

Save strategy tracker to storage.

(self)

Source from the content-addressed store, hash-verified

212 }
213
214 def _save_tracker(self):
215 """Save strategy tracker to storage."""
216 try:
217 data = {
218 name: stats.to_dict()
219 for name, stats in self._stats.items()
220 }
221 self.state.set("strategy_tracker", json.dumps(data))
222 except Exception as e:
223 warning(f"Failed to save strategy tracker: {e}")
224
225 def record_attempt(self, strategy: str, error_type: str,
226 success: bool, duration: float = 0.0,

Callers 2

record_attemptMethod · 0.95
reset_strategyMethod · 0.95

Calls 3

warningFunction · 0.90
to_dictMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected