"""Distillation: surface docs -> core docs, Merkle-signed back."""

from aborist.distill.base import DistillationResult, Distiller
from aborist.distill.first_sentence import FirstSentenceDistiller
from aborist.distill.tfidf import TfidfKeywordDistiller

__all__ = [
    "DistillationResult",
    "Distiller",
    "FirstSentenceDistiller",
    "TfidfKeywordDistiller",
]


def get_distiller(name: str) -> Distiller:
    if name == FirstSentenceDistiller.name:
        return FirstSentenceDistiller()
    if name == TfidfKeywordDistiller.name:
        return TfidfKeywordDistiller()
    raise ValueError(f"unknown distiller: {name}")
