# app/dto/response/chat_response.py """ HealthSync AI 챗봇 상담 응답 DTO """ from pydantic import BaseModel, Field from datetime import datetime class ChatResponse(BaseModel): """챗봇 상담 응답 DTO""" response: str = Field(..., description="AI 답변 내용") timestamp: datetime = Field(..., description="답변 생성 시간") class Config: json_encoders = { datetime: lambda v: v.isoformat() } json_schema_extra = { "example": { "response": "혈압 관리를 위해서는 규칙적인 유산소 운동과 저염식 식단을 권장합니다. 특히 IT 업무 특성상 스트레스 관리도 중요하므로 명상이나 심호흡 운동을 병행하시기 바랍니다.", "timestamp": "2025-06-16T10:30:00.000Z" } }