# `application/profiles.py` ## Propósito Define perfiles por tipo de documento con: - `wrap_root`: clave raíz para envolver salidas. - `default_instruction`: instrucción por defecto para el LLM. - `aggregate_list_paths`: rutas de listas a agregar en CSV cuando corresponda. ## API pública ### `get_profile(name: str) -> Profile` Devuelve un perfil por nombre. Si no existe, usa `invoice`. ## Perfiles - `invoice`: sin `wrap_root`, instrucción para tablas y etiquetas. ## Ejemplo ```python from application.profiles import get_profile prof = get_profile("invoice") inst = prof["default_instruction"] agg = prof.get("aggregate_list_paths") ```