Learn preferences from a file. Args: path: File path content: File content Returns: Detected preferences
(self, path: str, content: str)
| 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 | """ |
no outgoing calls