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

Method learn_from_file

core/learning.py:53–64  ·  view source on GitHub ↗

Learn preferences from a file. Args: path: File path content: File content Returns: Detected preferences

(self, path: str, content: str)

Source from the content-addressed store, hash-verified

51 self.strategy_tracker: StrategyTracker = get_strategy_tracker()
52
53 def learn_from_file(self, path: str, content: str) -> Dict[str, str]:
54 """
55 Learn preferences from a file.
56
57 Args:
58 path: File path
59 content: File content
60
61 Returns:
62 Detected preferences
63 """
64 return self.preferences.learn_from_file(path, content)
65
66 def learn_from_files(self, files: List[tuple]) -> Dict[str, List[str]]:
67 """

Callers 3

test_learn_from_fileMethod · 0.95
test_get_preferenceMethod · 0.95
run_agentFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_learn_from_fileMethod · 0.76
test_get_preferenceMethod · 0.76