- 무빙 포스터(p2v_video)·롱컷(p2v_playreel) 파이프라인과 워커, 갤러리·내 콘텐츠 노출 - 좋아요·댓글: comment/video_reaction에 p2v_playreel_id 추가, 종류별 CHECK 확장 - P2V 소프트 삭제(is_deleted), queued/running 삭제 차단 - 공개 상세·공유 OG 페이지 추가 - 삭제된 부모 댓글이 목록에서 사라지던 has_live_reply 서브쿼리 버그 수정 - 마이그레이션: migration_2026-10-15_p2v_reactions.sql
24 lines
640 B
Python
24 lines
640 B
Python
"""③ motion 단계 VLM 응답 스키마.
|
|
|
|
모션 키는 Literal로 고정한다 — 어휘 밖의 값이 나올 수 없다.
|
|
키 목록은 raw_prompt/motion_phrase.json과 일치해야 하며, motion.py가 기동 시 대조한다.
|
|
"""
|
|
from typing import Literal
|
|
|
|
from pydantic import BaseModel
|
|
|
|
MotionKey = Literal[
|
|
"firework", "water", "wave", "cloud", "smoke", "moon", "sun", "star", "light",
|
|
"flag", "foliage", "wheel", "vessel", "crowd", "ray", "snow", "fog", "glow",
|
|
]
|
|
|
|
|
|
class MotionElement(BaseModel):
|
|
motion: MotionKey
|
|
what: str
|
|
confident: bool
|
|
|
|
|
|
class MotionAnswer(BaseModel):
|
|
elements: list[MotionElement]
|