1. sqlalchemy CRUD 예제 실습

2. callcenter 프로젝트 제작중
This commit is contained in:
2026-06-17 18:27:04 +09:00
parent 06eb3c57ab
commit b0503baac5
36 changed files with 1286 additions and 23 deletions
@@ -0,0 +1,28 @@
from pydantic import BaseModel
class SummaryRequest(BaseModel):
transcript: str
class CallSummary(BaseModel):
summary: str
keywords: list[str]
category: str
sentiment: str
action_items: list[str]
customer_issue: str
resolution: str
# 상담 요청 시 사용할 타입
class CallRequest(BaseModel):
customer_id: int
transcript: str
# 상담 요약 저장 시 사용할 타입
class CallCreate(BaseModel):
customer_id: int
transcript: str
summary: str
category: str
sentiment: str
customer_issue: str
resolution: str