from os import confstr
from pydantic import BaseModel, constr, validator
from typing import Any, Dict, Union, Optional,List
   


    
    
# ---------- MODELOS PARA /ask/chat-n8n ----------
class ChatN8nRequest(BaseModel):
    sessionId: constr(strip_whitespace=True, min_length=1)  # ← Cambiar "nombre" por "sessionId"
    pregunta: constr(strip_whitespace=True, min_length=1)
    audio_enabled: Optional[bool] = False
    
class ChatN8nResponse(BaseModel):
    success: bool
    message: str
    data: Optional[dict] = None

class ChatN8nError(BaseModel):
    success: bool
    message: str
