5f5edb1e6d
- 상담 기록 분석 및 요약 - 상담 기록 db 저장 - 상담 평가 - 상담 평가 db 저장
11 lines
501 B
Python
11 lines
501 B
Python
from fastapi import APIRouter, Depends
|
|
from backend.schemas.evaluation_schema import EvaluationResponse
|
|
from sqlalchemy.orm import Session
|
|
from backend.repository.db_init import get_db
|
|
from backend.services.evalu_service import get_call_evaluation
|
|
|
|
router = APIRouter(prefix="/api/evaluation", tags=["evaluation"])
|
|
|
|
@router.get("/{call_id}", response_model=EvaluationResponse)
|
|
def read_evaluation(call_id : int, db:Session = Depends(get_db)):
|
|
return get_call_evaluation(call_id = call_id, db = db) |