Learn from explicit user correction. Args: category: Preference category (e.g., "test_framework") value: Correct value (e.g., "pytest")
(self, category: str, value: str)
| 475 | pass |
| 476 | |
| 477 | def learn_from_correction(self, category: str, value: str): |
| 478 | """ |
| 479 | Learn from explicit user correction. |
| 480 | |
| 481 | Args: |
| 482 | category: Preference category (e.g., "test_framework") |
| 483 | value: Correct value (e.g., "pytest") |
| 484 | """ |
| 485 | info(f"Learning preference: {category} = {value}") |
| 486 | self._update_preference(category, value, confidence=1.0) |
| 487 | |
| 488 | def get(self, category: str, default: str = None) -> Optional[str]: |
| 489 | """ |