from api.llm.ollama import summarize


def explain_incident(incident, metrics):
    try:
        return summarize(incident, metrics)
    except Exception:
        return "Résumé indisponible (LLM non joignable)."
