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)
| 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): |
no outgoing calls
no test coverage detected