Detect profiles that still only contain the role shell but no cold-start result.
(profile: Dict[str, Any])
| 245 | |
| 246 | |
| 247 | def profile_needs_bootstrap(profile: Dict[str, Any]) -> bool: |
| 248 | """Detect profiles that still only contain the role shell but no cold-start result.""" |
| 249 | return not profile.get("core_directions") and not profile.get("topic_weights") |
| 250 | |
| 251 | |
| 252 | def repair_profile_from_role_description(user_id: str, profile: Dict[str, Any]) -> Dict[str, Any]: |
no test coverage detected