Get all preferences with sufficient confidence.
(self)
| 503 | return default or self.CATEGORIES.get(category, {}).get("default") |
| 504 | |
| 505 | def get_all(self) -> Dict[str, str]: |
| 506 | """Get all preferences with sufficient confidence.""" |
| 507 | result = {} |
| 508 | for category, config in self.CATEGORIES.items(): |
| 509 | value = self.get(category) |
| 510 | if value: |
| 511 | result[category] = value |
| 512 | return result |
| 513 | |
| 514 | def get_confidence(self, category: str) -> float: |
| 515 | """Get confidence level for a preference.""" |