from pathlib import Path from core.crew_explainer import generate_explanation def explain_candidate(jd_path: str, match_path: str, rank: int | None = None) -> dict: # You can add caching later if you want (by match_path hash) return generate_explanation(jd_path=jd_path, match_path=match_path, top_k_rank=rank)