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

Method record_fix

core/learning.py:105–114  ·  view source on GitHub ↗

Record a fix for an error. Args: error_key: Error pattern key fix: Fix description success: Whether fix worked

(self, error_key: str, fix: str, success: bool = True)

Source from the content-addressed store, hash-verified

103 return self.preferences.learn_from_message(message)
104
105 def record_fix(self, error_key: str, fix: str, success: bool = True):
106 """
107 Record a fix for an error.
108
109 Args:
110 error_key: Error pattern key
111 fix: Fix description
112 success: Whether fix worked
113 """
114 self.error_db.record_fix(error_key, fix, success)
115
116 def record_strategy_attempt(self, strategy: str, error_type: str,
117 success: bool, duration: float = 0.0):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected