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

Method learn_from_correction

core/preferences.py:477–486  ·  view source on GitHub ↗

Learn from explicit user correction. Args: category: Preference category (e.g., "test_framework") value: Correct value (e.g., "pytest")

(self, category: str, value: str)

Source from the content-addressed store, hash-verified

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 """

Callers 1

Calls 2

_update_preferenceMethod · 0.95
infoFunction · 0.90

Tested by 1